query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Write code here that turns the phrase above into concrete actions
@Quando("a entrega atrasar em {int} dias") public void aEntregaAtrasarEmDias(Integer dia, String tempo) throws Throwable { Calendar cal = Calendar.getInstance(); cal.setTime(entrega); if (tempo.equals("dias")) { cal.add(Calendar.DAY_OF_MONTH, dia); } if (tempo.equals("meses")) { cal.add(Calendar.MONTH, dia); } entrega = cal.getTime(); throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Quando("a entrega atrasar em {int} meses") public void aEntregaAtrasarEmMeses(Integer meses) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "public void performAction();", "void showOthersActions(String message);", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "String getAction();", "String getAction();", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void action(BotInstance bot, Message message);", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "CaseAction createCaseAction();" ]
[ "0.6991314", "0.64687526", "0.6402487", "0.6356066", "0.6353187", "0.6338022", "0.63262784", "0.63262784", "0.63262784", "0.63202477", "0.6241218", "0.6177627", "0.6173425", "0.6154606", "0.6113951", "0.6073232", "0.60672504", "0.6061888", "0.60393214", "0.60393214", "0.60393214", "0.60393214", "0.6025473", "0.6015509", "0.5995831", "0.5988031", "0.59759", "0.5937632", "0.593411", "0.5929573", "0.59272724", "0.59268975", "0.590415", "0.5889665", "0.5879872", "0.5864094", "0.58620614", "0.5854785", "0.583802", "0.5809763", "0.5794073", "0.5783573", "0.5778208", "0.5774368", "0.57687664", "0.57657385", "0.57627994", "0.5760175", "0.57556653", "0.57523274", "0.5747434", "0.5747434", "0.5746083", "0.5746083", "0.57424366", "0.57337224", "0.572479", "0.57120234", "0.5709019", "0.57042724", "0.5696811", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56892085", "0.5683459", "0.5662656", "0.5653599", "0.5652036", "0.5650107", "0.56456226", "0.56445944", "0.56303406", "0.56212133", "0.5616947", "0.560345", "0.56010807", "0.5595831", "0.5595589", "0.5593717", "0.5593717", "0.5593717", "0.5592317", "0.5582956", "0.55687445", "0.5568288", "0.5557733", "0.5557205", "0.55546737", "0.5546514", "0.55456007", "0.554528", "0.553331", "0.5531248", "0.5526369", "0.5515467" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Então("a entrega será efetuada em {int}\\/{int}\\/{int}") public void aEntregaSeráEfetuadaEm(String data) throws Throwable { DateFormat format = new SimpleDateFormat("dd/MM/yyyy"); String dataFormatada = format.format(entrega); Assert.assertEquals(data, dataFormatada); throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o ticket é AF{int}") public void que_o_ticket_é_AF(Integer int1) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o ticket é AB{int}") public void que_o_ticket_é_AB(Integer int1) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o ticket especial é AB{int}") public void que_o_ticket_especial_é_AB(Integer int1) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "public void performAction();", "void showOthersActions(String message);", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "String getAction();", "String getAction();", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void action(BotInstance bot, Message message);", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "CaseAction createCaseAction();" ]
[ "0.6991314", "0.64687526", "0.6402487", "0.6356066", "0.6353187", "0.6338022", "0.63262784", "0.63262784", "0.63262784", "0.63202477", "0.6241218", "0.6177627", "0.6173425", "0.6154606", "0.6113951", "0.6073232", "0.60672504", "0.6061888", "0.60393214", "0.60393214", "0.60393214", "0.60393214", "0.6025473", "0.6015509", "0.5995831", "0.5988031", "0.59759", "0.5937632", "0.593411", "0.5929573", "0.59272724", "0.59268975", "0.590415", "0.5889665", "0.5879872", "0.5864094", "0.58620614", "0.5854785", "0.583802", "0.5809763", "0.5794073", "0.5783573", "0.5778208", "0.5774368", "0.57687664", "0.57657385", "0.57627994", "0.5760175", "0.57556653", "0.57523274", "0.5747434", "0.5747434", "0.5746083", "0.5746083", "0.57424366", "0.57337224", "0.572479", "0.57120234", "0.5709019", "0.57042724", "0.5696811", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56892085", "0.5683459", "0.5662656", "0.5653599", "0.5652036", "0.5650107", "0.56456226", "0.56445944", "0.56303406", "0.56212133", "0.5616947", "0.560345", "0.56010807", "0.5595831", "0.5595589", "0.5593717", "0.5593717", "0.5593717", "0.5592317", "0.5582956", "0.55687445", "0.5568288", "0.5557733", "0.5557205", "0.55546737", "0.5546514", "0.55456007", "0.554528", "0.553331", "0.5531248", "0.5526369", "0.5515467" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o valor da passagem é R$ {double}") public void queOValorDaPassagemÉR$(Double valorPassagem) throws Throwable { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o nome do passageiro é {string}") public void queONomeDoPassageiroÉ(String nomePassageiro) throws Throwable { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o telefone do passageiro é {int}{int}") public String queOTelefoneDoPassageiroÉ(Integer num1, Integer num2) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o ticket é CD{int}") public void queOTicketÉCD(Integer int1) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "public void performAction();", "void showOthersActions(String message);", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "String getAction();", "String getAction();", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void action(BotInstance bot, Message message);", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "CaseAction createCaseAction();" ]
[ "0.6991314", "0.64687526", "0.6402487", "0.6356066", "0.6353187", "0.6338022", "0.63262784", "0.63262784", "0.63262784", "0.63202477", "0.6241218", "0.6177627", "0.6173425", "0.6154606", "0.6113951", "0.6073232", "0.60672504", "0.6061888", "0.60393214", "0.60393214", "0.60393214", "0.60393214", "0.6025473", "0.6015509", "0.5995831", "0.5988031", "0.59759", "0.5937632", "0.593411", "0.5929573", "0.59272724", "0.59268975", "0.590415", "0.5889665", "0.5879872", "0.5864094", "0.58620614", "0.5854785", "0.583802", "0.5809763", "0.5794073", "0.5783573", "0.5778208", "0.5774368", "0.57687664", "0.57657385", "0.57627994", "0.5760175", "0.57556653", "0.57523274", "0.5747434", "0.5747434", "0.5746083", "0.5746083", "0.57424366", "0.57337224", "0.572479", "0.57120234", "0.5709019", "0.57042724", "0.5696811", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56892085", "0.5683459", "0.5662656", "0.5653599", "0.5652036", "0.5650107", "0.56456226", "0.56445944", "0.56303406", "0.56212133", "0.5616947", "0.560345", "0.56010807", "0.5595831", "0.5595589", "0.5593717", "0.5593717", "0.5593717", "0.5592317", "0.5582956", "0.55687445", "0.5568288", "0.5557733", "0.5557205", "0.55546737", "0.5546514", "0.55456007", "0.554528", "0.553331", "0.5531248", "0.5526369", "0.5515467" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o ticket é AG{int}") public void queOTicketÉAG(Integer int1) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Dado("que o valor da passagem é R$ {double}{double}") public void queOValorDaPassagemÉR$(Double double1, Double double2) { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Quando("criar os steps") public void criarOsSteps() { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Então("o teste vai funcionar") public void oTesteVaiFuncionar() { throw new cucumber.api.PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "public void performAction();", "void showOthersActions(String message);", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "String getAction();", "String getAction();", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void action(BotInstance bot, Message message);", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "CaseAction createCaseAction();" ]
[ "0.6991314", "0.64687526", "0.6402487", "0.6356066", "0.6353187", "0.6338022", "0.63262784", "0.63262784", "0.63262784", "0.63202477", "0.6241218", "0.6177627", "0.6173425", "0.6154606", "0.6113951", "0.6073232", "0.60672504", "0.6061888", "0.60393214", "0.60393214", "0.60393214", "0.60393214", "0.6025473", "0.6015509", "0.5995831", "0.5988031", "0.59759", "0.5937632", "0.593411", "0.5929573", "0.59272724", "0.59268975", "0.590415", "0.5889665", "0.5879872", "0.5864094", "0.58620614", "0.5854785", "0.583802", "0.5809763", "0.5794073", "0.5783573", "0.5778208", "0.5774368", "0.57687664", "0.57657385", "0.57627994", "0.5760175", "0.57556653", "0.57523274", "0.5747434", "0.5747434", "0.5746083", "0.5746083", "0.57424366", "0.57337224", "0.572479", "0.57120234", "0.5709019", "0.57042724", "0.5696811", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56966996", "0.56892085", "0.5683459", "0.5662656", "0.5653599", "0.5652036", "0.5650107", "0.56456226", "0.56445944", "0.56303406", "0.56212133", "0.5616947", "0.560345", "0.56010807", "0.5595831", "0.5595589", "0.5593717", "0.5593717", "0.5593717", "0.5592317", "0.5582956", "0.55687445", "0.5568288", "0.5557733", "0.5557205", "0.55546737", "0.5546514", "0.55456007", "0.554528", "0.553331", "0.5531248", "0.5526369", "0.5515467" ]
0.0
-1
C++: bool cv::GraphicalCodeDetector::detect(Mat img, Mat& points) Detects graphical code in image and returns the quadrangle containing the code.
public boolean detect(Mat img, Mat points) { return detect_0(nativeObj, img.nativeObj, points.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean qrcodeVideoPreviewEnabled();", "public native boolean signatureImage() throws MagickException;", "public static native int getEdgeDetection(int pin) throws RuntimeException;", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private boolean aYV() {\n /*\n r4 = this;\n r3 = 1;\n r2 = 0;\n r0 = com.android.common.custom.C0421M.dC();\n r0 = r0.dD();\n r0 = r0.bU();\n if (r0 != 0) goto L_0x001d;\n L_0x0010:\n r0 = r4.aiG;\n r0 = r0.SY();\n r0 = r0.tx();\n if (r0 == 0) goto L_0x001d;\n L_0x001c:\n return r2;\n L_0x001d:\n r0 = r4.aIO;\n if (r0 == 0) goto L_0x0041;\n L_0x0021:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NF();\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = r4.aiG;\n r0 = r0.TE();\n r0 = r0.Ll();\n if (r0 == 0) goto L_0x0041;\n L_0x0039:\n r0 = r4.asP();\n r1 = com.android.common.camerastate.UIState.CAMERA_FAMILY;\n if (r0 != r1) goto L_0x0042;\n L_0x0041:\n return r2;\n L_0x0042:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NP();\n if (r0 != 0) goto L_0x0041;\n L_0x004e:\n r0 = r4.asJ();\n r1 = com.android.common.camerastate.DeviceState.SNAPSHOT_IN_PROGRESS;\n if (r0 == r1) goto L_0x0041;\n L_0x0056:\n r0 = r4.aiG;\n r0 = r0.SQ();\n r1 = com.android.common.cameradevice.C0384o.Jr();\n r1 = r1.Jt();\n if (r0 != r1) goto L_0x0067;\n L_0x0066:\n return r2;\n L_0x0067:\n r0 = r4.aiG;\n r0 = r0.To();\n switch(r0) {\n case 0: goto L_0x0073;\n case 90: goto L_0x0084;\n case 180: goto L_0x0073;\n case 270: goto L_0x0084;\n default: goto L_0x0070;\n };\n L_0x0070:\n r0 = r4.aID;\n return r0;\n L_0x0073:\n r0 = r4.aIK;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIJ;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0081:\n r4.aID = r3;\n goto L_0x0070;\n L_0x0084:\n r0 = r4.aIJ;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIK;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0092:\n r4.aID = r3;\n goto L_0x0070;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.Camera.aYV():boolean\");\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray, ScreenOrientation orientation) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, orientation);\n }", "public boolean generateImageFromText();", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public void drawFlag(Mat img, int flag) {\n\t\tPoint p1 = null;\n\t\tPoint p2 = null;\n\n\t\tdouble HALF_WIDTH = img.cols() * 1.0 / 2;\n\t\tdouble HALF_HEIGHT = img.rows() * 1.0 / 2;\n\t\tint size = 3;\n\t\tdouble MIN_VAL = size * 0.5;\n\t\tdouble WIDTH = img.cols() - MIN_VAL;\n\t\tdouble HEIGHT = img.rows() - MIN_VAL;\n\n\t\tswitch (flag) {\n\t\tcase 0:\n\t\t\tp1 = new Point(MIN_VAL, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, MIN_VAL);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tp1 = new Point(WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, MIN_VAL);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tp1 = new Point(MIN_VAL, MIN_VAL);\n\t\t\tp2 = new Point(MIN_VAL, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tp1 = new Point(MIN_VAL, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tp1 = new Point(HALF_WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tp1 = new Point(WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tp1 = new Point(WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tp1 = new Point(MIN_VAL, HALF_HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tp1 = new Point(WIDTH, HALF_HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tp1 = new Point(MIN_VAL, HEIGHT);\n\t\t\tp2 = new Point(MIN_VAL, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tp1 = new Point(MIN_VAL, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tp1 = new Point(HALF_WIDTH, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tp1 = new Point(WIDTH, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tp1 = new Point(WIDTH, HALF_HEIGHT);\n\t\t\tp2 = new Point(WIDTH, HEIGHT);\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\tp1 = new Point(MIN_VAL, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HEIGHT);\n\t\t\tbreak;\n\t\tcase 15:\n\t\t\tp1 = new Point(WIDTH, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HEIGHT);\n\t\t\tbreak;\n\t\t}\n\n\t\tCore.line(img, p1, p2, new Scalar(0, 255, 0), 3);\n\t}", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, ScreenOrientation.LANDSCAPE);\n }", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "public native void annotateImage(DrawInfo info);", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "private int getCodeLines(String code)\n{\n StringTokenizer tok = new StringTokenizer(code,\"\\n\");\n int codelines = 0;\n boolean incmmt = false;\n while (tok.hasMoreTokens()) {\n String lin = tok.nextToken();\n boolean hascode = false;\n for (int i = 0; i < lin.length() && !hascode; ++i) {\n\t int ch = lin.charAt(i);\n\t if (Character.isWhitespace(ch)) continue;\n\t if (incmmt) {\n\t if (ch == '*' && i+1 < lin.length() && lin.charAt(i+1) == '/') {\n\t ++i;\n\t incmmt = false;\n\t }\n\t }\n\t else if (ch == '/' && i+1 < lin.length()) {\n\t if (lin.charAt(i+1) == '/') break;\n\t else if (lin.charAt(i+1) == '*') {\n\t incmmt = true;\n\t }\n\t }\n\t else hascode = true;\n }\n if (hascode) ++codelines;\n }\n\n return codelines;\n}", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "boolean hasCode();", "boolean hasCode();", "boolean hasCode();", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "public native boolean drawImage(DrawInfo aInfo) throws MagickException;", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "private static int orientation(Coord p, Coord r, Coord q) \n { \n // See https://www.geeksforgeeks.org/orientation-3-ordered-points/ \n // for details of below formula. \n int val = (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y); \n \n if (val == 0) return 0; // colinear \n \n return (val > 0)? 1: 2; // clock or counterclock wise \n }", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "DetectionResult getObjInImage(Mat image);", "public String getContourRepresentaionOfVoice(final Voice voice);", "Picture identifyComponentImage() throws Exception;", "public List<Point> findCornerPoints(Mat mRgba) throws NoSudokuFoundException{\n // draw edge points\n findUpperAndLowerEdge();\n findLeftAndRightEdge();\n \n for(int i=0; i<edges.length; i++){\n Point a = new Point(edges[i][0], edges[i][1]);\n Point b = new Point(edges[i][2], edges[i][3]);\n Core.line(mRgba, a, b, new Scalar(255, 0, 0), 3);\n }\n // Find the upper left corner point\n Point tl = findCornerPoint(edges[0], edges[3]);\n // Find the upper right corner point\n Point tr = findCornerPoint(edges[0], edges[1]);\n // Find the lower left corner point\n Point bl = findCornerPoint(edges[3], edges[2]);\n // Find the lower right corner point\n Point br = findCornerPoint(edges[2], edges[1]);\n \n // Sanity check: The corner points have to be correctly relative\n // to each other\n if(tl.x > tr.x || bl.x > br.x || tl.y > br.y || tr.y > br.y) {\n throw new NoSudokuFoundException(\"Points are not correctly aligned\");\n }\n \n // Sanity check: The Sudoku has to be about square\n // calculate and compare the distance of the diagonals\n // raise an exception if the difference is more than 10%.\n double a = Math.sqrt(Math.pow(tr.y-bl.y, 2) + Math.pow(tr.x-bl.x, 2));\n double b = Math.sqrt(Math.pow(tl.y-br.y, 2) + Math.pow(tl.x-br.x, 2));\n double diff = Math.abs(a-b);\n \n // Sanity check: The upper edge is the shortest because it is farthest\n // from the lens. So the area of the square found must be larger than \n // the square of the upper line.\n\n \n\n // draw the points cyan.\n Core.line(mRgba, tl, tl, new Scalar(20,255,255), 3);\n Core.line(mRgba, tr, tr, new Scalar(20,255,255), 3);\n Core.line(mRgba, bl, bl, new Scalar(20,255,255), 3);\n Core.line(mRgba, br, br, new Scalar(20,255,255), 3);\n \n if(diff * 10 > a || diff * 10 > b) {\n throw new NoSudokuFoundException(\"Structure is not a square.\");\n }\n List<Point> points = new ArrayList<Point>();\n points.add(bl);\n points.add(br);\n points.add(tr);\n points.add(tl);\n return points;\n }", "@Test\n\tpublic void checkImageBorders() {\n\t\tOrientationHistogramSift alg = new OrientationHistogramSift(36,2.5,1.5);\n\n\t\tGrowQueue_F64 found = alg.getOrientations();\n\n\t\tdouble theta = 1.2;\n\t\tdouble dx = Math.cos(theta);\n\t\tdouble dy = Math.sin(theta);\n\t\tsetAllDerivatives(dx,dy);\n\n\t\talg.setScaleSpace(ss);\n\n\t\talg.process(0,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(0,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t}", "boolean detect(Point p, MapLayer layer);", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public String getPointCode() {\n return pointCode;\n }", "private Marker isMarker(MatOfPoint2f result, Mat texture) {\n boolean[][] pattern = new boolean[4][4];\n \n // reset error allowance\n int errorAllowance = 0;\n // Check border:\n for (int i = 1; i < MARKER_GRID - 1; i++) {\n if (testSample(half + (i * step), half,\n texture) > 0)\n errorAllowance++;\n if (testSample(half, half + (i * step), texture) > 0)\n errorAllowance++;\n if (testSample(half + (i * step), MARKER_SIZE - 1 - half,\n texture) > 0)\n errorAllowance++;\n if (testSample(MARKER_SIZE - 1 - half, half + (i * step),\n texture) > 0)\n errorAllowance++;\n }\n \n // we'll allow 4 incorrect border pieces but no more\n if (errorAllowance > 4) {\n log.debug(TAG, \"Discarding over incomplete border detection!\");\n // Return null if we're not debugging – we're done in that case.\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n // Now read pattern:\n // time: ~3ms\n for (int i = 0; i < 4; i++)\n for (int j = 0; j < 4; j++) {\n pattern[i][j] = (testSample(half + (i + 1) * step,\n half + (j + 1) * step, texture) > 0);\n }\n \n // Check corners, get rotation, and rotate pattern to correct\n // orientation:\n // time: ~0ms\n int angle;\n if (!pattern[0][0] && pattern[0][3] && pattern[3][0] && pattern[3][3]) {\n angle = -90;\n pattern = rotatePattern(3, pattern);\n } else if (pattern[0][0] && !pattern[0][3] &&\n pattern[0][3] && pattern[3][3]) {\n angle = 0;\n } else if (pattern[0][0] && pattern[0][3] &&\n !pattern[3][0] && pattern[3][3]) {\n angle = 180;\n pattern = rotatePattern(2, pattern);\n } else if (pattern[0][0] && pattern[0][3] &&\n pattern[3][0] && !pattern[3][3]) {\n angle = 90;\n pattern = rotatePattern(1, pattern);\n } else {\n // This happens when a black border is found but has no\n // orientation information.\n log.debug(TAG, \"Discarding over missing orientation information!\");\n angle = -1;\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n \n // Get Hamming code corrected id:\n // time: ~0ms\n int id = MarkerPatternHelper.getID(pattern);\n \n // Check if id is valid.\n if (id < 0) {\n log.debug(TAG, \"Discarding over illegal ID!\");\n return null;\n }\n \n Marker marker = new Marker(result, angle, id);\n \n // For debug, we need to remember the grayTexture, otherwise not.\n if (mainInterface.DEBUG_FRAME && (DEBUG_DRAW_MARKERS || DEBUG_POLY)) {\n // INFO: Debugging with this HALFS the framerate!\n marker.setDebugParameters(pattern, texture);\n return marker;\n }\n \n return marker;\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "@Test\n\tpublic void withLensDistortion() {\n\t\tQrCodeDistortedChecks helper = new QrCodeDistortedChecks();\n\n\t\thelper.render();\n\n\t\t// find location of postion patterns and create graph\n\t\tFastQueue<PositionPatternNode> pps = new FastQueue<>(PositionPatternNode.class,true);\n\n\t\tpps.grow().square = new Polygon2D_F64(4);\n\t\tpps.grow().square = new Polygon2D_F64(4);\n\t\tpps.grow().square = new Polygon2D_F64(4);\n\n\t\thelper.setLocation(pps.get(0).square,pps.get(1).square,pps.get(2).square);\n\t\tfor (int i = 0; i < pps.size; i++) {\n\t\t\tpps.get(i).grayThreshold = 125;\n\t\t}\n\t\t// these numbers were found by sketching the QR code\n\t\tconnect(pps.get(2),pps.get(1),3,1);\n\t\tconnect(pps.get(0),pps.get(1),0,2);\n\n\t\t// Should fail when run on distorted image\n\t\tQrCodeDecoderImage<GrayF32> decoder = new QrCodeDecoderImage<>(null,GrayF32.class);\n\t\tdecoder.process(pps,helper.image);\n\n\t\tassertEquals(0, decoder.successes.size());\n\n\t\t// now tell it how to undistort the image\n\t\tdecoder.setLensDistortion(helper.image.width,helper.image.height,helper.distortion);\n\t\tfor (int i = 0; i < pps.size; i++) {\n\t\t\thelper.distToUndist(pps.get(i).square);\n\t\t}\n\t\tdecoder.process(pps,helper.image);\n\n\t\tassertEquals(1,decoder.successes.size());\n\t\tQrCode found = decoder.getFound().get(0);\n\t\tassertTrue(found.message.equals(\"123\"));\n\t}", "public static BufferedImage contornarFace(BufferedImage pImage) {\n System.out.println(\"\\nRunning DetectFaceDemo\");\n\n // Create a face detector from the cascade file in the resources\n // directory.\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n Mat image = new Mat(rows, cols, type);\n\n // Detect faces in the image.\n // MatOfRect is a special container class for Rect\n CascadeClassifier faceDetector = new CascadeClassifier();\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n Rect[] facesArray = faceDetections.toArray();\n for (int i = 0; i < facesArray.length; i++) {\n Core.rectangle(image, facesArray[i].tl(), facesArray[i].br(), new Scalar(200, 200, 200), 3);\n }\n return matTOImg(image);\n\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "Picture highlightComponentImage() throws Exception;", "public CodePosition getCodePosition ();", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "private void paintOriginalImage() {\r\n Graphics g = originalImage.getGraphics();\r\n // Erase to black\r\n g.setColor(Color.BLACK);\r\n g.fillRect(0, 0, FULL_SIZE, FULL_SIZE);\r\n \r\n // RGB quadrant\r\n for (int i = 0; i < QUAD_SIZE; i += 3) {\r\n int x = i;\r\n g.setColor(Color.RED);\r\n g.drawLine(x, 0, x, QUAD_SIZE);\r\n x++;\r\n g.setColor(Color.GREEN);\r\n g.drawLine(x, 0, x, QUAD_SIZE);\r\n x++;\r\n g.setColor(Color.BLUE);\r\n g.drawLine(x, 0, x, QUAD_SIZE);\r\n }\r\n \r\n // Picture quadrant\r\n try {\r\n URL url = getClass().getResource(\"images/BBGrayscale.png\");\r\n BufferedImage picture = ImageIO.read(url);\r\n // Center picture in quadrant area\r\n int xDiff = QUAD_SIZE - picture.getWidth();\r\n int yDiff = QUAD_SIZE - picture.getHeight();\r\n g.drawImage(picture, QUAD_SIZE + xDiff/2, yDiff/2, null);\r\n } catch (Exception e) {\r\n System.out.println(\"Problem reading image file: \" + e);\r\n }\r\n \r\n // Vector drawing quadrant\r\n g.setColor(Color.WHITE);\r\n g.fillRect(0, QUAD_SIZE, QUAD_SIZE, QUAD_SIZE);\r\n g.setColor(Color.BLACK);\r\n g.drawOval(2, QUAD_SIZE + 2, QUAD_SIZE-4, QUAD_SIZE-4);\r\n g.drawArc(20, QUAD_SIZE + 20, (QUAD_SIZE - 40), QUAD_SIZE - 40, \r\n 190, 160);\r\n int eyeSize = 7;\r\n int eyePos = 30 - (eyeSize / 2);\r\n g.fillOval(eyePos, QUAD_SIZE + eyePos, eyeSize, eyeSize);\r\n g.fillOval(QUAD_SIZE - eyePos - eyeSize, QUAD_SIZE + eyePos, \r\n eyeSize, eyeSize);\r\n \r\n // B&W grid\r\n g.setColor(Color.WHITE);\r\n g.fillRect(QUAD_SIZE + 1, QUAD_SIZE + 1, QUAD_SIZE, QUAD_SIZE);\r\n g.setColor(Color.BLACK);\r\n for (int i = 0; i < QUAD_SIZE; i += 4) {\r\n int pos = QUAD_SIZE + i;\r\n g.drawLine(pos, QUAD_SIZE + 1, pos, FULL_SIZE);\r\n g.drawLine(QUAD_SIZE + 1, pos, FULL_SIZE, pos);\r\n }\r\n \r\n originalImagePainted = true;\r\n }", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public boolean calculateFocus(Mat img) {\n\t\tImgproc.cvtColor(img, img, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.blur(img, img, BLUR);\n\t\tImgproc.Canny(img, img, EDGE_LOWER_THRESHOLD, EDGE_LOWER_THRESHOLD * EDGE_THRESHOLD_RATIO);\n\t\tint score = Core.countNonZero(img);\n\t\t\n\t\tSystem.out.println(\"[score=\" + score + \", high=\" + bestScore + \", best=\" + bestNetScore + \", low=\" + lowestNetScore + \", direction=\" + direction);\n\t\t\n\t\tif (score == 0)\n\t\t\treturn false;\n\t\t\n\t\tif (lowestNetScore > score || lowestNetScore == 0) {\n\t\t\tlowestNetScore = score;\n\t\t\tif (lowestNetScore < unfocusedScore || unfocusedScore == 0)\n\t\t\t\tunfocusedScore = lowestNetScore;\n\t\t}\n\t\tif (score > bestScore || bestScore == 0) {\n\t\t\tbestScore = score;\n\t\t\tif (bestNetScore < bestScore)\n\t\t\t\tbestNetScore = bestScore;\n\t\t}\n\t\tif (passedPeak && score < bestScore) {\n\t\t\t//if (stepSize != INITIAL_STEP || stepsTaken == Z_RANGE) {\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t//}\n\t\t}\n\t\telse if (bestScore > lowestNetScore * SCORE_PEAK_SIZE && score >= bestNetScore * STRICTNESS /*&& stepSize != INITIAL_STEP*/) {\n\t\t\tif (strideSize <= MINIMUM_STRIDE && score <= bestScore) {\n\t\t\t\tSystem.out.println(\"quick complete\");\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpassedPeak = true;\n\t\t}\n\t\t//else if (stepSize == INITIAL_STEP && stepsTaken == Z_RANGE)\n\t\t//\tpassedPeak = true;\n\t\t/*else if (stepSize <= MINIMUM_STEP && score < bestScore) {\n\t\t\tSystem.out.println(\"quick complete\");\n\t\t\tcalculationComplete();\n\t\t\treturn true;\n\t\t}*/\n\t\treturn false;\n\t}", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "private Mat getCornerMat(Mat source, boolean detectGlare) {\n MatOfPoint2f approxCurve = findBoundingBox(source, detectGlare);\n if (approxCurve == null) {\n return null;\n }\n\n List<Point> points = new ArrayList<>();\n for(int i = 0; i < NUM_CORNERS; i++) {\n double[] coordinates = approxCurve.get(i,0);\n Point p = new Point(coordinates[0], coordinates[1]);\n points.add(p);\n }\n\n return createOrderedCornerMat(points);\n }", "public String whatShape();", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "@Override\n public void draw(Canvas canvas) {\n Face face = mFace;\n if (face == null) {\n return;\n }\n/*\n // 3\n float centerX = translateX(face.getPosition().x + face.getWidth() / 2.0f);\n float centerY = translateY(face.getPosition().y + face.getHeight() / 2.0f);\n float offsetX = scaleX(face.getWidth() / 2.0f);\n float offsetY = scaleY(face.getHeight() / 2.0f);\n\n // 4\n // Draw a box around the face.\n float left = centerX - offsetX;\n float right = centerX + offsetX;\n float top = centerY - offsetY;\n float bottom = centerY + offsetY;\n\n // 5\n canvas.drawRect(left, top, right, bottom, mHintOutlinePaint);\n\n // 6\n // Draw the face's id.\n canvas.drawText(String.format(\"id: %d\", face.getId()), centerX, centerY, mHintTextPaint);\n*/\n // Get the landmarks associated with the face\n for (Landmark lm : face.getLandmarks()) {\n switch (lm.getType()) {\n case Landmark.BOTTOM_MOUTH:\n case Landmark.LEFT_EYE:\n case Landmark.LEFT_MOUTH:\n case Landmark.NOSE_BASE:\n case Landmark.RIGHT_EYE:\n case Landmark.RIGHT_MOUTH:\n // draw the green dot\n PointF pt = lm.getPosition();\n float x = translateX(pt.x);\n float y_pt = translateY(pt.y);\n float y_text = y_pt - 10f;\n canvas.drawCircle(x, y_pt, DOT_RADIUS, mLandmarkPaint);\n String text = getTextFromLandmarkType(lm.getType());\n canvas.drawText(text, x, y_text, mHintTextPaint);\n if (lm.getType() == Landmark.NOSE_BASE) {\n System.out.println(\"x = \" + String.valueOf(x) + \", y_pt = \" + String.valueOf(y_pt));\n }\n break;\n }\n } // end for\n\n }", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public void findCaptured(Mat in)\r\n\t{\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset; // offset for playable board\r\n\t\t\r\n\t\tint capSquares = 12; // number of capture squares\r\n\t\tint rowNum = 1; // starting row number for capture squares\r\n\t\tint rightdx = 48;\r\n\t\tint leftdx = 0;\r\n\t\toffset = hsegment;\r\n\t\tint count = 0;\r\n\t\t// keep track of captured squares\r\n\t\t// left: end user, right: system\r\n\t\tfor (int i = 0; i < capSquares; i++)\r\n\t\t{\t\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\tchar color;\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\t\t\t\r\n\t\t\t// get the color\r\n\t\t\tcolor = identifyColor(roi);\r\n\t\t\t\r\n\t\t\tswitch(color)\r\n\t\t\t{\r\n\t\t\t\tcase COLOR_BLUE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 0, 0), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_ORANGE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 128, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(0, 128, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_WHITE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 255, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_BLACK:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcount++;\r\n\t\t\tif (count == 1)\r\n\t\t\t{\r\n\t\t\t\toffset = hsegment * 10 - rightdx;\r\n\t\t\t}\r\n\t\t\telse if (count == 2)\r\n\t\t\t{\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trightdx -= 6;\r\n\t\t\t\tleftdx += 6;\r\n\t\t\t\toffset = hsegment - leftdx;\r\n\t\t\t\trowNum++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int[][] RdB() {\t\t\t\t\t\t\t\t// cherche les 4 points noirs\n\t\tint[][] pixNoirs = new int[img.getWidth()*img.getHeight()][2];\n\n\t\tint i=0;\n\t\tint radius=8;\t\t\t\t\t\t\t\t\t// 19= limite de detection de checkCircle\n\t\tfor (int ty=0; ty<img.getHeight();ty++) {\n\t\t\tfor (int tx=0;tx<img.getWidth();tx++) {\n\n\t\t\t\tColor tmp=new Color(img.getRGB(tx, ty));\n\t\t\t\tif (tmp.getGreen()<20) { \t\t\t\t//si le pixel est noir\n\t\t\t\t\tif (checkCircle(tx,ty,radius) ) {\t//verifie si un cercle de radius entoure le pixel\n\t\t\t\t\t\tpixNoirs[i][0]=tx;\n\t\t\t\t\t\tpixNoirs[i][1]=ty;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"fin\");\n\t\tint tmp=1;\n\t\tint centreX[][]=new int [img.getWidth()*img.getHeight()][2];\n\t\tcentreX[0]=pixNoirs[0];\n\t\tfor (int l=0;l<img.getHeight()*img.getWidth() && (pixNoirs[l][1]!=0 || pixNoirs[l][0]!=0);l++) {\n\t\t\tif((pixNoirs[l][0]-centreX[tmp-1][0])<5 || pixNoirs[l][1]-centreX[tmp-1][1]<5 ){\t\t//x-(x-1)>5 ou y-(y-1)>5\n\t\t\t\tcentreX[tmp][0]=pixNoirs[l][0];\t\t\t//efface le precedent roar2 si il était a 1 pixel de diff\n\t\t\t\tcentreX[tmp][1]=pixNoirs[l][1];\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttmp++;\n\t\t\t\tcentreX[tmp]=pixNoirs[l];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//boucle de determination des points noirs\n\t\t//System.out.println(\"roar2debut\");\n\t\tint points[][]=new int [4][2];\n\t\tint centres[][]=new int [centreX.length][2]; int boucl=0; int lasti=0;\n\t\tint t=0;\n\t\tfor (int l=1;l<=img.getHeight()*img.getWidth() && (centreX[l-1][1]!=0 || centreX[l-1][0]!=0);l++) {\n\n\n\t\t\t\n\t\t\tint diffx=centreX[l][0]-centreX[l-1][0];\n\t\t\tint diffy=centreX[l][1]-centreX[l-1][1];\n\t\t\tint diff=Math.abs(diffx)+Math.abs(diffy);\n\t\t\tif (diff>img.getWidth()*0.85)\n\t\t\t{\n\t\t\t\tpoints[t]=centreX[l];\n\t\t\t\tt++;\n\t\t\t}\n\t\t\t\n\t\t\tif (diffx<10 && diffy<10) {\n\t\t\t\tboucl++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcentres[lasti][0]=centreX[l-boucl/2][0];\n\t\t\t\tcentres[lasti][1]=centreX[l-boucl/2][1];\n\t\t\t\tlasti++;boucl=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor (int l=0;l<=centres.length && (centres[l][1]!=0 || centres[l][0]!=0);l++) {\t\n\t\t\tboolean test=true;\n\t\t\tint maxPoint=0;\n\t\t\tfor (int li=0;li<=points.length && (points[li][1]!=0 || points[li][0]!=0);li++) {\n\t\t\t\tint diffx=\tMath.abs(centres[l][0]-points[li][0]);\n\t\t\t\tint diffy=\tMath.abs(centres[l][1]-points[li][1]);\n\t\t\t\tboolean testx=\t\tdiffx>img.getWidth()*0.85 \t|| diffx<img.getWidth()*0.2;\t//diff <0.1 ou >0.8 x la largeur de feuille\n\t\t\t\tboolean testy=\t\tdiffy>img.getHeight()*0.8 \t|| diffy<img.getWidth()*0.2;\n\t\t\t\tboolean Repeat=\tdiffx+diffy>img.getWidth()*0.2;\t //si point deja présent\n\n\t\t\t\tif (!Repeat || (!testx || !testy) )\t// si 0.2>diffx>0.8 ou \"diffy\" et \n\t\t\t\t{\n\t\t\t\t\ttest=false;\n\t\t\t\t}\n\t\t\t\tmaxPoint=li;\n\t\t\t}\n\t\t\t\n\t\t\tif(test && maxPoint<2) {\n\t\t\t\t//System.out.println(lastRoar[l][0]+\" \"+lastRoar[l][1]);\n\t\t\t\tpoints[maxPoint+1][0]=centres[l][0];\n\t\t\t\tpoints[maxPoint+1][1]=centres[l][1];\n\t\t\t}\n\t\t}\n\t\treturn points;\n\n\t}", "public double getAngle(int[][] tab) {\n\t\tdouble[] res= new double[4];int resi=0;\n\t\tint cmpt=0;\n\t\tint angle=0;\n\t\tfor (int i=0;i<tab.length;i++) {\n\t\t\tif (!(tab[i][0]==0) || !(tab[i][1]==0))\n\t\t\t\tcmpt++;\n\t\t}\n\t\t\n\t\tif (cmpt<=1) {\n\t\t\t return 0; //RIP CODE\n\t\t}\n\t\t\n\t\tfor (int i=1;i<tab.length && (!(tab[i][0]==0) || !(tab[i][1]==0));i++) {\n\t\t\tfor(int c=1;i<tab.length && (tab[c][0]!=0 || tab[c][1]!=0);i++)\n\t\t\t{\n\t\t\t\tint diffx=tab[i-1][0]-tab[i][0];\n\t\t\t\tint diffy=tab[i-1][1]-tab[i][1];\n\t\t\t\t\n\t\t\t\tdouble yb=tab[i][1];\n\t\t\t\tdouble xb=tab[i][0];\n\t\t\t\tdouble ya=tab[i-1][1];\n\t\t\t\tdouble xa=tab[i-1][0];\n\t\t\t\t\n\t\t\t\tdouble pointy,pointx;\n\t\t\t\tpointy=yb; \t\t\t\t\t\t\t//pointy/x = coord du 3e point de triangle rectangle\n\t\t\t\tpointx=xa;\t\t\t\t\n\t\t\t\t\n\t\t\t\tdouble dhypo=Math.sqrt(Math.pow(xb-xa,2)+Math.pow(yb-ya,2));\t//(yb-ya)/(xb-xa)\n\t\t\t\tdouble dadj=Math.sqrt(Math.pow(xb-pointx, 2)+Math.pow(yb-pointy, 2));\t//adjacent / rapport a xb,yb\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (dhypo<img.getWidth() && dhypo!=0) {\t\t//deux points selectionnees sont des diagonales\n\t\t\t\t\tdouble retour=Math.acos(dadj/dhypo)*(180/Math.PI);\n\t\t\t\t\tif (retour>90/2)\n\t\t\t\t\t\tretour=180-90-retour;\n\t\t\t\t\t\n\t\t\t\t\tif((xa<xb && ya<yb )||( xb<xa && yb<ya))\t\t\t\t//point de droite plus haut que celui de gauche\n\t\t\t\t\t\treturn -retour;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn retour;\n\t\t\t\t}\n\t\t\t\t/*else {\t\t\t//deux points sont en diagonnale\n\t\t\t\t\tdouble retour=Math.acos(dadj/dhypo)*(180/Math.PI);\t\t// ne marche pas \n\t\t\t\t\treturn (Math.abs(45-retour)/2);\n\t\t\t\t\t\n\t\t\t\t}*/\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\t\t\n\t\treturn 0;\n\t}", "public void setQrcodeDecodeRect(int x, int y, int w, int h);", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "void analyze(ImageProxy image, int rotationDegrees);", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "private static final byte[] xfuzzyclose_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -82,\n\t\t\t\t69, 12, 0, 0, 0, -64, -64, -64, -1, -1, -1, 33, -2, 14, 77, 97,\n\t\t\t\t100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33,\n\t\t\t\t-7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2, 54,\n\t\t\t\t-124, 61, 121, -112, 125, -83, 24, -116, 114, -96, -23, -48,\n\t\t\t\t-59, 121, 115, 90, 125, -102, 55, 109, -63, -119, -94, 86, 24,\n\t\t\t\t8, -18, 43, 4, 75, -45, -74, 110, -51, -39, -11, -99, -65, 118,\n\t\t\t\t-36, -117, 9, -127, -104, -35, -115, 56, -7, -63, 2, -71, 84,\n\t\t\t\t-86, 0, 0, 59 };\n\t\treturn data;\n\t}", "@Override\n public boolean detect() {\n QQRobot.findWindowLocation(RGB_SCREEN);\n if (QQTetris.QQCoord.x != -1) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public void draw(Canvas canvas) {\n\n int cW = canvas.getWidth();\n int cH = canvas.getHeight();\n\n // модификатор сдвига (камера снимает 640*480, а канвас другого размера)\n float xMod = (float) cW / width;\n float yMod = (float) cH / height;\n\n\n Face face = mFace;\n if (face == null) {\n return;\n }\n\n // Draws a circle at the position of the detected face, with the face's track id below.\n float x = translateX(face.getPosition().x + face.getWidth() / 2);\n float y = translateY(face.getPosition().y + face.getHeight() / 2);\n canvas.drawText(\"id: \" + mFaceId, x + ID_X_OFFSET, y + ID_Y_OFFSET, mIdPaint);\n\n final List<Landmark> landmarks = face.getLandmarks();\n\n Landmark leftEye = null;\n Landmark rightEye = null;\n Landmark nose = null;\n\n for (Landmark landmark : landmarks) {\n int cx = (int) (landmark.getPosition().x);\n int cy = (int) (landmark.getPosition().y);\n if (landmark.getType() == Landmark.LEFT_EYE) {\n leftEye = landmark;\n }\n if (landmark.getType() == Landmark.RIGHT_EYE) {\n rightEye = landmark;\n }\n if (landmark.getType() == Landmark.NOSE_BASE) {\n nose = landmark;\n }\n }\n\n if (leftEye != null && rightEye != null) {\n float lX = translateX(leftEye.getPosition().x);\n float lY = translateY(leftEye.getPosition().y);\n float rX = translateX(rightEye.getPosition().x);\n float rY = translateY(rightEye.getPosition().y);\n canvas.drawCircle(lX, lY, 10, mIdPaint);\n canvas.drawCircle(rX, rY, 10, mIdPaint);\n canvas.drawLine(lX, lY, rX, rY, mIdPaint);\n }\n\n if (nose != null) {\n float nX = translateX(nose.getPosition().x);\n float nY = translateY(nose.getPosition().y);\n canvas.drawCircle(nX, nY, 10, mIdPaint);\n canvas.drawLine(nX, nY - 100, nX, nY + 100, mIdPaint);\n }\n\n\n // Draws a bounding box around the face.\n float xOffset = scaleX(face.getWidth() / 2.0f);\n float yOffset = scaleY(face.getHeight() / 2.0f);\n float left = x - xOffset;\n float top = y - yOffset;\n float right = x + xOffset;\n float bottom = y + yOffset;\n canvas.drawRect(left, top, right, bottom, mBoxPaint);\n }", "@Override\n\tpublic boolean saveBarCode(int kodPoint, String readedCod) {\n\t\treturn false;\n\t}", "private int getOutcode(Point p) {\n Rectangle r = (Rectangle)component.rect.clone();\n r.grow(-PROX_DIST, -PROX_DIST);\n return r.outcode(p.x, p.y);\n }", "public void findPattern(){\n List<MatOfPoint> arrContours = new ArrayList<>();\n Mat hierachy = new Mat();\n MatOfPoint2f contour2f = new MatOfPoint2f();\n MatOfPoint2f approxPoly = new MatOfPoint2f();\n Mat transformMatrix;\n Mat warped = new Mat();\n Mat compareTemplateResult = new Mat(4,1,CvType.CV_32FC1);\n\n Imgproc.Canny(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), mEdges, mCanny1, mCanny2);\n Imgproc.findContours(mEdges,arrContours,hierachy,Imgproc.RETR_LIST,Imgproc.CHAIN_APPROX_SIMPLE);\n for(int i = 0; i<arrContours.size(); i++){\n arrContours.get(i).convertTo(contour2f, CvType.CV_32FC2);\n Imgproc.approxPolyDP(contour2f,approxPoly,mPoly,true);\n if(approxPoly.height()==4){\n transformMatrix = Imgproc.getPerspectiveTransform(approxPoly,mTemplateTargetPoints);\n Imgproc.warpPerspective(mGray.submat(mScanTop, mScanBottom, mScanLeft, mScanRight), warped, transformMatrix, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n Imgproc.matchTemplate(warped, mTemplateGray, compareTemplateResult.rowRange(0, 1), Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate90,compareTemplateResult.rowRange(1, 2),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate180,compareTemplateResult.rowRange(2, 3),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped, mTemplate270, compareTemplateResult.rowRange(3, 4), Imgproc.TM_SQDIFF_NORMED);\n\n Core.MinMaxLocResult mmr = Core.minMaxLoc(compareTemplateResult);\n\n if(Double.compare(mmr.minVal,mTemplateThreshold)<0){\n\n /* used to solvepnp */\n List<Point> approxPolyList = approxPoly.toList();\n switch (mmr.minLoc.toString()){\n case \"{0.0, 0.0}\":\n {\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 1.0}\":\n {\n Collections.rotate(approxPolyList,3);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 2.0}\":\n {\n Collections.rotate(approxPolyList,2);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 3.0}\":\n {\n Collections.rotate(approxPolyList,1);\n mFrameBox.fromList(approxPolyList);\n }break;\n default:{\n Log.i(TAG,\"mmr.minLoc out of bound error.\");\n mFrameBox.fromList(approxPolyList);\n }break;\n }\n /* calculate the average center of the box. used to readjust mscancenter later */\n List<Point> approxPolyPts = approxPoly.toList();\n double totalX = 0,\n totalY = 0,\n count = 0;\n for(int j = 0; j<approxPolyPts.size(); j++){\n count++;\n totalX += approxPolyPts.get(j).x+mScanLeft;\n totalY += approxPolyPts.get(j).y+mScanTop;\n }\n mBoxCenter = new Point(totalX/count,totalY/count);\n\n\n /* check if show fill poly */\n if(staticConfig.showPatternMatch){\n Imgproc.fillConvexPoly(mMixed.submat(mScanTop,mScanBottom,mScanLeft,mScanRight),arrContours.get(i),new Scalar(255,155,155,255));\n }\n\n return;\n }\n }\n }\n }", "public void run()\n\t{\n\t\tint linCmbDistThreshold=2;\n\t\tint linCmbMinLenOvrLap=6;\n\t\tdouble linSlopeThreshold=0.1d;\n\t\tList<Line> listLines = new ArrayList<Line>();\n\t\tLine curLine;\n\t\t\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\t\n\t\tString srcFilename = \"resources/tttorig.jpg\";\n\t\tMat src = Imgcodecs.imread(srcFilename);\n\t\t\n\t\tMat dst, cdst;\n\t\tdst= new Mat();\n\t\tcdst = new Mat();\n\t\t\n\t\tImgproc.Canny(src, dst, 50d, 200d, 3, true);\n\t\tImgproc.cvtColor(dst, cdst, Imgproc.COLOR_GRAY2BGR);\n\t\t\n\t\tMat lines;\n\t\tlines = new Mat();\n\t\t\n\t\tint threshold = 65;\n\t int minLineSize = 30;\n\t int lineGap = 25;\n\t\t\n\t\tImgproc.HoughLinesP(dst, lines, 1.27d, Math.PI/180, threshold, minLineSize, lineGap);\n\t\t\n\t\tdouble highSlope;\n\t\tdouble lowSlope;\n\t\tdouble[] vec;\n\t\tfor(int c = 0; c < lines.cols(); c++ )\n\t\t{\n\t\t\tfor(int r=0; r < lines.rows(); r++)\n\t\t\t{\n\t\t\t\tvec = lines.get(r, c);\n\t\t\t\t// x1, y1\n\t\t\t\tPoint start = new Point(vec[0], vec[1]);\n\t\t\t\t// x2, y2\n\t\t\t\tPoint end = new Point(vec[2], vec[3]);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tcurLine = new Line(start, end);\n\t\t\t\thighSlope=curLine.getSlope()+linSlopeThreshold;\n\t\t\t\tlowSlope=curLine.getSlope()-linSlopeThreshold; \n\t\t\t\t\n\t\t\t\tfor(Line lpln:listLines)\n\t\t\t\t{\n\t\t\t\t\tif(lpln.getSlope() > lowSlope && lpln.getSlope() < highSlope)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\tSystem.out.println(\"Lines: col[\"+c+\"] row[\"+r+\"]\");\n\n\t\t\t\tImgproc.line(cdst, start, end, new Scalar(RandomGenerator.pRand(245, 10),RandomGenerator.pRand(245, 10),RandomGenerator.pRand(245, 10)), 3);\n\t\t\t}\n\t\t}\n\n\t\t// Save the visualized detection.\n\t String filename = \"lineDetection.png\";\n\t System.out.println(String.format(\"Writing %s\", filename));\n\t Imgcodecs.imwrite(filename, cdst);\n\t\t\n\t}", "public static void testEdgeDetection()\n {\n Picture swan = new Picture(\"swan.jpg\");\n swan.edgeDetection();\n swan.explore();\n }", "public abstract String getCvAccession();", "public void process(String fname, String imgpath) {\n\t\tMat img = Highgui.imread(fname, 0);\n\n\t\tMat smallerImg = new Mat();\n\t\tdouble aspect_ratio = img.cols() * 1.0 / img.rows();\n\n\t\tint size = 1024;\n\t\tImgproc.resize(img, smallerImg, new Size(size, size / aspect_ratio), 0,\n\t\t\t\t0, 0);\n\n\t\tMat thresholdImg = new Mat();\n\t\tImgproc.threshold(smallerImg, thresholdImg, 90, 255,\n\t\t\t\tImgproc.THRESH_BINARY_INV);\n\n\t\timshow(thresholdImg, \"Thresholded Image\");\n\n\t\tMat element = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,\n\t\t\t\tnew Size(3, 3));\n\t\tImgproc.dilate(thresholdImg, thresholdImg, element);\n\n\t\tList<MatOfPoint> contourList = new ArrayList<MatOfPoint>();\n\n\t\tMat hierarchy = new Mat();\n\t\tMat tempImg = new Mat();\n\t\tthresholdImg.copyTo(tempImg);\n\n\t\tMat edges = new Mat();\n\t\tImgproc.Canny(tempImg, edges, 55, 200);\n\n\t\tImgproc.findContours(tempImg, contourList, hierarchy,\n\t\t\t\tImgproc.RETR_CCOMP, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\tSystem.out.println(\"Contours: \" + contourList.size());\n\n\t\tScalar color = new Scalar(255, 0, 255);\n\n\t\tList<List<Integer>> topLevelList = new ArrayList<List<Integer>>();\n\n\t\tfor (int i = 0; i < contourList.size(); i++) {\n\t\t\tdouble vals[] = hierarchy.get(0, i);\n\n\t\t\tif ((int) vals[PARENT] < 0) {\n\t\t\t\tMat c = contourList.get(i);\n\t\t\t\tif (Imgproc.contourArea(c) > 10) {\n\t\t\t\t\tList<Integer> obj = new ArrayList<Integer>();\n\t\t\t\t\tobj.add(i);\n\n\t\t\t\t\tint ptr = (int) vals[CHILD];\n\t\t\t\t\twhile (ptr != -1) {\n\t\t\t\t\t\tobj.add(ptr);\n\t\t\t\t\t\tptr = (int) hierarchy.get(0, ptr)[NEXT];\n\t\t\t\t\t}\n\t\t\t\t\ttopLevelList.add(obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMat drawn = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tfor (Integer i : obj) {\n\t\t\t\tImgproc.drawContours(drawn, contourList, i, color);\n\t\t\t}\n\t\t}\n\t\timshow(drawn, \"Contours\");\n\n\t\tList<Rect> rectangles = new ArrayList<Rect>();\n\t\tList<String> keys = new ArrayList<String>();\n\n\t\tMat houghImg = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tMatOfPoint outline = contourList.get(obj.get(0));\n\t\t\tRect r = Imgproc.boundingRect(outline);\n\t\t\tMat raw = Mat.zeros(r.size(), CvType.CV_8UC3);\n\n\t\t\traw = thresholdImg.submat(r);\n\n\t\t\tMat lines = new Mat();\n\t\t\tImgproc.HoughLinesP(raw, lines, 2, Math.PI / 4, 30);\n\n\t\t\tMat hough = houghImg.submat(r);\n\t\t\tList<Double> angles = new ArrayList<Double>();\n\t\t\tList<Double> xintercepts = new ArrayList<Double>();\n\t\t\tList<Double> yintercepts = new ArrayList<Double>();\n\t\t\tList<Double> lengths = new ArrayList<Double>();\n\n\t\t\tfor (int i = 0; i < lines.cols(); i++) {\n\t\t\t\tdouble val[] = lines.get(0, i);\n\n\t\t\t\tint dy = (int) (val[1] - val[3]);\n\t\t\t\tint dx = (int) (val[0] - val[2]);\n\t\t\t\tdouble len = Math.sqrt(dy * dy + dx * dx);\n\n\t\t\t\tdouble percent = 0.0;\n\t\t\t\tdouble divisor = 0;\n\t\t\t\tdouble rad;\n\t\t\t\tdouble yintercept;\n\t\t\t\tdouble xintercept;\n\n\t\t\t\tif (dy == 0) {\n\t\t\t\t\tdivisor = r.width;\n\t\t\t\t\tyintercept = val[1] / r.height; // y-intercept in %\n\t\t\t\t\txintercept = Math.min(val[0], val[2]) / r.width; // x-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\trad = 0;\n\t\t\t\t} else if (dx == 0) {\n\t\t\t\t\tdivisor = r.height;\n\t\t\t\t\tyintercept = Math.min(val[1], val[3]) / r.height; // y-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\txintercept = val[0] / r.width; // x-intercept in %\n\t\t\t\t\trad = Double.NaN;\n\t\t\t\t} else {\n\t\t\t\t\trad = Math.atan2(dy, dx);\n\t\t\t\t\t// This is going to be a diagonal at n * pi / 4 because of\n\t\t\t\t\t// magic\n\t\t\t\t\tdivisor = Math\n\t\t\t\t\t\t\t.sqrt(r.width * r.width + r.height * r.height);\n\t\t\t\t\tyintercept = (val[1] - dy * val[0] / dx) / r.height;\n\t\t\t\t\txintercept = (val[0] - dx * val[1] / dy) / r.width;\n\t\t\t\t}\n\t\t\t\tpercent = Math.abs(len / divisor);\n\n\t\t\t\tif (percent > 0.333) {\n\t\t\t\t\tangles.add(rad);\n\t\t\t\t\tyintercepts.add(yintercept);\n\t\t\t\t\txintercepts.add(xintercept);\n\t\t\t\t\tlengths.add(percent);\n\t\t\t\t\tCore.line(hough, new Point(val[0], val[1]), new Point(\n\t\t\t\t\t\t\tval[2], val[3]), new Scalar(255, 0, 255), 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean flags[] = setFlags(angles, lengths, yintercepts,\n\t\t\t\t\txintercepts);\n\t\t\tString key = match(flags);\n\t\t\tfor (int i = 0; i < flags.length; i++) {\n\t\t\t\tif (flags[i]) {\n\t\t\t\t\tdrawFlag(hough, i);\n\t\t\t\t}\n\t\t\t}\n\t\t\trectangles.add(r);\n\t\t\tkeys.add(key);\n\n\t\t\timshow(hough, \"Symbol_HOUGH\");\n\t\t\timshow(raw, \"Symbol_RAW\");\n\t\t}\n\n\t\tif (keys.size() > 0) {\n\t\t\tBaselineStructureTree bst = constructFormula(keys, rectangles);\n\t\t\tif (bst != null) {\n\t\t\t\tSystem.out.println(bst.interpretLaTeX());\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Could not recognize image\");\n\t\t}\n\t\timshow(houghImg, \"Hough transformed image\");\n\t\twriteToFile(houghImg, imgpath);\n\t\timshow(thresholdImg, \"post-processed image\");\n\t}", "public void vignette() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n \n int middleRow = rows/2; //Height of the right angle\n int middleCol = cols/2; //Width of the right angle\n double hfD = (Math.sqrt(Math.pow(rows,2)+Math.pow(cols,2)))/2;\n \n //Outer: Rows, Inner: Columns\n for(int rr = 0; rr < rows; rr++){\n \n for(int cc = 0; cc < cols; cc++){\n \n int rgb= currentIm.getPixel(rr,cc);\n double red= DM.getRed(rgb);\n double blue= DM.getBlue(rgb);\n double green= DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n \n double currentDistance = Math.sqrt(Math.pow(Math.abs(middleRow-rr),2)+\n Math.pow(Math.abs(middleCol-cc),2));\n \n double vigValue = 1-Math.pow((currentDistance/hfD),2);\n \n red = red * vigValue;\n green = green * vigValue;\n blue = blue * vigValue;\n \n currentIm.setPixel(rr, cc,\n (alpha << 24) | ((int)red << 16) | ((int)green << 8) | \n (int)blue);\n }\n \n }\n \n }", "private void generateQRCode(String data) {\n com.google.zxing.Writer writer = new QRCodeWriter();\n String finaldata = Uri.encode(data, \"ISO-8859-1\");\n try {\n BitMatrix bm = writer.encode(finaldata, BarcodeFormat.QR_CODE, 350, 350);\n qrBitmap = Bitmap.createBitmap(350, 350, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < 350; i++) {\n for (int j = 0; j < 350; j++) {\n qrBitmap.setPixel(i, j, bm.get(i, j) ? Color.BLACK : Color.WHITE);\n }\n }\n } catch (WriterException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (qrBitmap != null) {\n qrCodeImg.setImageBitmap(qrBitmap);\n\n }\n }", "public native boolean getMatte() throws MagickException;", "public List<Result> recognize(IplImage image);", "public static boolean corpCardNumImage(byte []data, int width, int height, int format, Rect guideRect, EXBankCardInfo cardInfo){\n\t\tboolean bOk = true;\n\t\tif(cardInfo.charCount < 1){\n\t\t\tbOk = false;\n\t\t\treturn bOk;\n\t\t}\n\t\tint i;\n\t\tint nAvgW = 0;\n\t\tint nAvgH = 0;\n\t\tint nCount = 0;\n\t\tRect rect = new Rect(cardInfo.rects[0]);\n\t\tnAvgW = cardInfo.rects[0].width();\n\t\tnAvgH = cardInfo.rects[0].height();\n\t\tnCount = 1;\n\t\tfor(i = 1; i < cardInfo.charCount; ++i){\n\t\t\trect.union(cardInfo.rects[i]);\n\t\t\tif(cardInfo.numbers[i] != ' '){\n\t\t\t\tnAvgW += cardInfo.rects[i].width();\n\t\t\t\tnAvgH += cardInfo.rects[i].height();\n\t\t\t\tnCount ++;\n\t\t\t}\n\t\t}\n\t\tnAvgW /= nCount;\n\t\tnAvgH /= nCount;\n\t\t//releative to the big image\n\t\trect.offset(guideRect.left, guideRect.top);\n\t\t\n\t\trect.top -= nAvgH; if(rect.top < 0) rect.top = 0;\n\t\trect.bottom += nAvgH; if(rect.bottom >= height) rect.bottom = height-1;\n\t\trect.left -= nAvgW; if(rect.left < 0) rect.left = 0;\n\t\trect.right += nAvgW; if(rect.right >= width) rect.right = width-1;\n\t\t\n\t\t//rects offset to the small rect\n\t\tfor(i = 0; i < cardInfo.charCount; ++i){\n\t\t\tcardInfo.rects[i].offset(guideRect.left-rect.left, guideRect.top-rect.top);\n\t\t}\n\t\t//\n\t\tif(cardInfo.bitmap != null) cardInfo.bitmap.recycle();\n\t\tcardInfo.bitmap = CardScanner.corpBitmap(data, width, height, format, rect, 1);\n\t\t\n\t\tif(cardInfo.fullImage != null) cardInfo.fullImage.recycle();\n\t\tcardInfo.fullImage = CardScanner.corpBitmap(data, width, height, format, guideRect, 1);\n\t\t\n\t\treturn bOk;\n\t}", "private int[] determineRegion(int X, int Y ,int H){\n int[] quadrantPoint = new int[2];\n for(int y = 0; y < BITMAP_SIZE /H; y++){\n for(int x = 0; x < BITMAP_SIZE /H; x++){\n Region reg = regions[x][y];\n if (X >= reg.leftX && X <= reg.rightX && Y >= reg.topY && Y <= reg.bottomY){\n quadrantPoint[0] = x;\n quadrantPoint[1] = y;\n return quadrantPoint;\n }\n }\n }\n\n return null;\n }", "private static final byte[] xfuzzyclose_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 96,\n\t\t\t\t96, 96, -128, -128, -128, -112, -112, -112, -1, -1, -1, 33, -2,\n\t\t\t\t14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77,\n\t\t\t\t80, 0, 33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0,\n\t\t\t\t0, 2, 54, -124, 61, 121, -112, 125, -83, 24, -116, 114, -96,\n\t\t\t\t-23, -48, -59, 121, 115, 90, 125, -102, 55, 109, -63, -119,\n\t\t\t\t-94, 86, 24, 8, -18, 43, 4, 75, -45, -74, 110, -51, -39, -11,\n\t\t\t\t-99, -65, 118, -36, -117, 9, -127, -104, -35, -115, 56, -7,\n\t\t\t\t-63, 2, -71, 84, -86, 0, 0, 59 };\n\t\treturn data;\n\t}", "CodePosition getCodePosition();", "public void setDrawCodes(boolean draw) {\r\n this.drawCodes = draw;\r\n }", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}" ]
[ "0.65927035", "0.5963691", "0.5692793", "0.55124366", "0.5502837", "0.52901703", "0.5147652", "0.5029314", "0.50240904", "0.49220714", "0.4864818", "0.4847034", "0.4811697", "0.48094952", "0.48004127", "0.47872102", "0.47758207", "0.47593197", "0.47200918", "0.47139016", "0.4707852", "0.47014275", "0.46657088", "0.46636337", "0.4656376", "0.4631719", "0.46128023", "0.46123794", "0.46103966", "0.4609953", "0.4593754", "0.4586331", "0.45812958", "0.457465", "0.457465", "0.457465", "0.457326", "0.45656073", "0.45517793", "0.45286188", "0.45268697", "0.4520822", "0.45013276", "0.44993436", "0.4497171", "0.44961405", "0.44895545", "0.44819286", "0.4468337", "0.44646886", "0.44608", "0.44578916", "0.44569185", "0.4453841", "0.44483063", "0.44393814", "0.44360143", "0.44259864", "0.44242084", "0.44229475", "0.44211566", "0.44184953", "0.4418302", "0.44140518", "0.44109058", "0.44103602", "0.4409906", "0.43961126", "0.43957287", "0.43904656", "0.43860483", "0.43828177", "0.43818387", "0.43695745", "0.43608594", "0.43562454", "0.43441442", "0.43375558", "0.43309656", "0.43215284", "0.43079555", "0.43055832", "0.43025014", "0.4298019", "0.4292709", "0.42864466", "0.42644", "0.4261559", "0.42560673", "0.42499214", "0.4249704", "0.4245009", "0.4244185", "0.4243969", "0.42433786", "0.42426625", "0.4241154", "0.42408007", "0.42271578", "0.4222035" ]
0.5705311
2
C++: string cv::GraphicalCodeDetector::decode(Mat img, Mat points, Mat& straight_code = Mat()) Decodes graphical code in image once it's found by the detect() method. Returns UTF8encoded output string or empty string if the code cannot be decoded.
public String decode(Mat img, Mat points, Mat straight_code) { return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "String decodeString();", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public static byte[] decode(byte[] code) throws CorruptedCodeException {\r\n\tboolean end;\r\n\tbyte[] output;\r\n\tbyte m;\r\n\tbyte a;\r\n\tbyte b;\r\n\tbyte c;\r\n\tbyte d;\r\n\tint i;\r\n\tint j;\r\n\tint k;\r\n\tint l;\r\n\r\n\tl = code.length;\r\n\tend = false;\r\n\r\n\tfor (i = 0, j = 0; i < l; i++) {\r\n\t if ((code[i] < 0) || (code[i] >= REVERSE.length)) {\r\n\t\tthrow new CorruptedCodeException(\"Code was not Base64 encoded\");\r\n\t }\r\n\t m = REVERSE[code[i]];\r\n\r\n\t if (m == PAD) {\r\n\t\tif (end) {\r\n\t\t break;\r\n\t\t}\r\n\t\tend = true;\r\n\t\tcontinue;\r\n\t }\r\n\t if (end) {\r\n\t\tthrow new CorruptedCodeException(\r\n\t\t\t\"Second pad character missing!\");\r\n\t }\r\n\t if (m == F) {\r\n\t\tcontinue;\r\n\t }\r\n\t code[j++] = m;\r\n\t}\r\n\tl = j >> 2;\r\n\ti = l * 3;\r\n\tk = j & 3;\r\n\r\n\tif (k == 1) {\r\n\t throw new CorruptedCodeException(\"One character is missing!\");\r\n\t}\r\n\tif (k > 0) {\r\n\t i = (i + k) - 1;\r\n\t}\r\n\toutput = new byte[i];\r\n\r\n\ti = 0;\r\n\tj = 0;\r\n\tb = 0;\r\n\r\n\twhile (l > 0) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t c = code[i++];\r\n\t d = code[i++];\r\n\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t output[j++] = (byte) (((c & 3) << 6) | d);\r\n\t l--;\r\n\t}\r\n\tif (k >= 2) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t}\r\n\tif (k >= 3) {\r\n\t c = code[i++];\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t}\r\n\treturn output;\r\n }", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "private static String decodeString(String encoded) throws NullPointerException {\n byte[] dataDec = Base64.decode(encoded, Base64.DEFAULT);\n String decodedString = \"\";\n try {\n decodedString = new String(dataDec, \"UTF-8\");\n } catch (UnsupportedEncodingException ignored) {\n }\n return decodedString;\n }", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "@Override\n public String decode(String code) throws IllegalStateException {\n if (code == null || code.equals(\"\")) {\n throw new IllegalStateException(\"the code cannot be null or empty.\");\n }\n Tree iterator = root;\n decode = \"\";\n\n for (int i = 0; i < code.length(); i++) {\n if (!encodingArray.contains(code.charAt(i))) {\n throw new IllegalStateException(\"The encoded string contains illegal symbol\");\n }\n }\n\n code = decoder(code, iterator);\n\n if (code.length() != 0) {\n throw new IllegalStateException(\"there is some problem with decoding.\");\n }\n\n return decode;\n }", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public String decode(String codedMessage) {\n StringBuilder result = new StringBuilder(); //Create a new stringbuilder\n BinaryTree<HuffData> currentTree = huffTree; //Get the Huffman Tree\n for (int i = 0; i < codedMessage.length(); i++) { //Loop through the coded message\n //If the character is a 1, set currentTree to the right subtree\n if(codedMessage.charAt(i) == '1') { \n currentTree = currentTree.getRightSubtree();\n } else { //If the character is a 0, set currentTree to the left subtree\n currentTree = currentTree.getLeftSubtree();\n }\n if(currentTree.isLeaf()) { //Once you hit a leaf\n HuffData theData = currentTree.getData(); //Get the data of the leaf\n result.append(theData.symbol); //Append the symbol to the stringbuilder\n currentTree = huffTree; //Reset the currentTree to be the entire tree\n }\n }\n //Return the string of the stringbuilder\n return result.toString();\n }", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint i = 0;\n\t\twhile (i < encoded.length()) {\n\t\t\tStringBuilder characterBuilder = new StringBuilder();\n\n\t\t\twhile (!decodingTable.containsKey(characterBuilder.toString()))\n\t\t\t\tcharacterBuilder.append(encoded.charAt(i++));\n\n\t\t\toutput.append(decodingTable.get(characterBuilder.toString()));\n\t\t}\n\n\t\treturn output.toString();\n\t}", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "public static String returnDecoded(String encodedText) {\n if (encodedText == null) {\n return null;\n }\n byte[] decoded = Base64.decode(encodedText, Base64.NO_WRAP);\n return new String(decoded);\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "public String getDecoded()\n\t{\n\t\treturn this.decodedText;\n\t}", "public String decode(String message) {\n if (message == null || message.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(message);\n StringBuilder target = new StringBuilder();\n while (source.length() >= 8) {\n String substring = source.substring(0,8);\n source.delete(0, 8);\n target.append(decodeByte(substring));\n }\n int bitOverlap = target.length() % 8;\n if (bitOverlap > 0 && target.length() > 8) {\n target.delete(target.length() - bitOverlap, target.length());\n }\n return target.toString();\n }", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "public static Bitmap decodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "String getMapCode();", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder decodedText = new StringBuilder();\n\t\tNode currentBit = huffmanTree;\n\t\tint index = 0;\n\t\t//System.out.println(currentBit.getLeft());\n\t\t//System.out.println(currentBit.getRight());\n\t\twhile (index < encoded.length()) {\n\t\t\tif (encoded.charAt(index) == '0') {\n\t\t\t\tif (currentBit.getLeft() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getLeft();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentBit.getRight() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getRight();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n if (index == encoded.length()) {\n decodedText.append(currentBit.getCharacter());\n }\n\t\t}\n System.out.println(\"EncondedText: \" + encoded);\n\t\tSystem.out.print(\"decodedText: \" + decodedText.toString());\n\t\treturn decodedText.toString();\n\n\t}", "public static Bitmap decodeBase64(String input) {\r\n byte[] decodedBytes = Base64.decode(input, 0);\r\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\r\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "java.lang.String getCode();", "java.lang.String getCode();", "public static Bitmap decodeBase64(String input)\n {\n byte[] decodedBytes = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\n }", "public static String convertImageInStdout(String mscgen_path, String codePath){\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(); \n\t\tif (mscgen_path == \"MSCGEN PATH EMPTY\") {\n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler path not set.\";\n\t\t}\n\t\t\n\t\telse if (mscgen_path == \"MSCGEN EXE NOT FOUND\") {\n\t\t\t \n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler not found.\";\n\t\t}\n String OS = System.getProperty(\"os.name\");\n if(OS.startsWith(\"Windows\")){\n codePath = codePath.replace(\"\\\\\",\"\\\\\\\\\");\n /* \n * Ref: PLUG-5262\n * In case of windows environment if we have space in-between the compiler path \n * then we need to set parent directory as the directory of ProcessBuilder. \n */\n File f = new File(mscgen_path);\n pb.directory(f.getParentFile());\n pb.command(\"cmd.exe\", \"/c\",f.getName(),\"-T\",\"png\",\"-i\",codePath);\n }else{\n pb.command(mscgen_path,\"-T\",\"png\",\"-i\",codePath); \n }\n Process p = null;\n\t\ttry {\n\t\t\tp = pb.start();\n\t\t\tp.waitFor();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tString error=checkError(p);\n\t\tif(error!=\"\"){\n\t\t\treturn getErrorLine(error)+\",ERROR:\"+error;\n\t\t}\n\t\tBufferedImage image=null;\t\n\t\ttry {\n File f = new File(codePath+\".png\");\n\t\t\timage=ImageIO.read(f);\n \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in read\");\n\t\t} \n String imageString = null;\n ByteArrayOutputStream imageInBytes = new ByteArrayOutputStream();\n\t try {\n\t\t\tImageIO.write(image, \"png\", imageInBytes);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in write\");\n\t\t}\n\t byte[] imageBytes = imageInBytes.toByteArray();\n\t imageString = DatatypeConverter.printBase64Binary(imageBytes);\n\t try {\n\t\t\timageInBytes.close();\n\t\t\tp.getInputStream().close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in close\");\n }\n\t\treturn imageString;\n\t}", "public static Bitmap decodeToBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public byte[] code();", "public String decode (String string){\n try {\n byte[] tmp2 = Base64.decode(string,Base64.DEFAULT);\n str = new String(tmp2,\"UTF-8\");str = new String(tmp2,\"UTF-8\");\n } catch (Exception ex){ex.printStackTrace();}\n return str;\n }", "public static Bitmap bitmapDecodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public byte[] decode_text(byte[] image) {\n int length = 0;\n int offset = 32;\n // loop through 32 bytes of data to determine text length\n for (int i = 0; i < 32; ++i) // i=24 will also work, as only the 4th\n // byte contains real data\n {\n length = (length << 1) | (image[i] & 1);\n }\n\n byte[] result = new byte[length];\n\n // loop through each byte of text\n for (int b = 0; b < result.length; ++b) {\n // loop through each bit within a byte of text\n for (int i = 0; i < 8; ++i, ++offset) {\n // assign bit: [(new byte value) << 1] OR [(text byte) AND 1]\n result[b] = (byte) ((result[b] << 1) | (image[offset] & 1));\n }\n }\n return result;\n }", "public final static String decodeBase64(String data) {\n\t\tString rc = null;\n\t\tbyte[] b64 = Base64.decodeBase64(data);\n\t\trc = new String(b64);\n\t\treturn rc;\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tchar[] encodedArray = encoded.toCharArray();\n\n\t\tString decoded = \"\";\n\n\t\tLeaf current = root;\n\n\t\tfor(char c : encodedArray) {\n\n\t\t\tif (c == '0' && current.left != null) {\n\t\t\t\tcurrent = current.left;\n\t\t\t}\n\t\t\telse if(c == '1' && current.right != null){\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tchar letter = current.character;\n\t\t\t\tdecoded = decoded + letter;\n\t\t\t\tcurrent = root;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(textArray);\n\t\tSystem.out.println(decoded);\n\n\t\treturn decoded;\n\t}", "public abstract String getFullCode();", "public static String decode(String decode, String decodingName) {\r\n\t\tString decoder = \"\";\r\n\t\tif (decodingName.equalsIgnoreCase(\"base64\")) {\r\n\t\t\tbyte[] decoded = Base64.decodeBase64(decode);\r\n\t\t\ttry {\r\n\t\t\t\tdecoder = new String(decoded, \"UTF-8\");\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (decodingName.equalsIgnoreCase(\"PBEWithMD5AndDES\")) {\r\n\t\t\t// Key generation for enc and desc\r\n\t\t\tKeySpec keySpec = new PBEKeySpec(secretKey.toCharArray(), salt, iterationCount);\r\n\t\t\tSecretKey key;\r\n\t\t\ttry {\r\n\t\t\t\tkey = SecretKeyFactory.getInstance(\"PBEWithMD5AndDES\").generateSecret(keySpec);\r\n\t\t\t\t// Prepare the parameter to the ciphers\r\n\t\t\t\tAlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);\r\n\t\t\t\t// Decryption process; same key will be used for decr\r\n\t\t\t\tdcipher = Cipher.getInstance(key.getAlgorithm());\r\n\t\t\t\tdcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);\r\n\t\t\t\tif (decode.indexOf(\"(\", 0) > -1) {\r\n\t\t\t\t\tdecode = decode.replace('(', '/');\r\n\t\t\t\t}\r\n\t\t\t\tbyte[] enc = Base64.decodeBase64(decode);\r\n\t\t\t\tbyte[] utf8 = dcipher.doFinal(enc);\r\n\t\t\t\tString charSet = \"UTF-8\";\r\n\t\t\t\tString plainStr = new String(utf8, charSet);\r\n\t\t\t\treturn plainStr;\r\n\t\t\t} catch (InvalidKeySpecException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException\r\n\t\t\t\t\t| InvalidAlgorithmParameterException | IllegalBlockSizeException | BadPaddingException\r\n\t\t\t\t\t| IOException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\t\t} else if (decodingName.equalsIgnoreCase(\"DES/ECB/PKCS5Padding\")) {\r\n\t\t\t// Get a cipher object.\r\n\t\t\tCipher cipher;\r\n\t\t\ttry {\r\n\t\t\t\tcipher = Cipher.getInstance(\"DES/ECB/PKCS5Padding\");\r\n\t\t\t\tcipher.init(Cipher.DECRYPT_MODE, generateKey());\r\n\t\t\t\t// decode the BASE64 coded message\r\n\t\t\t\tBASE64Decoder decoder1 = new BASE64Decoder();\r\n\t\t\t\tbyte[] raw = decoder1.decodeBuffer(decode);\r\n\t\t\t\t// decode the message\r\n\t\t\t\tbyte[] stringBytes = cipher.doFinal(raw);\r\n\t\t\t\t// converts the decoded message to a String\r\n\t\t\t\tdecoder = new String(stringBytes, \"UTF8\");\r\n\t\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IOException\r\n\t\t\t\t\t| IllegalBlockSizeException | BadPaddingException e) {\r\n\t\t\t\tlog.error(\"decode :\" + e.getMessage());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn decoder;\r\n\t}", "private static native long imdecode_0(long buf_nativeObj, int flags);", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "public Bitmap StringToBitMap(String encodedString) {\r\n\t\ttry {\r\n\t\t\tbyte[] encodeByte = Base64.decode(encodedString, Base64.DEFAULT);\r\n\t\t\tBitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0,\r\n\t\t\t\t\tencodeByte.length);\r\n\t\t\treturn bitmap;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.getMessage();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getStringImage() {\n if (bitmap != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n } else {\n return null;\n }\n }", "public String getCaptchaCode() {\n HttpGet httpget = new HttpGet(HttpURL.getCaptchaURL());\n try {\n HttpEntity entity = this.client.execute(httpget).getEntity();\n\n if (entity != null) {\n InputStream is = entity.getContent();\n File captchaImage = new File(CaptchaOCR.CAPTCHA_IMAGE_PATH);\n OutputStream os = new FileOutputStream(captchaImage);\n IOUtils.copy(is, os);\n IOUtils.closeQuietly(is);\n IOUtils.closeQuietly(os);\n }\n EntityUtils.consume(entity);\n return CaptchaOCR.doOcr();\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }", "protected String decodeByte(String given) {\n if (given == null || given.length() % 8 != 0 || given.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(given);\n StringBuilder target = new StringBuilder();\n while (source.length() > 0) {\n String pair = source.substring(0, 2);\n source.delete(0, 2);\n if (pair.charAt(0) == pair.charAt(1)) {\n target.append(pair.charAt(0));\n } else {\n target.append(\"?\");\n }\n }\n if (target.substring(0,4).contains(\"?\")) {\n target = new StringBuilder(decodeByteWithParity(target.toString()));\n }\n while (target.length() > 3) {\n target.deleteCharAt(target.length() - 1);\n }\n\n return target.toString();\n }", "public void DecodeImage(String encodedString, int id) throws CustomServiceUnavailableException {\r\n\r\n\t\tString filename = String.valueOf(id) + \".jpg\";\r\n\t\tString finalfile = \"\";\r\n\t\tfinalfile = filename;\r\n\t\tBufferedImage image = null;\r\n\t\tbyte[] imageByte;\r\n\r\n\t\ttry {\r\n\t\t\tBASE64Decoder decoder = new BASE64Decoder();\r\n\t\t\timageByte = decoder.decodeBuffer(encodedString);\r\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(imageByte);\r\n\t\t\timage = ImageIO.read(bis);\r\n\t\t\tbis.close();\r\n\t\t\tImageIO.write(image, \"jpg\", new File(finalfile));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CustomServiceUnavailableException(\"Internal error in the application\");\r\n\t\t}\r\n\r\n\t}", "Code getCode();", "public String qrCodeReader(String qrFileLoc){\n\t\tResult result = null;\n\t\tBinaryBitmap binaryBitmap;\n\t\ttry{\n\t\t\tbinaryBitmap = new BinaryBitmap(new HybridBinarizer(new BufferedImageLuminanceSource(ImageIO.read(\n\t\t\t\t\tnew FileInputStream(qrFileLoc)))));\n\t\t\tresult = new MultiFormatReader().decode(binaryBitmap);\n\t\t\treturn result.getText();\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\tServerLoggers.errorLog.error(\"*** Error reading QR code Image. QRReader.qrCodeReader *** \");\n\t\t}\n\t\treturn null;\n\t}", "private static void decodeString(String in){\n\t\t//reverse anything done in encoded string\n\t\tString demess = decrypt(in);\n\t\tString decodeMessage = bigIntDecode(demess);\n\n\t\tSystem.out.println(\"Decoded message: \" + decodeMessage + \"***make function to actually decode!\");\n\t}", "protected String decodeString(byte[] data) {\n\t\tString rv = null;\n\t\ttry {\n\t\t\tif (data != null) {\n\t\t\t\trv = new String(data, charset);\n\t\t\t}\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn rv;\n\t}", "static public byte[] decode(String encoded) {\n if (encoded == null)\n return null;\n int lengthData = encoded.length();\n if (lengthData % 2 != 0)\n return null;\n \n char[] binaryData = encoded.toCharArray();\n int lengthDecode = lengthData / 2;\n byte[] decodedData = new byte[lengthDecode];\n byte temp1, temp2;\n for( int i = 0; i<lengthDecode; i++ ){\n temp1 = hexNumberTable[binaryData[i*2]];\n if (temp1 == -1)\n return null;\n temp2 = hexNumberTable[binaryData[i*2+1]];\n if (temp2 == -1)\n return null;\n decodedData[i] = (byte)((temp1 << 4) | temp2);\n }\n return decodedData;\n }", "public String decode(String encoding) {\n\t\tString decoded = \"\";\n\t\tString currCode = \"\";\n\t\tMap<String, Character> revMap = new HashMap<String, Character>();\n\t\t\n\t\t// Build hashmap from value to key\n\t\tfor (Character code: this.mapping.keySet()) {\n\t\t\trevMap.put(this.mapping.get(code), code);\n\t\t}\n\t\t\n\t\tfor (Character c: encoding.toCharArray()) {\n\t\t\tcurrCode += c;\n\t\t\tCharacter toAdd = revMap.get(currCode);\n\t\t\tif (toAdd != null) {\n\t\t\t\tdecoded += toAdd;\n\t\t\t\tcurrCode = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn decoded;\n\t}", "private static java.lang.String m25224a(java.lang.String r7, java.lang.String r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"\";\n r1 = \"\\\\?\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r2 = 1;\n if (r1 <= r2) goto L_0x0033;\n L_0x000c:\n r7 = r7[r2];\n r1 = \"&\";\n r7 = r7.split(r1);\n r1 = r7.length;\n r3 = 0;\n r4 = r0;\n r0 = 0;\n L_0x0018:\n if (r0 >= r1) goto L_0x0032;\n L_0x001a:\n r5 = r7[r0];\n r6 = \"=\";\n r5 = r5.split(r6);\n r6 = r5.length;\n if (r6 <= r2) goto L_0x002f;\n L_0x0025:\n r6 = r5[r3];\n r6 = r6.equals(r8);\n if (r6 == 0) goto L_0x002f;\n L_0x002d:\n r4 = r5[r2];\n L_0x002f:\n r0 = r0 + 1;\n goto L_0x0018;\n L_0x0032:\n r0 = r4;\n L_0x0033:\n r7 = \"UTF-8\";\t Catch:{ Exception -> 0x003a }\n r7 = java.net.URLDecoder.decode(r0, r7);\t Catch:{ Exception -> 0x003a }\n goto L_0x003b;\n L_0x003a:\n r7 = r0;\n L_0x003b:\n return r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.leanplum.messagetemplates.BaseMessageDialog.a(java.lang.String, java.lang.String):java.lang.String\");\n }", "private static CharSequence decodedString(String string) {\n\t\treturn null;\r\n\t}", "private static final String decode(String[] src) {\n \n if (src == null || src.length==0) {\n return \"\";\n }\n \n StringBuffer buffer = new StringBuffer();\n \n for(int i = 0; i < src.length; i++) {\n buffer.append(src[i]);\n if (i < src.length-1) { buffer.append(';'); }\n }\n \n return buffer.toString();\n }", "public String getlbr_Barcode2();", "TextDecoder getTextDecoder();", "@Override\r\n\t\tpublic String decode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar cs[] = (str).toCharArray();\r\n\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(cs.length);\r\n\t\t\tfor (int i = 0, ci = cs.length; i < ci; i++) {\r\n\t\t\t\tif(cs[i] == '&') {\r\n\t\t\t\t\tif(i < ci - 4 && cs[i + 1] == '#' && cs[i + 4] == ';'){\r\n\t\t\t\t\t\tif(cs[i + 2] == '6' && cs[i + 3] == '0'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('<');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '6' && cs[i + 3] == '2'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('>');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '8'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('&');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '9'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('\\'');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '4'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('\"');\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t}", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "public String getCode();", "public String getCode();", "public String decode(String str, String charsetName) throws DecoderException, UnsupportedEncodingException {\n/* 276 */ if (str == null) {\n/* 277 */ return null;\n/* */ }\n/* 279 */ return new String(decode(StringUtils.getBytesUsAscii(str)), charsetName);\n/* */ }", "Bitmap mo27481a(String str);", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "private byte[] decode(byte[] msg) {\r\n\t\treturn Base64.decode(msg); \r\n\t}", "public static String decodificarImagen(byte[] imagen){\n\t\tif(imagen!=null && imagen.length>0){\n\t\t\treturn \"data:image/jpeg;base64,\"+DatatypeConverter.printBase64Binary(imagen);\n\t\t}\n\t\treturn null;\n\t}", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "public String decode(String str) throws DecoderException {\n/* 295 */ if (str == null) {\n/* 296 */ return null;\n/* */ }\n/* */ try {\n/* 299 */ return decode(str, getDefaultCharset());\n/* 300 */ } catch (UnsupportedEncodingException e) {\n/* 301 */ throw new DecoderException(e.getMessage(), e);\n/* */ } \n/* */ }", "@Test\n\tvoid testDecodeString() {\n\t\tassertEquals(\"aaabcbc\", new DecodeString().decodeString(\"3[a]2[bc]\"));\n\t\tassertEquals(\"accaccacc\", new DecodeString().decodeString(\"3[a2[c]]\"));\n\t\tassertEquals(\"abcabccdcdcdef\", new DecodeString().decodeString(\"2[abc]3[cd]ef\"));\n\t\tassertEquals(\"absabcabccdcdcdef\", new DecodeString().decodeString(\"abs2[abc]3[cd]ef\"));\n\t\tassertEquals(\"f\", new DecodeString().decodeString(\"f\"));\n\t\tassertEquals(\"\", new DecodeString().decodeString(\"\"));\n\t\tassertEquals(\"abababababababababababab\", new DecodeString().decodeString(\"12[ab]\"));\n\t}", "Character getCode();", "public C6992d mo21844d(String str) {\n InputStream e = mo21851e(str);\n if (e == null) {\n PrintStream printStream = System.err;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not find the image \");\n sb.append(str);\n sb.append(\".\");\n printStream.println(sb.toString());\n return null;\n }\n try {\n Bitmap decodeStream = BitmapFactory.decodeStream(e);\n if (decodeStream == null) {\n System.err.println(\"Could not load the image because the bitmap was empty.\");\n return null;\n }\n C6992d dVar = new C6992d(decodeStream);\n dVar.f24755cj = this;\n return dVar;\n } finally {\n try {\n e.close();\n } catch (IOException unused) {\n }\n }\n }", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "public String decode(String cipher)\n {\n \treturn null;\n }", "public int uncompress(InputStream in, OutputStream out) throws IOException { \n int codeCount = 0;\n int code = 0;\n BitInputStream bitIn = new BitInputStream(in);\n StringBuilder codeString = new StringBuilder(0);\n\n\n // *** Bellow for building array of encoded values ****\n // ****************************************************\n // If the first character in the file is not a space, cannot decompress file\n codeCount = in.read();\n if(codeCount != 32){\n bitIn.close();\n return -1;\n }\n // Read in length of the code, then read the codes number of bits into the code array\n for (int i = 0; i < decodeArr.length; i++) {\n //read in number of bits (length of character code) \n codeCount = bitIn.read();\n \n // Create the code string (reads the number of bits found above)\n for (int j = 0; j < codeCount ; j++) {\n codeString.append(bitIn.readBits(1));\n }\n // Add the code string to the code array\n decodeArr[i] = codeString.toString();\n codeString = new StringBuilder(0);\n }\n // If the character has no code, make it null in array\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i].equals(\"0\")){decodeArr[i] = null;}\n }\n // ****************************************************\n // ****************************************************\n\n\n // ********** Bellow is the decoding process **********\n // ****************************************************\n // Slowly build a sting of binary comparing it to the codes in the map\n // Once a match is found, output the character associated with it.\n try{\n codeString = new StringBuilder(0);\n while (true) { \n // Read in one bit\n code = bitIn.readBits(1);\n // If -1 is returned, reached the end of file\n if(code == -1){break;}\n // Search the code array, writing the character of the code when found\n codeString.append(String.valueOf(code));\n for (int i = 0; i < decodeArr.length; i++) {\n if(decodeArr[i] != null){ // null means 0 count for a character\n // If the building code string matches a code in the map, write the associated character\n if(decodeArr[i].equals(codeString.toString())){\n out.write(i);\n // vv make ready for next code input\n codeString = new StringBuilder(0);\n }\n }\n }\n }\n }catch (IOException e){\n bitIn.close();\n throw e;\n }\n // ****************************************************\n // ****************************************************\n bitIn.close();\n return 0;\n }", "void mo27482a(String str, Bitmap bitmap);", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public java.lang.String getCode() {\n java.lang.Object ref = code_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n code_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getStringFromBitMap(Bitmap bmp){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, 50, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n }" ]
[ "0.8092232", "0.7335308", "0.72948116", "0.7192751", "0.6921615", "0.6782853", "0.6670781", "0.662725", "0.5849544", "0.5750611", "0.57085574", "0.5658062", "0.56516117", "0.5651504", "0.56189215", "0.558759", "0.55517906", "0.55469084", "0.54905355", "0.548454", "0.54524505", "0.54317504", "0.54197073", "0.54099435", "0.540479", "0.5395235", "0.53657585", "0.5337338", "0.53087026", "0.5298173", "0.5263703", "0.52529275", "0.5245568", "0.52342194", "0.52303874", "0.5182945", "0.518113", "0.51392287", "0.5135547", "0.5133446", "0.5133446", "0.5133446", "0.5133446", "0.5133446", "0.5112749", "0.5112749", "0.5081186", "0.5068365", "0.5064701", "0.5040419", "0.5035574", "0.50295764", "0.4989742", "0.49543947", "0.49406314", "0.4907808", "0.4904692", "0.48963103", "0.48862565", "0.48861384", "0.48840788", "0.48791137", "0.48789832", "0.4875949", "0.48653933", "0.48630595", "0.48589578", "0.4848919", "0.4835981", "0.48329785", "0.48275837", "0.48213142", "0.48147205", "0.48074323", "0.47969228", "0.47872257", "0.47831935", "0.47795567", "0.47670946", "0.4758163", "0.47492477", "0.47492477", "0.47381553", "0.47294423", "0.47277322", "0.4727138", "0.47262773", "0.47147626", "0.47141555", "0.4705341", "0.46990246", "0.46940014", "0.4686703", "0.46760017", "0.46748462", "0.46606377", "0.46604088", "0.4658919", "0.46528608", "0.46497875" ]
0.8178172
0
Decodes graphical code in image once it's found by the detect() method. Returns UTF8encoded output string or empty string if the code cannot be decoded.
public String decode(Mat img, Mat points) { return decode_1(nativeObj, img.nativeObj, points.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "@Override\n public String decode(String code) throws IllegalStateException {\n if (code == null || code.equals(\"\")) {\n throw new IllegalStateException(\"the code cannot be null or empty.\");\n }\n Tree iterator = root;\n decode = \"\";\n\n for (int i = 0; i < code.length(); i++) {\n if (!encodingArray.contains(code.charAt(i))) {\n throw new IllegalStateException(\"The encoded string contains illegal symbol\");\n }\n }\n\n code = decoder(code, iterator);\n\n if (code.length() != 0) {\n throw new IllegalStateException(\"there is some problem with decoding.\");\n }\n\n return decode;\n }", "public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }", "String decodeString();", "public static String convertImageInStdout(String mscgen_path, String codePath){\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(); \n\t\tif (mscgen_path == \"MSCGEN PATH EMPTY\") {\n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler path not set.\";\n\t\t}\n\t\t\n\t\telse if (mscgen_path == \"MSCGEN EXE NOT FOUND\") {\n\t\t\t \n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler not found.\";\n\t\t}\n String OS = System.getProperty(\"os.name\");\n if(OS.startsWith(\"Windows\")){\n codePath = codePath.replace(\"\\\\\",\"\\\\\\\\\");\n /* \n * Ref: PLUG-5262\n * In case of windows environment if we have space in-between the compiler path \n * then we need to set parent directory as the directory of ProcessBuilder. \n */\n File f = new File(mscgen_path);\n pb.directory(f.getParentFile());\n pb.command(\"cmd.exe\", \"/c\",f.getName(),\"-T\",\"png\",\"-i\",codePath);\n }else{\n pb.command(mscgen_path,\"-T\",\"png\",\"-i\",codePath); \n }\n Process p = null;\n\t\ttry {\n\t\t\tp = pb.start();\n\t\t\tp.waitFor();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tString error=checkError(p);\n\t\tif(error!=\"\"){\n\t\t\treturn getErrorLine(error)+\",ERROR:\"+error;\n\t\t}\n\t\tBufferedImage image=null;\t\n\t\ttry {\n File f = new File(codePath+\".png\");\n\t\t\timage=ImageIO.read(f);\n \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in read\");\n\t\t} \n String imageString = null;\n ByteArrayOutputStream imageInBytes = new ByteArrayOutputStream();\n\t try {\n\t\t\tImageIO.write(image, \"png\", imageInBytes);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in write\");\n\t\t}\n\t byte[] imageBytes = imageInBytes.toByteArray();\n\t imageString = DatatypeConverter.printBase64Binary(imageBytes);\n\t try {\n\t\t\timageInBytes.close();\n\t\t\tp.getInputStream().close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in close\");\n }\n\t\treturn imageString;\n\t}", "public byte[] decode_text(byte[] image) {\n int length = 0;\n int offset = 32;\n // loop through 32 bytes of data to determine text length\n for (int i = 0; i < 32; ++i) // i=24 will also work, as only the 4th\n // byte contains real data\n {\n length = (length << 1) | (image[i] & 1);\n }\n\n byte[] result = new byte[length];\n\n // loop through each byte of text\n for (int b = 0; b < result.length; ++b) {\n // loop through each bit within a byte of text\n for (int i = 0; i < 8; ++i, ++offset) {\n // assign bit: [(new byte value) << 1] OR [(text byte) AND 1]\n result[b] = (byte) ((result[b] << 1) | (image[offset] & 1));\n }\n }\n return result;\n }", "public static String returnDecoded(String encodedText) {\n if (encodedText == null) {\n return null;\n }\n byte[] decoded = Base64.decode(encodedText, Base64.NO_WRAP);\n return new String(decoded);\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public String getDecoded()\n\t{\n\t\treturn this.decodedText;\n\t}", "public byte[] code();", "java.lang.String getCode();", "java.lang.String getCode();", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public boolean translateImageToText();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "TextDecoder getTextDecoder();", "public String getCaptchaCode() {\n HttpGet httpget = new HttpGet(HttpURL.getCaptchaURL());\n try {\n HttpEntity entity = this.client.execute(httpget).getEntity();\n\n if (entity != null) {\n InputStream is = entity.getContent();\n File captchaImage = new File(CaptchaOCR.CAPTCHA_IMAGE_PATH);\n OutputStream os = new FileOutputStream(captchaImage);\n IOUtils.copy(is, os);\n IOUtils.closeQuietly(is);\n IOUtils.closeQuietly(os);\n }\n EntityUtils.consume(entity);\n return CaptchaOCR.doOcr();\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }", "public abstract String visualize(byte input);", "java.lang.String getImage();", "private static String decodeString(String encoded) throws NullPointerException {\n byte[] dataDec = Base64.decode(encoded, Base64.DEFAULT);\n String decodedString = \"\";\n try {\n decodedString = new String(dataDec, \"UTF-8\");\n } catch (UnsupportedEncodingException ignored) {\n }\n return decodedString;\n }", "public java.lang.String getCode() {\n java.lang.Object ref = code_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n code_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "public String getStringImage() {\n if (bitmap != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n } else {\n return null;\n }\n }", "String getMapCode();", "public String getImage(){\n StringBuilder sb = new StringBuilder();\n for (char[] subArray : hidden) {\n sb.append(subArray);\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "public String visualize(byte[] input) {\n if (input == null) {\n return \"NULL\";\n }\n\n // This method could be overridden if needed, but currently all visualization\n // techniques can work on a single byte.\n StringBuilder builder = new StringBuilder();\n for (byte b : input) {\n builder.append(visualize(b));\n }\n return builder.toString();\n }", "public String decode(String message) {\n if (message == null || message.isEmpty()) {\n return \"\";\n }\n StringBuilder source = new StringBuilder(message);\n StringBuilder target = new StringBuilder();\n while (source.length() >= 8) {\n String substring = source.substring(0,8);\n source.delete(0, 8);\n target.append(decodeByte(substring));\n }\n int bitOverlap = target.length() % 8;\n if (bitOverlap > 0 && target.length() > 8) {\n target.delete(target.length() - bitOverlap, target.length());\n }\n return target.toString();\n }", "public String getCoderegion() {\n return (String) getAttributeInternal(CODEREGION);\n }", "public String decode(String codedMessage) {\n StringBuilder result = new StringBuilder(); //Create a new stringbuilder\n BinaryTree<HuffData> currentTree = huffTree; //Get the Huffman Tree\n for (int i = 0; i < codedMessage.length(); i++) { //Loop through the coded message\n //If the character is a 1, set currentTree to the right subtree\n if(codedMessage.charAt(i) == '1') { \n currentTree = currentTree.getRightSubtree();\n } else { //If the character is a 0, set currentTree to the left subtree\n currentTree = currentTree.getLeftSubtree();\n }\n if(currentTree.isLeaf()) { //Once you hit a leaf\n HuffData theData = currentTree.getData(); //Get the data of the leaf\n result.append(theData.symbol); //Append the symbol to the stringbuilder\n currentTree = huffTree; //Reset the currentTree to be the entire tree\n }\n }\n //Return the string of the stringbuilder\n return result.toString();\n }", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder decodedText = new StringBuilder();\n\t\tNode currentBit = huffmanTree;\n\t\tint index = 0;\n\t\t//System.out.println(currentBit.getLeft());\n\t\t//System.out.println(currentBit.getRight());\n\t\twhile (index < encoded.length()) {\n\t\t\tif (encoded.charAt(index) == '0') {\n\t\t\t\tif (currentBit.getLeft() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getLeft();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentBit.getRight() != null) {\n\t\t\t\t\tcurrentBit = currentBit.getRight();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdecodedText.append(currentBit.getCharacter());\n\t\t\t\t\tcurrentBit = huffmanTree;\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tindex++;\n if (index == encoded.length()) {\n decodedText.append(currentBit.getCharacter());\n }\n\t\t}\n System.out.println(\"EncondedText: \" + encoded);\n\t\tSystem.out.print(\"decodedText: \" + decodedText.toString());\n\t\treturn decodedText.toString();\n\n\t}", "public static byte[] decode(byte[] code) throws CorruptedCodeException {\r\n\tboolean end;\r\n\tbyte[] output;\r\n\tbyte m;\r\n\tbyte a;\r\n\tbyte b;\r\n\tbyte c;\r\n\tbyte d;\r\n\tint i;\r\n\tint j;\r\n\tint k;\r\n\tint l;\r\n\r\n\tl = code.length;\r\n\tend = false;\r\n\r\n\tfor (i = 0, j = 0; i < l; i++) {\r\n\t if ((code[i] < 0) || (code[i] >= REVERSE.length)) {\r\n\t\tthrow new CorruptedCodeException(\"Code was not Base64 encoded\");\r\n\t }\r\n\t m = REVERSE[code[i]];\r\n\r\n\t if (m == PAD) {\r\n\t\tif (end) {\r\n\t\t break;\r\n\t\t}\r\n\t\tend = true;\r\n\t\tcontinue;\r\n\t }\r\n\t if (end) {\r\n\t\tthrow new CorruptedCodeException(\r\n\t\t\t\"Second pad character missing!\");\r\n\t }\r\n\t if (m == F) {\r\n\t\tcontinue;\r\n\t }\r\n\t code[j++] = m;\r\n\t}\r\n\tl = j >> 2;\r\n\ti = l * 3;\r\n\tk = j & 3;\r\n\r\n\tif (k == 1) {\r\n\t throw new CorruptedCodeException(\"One character is missing!\");\r\n\t}\r\n\tif (k > 0) {\r\n\t i = (i + k) - 1;\r\n\t}\r\n\toutput = new byte[i];\r\n\r\n\ti = 0;\r\n\tj = 0;\r\n\tb = 0;\r\n\r\n\twhile (l > 0) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t c = code[i++];\r\n\t d = code[i++];\r\n\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t output[j++] = (byte) (((c & 3) << 6) | d);\r\n\t l--;\r\n\t}\r\n\tif (k >= 2) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t}\r\n\tif (k >= 3) {\r\n\t c = code[i++];\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t}\r\n\treturn output;\r\n }", "public java.lang.String getCode() {\n java.lang.Object ref = code_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n code_ = s;\n return s;\n }\n }", "public char image_status_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "public abstract String getFullCode();", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "Code getCode();", "public String decompress() {\r\n \tString decompressed = \"\";\r\n \tString cursor = \"\";\r\n \tfor (int i = 0; i < compressedText.length(); i++) {\r\n \t\tcursor += compressedText.charAt(i);\r\n \t\tif (codeToChar.containsKey(cursor)) {\r\n \t\t\tdecompressed += codeToChar.get(cursor);\r\n \t\t\tcursor = \"\";\r\n \t\t}\r\n \t}\r\n return decompressed;\r\n }", "public String decode(InputStream is)\n throws DataProcessingException, IOException {\n sendRecognition();\n streamAudioSource.setInputStream(is);\n sendData();\n String result = readResult();\n return result;\n }", "String getImage();", "public String getlbr_Barcode2();", "public java.lang.String getImage() {\n java.lang.Object ref = image_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n image_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public boolean generateImageFromText();", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "com.google.protobuf.ByteString\n getCodeBytes();", "public native String getMagick() throws MagickException;", "public String decode(String encoded) {\n\t\t// TODO fill this in.\n\t\tStringBuilder output = new StringBuilder();\n\n\t\tint i = 0;\n\t\twhile (i < encoded.length()) {\n\t\t\tStringBuilder characterBuilder = new StringBuilder();\n\n\t\t\twhile (!decodingTable.containsKey(characterBuilder.toString()))\n\t\t\t\tcharacterBuilder.append(encoded.charAt(i++));\n\n\t\t\toutput.append(decodingTable.get(characterBuilder.toString()));\n\t\t}\n\n\t\treturn output.toString();\n\t}", "com.google.protobuf.ByteString\n getCodeBytes();", "public void decode(String name) {\n\t\tByteWriter bw = new ByteWriter(name + \"-restored\");\n\n\t\t/*\n\t\t * Read bytes until none are left.\n\t\t */\n\t\twhile (!data.eof()) {\n\t\t\tBST node = tree;\n\t\t\tString decoded = \"\";\n\t\t\tclear();\n\n\t\t\twhile (decoded.equals(\"\")) {\n\t\t\t\tgrabBits(1);\n\n\t\t\t\t/*\n\t\t\t\t * Follow the bits read from file through the Huffman tree\n\t\t\t\t * until a leaf is found. Once found, convert the code back\n\t\t\t\t * to the original bitstring.\n\t\t\t\t */\n\t\t\t\tnode = (proc.equals(\"0\")) ? node.getLeft() : node.getRight();\n\n\t\t\t\tif (node.getRight() == null && node.getLeft() == null) {\n\t\t\t\t\tdecoded = node.getData().getBitstring();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* \n\t\t\t * If EOF byte is found, quit writing to file.\n\t\t\t */\n\t\t\tif (decoded.equals(\"0000\")) {\n\t\t\t\tSystem.out.println(\"Found the null byte!\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//Write translated H. code to target as byte\n\t\t\tbw.writeByte(decoded);\n\t\t}\n\t\tbw.close();\n\t}", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "private String ConvertImagenTexto(Bitmap imagenpro) {\n ByteArrayOutputStream espacio = new ByteArrayOutputStream();\n imagenpro.compress(Bitmap.CompressFormat.JPEG,100,espacio);\n byte[] imagen = espacio.toByteArray();\n String imagenAstring = Base64.encodeToString(imagen,Base64.DEFAULT);\n return imagenAstring;\n }", "public C6992d mo21844d(String str) {\n InputStream e = mo21851e(str);\n if (e == null) {\n PrintStream printStream = System.err;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not find the image \");\n sb.append(str);\n sb.append(\".\");\n printStream.println(sb.toString());\n return null;\n }\n try {\n Bitmap decodeStream = BitmapFactory.decodeStream(e);\n if (decodeStream == null) {\n System.err.println(\"Could not load the image because the bitmap was empty.\");\n return null;\n }\n C6992d dVar = new C6992d(decodeStream);\n dVar.f24755cj = this;\n return dVar;\n } finally {\n try {\n e.close();\n } catch (IOException unused) {\n }\n }\n }", "void VNItoUnicode()\r\n\t{\r\n\t\tif (html) {\r\n\t\t\tHTMLtoANSI();\r\n\t\t\tprepareMetaTag();\r\n\r\n\t\t\t// Replace fonts\r\n\t\t\tstr = replaceString(str, \"VNI Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Times\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Couri\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Centur\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Brush\", SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Helve\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI Aptima\", SANS_SERIF);\r\n\t\t\tstr = replaceString(str, \"VNI-Aptima\", SANS_SERIF);\r\n\t\t}\r\n\r\n\t\t// Part 1\r\n\t\tstr = str.replace('\\u00D1', '\\u0110'); // DD\r\n\t\tstr = str.replace('\\u00F1', '\\u0111'); // dd\r\n\t\tstr = str.replace('\\u00D3', '\\u0128'); // I~\r\n\t\tstr = str.replace('\\u00F3', '\\u0129'); // i~\r\n\t\tstr = str.replace('\\u00D2', '\\u1ECA'); // I.\r\n\t\tstr = str.replace('\\u00F2', '\\u1ECB'); // i.\r\n\t\tstr = str.replace('\\u00C6', '\\u1EC8'); // I?\r\n\t\tstr = str.replace('\\u00E6', '\\u1EC9'); // i?\r\n\t\tstr = str.replace('\\u00CE', '\\u1EF4'); // Y.\r\n\t\tstr = str.replace('\\u00EE', '\\u1EF5'); // y.\r\n\r\n\t\t// Part 2\r\n\t\t// Transform \"O\\u00C2\" -> \"\\u00C6\" to later transform back to \"\\u00D4\" in Part 3\r\n\t\tfinal String[] VNI_char = {\"O\\u00C2\", \"o\\u00E2\", \"y\\u00F5\", \"Y\\u00D5\",\r\n\t\t\t\t\"y\\u00FB\", \"Y\\u00DB\", \"y\\u00F8\", \"Y\\u00D8\", \"\\u00F6\\u00EF\",\r\n\t\t\t\t\"\\u00D6\\u00CF\", \"\\u00F6\\u00F5\", \"\\u00D6\\u00D5\", \"\\u00F6\\u00FB\",\r\n\t\t\t\t\"\\u00D6\\u00DB\", \"\\u00F6\\u00F8\", \"\\u00D6\\u00D8\", \"\\u00F6\\u00F9\",\r\n\t\t\t\t\"\\u00D6\\u00D9\", \"u\\u00FB\", \"U\\u00DB\", \"u\\u00EF\", \"U\\u00CF\",\r\n\t\t\t\t\"\\u00F4\\u00EF\", \"\\u00D4\\u00CF\", \"\\u00F4\\u00F5\", \"\\u00D4\\u00D5\",\r\n\t\t\t\t\"\\u00F4\\u00FB\", \"\\u00D4\\u00DB\", \"\\u00F4\\u00F8\", \"\\u00D4\\u00D8\",\r\n\t\t\t\t\"\\u00F4\\u00F9\", \"\\u00D4\\u00D9\", \"o\\u00E4\", \"O\\u00C4\",\r\n\t\t\t\t\"o\\u00E3\", \"O\\u00C3\", \"o\\u00E5\", \"O\\u00C5\", \"o\\u00E0\",\r\n\t\t\t\t\"O\\u00C0\", \"o\\u00E1\", \"O\\u00C1\", \"o\\u00FB\", \"O\\u00DB\",\r\n\t\t\t\t\"o\\u00EF\", \"O\\u00CF\", \"e\\u00E4\", \"E\\u00C4\", \"e\\u00E3\",\r\n\t\t\t\t\"E\\u00C3\", \"e\\u00E5\", \"E\\u00C5\", \"e\\u00E0\", \"E\\u00C0\",\r\n\t\t\t\t\"e\\u00E1\", \"E\\u00C1\", \"e\\u00F5\", \"E\\u00D5\", \"e\\u00FB\",\r\n\t\t\t\t\"E\\u00DB\", \"e\\u00EF\", \"E\\u00CF\", \"a\\u00EB\", \"A\\u00CB\",\r\n\t\t\t\t\"a\\u00FC\", \"A\\u00DC\", \"a\\u00FA\", \"A\\u00DA\", \"a\\u00E8\",\r\n\t\t\t\t\"A\\u00C8\", \"a\\u00E9\", \"A\\u00C9\", \"a\\u00E4\", \"A\\u00C4\",\r\n\t\t\t\t\"a\\u00E3\", \"A\\u00C3\", \"a\\u00E5\", \"A\\u00C5\", \"a\\u00E0\",\r\n\t\t\t\t\"A\\u00C0\", \"a\\u00E1\", \"A\\u00C1\", \"a\\u00FB\", \"A\\u00DB\",\r\n\t\t\t\t\"a\\u00EF\", \"A\\u00CF\", \"u\\u00F5\", \"U\\u00D5\", \"a\\u00EA\",\r\n\t\t\t\t\"A\\u00CA\", \"y\\u00F9\", \"u\\u00F9\", \"u\\u00F8\", \"o\\u00F5\",\r\n\t\t\t\t\"o\\u00F9\", \"o\\u00F8\", \"e\\u00E2\", \"e\\u00F9\", \"e\\u00F8\",\r\n\t\t\t\t\"a\\u00F5\", \"a\\u00E2\", \"a\\u00F9\", \"a\\u00F8\", \"Y\\u00D9\",\r\n\t\t\t\t\"U\\u00D9\", \"U\\u00D8\", \"O\\u00D5\", \"O\\u00D9\", \"O\\u00D8\",\r\n\t\t\t\t\"E\\u00C2\", \"E\\u00D9\", \"E\\u00D8\", \"A\\u00D5\", \"A\\u00C2\",\r\n\t\t\t\t\"A\\u00D9\", \"A\\u00D8\"};\r\n\t\tfinal String[] Unicode_char = {\"\\u00C6\", \"\\u00E6\", \"\\u1EF9\", \"\\u1EF8\",\r\n\t\t\t\t\"\\u1EF7\", \"\\u1EF6\", \"\\u1EF3\", \"\\u1EF2\", \"\\u1EF1\", \"\\u1EF0\",\r\n\t\t\t\t\"\\u1EEF\", \"\\u1EEE\", \"\\u1EED\", \"\\u1EEC\", \"\\u1EEB\", \"\\u1EEA\",\r\n\t\t\t\t\"\\u1EE9\", \"\\u1EE8\", \"\\u1EE7\", \"\\u1EE6\", \"\\u1EE5\", \"\\u1EE4\",\r\n\t\t\t\t\"\\u1EE3\", \"\\u1EE2\", \"\\u1EE1\", \"\\u1EE0\", \"\\u1EDF\", \"\\u1EDE\",\r\n\t\t\t\t\"\\u1EDD\", \"\\u1EDC\", \"\\u1EDB\", \"\\u1EDA\", \"\\u1ED9\", \"\\u1ED8\",\r\n\t\t\t\t\"\\u1ED7\", \"\\u1ED6\", \"\\u1ED5\", \"\\u1ED4\", \"\\u1ED3\", \"\\u1ED2\",\r\n\t\t\t\t\"\\u1ED1\", \"\\u1ED0\", \"\\u1ECF\", \"\\u1ECE\", \"\\u1ECD\", \"\\u1ECC\",\r\n\t\t\t\t\"\\u1EC7\", \"\\u1EC6\", \"\\u1EC5\", \"\\u1EC4\", \"\\u1EC3\", \"\\u1EC2\",\r\n\t\t\t\t\"\\u1EC1\", \"\\u1EC0\", \"\\u1EBF\", \"\\u1EBE\", \"\\u1EBD\", \"\\u1EBC\",\r\n\t\t\t\t\"\\u1EBB\", \"\\u1EBA\", \"\\u1EB9\", \"\\u1EB8\", \"\\u1EB7\", \"\\u1EB6\",\r\n\t\t\t\t\"\\u1EB5\", \"\\u1EB4\", \"\\u1EB3\", \"\\u1EB2\", \"\\u1EB1\", \"\\u1EB0\",\r\n\t\t\t\t\"\\u1EAF\", \"\\u1EAE\", \"\\u1EAD\", \"\\u1EAC\", \"\\u1EAB\", \"\\u1EAA\",\r\n\t\t\t\t\"\\u1EA9\", \"\\u1EA8\", \"\\u1EA7\", \"\\u1EA6\", \"\\u1EA5\", \"\\u1EA4\",\r\n\t\t\t\t\"\\u1EA3\", \"\\u1EA2\", \"\\u1EA1\", \"\\u1EA0\", \"\\u0169\", \"\\u0168\",\r\n\t\t\t\t\"\\u0103\", \"\\u0102\", \"\\u00FD\", \"\\u00FA\", \"\\u00F9\", \"\\u00F5\",\r\n\t\t\t\t\"\\u00F3\", \"\\u00F2\", \"\\u00EA\", \"\\u00E9\", \"\\u00E8\", \"\\u00E3\",\r\n\t\t\t\t\"\\u00E2\", \"\\u00E1\", \"\\u00E0\", \"\\u00DD\", \"\\u00DA\", \"\\u00D9\",\r\n\t\t\t\t\"\\u00D5\", \"\\u00D3\", \"\\u00D2\", \"\\u00CA\", \"\\u00C9\", \"\\u00C8\",\r\n\t\t\t\t\"\\u00C3\", \"\\u00C2\", \"\\u00C1\", \"\\u00C0\"};\r\n\r\n\t\tstr = replaceString(str, VNI_char, Unicode_char);\r\n\r\n\t\t// Part 3\r\n\t\tstr = str.replace('\\u00D4', '\\u01A0'); // O+\r\n\t\tstr = str.replace('\\u00F4', '\\u01A1'); // o+\r\n\t\tstr = str.replace('\\u00D6', '\\u01AF'); // U+\r\n\t\tstr = str.replace('\\u00F6', '\\u01B0'); // u+\r\n\t\tstr = str.replace('\\u00C6', '\\u00D4'); // O^\r\n\t\tstr = str.replace('\\u00E6', '\\u00F4'); // o^\r\n\t}", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "java.lang.String getAboutRaw();", "public String decode(String encoding) {\n\t\tString decoded = \"\";\n\t\tString currCode = \"\";\n\t\tMap<String, Character> revMap = new HashMap<String, Character>();\n\t\t\n\t\t// Build hashmap from value to key\n\t\tfor (Character code: this.mapping.keySet()) {\n\t\t\trevMap.put(this.mapping.get(code), code);\n\t\t}\n\t\t\n\t\tfor (Character c: encoding.toCharArray()) {\n\t\t\tcurrCode += c;\n\t\t\tCharacter toAdd = revMap.get(currCode);\n\t\t\tif (toAdd != null) {\n\t\t\t\tdecoded += toAdd;\n\t\t\t\tcurrCode = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn decoded;\n\t}", "public byte getCode();", "com.google.protobuf.ByteString getByteCode();", "public java.lang.String getImage() {\n java.lang.Object ref = image_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n image_ = s;\n return s;\n }\n }", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "com.google.protobuf.ByteString\n getCodeNameBytes();", "public void getDecodedMessage(String encoding){\n\n String output = \"\";\n Node temp = this.root;\n for(int i = 0;i<encoding.length();i++){\n\n if(encoding.charAt(i) == '0'){\n temp = temp.left;\n\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root;\n }\n }\n else\n {\n temp = temp.right;\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root; \n }\n\n }\n }\n }", "public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}", "@RequestMapping(\"/user.imagecode\")\n public void getImageCode(HttpSession session, HttpServletResponse response) throws Exception {\n String vericode = VerificationCode.getSecurityCode();\n session.setAttribute(\"verityCode\", vericode);\n // 设置返回的内容\n response.setContentType(\"img/jpeg\");\n // 浏览器不缓存响应内容--验证码图片,点一次就要刷新一次,所以不能有缓存出现\n response.setHeader(\"Pragma\", \"No-cache\");\n response.setHeader(\"Cache-Control\", \"no-cache\");\n // 设置验证码失效时间\n response.setDateHeader(\"Expires\", 0);\n // 以字节流发过去,交给img的src属性去解析即可\n ImageIO.write(new CreateVerificationCodeImage(vericode).createImage(), \"JPEG\", response.getOutputStream());\n }", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "public String encode(String text) {\n\t\t// TODO fill this in.\n\t\tString binaryCode = \"\";\n\n\t\tchar[] array = text.toCharArray();\n\n\t\tfor(char c : chars.keySet()){\n\t\t\tString code = findPath(c, root, \"\");\n\t\t\tcodeMap.put(c, code);\n\t\t\tSystem.out.println(c + \" \" + code);\t\t\t\t\t\t\t// print char codes\n\t\t}\n\n\t\tfor(char t : array){\n\t\t\tString charCode = codeMap.get(t);\n\t\t\tbinaryCode = binaryCode + charCode;\n\t\t}\n\n\t\treturn binaryCode;\n\t}", "public String scanText(BufferedImage image) throws IOException {\n File tmpImgFile = File.createTempFile(\"tmpImg\", \".jpg\");\n ImageIO.write(image, \"jpg\", tmpImgFile);\n String rawData = TesseractWrapper.runTesseract(tmpImgFile.getAbsolutePath());\n tmpImgFile.delete();\n return rawData;\n }", "public static Bitmap decodeToBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "private String decodageCesar(String text) {\n if (text == null || text.equals(\"\")) {\n throw new AssertionError(\"Aucun texte n'est saisie\");\n }\n String decoding = decodageMot(text);\n SubstCipher decodingText = new SubstCipher(this.shiftAlea);\n decodingText.ensureNegativeShift();\n decodingText.buildShiftedTextFor(decoding);\n return decodingText.getLastShiftedText();\n }", "protected String decodeString(byte[] data) {\n\t\tString rv = null;\n\t\ttry {\n\t\t\tif (data != null) {\n\t\t\t\trv = new String(data, charset);\n\t\t\t}\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn rv;\n\t}", "public String getImageString() {\n return getString(POST_IMAGE_STRING);\n }", "public static Bitmap decodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public String getText(int code)\n {\n return _pixxConfiguration.getText(code);\n }", "private static java.lang.String getFcFromRuim(byte r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.uicc.SsIccFileFetcher.getFcFromRuim(byte):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.uicc.SsIccFileFetcher.getFcFromRuim(byte):java.lang.String\");\n }", "Character getCode();", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "public static String decodificarImagen(byte[] imagen){\n\t\tif(imagen!=null && imagen.length>0){\n\t\t\treturn \"data:image/jpeg;base64,\"+DatatypeConverter.printBase64Binary(imagen);\n\t\t}\n\t\treturn null;\n\t}", "void barcodeCaptured(String barcodeString);", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "Bitmap mo27481a(String str);", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "NativeLong wkhtmltoimage_get_output(PointerByReference converter, PointerByReference charPtrPtr1);" ]
[ "0.69202834", "0.66048706", "0.6270264", "0.6039944", "0.6026987", "0.59137154", "0.5753226", "0.5751967", "0.5719767", "0.5663715", "0.5602768", "0.54816717", "0.5395488", "0.53819704", "0.5359143", "0.5353572", "0.53063494", "0.528559", "0.5250542", "0.5238631", "0.5238631", "0.5225091", "0.52094066", "0.5199392", "0.51713455", "0.51713455", "0.51713455", "0.51713455", "0.51713455", "0.5169095", "0.5164789", "0.51647574", "0.5155765", "0.5128761", "0.5102239", "0.50993645", "0.5098475", "0.5097325", "0.5095639", "0.5090705", "0.50588626", "0.5052041", "0.5051898", "0.5003363", "0.49982527", "0.4980605", "0.4976196", "0.49749735", "0.49720955", "0.49563375", "0.49513233", "0.49366543", "0.49283096", "0.4926353", "0.49244452", "0.49224508", "0.49216387", "0.49179286", "0.49171108", "0.48837566", "0.4881124", "0.4880314", "0.4878932", "0.48536682", "0.48526752", "0.48514304", "0.48485315", "0.4847318", "0.48414758", "0.48408213", "0.48404065", "0.48386526", "0.48335546", "0.48243588", "0.48168162", "0.48086286", "0.48068732", "0.48054558", "0.48038384", "0.47988153", "0.47917086", "0.47828698", "0.4780986", "0.47735", "0.47704765", "0.47667688", "0.4760325", "0.47563732", "0.4748197", "0.47364601", "0.47362676", "0.4732023", "0.47304067", "0.472593", "0.47242597", "0.47236428", "0.47204658", "0.47187322", "0.47171494", "0.4715803" ]
0.5359847
14
C++: string cv::GraphicalCodeDetector::detectAndDecode(Mat img, Mat& points = Mat(), Mat& straight_code = Mat()) Both detects and decodes graphical code
public String detectAndDecode(Mat img, Mat points, Mat straight_code) { return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "DetectionResult getObjInImage(Mat image);", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public boolean generateImageFromText();", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public List<Result> recognize(IplImage image);", "private static native long imdecode_0(long buf_nativeObj, int flags);", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public Mat beforeDataEncoded(Mat frame);", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public native void annotateImage(DrawInfo info);", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "private Image mat2Image(Mat frame)\r\n {\n MatOfByte buffer = new MatOfByte();\r\n // encode the frame in the buffer\r\n // HighGui.imencode(\".png\", frame, buffer);\r\n Imgcodecs.imencode(\".png\", frame, buffer);\r\n // build and return an Image created from the image encoded in the buffer\r\n return new Image(new ByteArrayInputStream(buffer.toArray()));\r\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, ScreenOrientation.LANDSCAPE);\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray, ScreenOrientation orientation) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, orientation);\n }", "@Override public void onQRCodeRead(String text, PointF[] points) {\n resultTextView.setText(text);\n pointsOverlayView.setPoints(points);\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "public String detectObject(Bitmap bitmap) {\n results = classifierObject.recognizeImage(bitmap);\n\n // Toast.makeText(context, results.toString(), Toast.LENGTH_LONG).show();\n return String.valueOf(results.toString());\n }", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "Bitmap mo27481a(String str);", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "private Image mat2Image(Mat frame)\n {\n MatOfByte buffer = new MatOfByte();\n // encode the frame in the buffer, according to the PNG format\n Highgui.imencode(\".png\", frame, buffer);\n // build and return an Image created from the image encoded in the\n // buffer\n return new Image(new ByteArrayInputStream(buffer.toArray()));\n }", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public Mat convertToEdges(Mat img) {\n\n return img;\n }", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "void mo27482a(String str, Bitmap bitmap);", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "public void hello() {\n Mat m = Mat.zeros(100,400, CvType.CV_8UC3);\n Imgproc.putText(m, \"Hello World!\", new Point(30,80), Core.FONT_HERSHEY_SCRIPT_SIMPLEX, 2.2, new Scalar(200,200,0),2);\n\n // convert to bitmap:\n Bitmap bm = Bitmap.createBitmap(m.cols(), m.rows(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m, bm);\n\n ImageView iv = (ImageView) findViewById(R.id.imageView);\n iv.setImageBitmap(bm);\n }", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "public native int getRenderingIntent() throws MagickException;", "private void runTextRecognition(Bitmap bitmap) {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionTextDetector detector = FirebaseVision.getInstance().getVisionTextDetector();\n\n detector.detectInImage(image).addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n processTextRecognitionResult(texts);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n e.printStackTrace();\n }\n });\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "private void openCVImage(){\n Imgcodecs codec = new Imgcodecs();\n image = codec.imread(currentPhotoPath, Imgcodecs.IMREAD_COLOR);\n }", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "String getMapCode();", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "private void performOCR(){\n }", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "void process(Mat image);", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "public native boolean getMatte() throws MagickException;", "public boolean qrcodeVideoPreviewEnabled();", "void identify()\n{\n BytePtr head = new BytePtr(32);\n BytePtr cp = new BytePtr();\n int hlen, fsize, i, c;\n boolean is_canon;\n jhead jh = new jhead();\n /*\n static const struct {\n int fsize;\n char make[12], model[15], withjpeg;\n } \n */\n IdentifyTable table = new IdentifyTable();\n table.addElt( 62464, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 124928, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 1652736, \"Kodak\", \"DCS200\" ,0 );\n table.addElt( 4159302, \"Kodak\", \"C330\" ,0 );\n table.addElt( 4162462, \"Kodak\", \"C330\" ,0 );\n table.addElt( 460800, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 614400, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 6163328, \"Kodak\", \"C603\" ,0 );\n table.addElt( 6166488, \"Kodak\", \"C603\" ,0 );\n table.addElt( 9116448, \"Kodak\", \"C603y\" ,0 );\n table.addElt( 311696, \"ST Micro\", \"STV680 VGA\" ,0 ); /* SPYz */\n table.addElt( 614400, \"Kodak\", \"KAI-0340\" ,0 );\n table.addElt( 787456, \"Creative\", \"PC-CAM 600\" ,0 );\n table.addElt( 1138688, \"Minolta\", \"RD175\" ,0 );\n table.addElt( 3840000, \"Foculus\", \"531C\" ,0 );\n table.addElt( 786432, \"AVT\", \"F-080C\" ,0 );\n table.addElt( 1447680, \"AVT\", \"F-145C\" ,0 );\n table.addElt( 1920000, \"AVT\", \"F-201C\" ,0 );\n table.addElt( 5067304, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 10134608, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 16157136, \"AVT\", \"F-810C\" ,0 );\n table.addElt( 1409024, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 2818048, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 3884928, \"Micron\", \"2010\" ,0 );\n table.addElt( 6624000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 13248000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 6291456, \"RoverShot\",\"3320AF\" ,0 );\n table.addElt( 6553440, \"Canon\", \"PowerShot A460\",0 );\n table.addElt( 6653280, \"Canon\", \"PowerShot A530\",0 );\n table.addElt( 6573120, \"Canon\", \"PowerShot A610\",0 );\n table.addElt( 9219600, \"Canon\", \"PowerShot A620\",0 );\n table.addElt( 10341600, \"Canon\", \"PowerShot A720\",0 );\n table.addElt( 10383120, \"Canon\", \"PowerShot A630\",0 );\n table.addElt( 12945240, \"Canon\", \"PowerShot A640\",0 );\n table.addElt( 15636240, \"Canon\", \"PowerShot A650\",0 );\n table.addElt( 5298000, \"Canon\", \"PowerShot SD300\" ,0 );\n table.addElt( 7710960, \"Canon\", \"PowerShot S3 IS\",0 ); \n table.addElt( 5939200, \"OLYMPUS\", \"C770UZ\" ,0 );\n table.addElt( 1581060, \"NIKON\", \"E900\" ,1 ); /* or E900s,E910 */\n table.addElt( 2465792, \"NIKON\", \"E950\" ,1 ); /* or E800,E700 */\n table.addElt( 2940928, \"NIKON\", \"E2100\" ,1 ); /* or E2500 */\n table.addElt( 4771840, \"NIKON\", \"E990\" ,1 ); /* or E995, Oly C3030Z */\n table.addElt( 4775936, \"NIKON\", \"E3700\" ,1 ); /* or Optio 33WR */\n table.addElt( 5869568, \"NIKON\", \"E4300\" ,1 ); /* or DiMAGE Z2 */\n table.addElt( 5865472, \"NIKON\", \"E4500\" ,1 );\n table.addElt( 7438336, \"NIKON\", \"E5000\" ,1 ); /* or E5700 */\n table.addElt( 8998912, \"NIKON\", \"COOLPIX S6\" ,1 );\n table.addElt( 1976352, \"CASIO\", \"QV-2000UX\" ,1 );\n table.addElt( 3217760, \"CASIO\", \"QV-3*00EX\" ,1 );\n table.addElt( 6218368, \"CASIO\", \"QV-5700\" ,1 );\n table.addElt( 6054400, \"CASIO\", \"QV-R41\" ,1 );\n table.addElt( 7530816, \"CASIO\", \"QV-R51\" ,1 );\n table.addElt( 7684000, \"CASIO\", \"QV-4000\" ,1 );\n table.addElt( 4948608, \"CASIO\", \"EX-S100\" ,1 );\n table.addElt( 7542528, \"CASIO\", \"EX-Z50\" ,1 );\n table.addElt( 7753344, \"CASIO\", \"EX-Z55\" ,1 );\n table.addElt( 7426656, \"CASIO\", \"EX-P505\" ,1 );\n table.addElt( 9313536, \"CASIO\", \"EX-P600\" ,1 );\n table.addElt( 10979200, \"CASIO\", \"EX-P700\" ,1 );\n table.addElt( 3178560, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 4841984, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 6114240, \"PENTAX\", \"Optio S4\" ,1 ); /* or S4i */\n table.addElt( 10702848, \"PENTAX\", \"Optio 750Z\" ,1 );\n table.addElt( 12582980, \"Sinar\", \"\" ,0 );\n table.addElt( 33292868, \"Sinar\", \"\" ,0 );\n table.addElt( 44390468, \"Sinar\", \"\" ,0 );\n \n String[] corp =\n { \"Canon\", \"NIKON\", \"EPSON\", \"KODAK\", \"Kodak\", \"OLYMPUS\", \"PENTAX\",\n \"MINOLTA\", \"Minolta\", \"Konica\", \"CASIO\", \"Sinar\", \"Phase One\",\n \"SAMSUNG\", \"Mamiya\" };\n\n tiff_flip = flip = -1;\t/* 0 is valid, so -1 is unknown */\n filters = CTOJ.toUnsigned(-1);\n cr2_slice.at(0,(short)0);\n raw_height = raw_width = fuji_width = 0;\n maximum = height = width = top_margin = left_margin = 0;\n cdesc.setAt(0,(char) 0);\n desc.setAt(0,(char) 0);\n artist.setAt(0,(char) 0);\n make.setAt(0,(char)0);\n model.setAt(0,(char)0);\n model2.setAt(0,(char)0);\n iso_speed = shutter = aperture = focal_len = unique_id = 0;\n //Uc.memset (white, 0, white.sizeof());\n thumb_offset = thumb_length = thumb_width = thumb_height = 0;\n load_raw = null;\n thumb_load_raw = null;\n //write_thumb = & jpeg_thumb;\n data_offset = meta_length = tiff_bps = tiff_compress = 0;\n kodak_cbpp = zero_after_ff = dng_version = fuji_secondary = 0;\n timestamp = shot_order = tiff_samples = black = is_foveon = 0;\n data_error = false;\n zero_is_bad = false;\n pixel_aspect = is_raw = raw_color = use_gamma = 1;\n tile_length = Integer.MAX_VALUE;\n for (i=0; i < 4; i++) {\n cam_mul[i] = (i == 1 ? 1 : 0);\n pre_mul[i] = (i < 3 ?1:0);\n for (c=0; c < 3; c++) rgb_cam[c][i] = (c == i? 1: 0);\n }\n colors = 3;\n tiff_bps = 12;\n for (i=0; i < 0x4000; i++) curve.at(i, (short)i);\n profile_length = 0;\n\n order = (short)get2();\n hlen = get4();\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n CTOJ.fread (head, 1, 32, ifp);\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_END);\n fsize = CTOJ.ftell(ifp);\n if (( !cp.assign(CTOJ.memmem (head, 32, \"MMMM\", 4)).isNull()) ||\n ( !cp.assign(CTOJ.memmem (head, 32, \"IIII\", 4)).isNull())) {\n //parse_phase_one (cp.minus(head));\n if (cp.minus(head)!=0) parse_tiff(0);\n } else if (order == 0x4949 || order == 0x4d4d) {\n if (CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8) == 0) {\n data_offset = hlen;\n parse_ciff (hlen, fsize - hlen);\n } else {\n parse_tiff(0);\n }\n } else if ( CTOJ.memcmp (head,\"\\u00ff\\u00d8\\u00ff\\u00e1\",4) == 0 &&\n\t CTOJ.memcmp (head.plus(6),\"Exif\",4) == 0) {\n CTOJ.fseek (ifp, 4, CTOJ.SEEK_SET);\n data_offset = 4 + get2();\n CTOJ.fseek (ifp, data_offset, CTOJ.SEEK_SET);\n if (CTOJ.fgetc(ifp) != 0xff)\n parse_tiff(12);\n thumb_offset = 0;\n } else if ( CTOJ.memcmp (head,\"BM\",2)==0 &&\n\thead.at(26) == 1 && head.at(28) == 16 && head.at(30) == 0) {\n data_offset = 0x1000;\n order = 0x4949;\n CTOJ.fseek (ifp, 38, CTOJ.SEEK_SET);\n if (get4() == 2834 && get4() == 2834 && get4() == 0 && get4() == 4096) {\n Uc.strcpy (model, \"BMQ\");\n flip = 3;\n// goto nucore;\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n }\n } else if ( CTOJ.memcmp (head,\"BR\",2) == 0) {\n Uc.strcpy (model, \"RAW\");\nnucore:\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n } else if ( CTOJ.memcmp (head.plus(25),\"ARECOYK\",7) == 0) {\n Uc.strcpy (make, \"Contax\");\n Uc.strcpy (model,\"N Digital\");\n CTOJ.fseek (ifp, 33, CTOJ.SEEK_SET);\n get_timestamp(1);\n CTOJ.fseek (ifp, 60, CTOJ.SEEK_SET);\n for (c=0; c < 4; c++) cam_mul[c ^ (c >> 1)] = get4();\n } else if ( CTOJ.strcmp (head, \"PXN\") == 0) {\n Uc.strcpy (make, \"Logitech\");\n Uc.strcpy (model,\"Fotoman Pixtura\");\n } else if ( CTOJ.memcmp (head,\"FUJIFILM\",8) == 0) {\n CTOJ.fseek (ifp, 84, CTOJ.SEEK_SET);\n thumb_offset = get4();\n thumb_length = get4();\n CTOJ.fseek (ifp, 92, CTOJ.SEEK_SET);\n parse_fuji (get4());\n if (thumb_offset > 120) {\n CTOJ.fseek (ifp, 120, CTOJ.SEEK_SET);\n fuji_secondary = ((i = get4()) !=0 && true) ? 1:0;\n if (fuji_secondary != 0 && use_secondary != 0)\n\tparse_fuji (i);\n }\n CTOJ.fseek (ifp, 100, CTOJ.SEEK_SET);\n data_offset = get4();\n parse_tiff (thumb_offset+12);\n } else if ( CTOJ.memcmp (head,\"RIFF\",4)==0) {\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n //parse_riff();\n } else if (CTOJ.memcmp (head,\"DSC-Image\",9)==0)\n ;//parse_rollei();\n else if (CTOJ.memcmp (head,\"\\0MRM\",4)==0)\n parse_minolta(0);\n else if (CTOJ.memcmp (head,\"FOVb\",4)==0)\n ;//parse_foveon();\n else\n for (i=0; i < table.size(); i++)\n if (fsize == table.at(i).fsize) {\n\tUc.strcpy (make, table.at(i).make );\n\tUc.strcpy (model, table.at(i).model);\n\tif (table.at(i).withjpeg)\n\t ;//parse_external_jpeg();\n }\n if (make.charAt(0) == 0) ;//parse_smal (0, fsize);\n if (make.charAt(0) == 0) parse_jpeg (is_raw = 0);\n\n for (i=0; i < corp.length; i++)\n if (Uc.strstr (make, corp[i]) != null)\t\t/* Simplify company names */\n\tUc.strcpy (make, corp[i]);\n if ( Uc.strncmp (make,\"KODAK\",5) == 0) {\n make.setAt(16,(char)0); model.setAt(16, (char)0);\n }\n CharPtr cp2;\n cp2 = make.plus(Uc.strlen(make));\t\t/* Remove trailing spaces */\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n cp2 = model.plus(Uc.strlen(model));\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n i = Uc.strlen(make);\t\t\t/* Remove make from model */\n if ( Uc.strncmp (model, make, i)==0 && model.charAt(i++) == ' ')\n Uc.memmove (model, model.plus(i), 64-i);\n if ( Uc.strncmp (model,\"Digital Camera \",15) == 0)\n Uc.strcpy (model, model.plus(15));\n make.setAt(63,(char)0);\n model.setAt(63,(char)0);\n model2.setAt(63,(char)0);\n if ( is_raw == 0) return;\n\n if ((raw_height | raw_width) < 0)\n raw_height = raw_width = 0;\n if ( maximum == 0) maximum = (1 << tiff_bps) - 1;\n if ( height ==0) height = raw_height;\n if ( width == 0) width = raw_width;\n if (fuji_width != 0) {\n width = height + fuji_width;\n height = width - 1;\n pixel_aspect = 1;\n }\n if (height == 2624 && width == 3936)\t/* Pentax K10D and Samsung GX10 */\n { height = 2616; width = 3896; }\n if (height == 3136 && width == 4864)\t/* Pentax K20D */\n { height = 3124; width = 4688; } \n /*\n if (dng_version) {\n strcat (model,\" DNG\");\n if (filters == UINT_MAX) filters = 0;\n if (!filters)\n colors = tiff_samples;\n if (tiff_compress == 1)\n load_raw = & adobe_dng_load_raw_nc;\n if (tiff_compress == 7)\n load_raw = & adobe_dng_load_raw_lj;\n for (c=0; c < 4; c++) cam_mul[c] = pre_mul[c];\n goto dng_skip;\n }\n*/\n/* We'll try to decode anything from Canon or Nikon. */\n\n if ((is_canon = (Uc.strcmp(make,\"Canon\")==0))) {\n load_raw = CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8)!=0 ?\n\tnew LosslessJpegLoadRaw() : new CanonCompressedLoadRaw();\n //maximum = 0xfff;\n }\n if ( Uc.strcmp(make,\"NIKON\") == 0 && load_raw == null)\n load_raw = new NikonLoadRaw();\n if ( Uc.strncmp (make,\"OLYMPUS\",7) == 0)\n height += height & 1;\n\n/* Set parameters based on camera name (for non-DNG files). */\n\n if (is_foveon != 0) {\n if (height*2 < width) pixel_aspect = 0.5;\n if (height > width) pixel_aspect = 2;\n filters = 0;\n load_raw = new FoveonLoadRaw();\n //simple_coeff(0);\n } else if (is_canon && tiff_samples == 4) {\n filters = 0;\n load_raw = new CanonSrawLoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot 600\")==0) {\n height = 613;\n width = 854;\n raw_width = 896;\n pixel_aspect = 607/628.0;\n colors = 4;\n filters = 0xe1e4e1e4l;\n load_raw = new Canon600LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A5\")==0 ||\n\t Uc.strcmp(model,\"PowerShot A5 Zoom\") == 0) {\n height = 773;\n width = 960;\n raw_width = 992;\n pixel_aspect = 256/235.0;\n colors = 4;\n filters = 0x1e4e1e4el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A50\") == 0) {\n height = 968;\n width = 1290;\n raw_width = 1320;\n colors = 4;\n filters = 0x1b4e4b1el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro70\") == 0) {\n height = 1024;\n width = 1552;\n colors = 4;\n filters = 0x1e4b4e1bl;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A460\") == 0) {\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2664;\n top_margin = 4;\n left_margin = 4;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A530\") == 0) {\n height = 1984;\n width = 2620;\n raw_height = 1992;\n raw_width = 2672;\n top_margin = 6;\n left_margin = 10;\n load_raw = new CanonA5LoadRaw();\n raw_color = 0;\n } else if ( Uc.strcmp(model,\"PowerShot A610\") == 0) {\n //if (canon_s2is()) Uc.strcpy (model+10, \"S2 IS\"); // TODO\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2672;\n top_margin = 8;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A620\") == 0) {\n height = 2328;\n width = 3112;\n raw_height = 2340;\n raw_width = 3152;\n top_margin = 12;\n left_margin = 36;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A720\") == 0) {\n height = 2472;\n width = 3298;\n raw_height = 2480;\n raw_width = 3336;\n top_margin = 5;\n left_margin = 6;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A630\") == 0) {\n height = 2472;\n width = 3288;\n raw_height = 2484;\n raw_width = 3344;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A640\") == 0) {\n height = 2760;\n width = 3672;\n raw_height = 2772;\n raw_width = 3736;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A650\") == 0) {\n height = 3024;\n width = 4032;\n raw_height = 3048;\n raw_width = 4104;\n top_margin = 12;\n left_margin = 48;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot S3 IS\") == 0) {\n height = 2128;\n width = 2840;\n raw_height = 2136;\n raw_width = 2888;\n top_margin = 8;\n left_margin = 44;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro90 IS\") == 0) {\n width = 1896;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (is_canon && raw_width == 2144) {\n height = 1550;\n width = 2088;\n top_margin = 8;\n left_margin = 4;\n if ( Uc.strcmp(model,\"PowerShot G1\")==0) {\n colors = 4;\n filters = 0xb4b4b4b4l;\n }\n } else if (is_canon && raw_width == 2224) {\n height = 1448;\n width = 2176;\n top_margin = 6;\n left_margin = 48;\n } else if (is_canon && raw_width == 2376) {\n height = 1720;\n width = 2312;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 2672) {\n height = 1960;\n width = 2616;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 3152) {\n height = 2056;\n width = 3088;\n top_margin = 12;\n left_margin = 64;\n if (unique_id == 0x80000170)\n adobe_coeff (\"Canon\",\"EOS 300D\");\n// maximum = 0xfa0;\n } else if (is_canon && raw_width == 3160) {\n height = 2328;\n width = 3112;\n top_margin = 12;\n left_margin = 44;\n } else if (is_canon && raw_width == 3344) {\n height = 2472;\n width = 3288;\n top_margin = 6;\n left_margin = 4;\n } else if ( Uc.strcmp(model,\"EOS D2000C\")==0) {\n filters = 0x61616161l;\n black = curve.at(200);\n } else if (is_canon && raw_width == 3516) {\n top_margin = 14;\n left_margin = 42;\n if (unique_id == 0x80000189)\n adobe_coeff (\"Canon\",\"EOS 350D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3596) {\n top_margin = 12;\n left_margin = 74;\n canon_cr2();\n } else if (is_canon && raw_width == 3944) {\n height = 2602;\n width = 3908;\n top_margin = 18;\n left_margin = 30;\n } else if (is_canon && raw_width == 3948) {\n top_margin = 18;\n left_margin = 42;\n height -= 2;\n if (unique_id == 0x80000236)\n adobe_coeff (\"Canon\",\"EOS 400D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3984) {\n top_margin = 20;\n left_margin = 76;\n height -= 2;\n canon_cr2();\n } else if (is_canon && raw_width == 4104) {\n height = 3024;\n width = 4032;\n top_margin = 12;\n left_margin = 48;\n } else if (is_canon && raw_width == 4312) {\n top_margin = 18;\n left_margin = 22;\n height -= 2;\n if (unique_id == 0x80000176)\n adobe_coeff (\"Canon\",\"EOS 450D\");\n canon_cr2();\n } else if (is_canon && raw_width == 4476) {\n top_margin = 34;\n left_margin = 90;\n //maximum = 0xe6c;\n canon_cr2();\n } else if (is_canon && raw_width == 1208) {\n top_margin = 51;\n left_margin = 62;\n raw_width = width *= 4;\n maximum = 0x3d93;\n canon_cr2();\n } else if (is_canon && raw_width == 5108) {\n top_margin = 13;\n left_margin = 98;\n //maximum = 0xe80;\n canon_cr2();\n } else if (is_canon && raw_width == 5712) {\n height = 3752;\n width = 5640;\n top_margin = 20;\n left_margin = 62;\n } else if (Uc.strcmp(model,\"D1\")==0) {\n cam_mul[0] *= 256/527.0;\n cam_mul[2] *= 256/317.0;\n } else if (Uc.strcmp(model,\"D1X\")==0) {\n width -= 4;\n //ymag = 2;\n pixel_aspect = 0.5;\n } else if ( Uc.strcmp(model,\"D40X\")==0 ||\n\t Uc.strcmp(model,\"D60\")==0 ||\n\t Uc.strcmp(model,\"D80\")==0) {\n height -= 3;\n width -= 4;\n } else if (Uc.strncmp(model,\"D40\",3)==0 ||\n\t Uc.strncmp(model,\"D50\",3)==0 ||\n\t Uc.strncmp(model,\"D70\",3)==0) {\n width--;\n } else if ( Uc.strcmp(model,\"D90\") == 0) {\n width -= 42;\n } else if (Uc.strcmp(model,\"D100\")==0) {\n if (tiff_compress == 34713 && !nikon_is_compressed())\n load_raw = new NikonLoadRaw();\n raw_width = (width += 3) + 3;\n maximum = 0xf44;\n } else if (Uc.strcmp(model,\"D200\")==0) {\n left_margin = 1;\n width -= 4;\n maximum = 0xfbc;\n filters = 0x94949494l;\n } else if (Uc.strncmp(model,\"D2H\",3)==0) {\n left_margin = 6;\n width -= 14;\n } else if (Uc.strcmp(model,\"D2X\")==0) {\n if (width == 3264) width -= 32;\n width -= 8;\n } else if ( Uc.strcmp(model,\"D3\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"D300\")==0) {\n width -= 32;\n } else if (fsize == 1581060) {\n height = 963;\n width = 1287;\n raw_width = 1632;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3f4;\n colors = 4;\n filters = 0x1e1e1e1el;\n //simple_coeff(3);\n pre_mul[0] = 1.2085f;\n pre_mul[1] = 1.0943f;\n pre_mul[3] = 1.1103f;\n } else if (fsize == 2465792) {\n height = 1203;\n width = 1616;\n raw_width = 2048;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3dd;\n colors = 4;\n filters = 0x4b4b4b4bl;\n adobe_coeff (\"NIKON\",\"E950\");\n } else if (fsize == 4771840) {\n height = 1540;\n width = 2064;\n colors = 4;\n filters = 0xe1e1e1e1l;\n load_raw = new NikonLoadRaw();\n// if (!timestamp && nikon_e995())\n// Uc.strcpy (model, \"E995\");\n if (Uc.strcmp(model,\"E995\") != 0) {\n filters = 0xb4b4b4b4l;\n //simple_coeff(3);\n pre_mul[0] = 1.196f;\n pre_mul[1] = 1.246f;\n pre_mul[2] = 1.018f;\n }\n } else if (Uc.strcmp(model,\"E2100\")==0) {\n /*\n if ( timestamp==0 && !nikon_e2100()) {\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4b;\n\n }\n else {\n height = 1206;\n width = 1616;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.945;\n pre_mul[2] = 1.040;\n }\n */\n } else if ( Uc.strcmp(model,\"E2500\")==0) {\ncp_e2500:\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4bl;\n } else if (fsize == 4775936) {\n height = 1542;\n width = 2064;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.818f;\n pre_mul[2] = 1.618f;\n //if (!timestamp) nikon_3700();\n if (model.charAt(0) == 'E' && Uc.atoi(model.plus(1)) < 3700)\n filters = 0x49494949l;\n if (Uc.strcmp(model,\"Optio 33WR\")==0) {\n flip = 1;\n filters = 0x16161616l;\n pre_mul[0] = 1.331f;\n pre_mul[2] = 1.820f;\n }\n } else if (fsize == 5869568) {\n height = 1710;\n width = 2288;\n filters = 0x16161616l;\n if ( timestamp==0 && minolta_z2()!=0) {\n Uc.strcpy (make, \"Minolta\");\n Uc.strcpy (model,\"DiMAGE Z2\");\n }\n if (make.charAt(0) == 'M')\n load_raw = new NikonE2100LoadRaw();\n } else if ( Uc.strcmp(model,\"E4500\") == 0) {\n height = 1708;\n width = 2288;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (fsize == 7438336) {\n height = 1924;\n width = 2576;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if ( Uc.strncmp(model,\"R-D1\",4) == 0) {\n tiff_compress = 34713;\n load_raw = new NikonLoadRaw();\n } else if (Uc.strcmp(model,\"FinePix S5100\")==0 ||\n\t Uc.strcmp(model,\"FinePix S5500\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3e00;\n } else if ( Uc.strcmp(make,\"FUJIFILM\") == 0) {\n if ( Uc.strcmp(model.plus(7),\"S2Pro\") == 0) {\n Uc.strcpy (model.plus(7),\" S2Pro\");\n height = 2144;\n width = 2880;\n flip = 6;\n } else\n maximum = 0x3e00;\n if (is_raw == 2 && shot_select != 0)\n maximum = 0x2f00;\n top_margin = (raw_height - height)/2;\n left_margin = (raw_width - width )/2;\n if (is_raw == 2)\n data_offset += ((shot_select > 0)?1:0) * ( fuji_layout!=0 ?\n\t\t(raw_width *= 2) : raw_height*raw_width*2 );\n fuji_width = width >> (fuji_layout!=0 ? 0 : 1);\n width = (height >> fuji_layout) + fuji_width;\n raw_height = height;\n height = width - 1;\n load_raw = new FujiLoadRaw();\n if ((fuji_width & 1) == 0) filters = 0x49494949l;\n } else if ( Uc.strcmp(model,\"RD175\")==0) {\n height = 986;\n width = 1534;\n data_offset = 513;\n filters = 0x61616161l;\n load_raw = new MinoltaRd175LoadRaw();\n } else if ( Uc.strcmp(model,\"KD-400Z\")==0) {\n height = 1712;\n width = 2312;\n raw_width = 2336;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n } else if ( Uc.strcmp(model,\"KD-510Z\")==0) {\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if ( Uc.strcasecmp(make,\"MINOLTA\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xf7d;\n if ( Uc.strncmp(model,\"DiMAGE A\",8)==0) {\n if (Uc.strcmp(model,\"DiMAGE A200\")==0)\n\tfilters = 0x49494949l;\n load_raw = new Packed12LoadRaw();\n maximum = model.charAt(8) == '1' ? 0xf8b : 0xfff;\n } else if ( Uc.strncmp(model,\"ALPHA\",5)==0 ||\n\t Uc.strncmp(model,\"DYNAX\",5)==0 ||\n\t Uc.strncmp(model,\"MAXXUM\",6)==0) {\n Uc.sprintf (model.plus(20), \"DYNAX %-10s\", model.plus(6+((model.charAt(0)=='M')?1:0)));\n adobe_coeff (make, model.plus(20));\n load_raw = new Packed12LoadRaw();\n maximum = 0xffb;\n } else if (Uc.strncmp(model,\"DiMAGE G\",8)==0) {\n if (model.charAt(8) == '4') {\n\theight = 1716;\n\twidth = 2304;\n } else if (model.charAt(8) == '5') {\nkonica_510z:\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if (model.charAt(8) == '6') {\n\theight = 2136;\n\twidth = 2848;\n }\n data_offset += 14;\n filters = 0x61616161l;\nkonica_400z:\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n }\n } else if ( Uc.strcmp(model,\"*ist DS\")==0) {\n height -= 2;\n } else if ( Uc.strcmp(model,\"Optio S\")==0) {\n if (fsize == 3178560) {\n height = 1540;\n width = 2064;\n load_raw = new EightBitLoadRaw();\n cam_mul[0] *= 4;\n cam_mul[2] *= 4;\n pre_mul[0] = 1.391f;\n pre_mul[2] = 1.188f;\n } else {\n height = 1544;\n width = 2068;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7c;\n pre_mul[0] = 1.137f;\n pre_mul[2] = 1.453f;\n }\n } else if (Uc.strncmp(model,\"Optio S4\",8)==0) {\n height = 1737;\n width = 2324;\n raw_width = 3520;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7a;\n pre_mul[0] = 1.980f;\n pre_mul[2] = 1.570f;\n } else if (Uc.strcmp(model,\"STV680 VGA\")==0) {\n height = 484;\n width = 644;\n load_raw = new EightBitLoadRaw();\n flip = 2;\n filters = 0x16161616l;\n black = 16;\n pre_mul[0] = 1.097f;\n pre_mul[2] = 1.128f;\n } else if (Uc.strcmp(model,\"KAI-0340\")==0) {\n height = 477;\n width = 640;\n order = 0x4949;\n data_offset = 3840;\n load_raw = new UnpackedLoadRaw() ;\n pre_mul[0] = 1.561f;\n pre_mul[2] = 2.454f;\n } else if ( Uc.strcmp(model,\"531C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new UnpackedLoadRaw() ;\n filters = 0x49494949l;\n pre_mul[1] = 1.218f;\n } else if ( Uc.strcmp(model,\"F-145C\")==0) {\n height = 1040;\n width = 1392;\n load_raw = new EightBitLoadRaw();\n } else if ( Uc.strcmp(model,\"F-201C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"F-510C\")==0) {\n height = 1958;\n width = 2588;\n load_raw = fsize < 7500000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"F-810C\")==0) {\n height = 2469;\n width = 3272;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"XCD-SX910CR\")==0) {\n height = 1024;\n width = 1375;\n raw_width = 1376;\n filters = 0x49494949l;\n maximum = 0x3ff;\n load_raw = fsize < 2000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"2010\")==0) {\n height = 1207;\n width = 1608;\n order = 0x4949;\n filters = 0x16161616l;\n data_offset = 3212;\n maximum = 0x3ff;\n load_raw = new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"A782\")==0) {\n height = 3000;\n width = 2208;\n filters = 0x61616161l;\n load_raw = fsize < 10000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xffc0;\n } else if (Uc.strcmp(model,\"3320AF\")==0) {\n height = 1536;\n raw_width = width = 2048;\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3ff;\n pre_mul[0] = 1.717f;\n pre_mul[2] = 1.138f;\n CTOJ.fseek (ifp, 0x300000, CTOJ.SEEK_SET);\n// if ((order = guess_byte_order(0x10000)) == 0x4d4d) {\n// height -= (top_margin = 16);\n// width -= (left_margin = 28);\n// maximum = 0xf5c0;\n// Uc.strcpy (make, \"ISG\");\n// model[0] = 0;\n// }\n } else if ( Uc.strcmp(make,\"Imacon\")==0) {\n Uc.sprintf (model, \"Ixpress %d-Mp\", height*width/1000000);\n load_raw = new ImaconFullLoadRaw();\n if (filters != 0) {\n if ((left_margin & 1)!= 0) filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n }\n maximum = 0xffff;\n } else if ( Uc.strcmp(make,\"Sinar\")==0) {\n if (CTOJ.memcmp(head,\"8BPS\",4) == 0) {\n CTOJ.fseek (ifp, 14, CTOJ.SEEK_SET);\n height = get4();\n width = get4();\n filters = 0x61616161l;\n data_offset = 68;\n }\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3fff;\n } else if (Uc.strcmp(make,\"Leaf\")==0) {\n maximum = 0x3fff;\n if (tiff_samples > 1) filters = 0;\n if (tiff_samples > 1 || tile_length < raw_height)\n load_raw = new LeafHdrLoadRaw();\n if ((width | height) == 2048) {\n if (tiff_samples == 1) {\n\tfilters = 1;\n\tUc.strcpy (cdesc, \"RBTG\");\n\tUc.strcpy (model, \"CatchLight\");\n\ttop_margin = 8; left_margin = 18; height = 2032; width = 2016;\n } else {\n\tUc.strcpy (model, \"DCB2\");\n\ttop_margin = 10; left_margin = 16; height = 2028; width = 2022;\n }\n } else if (width+height == 3144+2060) {\n if ( model.charAt(0) == 0) Uc.strcpy (model, \"Cantare\");\n if (width > height) {\n\t top_margin = 6; left_margin = 32; height = 2048; width = 3072;\n\tfilters = 0x61616161l;\n } else {\n\tleft_margin = 6; top_margin = 32; width = 2048; height = 3072;\n\tfilters = 0x16161616l;\n }\n if ( cam_mul[0] == 0 || model.charAt(0) == 'V') filters = 0;\n } else if (width == 2116) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 30);\n width -= 2 * (left_margin = 55);\n filters = 0x49494949l;\n } else if (width == 3171) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 24);\n width -= 2 * (left_margin = 24);\n filters = 0x16161616l;\n }\n } else if ( Uc.strcmp(make,\"LEICA\")==0 || Uc.strcmp(make,\"Panasonic\")==0) {\n maximum = 0xfff0;\n if ((fsize-data_offset) / (width*8/7) == height)\n load_raw = new PanasonicLoadRaw();\n if (load_raw==null) load_raw = new UnpackedLoadRaw() ;\n if (width == 2568)\n adobe_coeff (\"Panasonic\",\"DMC-LC1\");\n else if (width == 3304) {\n maximum = 0xf94c;\n width -= 16;\n adobe_coeff (\"Panasonic\",\"DMC-FZ30\");\n } else if ( width == 3330) {\n width = 3291;\n left_margin = 9;\n maximum = 0xf7f0;\nfz18:\tif (height > 2480)\n\t height = 2480 - (top_margin = 10);\n\tfilters = 0x49494949l;\n\tzero_is_bad = true;\n } else if (width == 3690) {\n maximum = 0xf7f0;\n height -= 3;\n width = 3672;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3770) {\n height = 2760;\n width = 3672;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3880) {\n maximum = 0xf7f0;\n width -= 22;\n left_margin = 6;\n adobe_coeff (\"Panasonic\",\"DMC-LX1\");\n } else if (width == 4290) {\n height--;\n width = 4248;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n } else if (width == 4330) {\n height = 2400;\n width = 4248;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n }\n } else if ( Uc.strcmp(model,\"E-1\")==0) {\n filters = 0x61616161l;\n maximum = 0xfff0;\n black = 1024;\n } else if ( Uc.strcmp(model,\"E-10\")==0) {\n maximum = 0xfff0;\n black = 2048;\n } else if (Uc.strncmp(model,\"E-20\",4)==0) {\n maximum = 0xffc0;\n black = 2560;\n } else if ( Uc.strcmp(model,\"E-300\")==0 ||\n\t Uc.strcmp(model,\"E-500\")==0) {\n width -= 20;\n maximum = 0xfc30;\n } else if (Uc.strcmp(model,\"E-330\")==0) {\n width -= 30;\n } else if (Uc.strcmp(model,\"C770UZ\")==0) {\n height = 1718;\n width = 2304;\n filters = 0x16161616l;\n load_raw = new NikonE2100LoadRaw();\n } else if (Uc.strcmp(make,\"OLYMPUS\")==0) {\n load_raw = new OlympusCseriesLoadRaw();\n if ( Uc.strcmp(model,\"C5050Z\")==0 ||\n\tUc.strcmp(model,\"C8080WZ\")==0)\n filters = 0x16161616l;\n if (Uc.strcmp(model,\"SP500UZ\")==0)\n filters = 0x49494949l;\n } else if (Uc.strcmp(model,\"N Digital\")==0) {\n height = 2047;\n width = 3072;\n filters = 0x61616161l;\n data_offset = 0x1a00;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf1e;\n } else if (Uc.strcmp(model,\"DSC-F828\")==0) {\n width = 3288;\n left_margin = 5;\n data_offset = 862144;\n load_raw = new SonyLoadRaw();\n filters = 0x9c9c9c9cl;\n colors = 4;\n Uc.strcpy (cdesc, \"RGBE\");\n } else if (Uc.strcmp(model,\"DSC-V3\")==0) {\n width = 3109;\n left_margin = 59;\n data_offset = 787392;\n load_raw = new SonyLoadRaw();\n } else if (Uc.strcmp(make,\"SONY\")==0 && raw_width == 3984) {\n adobe_coeff (\"SONY\",\"DSC-R1\");\n width = 3925;\n order = 0x4d4d;\n } else if (Uc.strcmp(model,\"DSLR-A100\")==0) {\n height--;\n load_raw = new SonyArwLoadRaw();\n maximum = 0xfeb;\n } else if (Uc.strncmp(model,\"P850\",4)==0) {\n maximum = 0xf7c;\n } else if (Uc.strcasecmp(make,\"KODAK\")==0) {\n if (filters == CTOJ.UINT_MAX) filters = 0x61616161l;\n if (Uc.strncmp(model,\"NC2000\",6)==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS3B\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS1\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS420\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460A\")==0) {\n width -= 4;\n left_margin = 2;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS660M\")==0) {\n black = 214;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS760M\")==0) {\n colors = 1;\n filters = 0;\n }\n if (load_raw.getClass().equals( EightBitLoadRaw.class))\n\tload_raw = new KodakEasyLoadRaw();\n if (Uc.strstr(model,\"DC25\") != null) {\n Uc.strcpy (model, \"DC25\");\n data_offset = 15424;\n }\n if (Uc.strncmp(model,\"DC2\",3)==0) {\n height = 242;\n if (fsize < 100000) {\n\traw_width = 256; width = 249;\n } else {\n\traw_width = 512; width = 501;\n }\n data_offset += raw_width + 1;\n colors = 4;\n filters = 0x8d8d8d8dl;\n //simple_coeff(1);\n pre_mul[1] = 1.179f;\n pre_mul[2] = 1.209f;\n pre_mul[3] = 1.036f;\n load_raw = new KodakEasyLoadRaw();\n } else if (Uc.strcmp(model,\"40\")==0) {\n Uc.strcpy (model, \"DC40\");\n height = 512;\n width = 768;\n data_offset = 1152;\n// load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC50\") != null) {\n Uc.strcpy (model, \"DC50\");\n height = 512;\n width = 768;\n data_offset = 19712;\n // load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC120\") != null) {\n Uc.strcpy (model, \"DC120\");\n height = 976;\n width = 848;\n pixel_aspect = height/0.75/width;\n// load_raw = tiff_compress == 7 ?\n//\tnew KodakJpegLoadRaw() : new KodakDc120LoadRaw();\n }\n } else if (Uc.strcmp(model,\"Fotoman Pixtura\")==0) {\n height = 512;\n width = 768;\n data_offset = 3632;\n load_raw = new KodakRadcLoadRaw();\n filters = 0x61616161l;\n //simple_coeff(2);\n } else if (Uc.strcmp(make,\"Rollei\")==0) {\n switch (raw_width) {\n case 1316:\n\theight = 1030;\n\twidth = 1300;\n\ttop_margin = 1;\n\tleft_margin = 6;\n\tbreak;\n case 2568:\n\theight = 1960;\n\twidth = 2560;\n\ttop_margin = 2;\n\tleft_margin = 8;\n }\n filters = 0x16161616l;\n load_raw = new RolleiLoadRaw();\n pre_mul[0] = 1.8f;\n pre_mul[2] = 1.3f;\n } else if ( Uc.strcmp(model,\"PC-CAM 600\")==0) {\n height = 768;\n data_offset = width = 1024;\n filters = 0x49494949l;\n load_raw = new EightBitLoadRaw();\n pre_mul[0] = 1.14f;\n pre_mul[2] = 2.73f;\n } else if ( Uc.strcmp(model,\"QV-2000UX\")==0) {\n height = 1208;\n width = 1632;\n data_offset = width * 2;\n load_raw = new EightBitLoadRaw();\n } else if (fsize == 3217760) {\n height = 1546;\n width = 2070;\n raw_width = 2080;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"QV-4000\")==0) {\n height = 1700;\n width = 2260;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xffff;\n } else if (Uc.strcmp(model,\"QV-5700\")==0) {\n height = 1924;\n width = 2576;\n //load_raw = new CasioQv5700LoadRaw();\n } else if (Uc.strcmp(model,\"QV-R51\")==0) {\n height = 1926;\n width = 2576;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.340f;\n pre_mul[2] = 1.672f;\n } else if (Uc.strcmp(model,\"EX-S100\")==0) {\n height = 1544;\n width = 2058;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.631f;\n pre_mul[2] = 1.106f;\n } else if (Uc.strcmp(model,\"EX-Z50\")==0) {\n height = 1931;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.529f;\n pre_mul[2] = 1.185f;\n } else if (Uc.strcmp(model,\"EX-Z55\")==0) {\n height = 1960;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.520f;\n pre_mul[2] = 1.316f;\n } else if (Uc.strcmp(model,\"EX-P505\")==0) {\n height = 1928;\n width = 2568;\n raw_width = 3852;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.07f;\n pre_mul[2] = 1.88f;\n } else if (fsize == 9313536) {\t/* EX-P600 or QV-R61 */\n height = 2142;\n width = 2844;\n raw_width = 4288;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.797f;\n pre_mul[2] = 1.219f;\n } else if (Uc.strcmp(model,\"EX-P700\")==0) {\n height = 2318;\n width = 3082;\n raw_width = 4672;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.758f;\n pre_mul[2] = 1.504f;\n } else if (Uc.strcmp(make,\"Nucore\")==0) {\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n if (width == 2598) {\n filters = 0x16161616l;\n //load_raw = new NucoreLoadRaw();\n flip = 2;\n }\n }\n if ( model.charAt(0)==0)\n Uc.sprintf (model, \"%dx%d\", width, height);\n if (filters == CTOJ.UINT_MAX) \n filters = 0x94949494l;\n if (raw_color != 0) adobe_coeff (make, model);\n if (thumb_offset!=0 && thumb_height==0) {\n CTOJ.fseek (ifp, thumb_offset, CTOJ.SEEK_SET);\n if (ljpeg_start (jh, 1)!=0) {\n thumb_width = jh.wide;\n thumb_height = jh.high;\n }\n }\ndng_skip:\n if (load_raw==null || height==0) is_raw = 0;\n if (flip == -1) flip = tiff_flip;\n if (flip == -1) flip = 0;\n if (cdesc.charAt(0)==0)\n Uc.strcpy (cdesc, colors == 3 ? \"RGB\":\"GMCY\");\n if ( raw_height == 0) raw_height = height;\n if ( raw_width == 0) raw_width = width;\n if (filters!= 0 && colors == 3)\n for (i=0; i < 32; i+=4) {\n if ((filters >> i & 15) == 9) {\n\tfilters |= 2 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n if ((filters >> i & 15) == 6) {\n\tfilters |= 8 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n }\n}", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "public void process(Mat rgbaImage) {\n rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n isFound = true;\n\n }", "public native double testyolo(String imgfile);", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "public static Mat imdecode(Mat buf, int flags)\n {\n\n Mat retVal = new Mat(imdecode_0(buf.nativeObj, flags));\n\n return retVal;\n }", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "public static String convertImageInStdout(String mscgen_path, String codePath){\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(); \n\t\tif (mscgen_path == \"MSCGEN PATH EMPTY\") {\n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler path not set.\";\n\t\t}\n\t\t\n\t\telse if (mscgen_path == \"MSCGEN EXE NOT FOUND\") {\n\t\t\t \n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler not found.\";\n\t\t}\n String OS = System.getProperty(\"os.name\");\n if(OS.startsWith(\"Windows\")){\n codePath = codePath.replace(\"\\\\\",\"\\\\\\\\\");\n /* \n * Ref: PLUG-5262\n * In case of windows environment if we have space in-between the compiler path \n * then we need to set parent directory as the directory of ProcessBuilder. \n */\n File f = new File(mscgen_path);\n pb.directory(f.getParentFile());\n pb.command(\"cmd.exe\", \"/c\",f.getName(),\"-T\",\"png\",\"-i\",codePath);\n }else{\n pb.command(mscgen_path,\"-T\",\"png\",\"-i\",codePath); \n }\n Process p = null;\n\t\ttry {\n\t\t\tp = pb.start();\n\t\t\tp.waitFor();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tString error=checkError(p);\n\t\tif(error!=\"\"){\n\t\t\treturn getErrorLine(error)+\",ERROR:\"+error;\n\t\t}\n\t\tBufferedImage image=null;\t\n\t\ttry {\n File f = new File(codePath+\".png\");\n\t\t\timage=ImageIO.read(f);\n \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in read\");\n\t\t} \n String imageString = null;\n ByteArrayOutputStream imageInBytes = new ByteArrayOutputStream();\n\t try {\n\t\t\tImageIO.write(image, \"png\", imageInBytes);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in write\");\n\t\t}\n\t byte[] imageBytes = imageInBytes.toByteArray();\n\t imageString = DatatypeConverter.printBase64Binary(imageBytes);\n\t try {\n\t\t\timageInBytes.close();\n\t\t\tp.getInputStream().close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in close\");\n }\n\t\treturn imageString;\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap imageBitmap = (Bitmap) extras.get(\"data\");\n\n detextTextFromImage(imageBitmap);\n\n }\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}" ]
[ "0.79610443", "0.7828245", "0.7564687", "0.75239044", "0.73820937", "0.69801897", "0.684983", "0.6783208", "0.6680721", "0.6553433", "0.62913823", "0.59935087", "0.5895062", "0.58673024", "0.58078295", "0.5553901", "0.54749936", "0.5414112", "0.5390853", "0.5376994", "0.5345595", "0.53421414", "0.53400993", "0.5334889", "0.5324393", "0.5296691", "0.52839", "0.5276016", "0.52149236", "0.5208231", "0.5194746", "0.5187706", "0.5175724", "0.51710016", "0.51657754", "0.5153779", "0.5145512", "0.514279", "0.5141554", "0.512942", "0.51275593", "0.51270497", "0.510147", "0.50916004", "0.5084843", "0.50753623", "0.5061207", "0.504913", "0.50468105", "0.50442237", "0.50428784", "0.5036029", "0.5030334", "0.5012755", "0.50092155", "0.4980199", "0.49799317", "0.49613678", "0.49583325", "0.49542567", "0.4935367", "0.493016", "0.49236313", "0.49140757", "0.48934752", "0.48932388", "0.48891672", "0.48678914", "0.48632693", "0.48609063", "0.4849723", "0.4842697", "0.48408023", "0.4834577", "0.48340482", "0.48229265", "0.48185536", "0.48131657", "0.4812154", "0.4807973", "0.48075214", "0.4807231", "0.4785519", "0.47767425", "0.47666228", "0.4764589", "0.47559428", "0.47543228", "0.47536606", "0.4753383", "0.47523397", "0.47508734", "0.47487462", "0.47473976", "0.47375908", "0.47348046", "0.47323176", "0.47322252", "0.47269705", "0.47253853" ]
0.8523063
0
Both detects and decodes graphical code
public String detectAndDecode(Mat img, Mat points) { return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "public abstract String visualize(byte input);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "static public void visualize(PGraphics g, GCodeList gcodes) {\n float x = 0;\n float y = 0;\n float z = 0;\n \n float x2 = x;\n float y2 = y;\n float z2 = z;\n\n g.noFill();\n g.beginShape(LINES); \n\n for (int i = 0; i < gcodes.size(); i++) {\n GCode gcode = gcodes.get(i);\n if (gcode.getCode().equals(\"G0\") || gcode.getCode().equals(\"G1\")) { \n if (gcode.hasArg(\"X\")) { x2 = Float.parseFloat(gcode.getArg(\"X\")); }\n if (gcode.hasArg(\"Y\")) { y2 = Float.parseFloat(gcode.getArg(\"Y\")); }\n if (gcode.hasArg(\"Z\")) { z2 = Float.parseFloat(gcode.getArg(\"Z\")); } \n if (gcode.getCode().equals(\"G1\")) {\n g.stroke(0,128,255);\n } else {\n g.stroke(255,128,0);\n }\n if (g.is2D()) { \n g.vertex(x,y);\n g.vertex(x2,y2); \n } else { \n g.vertex(x,y,z);\n g.vertex(x2,y2,z2);\n } \n x = x2;\n y = y2;\n z = z2;\n } else {\n System.out.println(\"not (yet) supported code \" +gcodes.get(i));\n }\n }\n g.endShape();\n }", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "private void drawJavaString(JComponent frame) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\t// opens test.java\n\t\t\tbr = new BufferedReader(new FileReader(\"test.java\"));\n\t\t\t// variables to keep track of message\n\t\t\t//String message = \"<html>\";\n\t\t\tString message = \"\";\n\t\t\tString sCurrentLine;\n\t\t\t// loops through each line to read file\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tmessage += sCurrentLine + \"\\r\";\n\t\t\t}\n\t\t\t//message += \"</html>\";\n\t\t\t// sets JTextPane codeLabel attributes\n\t\t\tcodeLabel.setContentType(\"text/plain\");\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setOpaque(false);\n\t\t\tcodeLabel.setEditable(true);\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n\t\t\tcodeLabel.setForeground(Color.MAGENTA);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "@Override\n\tpublic void updateCodeCanvas() {\n\n\t}", "public void displayCode (Graphics g){\r\n\t\tfor (int i = 0 ; i < counter; i++){\r\n\t\t\tif (code.charAt(i) == '1'){\r\n\t\t\t\tdrawOne(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '2'){\r\n\t\t\t\tdrawTwo(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '3'){\r\n\t\t\t\tdrawThree(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '4'){\r\n\t\t\t\tdrawFour(g);\r\n\t\t\t\tdelay(500);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tdisplay = false; //display is equal to false when displaying code has finished\r\n\t}", "public boolean generateImageFromText();", "public void setQrcodeDecodeRect(int x, int y, int w, int h);", "public native int getRenderingIntent() throws MagickException;", "public void deSteganographise() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\tArrayList<Character> deStegData = new ArrayList<Character>();\n\t\t\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\tfor(int i = 0;;i++) {\n\t\t\t\tSystem.out.println(\"fucking herp\");\n\t\t\t\t//System.in.read();\n\n\t\t\t\t\n\t\t\t\tFile f = new File(\"downloaded/image\" + i + \".png\");\n\t\t\t\tSystem.out.println(\"file is: \" + f.getName());\n\t\t\t\t\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\tSystem.out.println(\"in deStego if loop\");\n\t\t\t\t\t\n\t\t\t\t\t//System.in.read();\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.reveal(hidingText);\n\t\t\t\t\tString deSteg = hidingText.getText();\n\t\t\t\t\t\n\t\t\t\t\tif(deSteg.length() < 1) {\n\t\t\t\t\t\tSystem.out.println(\"no data in image!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"size of hiding text: \" + hidingText.getSize());\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deSteg data: \" + deSteg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//split the extracted string into data and command message\n\t\t\t\t\t\tString[] split = deSteg.split(\":\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString cC = split[0];\n\t\t\t\t\t\tString stegText = split[2];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j = 0; j < stegText.length(); j++) {\n\t\t\t\t\t\t\tdeStegData.add(stegText.charAt(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deStegText: \" + stegText);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Finished Desteganography\");\n\t\t\t\t\tsteganographise(deStegData);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InvalidTypeException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RevealingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t\t\n\t\t\n\t}", "void barcodeCaptured(String barcodeString);", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "TextDecoder getTextDecoder();", "@Override\n\tpublic boolean saveBarCode(int kodPoint, String readedCod) {\n\t\treturn false;\n\t}", "private void generateGraphCode() {\n StringBuilder finalCode = new StringBuilder(\"digraph G{\\n\");\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n finalCode.append(generateSubGraphCode(workingPanel.getConnections(), idx));\n }\n finalCode.append(\"\\n}\");\n JFrame generatedCodeFrame = new JFrame(\"Code Generator\");\n JTextArea codeDisplay = new JTextArea();\n generatedCodeFrame.add(codeDisplay);\n codeDisplay.append(finalCode.toString());\n generatedCodeFrame.setSize(400, 700);\n generatedCodeFrame.setVisible(true);\n }", "void setTextDecoder(TextDecoder decoder);", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "int hitGfx();", "public void render() {\r\n Color geneColor=null;\r\n\r\n if(isChanged) {\r\n this.removeChild(predRect);\r\n predRect = new PPath();\r\n\r\n if(type == SegmentInfo.TYPE_AUTO) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 10, 10));\r\n else if(type == SegmentInfo.TYPE_MANUAL) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 0, 0));\r\n\r\n if(this.isSelected()) {\r\n if(this.sign < 0) geneColor = this.SELECTED_DOWN_COLOR;\r\n else geneColor = this.SELECTED_UP_COLOR;\r\n }\r\n else {\r\n if(this.sign < 0) geneColor = this.DOWN_COLOR;\r\n else geneColor = this.UP_COLOR;\r\n }\r\n\r\n predRect.setPaint(geneColor);\r\n this.addChild(predRect);\r\n isChanged=false;\r\n }\r\n }", "private void readAndEditFrame()\n\t{\n\t\tmirror();\n\t\tinvert();\n\t\tgreenScreen();\n\t\tbackgroundSubtraction();\n\t}", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public abstract String visualizar();", "private void displayExp(int disp_nr){\r\n\t\tswitch (disp_nr){\r\n\t\t\tcase 0 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(200,100), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Bei 'Fletcher's Checksum' handelt es sich, wie beim Namen ersichtlich,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"um einen Pruefsummen-Algorithmus zur Erkennung von Datenuebertragungsfehlern.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Er ist aehnlich stark wie das CRC-Verfahren,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"hat aber einen teils wesentlich geringeren Rechenaufwand.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Wir sehen uns den Algorithmus in 2 Faellen an:\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Korrekte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Fehlerhafte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Doch zuerst muessen die Pruefsummen selbst berechnet werden.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"In der urspruenglichen Variante des Algorithmus wird hierfuer der Datenstream\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"in Bytes (8-Bit Bloecke) zerlegt...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 1 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun stehen die zwei Pruefsummen fest.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Damit aber die Qualitaet von CRC in Sachen Fehlererkennung erreicht wird,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"muessen diese noch einmal verarbeitet werden und zwar wie folgt:\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Diese 2 Werte werden nun an die zu versendende Nachricht drangehaengt\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Zur Fehlerpruefung muss der Empfaenger nun den Algorithmus erneut\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"auf die empfangene Nachricht, samt Prueffeldern, andwenden\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme (sum1 + sum2) ist 0! Somit kann von einer\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"korrekten uebertragung der Daten ausgegangen werden!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 5 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun ein anderes Szenario: Bei der uebertragung ist ein Fehler \", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"aufgetreten - hier : in Byte #\" + error_position, null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 6 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Wir pruefen erneut wie vorher...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 7 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme ist NICHT 0. Somit weiss der Empfaenger,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"dass ein Fehler aufgetreten ist\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Es wurden\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim ersten Errechnen von sum1 und sum2 \"+op_counts[0]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim Pruefen der Nachricht jeweils \"+op_counts[2]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"... durchgefuehrt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Man erkennt, dass die Zeitkomplexitaet ( der Hauptschleife ) bei n*4 liegt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"wobei n die Laenge der Nachricht ( die zu erweitern oder zu pruefen ist ) in Bytes ist.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Dies steht im Gegensatz zu - zB. - dem CRC-Verfahren, welches (im schlimmsten Fall) von der Anzahl der einzelnen Bits abhaengt.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Fazit: Ein einfacher, aber effektiver Algorithmus zur Erkennung\" +\r\n\t\t\t\t\t\t\" von uebertragungsfehlern. Hoffentlich war diese Animation aufschlussreich!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10 : \r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Schwaeche dieses Verfahrens liegt darin, dass es nicht zwischen den Bytes 11111111 und 00000000,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"bzw. 255 und 0 ( in Dezimal ) unterscheiden kann, weswegen sich die Pruefsummen nicht geaendert und folgich der Fehler\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"leider nicht entdeckt wurde\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t}", "Barcode getBarcode() {\n Barcode barcode = null;\n List<BarcodeGraphic> barcodeList = mGraphicOverlay.getGraphics();\n\n if (!barcodeList.isEmpty()) {\n Log.d(TAG, \"Barcode list is not empty\");\n barcode = barcodeList.get(0).getBarcode();\n }\n\n return barcode;\n }", "public void drawString(String var1, int var2, int var3, int var4, int var5) {\n boolean var11 = field_759;\n\n try {\n byte[] var6 = field_748[var4];\n int var7 = 0;\n if(var11 || var7 < var1.length()) {\n do {\n label165: {\n if(var1.charAt(var7) == 64 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 64) {\n label166: {\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"red\")) {\n var5 = 16711680;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"lre\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"yel\")) {\n var5 = 16776960;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gre\")) {\n var5 = '\\uff00';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"blu\")) {\n var5 = 255;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"cya\")) {\n var5 = '\\uffff';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"mag\")) {\n var5 = 16711935;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"whi\")) {\n var5 = 16777215;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"bla\")) {\n var5 = 0;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"dre\")) {\n var5 = 12582912;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ora\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ran\")) {\n var5 = (int)(Math.random() * 1.6777215E7D);\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or1\")) {\n var5 = 16756736;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or2\")) {\n var5 = 16740352;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or3\")) {\n var5 = 16723968;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr1\")) {\n var5 = 12648192;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr2\")) {\n var5 = 8453888;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr3\")) {\n var5 = 4259584;\n }\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n if(var1.charAt(var7) == 126 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 126) {\n char var8 = var1.charAt(var7 + 1);\n char var9 = var1.charAt(var7 + 2);\n char var10 = var1.charAt(var7 + 3);\n if(var8 >= 48 && var8 <= 57 && var9 >= 48 && var9 <= 57 && var10 >= 48 && var10 <= 57) {\n var2 = Integer.parseInt(var1.substring(var7 + 1, var7 + 4));\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n int var13 = field_749[var1.charAt(var7)];\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2 + 1, var3, 0, var6);\n }\n\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2, var3 + 1, 0, var6);\n }\n\n this.method_268(var13, var2, var3, var5, var6);\n var2 += var6[var13 + 7];\n }\n\n ++var7;\n } while(var7 < var1.length());\n\n }\n } catch (Exception var12) {\n System.out.println(\"drawstring: \" + var12); // authentic System.out.println\n var12.printStackTrace();\n }\n }", "public void showNet()\n/* */ {\n/* 482 */ update(getGraphics());\n/* */ }", "private void showSourceCode(boolean whole){\r\n\t\tsc = lang.newSourceCode(new Coordinates(50, 220), \"\", null, sc_props);\r\n\t\t\r\n\t\tsc.addCodeLine(\"fletcher(byte[] message){\", null, 0, null); // #0\r\n\t\tsc.addCodeLine(\"int i = 0; int sum1 = 0; int sum2 = 0;\", null, 1, null); // #1\r\n\t\tsc.addCodeLine(\"for(; i < message.length; i++){\", null, 1, null); // #2\r\n\t\tsc.addCodeLine(\"sum1 = (sum1 + message[i]) % 255 // 2 Operationen\", null, 2, null); // #3\r\n\t\tsc.addCodeLine(\"sum2 = (sum1 + sum2) % 255 // 2 Operationen\", null, 2, null); // #4\r\n\t\tsc.addCodeLine(\"}\", null, 1, null); // #5\r\n\t\t\r\n\t\tif(whole){\r\n\t\t\tsc.addCodeLine(\"int check1 = 255 - ((sum1 + sum2) % 255) // 3 Operationen\", null, 1, null); // #6\r\n\t\t\tsc.addCodeLine(\"int check2 = 255 - ((sum1 + check1) % 255) // 3 Operationen\", null, 1, null); // #7\r\n\t\t\tsc.addCodeLine(\"message = append(message,check1) // Erweitert arrays um ein angegebenes Element\", null, 1, null); // #8\r\n\t\t\tsc.addCodeLine(\"message = append(message,check2)\", null, 1, null); // #9\r\n\t\t\tsc.addCodeLine(\"return message\", null, 1, null); // #10\r\n\t\t}\r\n\t\t\r\n\t\tsc.addCodeLine(\"}\", null, 0, null); // #11\r\n\t}", "void mo27482a(String str, Bitmap bitmap);", "public void showbitmap4() {\n \n \t}", "public byte[] code();", "public static void graphTree(CommonTree tree){\n\t\tDOTTreeGenerator gen = new DOTTreeGenerator(); \n\t\tStringTemplate st = gen.toDOT(tree); \n\n\t\tString type = \"jpg\";\n\t\tGraphViz gv = new GraphViz();\n\t\tgv.addln(st.toString());\n\n\t\tSystem.out.println(\"Before\");\n\n\t\tImageIcon img = new ImageIcon(gv.getGraph(gv.getDotSource(), type));\n\n\t\tSystem.out.println(\"After\");\n\n\t\tint newHeight = 775, newWidth = 1255; \n\t\t/* This is for writing the image to disk*/\n\t\tFile out = new File(\"graph.\" + type); // Linux\n\t\tgv.writeGraphToFile( gv.getGraph( gv.getDotSource(), type ), out );\n\t\t//\t\tif (iw > newWidth){\n\t\t//\t\t\tnewHeight = newWidth * ih/iw ;\n\t\t//\t\t\tBufferedImage resizedImg = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB);\n\t\t//\t\t\tGraphics2D g2 = resizedImg.createGraphics();\n\t\t//\t\t\t\n\t\t//\t\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\t//\t\t\tg2.drawImage(img.getImage(), 0, 0, newWidth, newHeight, null);\n\t\t//\t\t\tg2.dispose();\n\t\t//\t\t\timg = new ImageIcon(resizedImg);\n\t\t//\t\t}\n\n\t\tJFrame jf = new JFrame(\"Abstract Syntax Tree\");\n\t\tjf.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n\t\tJLabel photographLabel = new JLabel();\n\t\tphotographLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t//private Image getScaledImage(Image srcImg, int w, int h){\n\n\n\t\tphotographLabel.setIcon(img);\n\t\tJScrollPane scrollPane = new JScrollPane(photographLabel);\n\t\tjf.add(scrollPane, BorderLayout.CENTER);\n\t\tjf.pack();\n\t\tjf.setSize(newWidth+50, newHeight+50);\n\t\tjf.setResizable(true);\n\t\tjf.setVisible(true);\n\t\t/*end graphical display*/\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n ArrayList<String> Tokens = new ArrayList<String>();\n\n String CODE = jTextArea1.getText();\n //String CODE=\"{float cos, x, n, term, eps, alt;\";\n String code = CODE.replaceAll(\"(?:/\\\\*(?:[^*]|(?:\\\\*+[^*/]))*\\\\*+/)|(?://.*)\", \"\")\n .replace(\"+\", \" + \")\n .replace(\"-\", \" - \")\n .replace(\"*\", \" * \")\n .replace(\"/\", \" / \")\n .replace(\"==\", \" == \")\n .replace(\">=\", \" >= \")\n .replace(\"<=\", \" <= \")\n .replace(\"!=\", \" != \")\n .replace(\"&&\", \" && \")\n .replace(\"(\", \" ( \")\n .replace(\")\", \" ) \")\n .replace(\"{\", \" { \")\n .replace(\"}\", \" } \")\n .replace(\"[\", \" [ \")\n .replace(\"]\", \" ] \")\n .replace(\".\", \" . \")\n .replace(\",\", \" , \")\n .replace(\";\", \" ; \")\n .replace(\":\", \" ; \");\n\n String[] output = code.split(\"\\\\n+\");\n output2 = new String[output.length][];\n for (int i = 0; i < output.length; i++) {\n output2[i] = functionCall(output[i].split(\"\\\\s+\"));\n }\n //for(int i=0;i<output2.length;i++){\n // for(int j=0;j<output2[i].length;j++){\n // System.out.print(output2[i][j]+\" \");\n // }\n // System.out.println();\n //}\n output = functionCall(output);\n for (int j = 0; j < output2.length; j++) {\n for (int i = 0; i < output2[j].length; i++) {\n\n switch (output2[j][i]) {\n //DataTypes\n case (\"int\"):\n Tokens.add(\"int\");\n System.out.println(\"int --> DATA TYPE\");\n break;\n case (\"float\"):\n Tokens.add(\"float\");\n System.out.println(\"float --> DATA TYPE\");\n break;\n\n //Reserved Words\n case (\"for\"):\n Tokens.add(\"for\");\n System.out.println(\"for --> Reserved Word\");\n break;\n case (\"while\"):\n Tokens.add(\"while\");\n System.out.println(\"while --> Reserved Word\");\n break;\n case (\"if\"):\n Tokens.add(\"if\");\n System.out.println(\"if --> Reserved Word \");\n break;\n case (\"else\"):\n Tokens.add(\"else\");\n System.out.println(\"else --> Reserved Word \");\n break;\n //Binary Operators\n case (\"+\"):\n Tokens.add(\"+\");\n System.out.println(\"+ -->Binary Operator \");\n break;\n case (\"-\"):\n Tokens.add(\"-\");\n System.out.println(\"- -->Binary Operator \");\n break;\n case (\"*\"):\n Tokens.add(\"*\");\n System.out.println(\"* -->Binary Operator \");\n break;\n case (\"/\"):\n Tokens.add(\"/\");\n System.out.println(\"/ -->Binary Operator \");\n break;\n\n //Symbols \n case (\"\"):\n Tokens.add(\"\");\n System.out.println(\"\");\n break;\n case (\"=\"):\n Tokens.add(\"=\");\n System.out.println(\"= -->Symbol \");\n break;\n case (\"<\"):\n Tokens.add(\"<\");\n System.out.println(\"< -->Symbol \");\n break;\n case (\">\"):\n Tokens.add(\">\");\n System.out.println(\"> -->Symbol \");\n break;\n case (\"(\"):\n Tokens.add(\"(\");\n System.out.println(\"( -->Symbol \");\n break;\n case (\")\"):\n Tokens.add(\")\");\n System.out.println(\") -->Symbol \");\n break;\n case (\"{\"):\n Tokens.add(\"{\");\n System.out.println(\"{ -->Symbol \");\n break;\n case (\"}\"):\n Tokens.add(\"}\");\n System.out.println(\"} -->Symbol \");\n break;\n case (\";\"):\n Tokens.add(\";\");\n System.out.println(\"; -->Symbol \");\n break;\n case (\",\"):\n Tokens.add(\",\");\n System.out.println(\", -->Symbol \");\n break;\n case (\".\"):\n Tokens.add(\".\");\n System.out.println(\". -->Symbol \");\n break;\n case (\"<=\"):\n Tokens.add(\"<=\");\n System.out.println(\"<= -->Symbol \");\n break;\n case (\">=\"):\n Tokens.add(\">=\");\n System.out.println(\">= -->Symbol \");\n break;\n case (\"!=\"):\n Tokens.add(\"!=\");\n System.out.println(\"!= -->Symbol \");\n break;\n case (\"==\"):\n Tokens.add(\"==\");\n System.out.println(\"== -->Symbol \");\n break;\n\n default:\n String c = output2[j][i];\n\n char ch[] = c.toCharArray();\n\n if (Character.isDigit(ch[0])) {\n Tokens.add(\"Integer Lateral\");\n System.out.println(output2[j][i] + \" --> Integer Lateral \");\n } else if (Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } else if (c.matches(\"\") && Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } // else if(c.contains(\"=\"))\n // {\n // // symbols.contains(Character.toString(code.charAt(i)))\n // System.out.println(output[i] + \" --> Symbol \");\n // }\n else {\n System.out.println(output2[j][i] + \" --> Invalid Token \");\n }\n break;\n }\n }\n }\n\n\n }", "public native void annotateImage(DrawInfo info);", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }", "private void decodeOpcode(int opcode) {\r\n\t\tSystem.out.println(pc);\r\n\t\tSystem.out.println(Integer.toHexString(opcode));\r\n\t\t//0-codes\r\n\t\tswitch (opcode) {\t\t\r\n\t\tcase 0x00E0:\r\n\t\t\t//Clears the screen.\r\n\t\t\tOpcode.clearScreen(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x00EE:\r\n\t\t\t//Returns from a subroutine.\r\n\t\t\tOpcode.returnFromSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//1-codes through 7-codes\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0x1000:\r\n\t\t\t//1NNN. Jumps to address NNN.\r\n\t\t\tOpcode.jumpToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x2000:\r\n\t\t\t//2NNN. Calls subroutine at NNN.\r\n\t\t\tOpcode.callSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x3000:\r\n\t\t\t//3XNN. Skips the next instruction if VX = NN.\r\n\t\t\tOpcode.skipIfEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x4000:\r\n\t\t\t//4XNN. Skips the next instruction if VX != NN.\r\n\t\t\tOpcode.skipIfNotEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x5000:\r\n\t\t\t//5XY0. Skips the next instruction if VX = VY.\r\n\t\t\tOpcode.skipIfEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x6000:\r\n\t\t\t//6XNN. Sets VX to NN.\r\n\t\t\tOpcode.setRegisterToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x7000:\r\n\t\t\t//7XNN. Adds NN to VX.\r\n\t\t\tOpcode.addImmediateToRegister(opcode, this);\r\n\t\t}\r\n\t\t\r\n\t\t//8-codes and 9-codes.\r\n\t\tswitch (opcode & 0xF00F) {\r\n\t\tcase 0x8000:\r\n\t\t\t//8XY0. Sets VX to the value of VY.\r\n\t\t\tOpcode.setRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8001:\r\n\t\t\t//8XY1. Sets VX to the value of VX|VY.\r\n\t\t\tOpcode.setRegisterToRegisterOr(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8002:\r\n\t\t\t//8XY2. Sets VX to the value of VX&VY.\r\n\t\t\tOpcode.setRegisterToRegisterAnd(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8003:\r\n\t\t\t//8XY3. Sets VX to the value of VX^VY.\r\n\t\t\tOpcode.setRegisterToRegisterXor(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8004:\r\n\t\t\t//8XY4. Adds VY to VX. VF is set to 1 when there is a carry, otherwise 0.\r\n\t\t\tOpcode.addRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8005:\r\n\t\t\t//8XY5. VY is subtracted from VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterXFromRegisterY(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8006:\r\n\t\t\t//8XY6. Shifts VX right by one. VF is set to the value of the LSB before the shift.\r\n\t\t\tOpcode.shiftRegisterRight(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8007:\r\n\t\t\t//8XY7. Sets VX to VY minus VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterYFromRegisterX(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x800E:\r\n\t\t\t//8XYE. Shifts VX left by one. VF is set to the value of the MSB before the shift.\r\n\t\t\tOpcode.shiftRegisterLeft(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x9000:\r\n\t\t\t//9XY0. Skips the next instruction if VX != VY.\r\n\t\t\tOpcode.skipIfNotEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//A-codes through D-codes.\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0xA000:\r\n\t\t\t//ANNN. Sets I to the address NNN.\r\n\t\t\tOpcode.setIndexToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xB000:\r\n\t\t\t//BNNN. Jumps to the address NNN plus V0.\r\n\t\t\tOpcode.jumpToImmediatePlusRegister0(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xC000:\r\n\t\t\t//CXNN. Sets VX to the result of a rand(255)&NN.\r\n\t\t\tOpcode.setRegisterToRandom(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xD000:\r\n\t\t\t//DXYN. Draws a sprite at coordinate (VX, VY) that has a width of 8 pixels \r\n\t\t\t//and a height of N pixels.\r\n\t\t\tOpcode.drawSprite(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//E-codes and F-codes.\r\n\t\tswitch (opcode & 0xF0FF) {\r\n\t\tcase 0xE09E:\r\n\t\t\t//EX9E. Skips the next instruction if the key stored in VX is pressed.\r\n\t\t\tOpcode.skipIfKeyPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xE0A1:\r\n\t\t\t//EXA1. Skips the next instruction if the key stored in VX isn't pressed.\r\n\t\t\tOpcode.skipIfKeyNotPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF007:\r\n\t\t\t//FX07. Sets VX to the value of the delay timer.\r\n\t\t\tOpcode.setRegisterToDelay(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF00A:\r\n\t\t\t//FX0A. A key press is awaited, and then stored in VX. Blocking operation.\r\n\t\t\tOpcode.awaitKeyPress(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF015:\r\n\t\t\t//FX15. Sets the delay timer to VX.\r\n\t\t\tOpcode.setDelayToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF018:\r\n\t\t\t//FX18. Sets the sound timer to VX.\r\n\t\t\tOpcode.setSoundToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF01E:\r\n\t\t\t//FX1E. Adds VX to I.\r\n\t\t\tOpcode.addRegisterToIndex(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF029:\r\n\t\t\t//FX29. Sets I to the location of the sprite for the character in VX.\r\n\t\t\tOpcode.setIndexToSpriteLocation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF033:\r\n\t\t\t//FX33. Stores the binary-coded decimal representation of VX.\r\n\t\t\tOpcode.storeBinaryRepresentation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF055:\r\n\t\t\t//FX55. Stores V0 to VX in memory starting at address I.\r\n\t\t\tOpcode.loadRegistersToMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF065:\r\n\t\t\t//FX65. Fills V0 to VX with values from memory starting at address I.\r\n\t\t\tOpcode.loadRegistersFromMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "Code getCode();", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private void processTextRecognitionResult(FirebaseVisionText texts) {\n List<FirebaseVisionText.Block> blocks = texts.getBlocks();\n if (blocks.size() == 0) {\n Toast.makeText(getApplicationContext(), \"onDevice: No text found\", Toast.LENGTH_SHORT).show();\n return;\n }\n mGraphicOverlay.clear();\n for (int i = 0; i < blocks.size(); i++) {\n List<FirebaseVisionText.Line> lines = blocks.get(i).getLines();\n for (int j = 0; j < lines.size(); j++) {\n List<FirebaseVisionText.Element> elements = lines.get(j).getElements();\n for (int k = 0; k < elements.size(); k++) {\n GraphicOverlay.Graphic textGraphic = new TextGraphic(mGraphicOverlay, elements.get(k));\n mGraphicOverlay.add(textGraphic);\n\n }\n }\n }\n }", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "public boolean translateImageToText();", "Bitmap mo27481a(String str);", "private void loadJava(byte[] encodedData, int offset, int len, String file){\n try{\n PngReader reader = new PngReader();\n pixels = reader.read(new ByteArrayInputStream(encodedData, offset, len));\n width = reader.width;\n height = reader.height;\n handle = -1;\n pixels.position(0).limit(pixels.capacity());\n }catch(Exception e){\n throw new ArcRuntimeException(\"Failed to load PNG data\" + (file == null ? \"\" : \" (\" + file + \")\"), e);\n }\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n inactivityTimer.onActivity();\n\n boolean fromLiveScan = barcode != null;\n if (fromLiveScan) {\n // Then not from history, so beep/vibrate and we have an image to draw on\n beepManager.playBeepSoundAndVibrate();\n }\n\n //rawResult.getText() 结果\n if (rawResult == null || TextUtils.isEmpty(rawResult.getText())) {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeFailed();\n }\n } else {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeSuccess(barcode, rawResult.getText());\n }\n }\n\n }", "public void setDrawCodes(boolean draw) {\r\n this.drawCodes = draw;\r\n }", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public static void main(String[] args) {\n MyImageVector.Double img = new MyImageVector.Double(new Loader().loadSVGDocument(\"D:\\\\sample_images_PA\\\\trash_test_mem\\\\images_de_test_pr_figure_assistant\\\\test_scaling_SVG.svg\"));\n //MyImage2D img = new MyImage2D.Double(0, 0, \"D:\\\\sample_images_PA\\\\trash_test_mem\\\\mini\\\\focused_Series010.png\");\n img.addAssociatedObject(new MyRectangle2D.Double(10, 10, 128, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(200, 20, 256, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(100, 10, 256, 128));\n MyPoint2D.Double text = new MyPoint2D.Double(220, 220);\n text.setText(new ColoredTextPaneSerializable(new StyledDoc2Html().reparse(\"<i>test<i>\"), \"\"));\n img.addAssociatedObject(text);\n CheckLineArts iopane = new CheckLineArts(img, 1.5f, true);\n if (!iopane.noError) {\n int result = JOptionPane.showOptionDialog(null, new Object[]{iopane}, \"Check stroke width of line arts\", JOptionPane.CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[]{\"Accept automated solution\", \"Ignore\"}, null);\n if (result == JOptionPane.OK_OPTION) {\n //--> replace objects with copy\n Object strokeData = iopane.getModifiedStrokeData();\n if (strokeData instanceof ArrayList) {\n img.setAssociatedObjects(((ArrayList<Object>) strokeData));\n// for (Object string : img.getAssociatedObjects()) {\n// if (string instanceof PARoi) {\n// System.out.println(((PARoi) string).getStrokeSize());\n// }\n// }\n } else if (strokeData instanceof String) {\n ((MyImageVector) img).setSvg_content_serializable((String) strokeData);\n ((MyImageVector) img).reloadDocFromString();\n }\n }\n }\n System.exit(0);\n }", "public void vision()\n {\n NIVision.IMAQdxGrab(session, colorFrame, 1);\t\t\t\t\n RETRO_HUE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro hue min\", RETRO_HUE_RANGE.minValue);\n\t\tRETRO_HUE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro hue max\", RETRO_HUE_RANGE.maxValue);\n\t\tRETRO_SAT_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro sat min\", RETRO_SAT_RANGE.minValue);\n\t\tRETRO_SAT_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro sat max\", RETRO_SAT_RANGE.maxValue);\n\t\tRETRO_VAL_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro val min\", RETRO_VAL_RANGE.minValue);\n\t\tRETRO_VAL_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro val max\", RETRO_VAL_RANGE.maxValue);\n\t\tAREA_MINIMUM = SmartDashboard.getNumber(\"Area min %\");\n\t\t//MIN_RECT_WIDTH = SmartDashboard.getNumber(\"Min Rect Width\", MIN_RECT_WIDTH);\n\t\t//MAX_RECT_WIDTH = SmartDashboard.getNumber(\"Max Rect Width\", MAX_RECT_WIDTH);\n\t\t//MIN_RECT_HEIGHT = SmartDashboard.getNumber(\"Min Rect Height\", MIN_RECT_HEIGHT);\n\t\t//MAX_RECT_HEIGHT= SmartDashboard.getNumber(\"Max Rect Height\", MAX_RECT_HEIGHT);\n\t\t\n\t\t//SCALE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Scale Range Min\");\n\t\t//SCALE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Scale Range Max\");\n\t\t//MIN_MATCH_SCORE = (int)SmartDashboard.getNumber(\"Min Match Score\");\n //Look at the color frame for colors that fit the range. Colors that fit the range will be transposed as a 1 to the binary frame.\n\t\t\n\t\tNIVision.imaqColorThreshold(binaryFrame, colorFrame, 255, ColorMode.HSV, RETRO_HUE_RANGE, RETRO_SAT_RANGE, RETRO_VAL_RANGE);\n\t\t//Send the binary image to the cameraserver\n\t\tif(cameraView.getSelected() == BINARY)\n\t\t{\n\t\t\tCameraServer.getInstance().setImage(binaryFrame);\n\t\t}\n\n\t\tcriteria[0] = new NIVision.ParticleFilterCriteria2(NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA, AREA_MINIMUM, 100.0, 0, 0);\t\t\n\t\t\n NIVision.imaqParticleFilter4(binaryFrame, binaryFrame, criteria, filterOptions, null);\n\n // NIVision.RectangleDescriptor rectangleDescriptor = new NIVision.RectangleDescriptor(MIN_RECT_WIDTH, MAX_RECT_WIDTH, MIN_RECT_HEIGHT, MAX_RECT_HEIGHT);\n// \n// //I don't know\n// NIVision.CurveOptions curveOptions = new NIVision.CurveOptions(NIVision.ExtractionMode.NORMAL_IMAGE, 0, NIVision.EdgeFilterSize.NORMAL, 0, 1, 1, 100, 1,1);\n// NIVision.ShapeDetectionOptions shapeDetectionOptions = new NIVision.ShapeDetectionOptions(1, rectAngleRanges, SCALE_RANGE, MIN_MATCH_SCORE);\n// NIVision.ROI roi = NIVision.imaqCreateROI();\n//\n// NIVision.DetectRectanglesResult result = NIVision.imaqDetectRectangles(binaryFrame, rectangleDescriptor, curveOptions, shapeDetectionOptions, roi);\n// //Dummy rectangle to start\n// \n// NIVision.RectangleMatch bestMatch = new NIVision.RectangleMatch(new PointFloat[]{new PointFloat(0.0, 0.0)}, 0, 0, 0, 0);\n// \n// //Find the best matching rectangle\n// for(NIVision.RectangleMatch match : result.array)\n// {\n// \tif(match.score > bestMatch.score)\n// \t{\n// \t\tbestMatch = match;\n// \t}\n// }\n// SmartDashboard.putNumber(\"Rect height\", bestMatch.height);\n// SmartDashboard.putNumber(\"Rect Width\", bestMatch.width);\n// SmartDashboard.putNumber(\"Rect rotation\", bestMatch.rotation);\n// SmartDashboard.putNumber(\"Rect Score\", bestMatch.score);\n \n //Report how many particles there are\n\t\tint numParticles = NIVision.imaqCountParticles(binaryFrame, 1);\n\t\tSmartDashboard.putNumber(\"Masked particles\", numParticles);\n\t\t\n \n\t\tif(numParticles > 0)\n\t\t{\n\t\t\t//Measure particles and sort by particle size\n\t\t\tVector<ParticleReport> particles = new Vector<ParticleReport>();\n\t\t\tfor(int particleIndex = 0; particleIndex < numParticles; particleIndex++)\n\t\t\t{\n\t\t\t\tParticleReport par = new ParticleReport();\n\t\t\t\tpar.Area = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA);\n\t\t\t\tpar.AreaByImageArea = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA);\n\t\t\t\tpar.BoundingRectTop = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_TOP);\n\t\t\t\tpar.BoundingRectLeft = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_LEFT);\n\t\t\t\tpar.BoundingRectHeight = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_HEIGHT);\n\t\t\t\tpar.BoundingRectWidth = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_WIDTH);\n\t\t\t\tparticles.add(par);\n\n\t\t\t}\n\t\t\tparticles.sort(null);\n\n\t\t\t//This example only scores the largest particle. Extending to score all particles and choosing the desired one is left as an exercise\n\t\t\t//for the reader. Note that this scores and reports information about a single particle (single L shaped target). To get accurate information \n\t\t\t//about the location of the tote (not just the distance) you will need to correlate two adjacent targets in order to find the true center of the tote.\n//\t\t\tscores.Aspect = AspectScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Aspect\", scores.Aspect);\n//\t\t\tscores.Area = AreaScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Area\", scores.Area);\n//\t\t\tboolean isTote = scores.Aspect > SCORE_MIN && scores.Area > SCORE_MIN;\n//\n\t\t\tParticleReport bestParticle = particles.elementAt(0);\n\t\t NIVision.Rect particleRect = new NIVision.Rect((int)bestParticle.BoundingRectTop, (int)bestParticle.BoundingRectLeft, (int)bestParticle.BoundingRectHeight, (int)bestParticle.BoundingRectWidth);\n\t\t \n\t\t //NIVision.imaqOverlayRect(colorFrame, particleRect, new NIVision.RGBValue(0, 0, 0, 255), DrawMode.PAINT_VALUE, \"a\");//;(colorFrame, colorFrame, particleRect, DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 20);\n\t\t NIVision.imaqDrawShapeOnImage(colorFrame, colorFrame, particleRect, NIVision.DrawMode.DRAW_VALUE, ShapeMode.SHAPE_RECT, 0.0f);\n\t\t SmartDashboard.putNumber(\"Rect Top\", bestParticle.BoundingRectTop);\n\t\t SmartDashboard.putNumber(\"Rect Left\", bestParticle.BoundingRectLeft);\n\t\t SmartDashboard.putNumber(\"Rect Width\", bestParticle.BoundingRectWidth);\n\t\t SmartDashboard.putNumber(\"Area by image area\", bestParticle.AreaByImageArea);\n\t\t SmartDashboard.putNumber(\"Area\", bestParticle.Area);\n\t\t double bestParticleMidpoint = bestParticle.BoundingRectLeft + bestParticle.BoundingRectWidth/2.0;\n\t\t double bestParticleMidpointAimingCoordnates = pixelCoordnateToAimingCoordnate(bestParticleMidpoint, CAMERA_RESOLUTION_X);\n\t\t angleToTarget = aimingCoordnateToAngle(bestParticleMidpointAimingCoordnates, VIEW_ANGLE);\n\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\tangleToTarget = 0.0;\n\t\t}\n\n if(cameraView.getSelected() == COLOR)\n {\n \tCameraServer.getInstance().setImage(colorFrame);\n }\n\t SmartDashboard.putNumber(\"Angle to target\", angleToTarget);\n\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "String getBbgSymbol();", "public void parsePseudocode() {\n\t\tputTokens();\n\t\tsetTokenLength();\n\t\ttokenize();\n\t\tdataToJS();\n\t}", "Editor mo117962b();", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "String getMapCode();", "Value getInterpretation();", "@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}", "public void visualChange();", "private void gen_rdp_pc() {\r\n // create prolog: coordinates, name, display options, default properties\r\n // first, set the visual properties for the source code\r\n SourceCodeProperties scProps = new SourceCodeProperties();\r\n scProps.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n scProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\",\r\n Font.PLAIN, 12));\r\n scProps.set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n scProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n // now, create the prolog entity\r\n SourceCode prolog = lang.newSourceCode(new Coordinates(15, 40), \"prolog\",\r\n null, scProps);\r\n\r\n // add the lines to the prolog object.\r\n // line, name, indentation, display delay\r\n prolog\r\n .addCodeLine(\r\n \"The Ramer-Douglas-Peucker algorithm is an algorithm for reducing the number\",\r\n null, 0, null); // 0\r\n prolog.addCodeLine(\r\n \"of points in a curve that is approximated by a series of points.\",\r\n null, 0, null); // 1\r\n prolog\r\n .addCodeLine(\r\n \"The initial form of the algorithm was independently suggested in 1972\",\r\n null, 0, null); // 2\r\n prolog.addCodeLine(\r\n \"by Urs Ramer and 1973 by David Douglas and Thomas Peucker.\", null, 0,\r\n null); // 3\r\n prolog.addCodeLine(\" \", null, 0, null); // 4\r\n prolog\r\n .addCodeLine(\r\n \"The purpose of the algorithm is, given a curve composed of line segments,\",\r\n null, 0, null); // 5\r\n prolog\r\n .addCodeLine(\r\n \"to find a similar curve with fewer points. The algorithm defines 'dissimilarity'\",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"based on the maximum distance between the original curve and the simplified curve.\",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"The simplified curve consists of a subset of the points that defined the original curve.\",\r\n null, 0, null); // 6\r\n prolog.addCodeLine(\" \", null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"The Ramer-Douglas-Peucker algorithm finds its application within processing of \",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"vector graphics and in cartographic generalization. One can find it also in robotics.\",\r\n null, 0, null); // 6\r\n\r\n // create code entity\r\n code = lang\r\n .newSourceCode(new Coordinates(15, 40), \"code\", null, SourceCode);\r\n code.addCodeLine(\"Input: points=\" + p + \"; \" + \"epsilon=\" + e + \"; \", null,\r\n 0, null);\r\n code.addCodeLine(\" \", null, 1, null);\r\n code.addCodeLine(\"ResultList.add(PointList[1], PointList[end]);\", null, 0,\r\n null);\r\n code.addCodeLine(\"pdp(PointList[],1,(PointList[].size()),epsilon);\", null,\r\n 0, null);\r\n code.addCodeLine(\"function rdp(lPointList[], start, end, l_epsilon) {\",\r\n null, 0, null);\r\n code.addCodeLine(\r\n \"dmax = OrthogonalMaxDistance(PointList[start+1...end-1]);\", null, 1,\r\n null);\r\n code.addCodeLine(\"index = OrthogonalMaxDistancePointIndex();\", null, 1,\r\n null);\r\n code.addCodeLine(\"if (dmax >= epsilon){\", null, 1, null);\r\n code.addCodeLine(\r\n \"ResultList.add(lPointList.get(index)); //add a split point\", null, 2,\r\n null);\r\n code.addCodeLine(\r\n \"pdp(lPointList[],start,index,l_epsilon); //go recursively left\", null,\r\n 2, null);\r\n code.addCodeLine(\r\n \"pdp(lPointList[],index,end,l_epsilon); //go recursively right\", null,\r\n 2, null);\r\n code.addCodeLine(\"}else{\", null, 1, null);\r\n code.addCodeLine(\"//dmax < l_epsilon: no new 'dissimilar' points to add\",\r\n null, 2, null);\r\n code.addCodeLine(\"}endif\", null, 1, null);\r\n code.addCodeLine(\"return ResultList[];\", null, 1, null);\r\n code.addCodeLine(\"}\", null, 0, null);\r\n\r\n SourceCodeProperties scPROPERTIES = new SourceCodeProperties();\r\n scPROPERTIES.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n scPROPERTIES.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\r\n \"Monospaced\", Font.PLAIN, 12));\r\n scPROPERTIES\r\n .set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n scPROPERTIES.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n SourceCode func_desc = lang.newSourceCode(new Coordinates(15, 245),\r\n \"func_desc\", null, scPROPERTIES);\r\n func_desc.addCodeLine(\"Remarks:\", null, 0, null);\r\n func_desc.addCodeLine(\r\n \"The algorithm makes use of the following functions:\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"OrthogonalMaxDistance() - computes orthogonal distance from a point to a line segment;\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"OrthogonalMaxDistancePointIndex() - retrieves the index and coordinates of the furtherst point.\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"There are different approaches how to compute orthogonal distances: e.g. least squares or least circles for 2D.\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"Practically it might be effective to combine both functions or even to embedd OrthogonalMaxDistancePointIndex()\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"directly within OrthogonalMaxDistance(), where OrthogonalMaxDistance() is executed against the current set\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"of points, and goes through every point in the set located within the given line segment computing their\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"orthogonal distances; here OrthogonalMaxDistancePointIndex() keeps track of the most distant point\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"and retrieves its index and coordinates.\", null, 0,\r\n null);\r\n\r\n func_desc.highlight(0);\r\n code.hide();\r\n lang.nextStep();\r\n\r\n code.show();\r\n func_desc.hide();\r\n prolog.hide();\r\n\r\n lang.nextStep();\r\n }", "public abstract void mo2141b(Typeface typeface, boolean z);", "private static void displayXCode() {\n if (dvm.getStartingLine() < 0){\n System.out.println(\"====\"+dvm.getCurrentFunction().toUpperCase()+\"====\");\n }else{\n for (int i = dvm.getStartingLine(); i <= dvm.getEndingLine(); i++) {\n if (dvm.isLineABreakPoint(i)){\n //NOTE: (char)249 is extended ascii for a little solid square.\n //I'm sorry if it comes out as something else on your machine\n //I do not know how (or if its possible) to check if the machine\n //that will run this program supports extended ascii. If it doesnt\n //It should just show up as an empty box, which is acceptable\n //For my purposes as well.\n System.out.print((char)249);\n }else\n System.out.print(\" \");\n\n if (i == dvm.getCurrentLine())\n System.out.println(String.format(\"%1$4s %2$s\", i + \")\", dvm.getLineOfSourceCode(i)+ \" <-----------\"));\n else\n System.out.println(String.format(\"%1$4s %2$s\", i + \")\", dvm.getLineOfSourceCode(i)));\n }\n }\n }", "com.google.protobuf.ByteString\n getRendererBytes();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public MainFrame() {\n \n /*Integer a = 127;\n Integer b = 127;\n Integer c = 128;\n Integer d = 128;\n System.out.println(a==b);\n System.out.println(c==d);*/\n \n initComponents();\n net = new Hopfield(10, 12);\n net.init();\n net.learn();\n \n \n /*int[][] figure = new int[5][5];\n for (int i=0; i<5; i++)\n for (int j=0; j<5; j++)\n figure[i][j]=-1;\n \n figure[1][3]=1;*/\n \n /*int[][] figure = {\n {-1, -1, -1, -1, -1}, \n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1}};\n \n figure = net.identify(figure);\n \n for (int i=0; i<5; i++) {\n java.lang.System.out.println();\n for (int j=0; j<5; j++)\n java.lang.System.out.print(figure[i][j]>=0?\"+\"+figure[i][j]+\" \":figure[i][j]+\" \");\n }*/\n \n /*int[][] test_fig = new int[7][7];\n for (int i=0; i<7; i++)\n for (int j=0; j<7; j++)\n test_fig[i][j] = -1;\n test_fig[1][1] = 1;\n test_fig[2][2] = 1;\n test_fig[3][3] = 1;\n test_fig[4][4] = 1;\n test_fig[5][5] = 1;\n test_fig[6][6] = 1;\n test_fig[1][1] = 1;\n test_fig[3][4] = 1;\n test_fig[4][3] = 1;\n test_fig[4][1] = 1;\n \n java.lang.System.out.println(net.getWidth()+\" \"+net.getHeight());\n \n java.lang.System.out.println(\"\\nИзначально\");\n \n for (int i=0; i<7; i++) {\n for (int j=0; j<7; j++) {\n //java.lang.System.out.println(i+\" \"+j);\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(test_fig[i][j]==1?\"#\":\"_\");\n }\n }\n \n int[][] res = net.resize(test_fig, 7, 7);\n \n java.lang.System.out.println(\"\\n\\n\\nДо трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }\n \n res = net.identify(res);\n \n java.lang.System.out.println(\"\\n\\n\\nПосле трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }*/\n //net.test_old();\n //net.test();\n buttonGroup.add(rbuttonFonModel);\n buttonGroup.add(rbuttonPorogBit);\n buttonGroup.add(rbuttonPorogColor);\n buttonGroup.add(rbuttonPorogGrey);\n buttonGroup.add(rbuttonPorogColorSubstr);\n buttonGroup.add(rbuttonItog);\n //rbuttonFonModel.setSelected(true);\n //rbuttonPorogBit.setSelected(true);\n rbuttonItog.setSelected(true);\n model.setNet(net);\n }", "public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}", "void draw() {\n\n // SeamInfo lowestSeam = this.lowestSeamVert();\n // lowestSeam.changeColor();\n\n ComputedPixelImage seamRemovedImg = new ComputedPixelImage(this.newImg.width,\n this.newImg.height);\n int countRow = 0;\n int countCol = 0;\n\n Pixel current = this.curPixel;\n Pixel temp;\n\n while (current.down != null) {\n temp = current.down;\n while (current.right != null) {\n Color c = Color.MAGENTA;\n if (current.highlighted) {\n c = Color.RED;\n }\n else {\n c = current.color;\n }\n if (this.showType.equals(\"e\")) {\n int energy = (int) (current.energy * 100);\n if (energy > 255) {\n System.out.println(\"energy: \" + energy + \" to 255\");\n energy = 255;\n }\n c = new Color(energy, energy, energy);\n }\n else if (this.showType.equals(\"w\")) {\n int weight = (int) (current.seam.totalWeight);\n if (weight > 255) {\n System.out.println(\"weight: \" + weight + \" to 255\");\n weight = 255;\n }\n c = new Color(weight, weight, weight);\n }\n\n seamRemovedImg.setColorAt(countCol, countRow, c);\n countCol += 1;\n current = current.right;\n }\n countCol = 0;\n countRow += 1;\n current = temp;\n }\n countCol = 0;\n\n this.newImg = seamRemovedImg;\n\n }", "public void showbitmap3() {\n \n \t}", "@Override\r\n public void run() {\n do {\r\n try {\r\n Thread.sleep(100);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n Result result = null;\r\n BufferedImage image = null;\r\n if (webcam.isOpen()) {\r\n if ((image = webcam.getImage()) == null) {\r\n continue;\r\n }\r\n \t//iconlabel\r\n\t ImageIcon icon=new ImageIcon(image);\r\n\t icon.setImage(icon.getImage().getScaledInstance(300,300,Image.SCALE_DEFAULT));\r\n\t iconLabel.setIcon(icon); \r\n\t \r\n \t//qrcode\r\n LuminanceSource source =new BufferedImageLuminanceSource( image) ;\r\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\r\n\r\n try {\r\n result = new MultiFormatReader().decode(bitmap);\r\n } catch (NotFoundException e) {\r\n // fall thru, it means there is no QR code in image\r\n }\r\n }\r\n if (result != null) {\r\n textarea.setText(result.getText());\r\n System.out.println(result.getText());\r\n }\r\n\r\n } while (true);\r\n }", "public interface GraphicsNode\n/* */ {\n/* */ public static final int VISIBLE_PAINTED = 0;\n/* */ public static final int VISIBLE_FILL = 1;\n/* */ public static final int VISIBLE_STROKE = 2;\n/* */ public static final int VISIBLE = 3;\n/* */ public static final int PAINTED = 4;\n/* */ public static final int FILL = 5;\n/* */ public static final int STROKE = 6;\n/* */ public static final int ALL = 7;\n/* */ public static final int NONE = 8;\n/* 102 */ public static final AffineTransform IDENTITY = new AffineTransform();\n/* */ \n/* */ WeakReference getWeakReference();\n/* */ \n/* */ int getPointerEventType();\n/* */ \n/* */ void setPointerEventType(int paramInt);\n/* */ \n/* */ void setTransform(AffineTransform paramAffineTransform);\n/* */ \n/* */ AffineTransform getTransform();\n/* */ \n/* */ AffineTransform getInverseTransform();\n/* */ \n/* */ AffineTransform getGlobalTransform();\n/* */ \n/* */ void setComposite(Composite paramComposite);\n/* */ \n/* */ Composite getComposite();\n/* */ \n/* */ void setVisible(boolean paramBoolean);\n/* */ \n/* */ boolean isVisible();\n/* */ \n/* */ void setClip(ClipRable paramClipRable);\n/* */ \n/* */ ClipRable getClip();\n/* */ \n/* */ void setRenderingHint(RenderingHints.Key paramKey, Object paramObject);\n/* */ \n/* */ void setRenderingHints(Map paramMap);\n/* */ \n/* */ void setRenderingHints(RenderingHints paramRenderingHints);\n/* */ \n/* */ RenderingHints getRenderingHints();\n/* */ \n/* */ void setMask(Mask paramMask);\n/* */ \n/* */ Mask getMask();\n/* */ \n/* */ void setFilter(Filter paramFilter);\n/* */ \n/* */ Filter getFilter();\n/* */ \n/* */ Filter getGraphicsNodeRable(boolean paramBoolean);\n/* */ \n/* */ Filter getEnableBackgroundGraphicsNodeRable(boolean paramBoolean);\n/* */ \n/* */ void paint(Graphics2D paramGraphics2D);\n/* */ \n/* */ void primitivePaint(Graphics2D paramGraphics2D);\n/* */ \n/* */ CompositeGraphicsNode getParent();\n/* */ \n/* */ RootGraphicsNode getRoot();\n/* */ \n/* */ Rectangle2D getBounds();\n/* */ \n/* */ Rectangle2D getTransformedBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ Rectangle2D getPrimitiveBounds();\n/* */ \n/* */ Rectangle2D getTransformedPrimitiveBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ Rectangle2D getGeometryBounds();\n/* */ \n/* */ Rectangle2D getTransformedGeometryBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ Rectangle2D getSensitiveBounds();\n/* */ \n/* */ Rectangle2D getTransformedSensitiveBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ boolean contains(Point2D paramPoint2D);\n/* */ \n/* */ boolean intersects(Rectangle2D paramRectangle2D);\n/* */ \n/* */ GraphicsNode nodeHitAt(Point2D paramPoint2D);\n/* */ \n/* */ Shape getOutline();\n/* */ }", "void mo12205a(Bitmap bitmap);", "public String getlbr_Barcode2();", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "private boolean aYV() {\n /*\n r4 = this;\n r3 = 1;\n r2 = 0;\n r0 = com.android.common.custom.C0421M.dC();\n r0 = r0.dD();\n r0 = r0.bU();\n if (r0 != 0) goto L_0x001d;\n L_0x0010:\n r0 = r4.aiG;\n r0 = r0.SY();\n r0 = r0.tx();\n if (r0 == 0) goto L_0x001d;\n L_0x001c:\n return r2;\n L_0x001d:\n r0 = r4.aIO;\n if (r0 == 0) goto L_0x0041;\n L_0x0021:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NF();\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = r4.aiG;\n r0 = r0.TE();\n r0 = r0.Ll();\n if (r0 == 0) goto L_0x0041;\n L_0x0039:\n r0 = r4.asP();\n r1 = com.android.common.camerastate.UIState.CAMERA_FAMILY;\n if (r0 != r1) goto L_0x0042;\n L_0x0041:\n return r2;\n L_0x0042:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NP();\n if (r0 != 0) goto L_0x0041;\n L_0x004e:\n r0 = r4.asJ();\n r1 = com.android.common.camerastate.DeviceState.SNAPSHOT_IN_PROGRESS;\n if (r0 == r1) goto L_0x0041;\n L_0x0056:\n r0 = r4.aiG;\n r0 = r0.SQ();\n r1 = com.android.common.cameradevice.C0384o.Jr();\n r1 = r1.Jt();\n if (r0 != r1) goto L_0x0067;\n L_0x0066:\n return r2;\n L_0x0067:\n r0 = r4.aiG;\n r0 = r0.To();\n switch(r0) {\n case 0: goto L_0x0073;\n case 90: goto L_0x0084;\n case 180: goto L_0x0073;\n case 270: goto L_0x0084;\n default: goto L_0x0070;\n };\n L_0x0070:\n r0 = r4.aID;\n return r0;\n L_0x0073:\n r0 = r4.aIK;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIJ;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0081:\n r4.aID = r3;\n goto L_0x0070;\n L_0x0084:\n r0 = r4.aIJ;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIK;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0092:\n r4.aID = r3;\n goto L_0x0070;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.Camera.aYV():boolean\");\n }", "public void doAutoDetect()\r\n {\r\n Graphics g = this.getGraphics(); \r\n // Create the off-screen drawing area\r\n offscreenImage = createImage(getWidth(), getHeight());\r\n offscreenGraphics = offscreenImage.getGraphics();\r\n long start;\r\n long end;\r\n\r\n // Tally the number of times we were able to draw direct and buffered\r\n int directCount = 0;\r\n int bufferedCount = 0;\r\n\r\n g.setColor(getBackground());\r\n // Mark what time we started\r\n start = System.currentTimeMillis();\r\n end = start;\r\n\r\n // Paint patterns directly to the screen, but only for 500 milliseconds\r\n while ((end-start) < 500) {\r\n paintDetectionDesign(g);\r\n end = System.currentTimeMillis();\r\n directCount++;\r\n }\r\n g.setColor(getForeground());\r\n\r\n // record the total time spent drawing directly\r\n long directTime = end - start;\r\n\r\n start = System.currentTimeMillis();\r\n end = start;\r\n\r\n // Paint patterns to the offscreen graphics, but only for 500 milliseconds\r\n while ((end-start) < 500) {\r\n paintDetectionDesign(offscreenGraphics);\r\n end = System.currentTimeMillis();\r\n bufferedCount++;\r\n }\r\n\r\n long bufferedTime = end - start;\r\n\r\n // If we were able to draw more times using the buffered graphics,\r\n // or if the drawing counts are the same, but the total time for\r\n // the buffering was less, buffering is faster.\r\n if ((bufferedCount > directCount) ||\r\n ((bufferedCount == directCount) &&\r\n (bufferedTime < directTime))) {\r\n drawDirect = false;\r\n } else {\r\n // If we want to draw direct, free the space taken up by the\r\n // offscreen image and graphics context.\r\n offscreenImage.flush();\r\n offscreenImage = null;\r\n offscreenGraphics = null;\r\n drawDirect = true;\r\n }\r\n }", "public void algorithmPerformed(AlgorithmBase algorithm) {\r\n\r\n /* if (algorithm instanceof AlgorithmRegVOILandmark) {\r\n\r\n if (algoRegVOILankmark.isCompleted() == true) {\r\n\r\n // display registered image\r\n Vector imageFrames = image.getImageFrameVector();\r\n\r\n for (int i = 0; i < imageFrames.size(); i++) {\r\n //((Frame) (imageFrames.elementAt(i))).setTitle(titles[i]);\r\n ((Frame) (imageFrames.elementAt(i))).setEnabled(true);\r\n\r\n if (((Frame) (imageFrames.elementAt(i))) != parentFrame) {\r\n UI.registerFrame((Frame) (imageFrames.elementAt(i)));\r\n }\r\n }\r\n\r\n if (parentFrame != null) {\r\n UI.registerFrame(parentFrame);\r\n }\r\n\r\n image.notifyImageDisplayListeners(null, true);\r\n }\r\n }*/\r\n\r\n // Update frame\r\n // ((ViewJFrameBase)parentFrame).updateImages(true);\r\n dispose();\r\n }", "public String visualize(byte[] input) {\n if (input == null) {\n return \"NULL\";\n }\n\n // This method could be overridden if needed, but currently all visualization\n // techniques can work on a single byte.\n StringBuilder builder = new StringBuilder();\n for (byte b : input) {\n builder.append(visualize(b));\n }\n return builder.toString();\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "public void drawInfo(Graphics g) {\n if (db == null) return;\n int zVal = zSliceSel == null ? 1 : zSliceSel.getValue();\n int tVal = tSliceSel == null ? 1 : tSliceSel.getValue();\n \n int textGap = 0;\n \n int nSlices = imp.getStackSize();\n \n // ImageStack stack = imp.getStack();\n int currentSlice = imp.getCurrentSlice();\n \n StringBuffer sb = new StringBuffer();\n sb.append(currentSlice);\n sb.append(\"/\");\n sb.append(nSlices);\n sb.append(\"; \");\n if (db.hasZ) {\n sb.append(zString);\n sb.append(\": \");\n sb.append(zVal);\n sb.append(\"/\");\n sb.append(db.numZ);\n sb.append(\"; \");\n }\n if (db.hasT) {\n sb.append(tString);\n sb.append(\": \");\n sb.append(tVal);\n sb.append(\"/\");\n sb.append(db.numT);\n sb.append(\"; \");\n }\n if (db.names != null) {\n String name = db.names[currentSlice - 1];\n if (name != null) {\n sb.append(name);\n sb.append(\"; \");\n }\n }\n \n int width = imp.getWidth(), height = imp.getHeight();\n Calibration cal = imp.getCalibration();\n if (cal.pixelWidth != 1.0 || cal.pixelHeight != 1.0) {\n sb.append(IJ.d2s(width * cal.pixelWidth, 2));\n sb.append(\"x\");\n sb.append(IJ.d2s(height * cal.pixelHeight, 2));\n sb.append(\" \");\n sb.append(cal.getUnits());\n sb.append(\" (\");\n sb.append(width);\n sb.append(\"x\");\n sb.append(height);\n sb.append(\"); \");\n }\n else {\n sb.append(width);\n sb.append(\"x\");\n sb.append(height);\n sb.append(\" pixels; \");\n }\n int type = imp.getType();\n int stackSize = imp.getStackSize();\n int size = (width * height * stackSize) / 1048576;\n switch (type) {\n case ImagePlus.GRAY8:\n sb.append(\"8-bit grayscale\");\n break;\n case ImagePlus.GRAY16:\n sb.append(\"16-bit grayscale\");\n size *= 2;\n break;\n case ImagePlus.GRAY32:\n sb.append(\"32-bit grayscale\");\n size *= 4;\n break;\n case ImagePlus.COLOR_256:\n sb.append(\"8-bit color\");\n break;\n case ImagePlus.COLOR_RGB:\n sb.append(\"RGB\");\n size *= 4;\n break;\n }\n sb.append(\"; \");\n sb.append(size);\n sb.append(\"M\");\n \n Insets insets = super.getInsets();\n g.drawString(sb.toString(), 5, insets.top + textGap);\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tiv_showCode.setImageBitmap(GenerateCodeActivity.getInstance().createBitmap());\n\t\t}", "public boolean getSaveBytecode();" ]
[ "0.6494408", "0.5775395", "0.5756827", "0.5717434", "0.5545533", "0.55110055", "0.55078566", "0.54994875", "0.5440935", "0.54335433", "0.53870404", "0.53850377", "0.53645307", "0.53496313", "0.5303144", "0.53006923", "0.5296524", "0.52869713", "0.5270739", "0.5264797", "0.5254236", "0.5206741", "0.5196173", "0.5190853", "0.51805925", "0.5110961", "0.5099412", "0.5098235", "0.5086192", "0.5062387", "0.505989", "0.5050246", "0.5046661", "0.5012938", "0.49988616", "0.49885297", "0.49758866", "0.49655017", "0.49504077", "0.49379846", "0.49193156", "0.49140576", "0.49131915", "0.4899296", "0.48910758", "0.48894352", "0.48884675", "0.48825648", "0.48759264", "0.4871062", "0.48590288", "0.48582885", "0.48484695", "0.4829415", "0.48259246", "0.48128447", "0.4811896", "0.48101956", "0.48077554", "0.47953802", "0.47950104", "0.47883183", "0.47870016", "0.4786041", "0.47845113", "0.47703743", "0.4769876", "0.47686905", "0.47676817", "0.47569212", "0.4753955", "0.47522846", "0.47475", "0.47430927", "0.47380355", "0.47366023", "0.47335935", "0.47335935", "0.47335935", "0.47335935", "0.47335935", "0.47326484", "0.47308016", "0.47233823", "0.47196028", "0.4713185", "0.47101048", "0.47071216", "0.47000986", "0.47000507", "0.4699574", "0.46913415", "0.4688805", "0.4688682", "0.4687707", "0.468733", "0.4683775", "0.46814483", "0.4679766", "0.46764097" ]
0.5192985
23
Both detects and decodes graphical code
public String detectAndDecode(Mat img) { return detectAndDecode_2(nativeObj, img.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "public abstract String visualize(byte input);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}", "static public void visualize(PGraphics g, GCodeList gcodes) {\n float x = 0;\n float y = 0;\n float z = 0;\n \n float x2 = x;\n float y2 = y;\n float z2 = z;\n\n g.noFill();\n g.beginShape(LINES); \n\n for (int i = 0; i < gcodes.size(); i++) {\n GCode gcode = gcodes.get(i);\n if (gcode.getCode().equals(\"G0\") || gcode.getCode().equals(\"G1\")) { \n if (gcode.hasArg(\"X\")) { x2 = Float.parseFloat(gcode.getArg(\"X\")); }\n if (gcode.hasArg(\"Y\")) { y2 = Float.parseFloat(gcode.getArg(\"Y\")); }\n if (gcode.hasArg(\"Z\")) { z2 = Float.parseFloat(gcode.getArg(\"Z\")); } \n if (gcode.getCode().equals(\"G1\")) {\n g.stroke(0,128,255);\n } else {\n g.stroke(255,128,0);\n }\n if (g.is2D()) { \n g.vertex(x,y);\n g.vertex(x2,y2); \n } else { \n g.vertex(x,y,z);\n g.vertex(x2,y2,z2);\n } \n x = x2;\n y = y2;\n z = z2;\n } else {\n System.out.println(\"not (yet) supported code \" +gcodes.get(i));\n }\n }\n g.endShape();\n }", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "private void drawJavaString(JComponent frame) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\t// opens test.java\n\t\t\tbr = new BufferedReader(new FileReader(\"test.java\"));\n\t\t\t// variables to keep track of message\n\t\t\t//String message = \"<html>\";\n\t\t\tString message = \"\";\n\t\t\tString sCurrentLine;\n\t\t\t// loops through each line to read file\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tmessage += sCurrentLine + \"\\r\";\n\t\t\t}\n\t\t\t//message += \"</html>\";\n\t\t\t// sets JTextPane codeLabel attributes\n\t\t\tcodeLabel.setContentType(\"text/plain\");\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setOpaque(false);\n\t\t\tcodeLabel.setEditable(true);\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n\t\t\tcodeLabel.setForeground(Color.MAGENTA);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "@Override\n\tpublic void updateCodeCanvas() {\n\n\t}", "public void displayCode (Graphics g){\r\n\t\tfor (int i = 0 ; i < counter; i++){\r\n\t\t\tif (code.charAt(i) == '1'){\r\n\t\t\t\tdrawOne(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '2'){\r\n\t\t\t\tdrawTwo(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '3'){\r\n\t\t\t\tdrawThree(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '4'){\r\n\t\t\t\tdrawFour(g);\r\n\t\t\t\tdelay(500);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tdisplay = false; //display is equal to false when displaying code has finished\r\n\t}", "public boolean generateImageFromText();", "public void setQrcodeDecodeRect(int x, int y, int w, int h);", "public native int getRenderingIntent() throws MagickException;", "public void deSteganographise() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\tArrayList<Character> deStegData = new ArrayList<Character>();\n\t\t\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\tfor(int i = 0;;i++) {\n\t\t\t\tSystem.out.println(\"fucking herp\");\n\t\t\t\t//System.in.read();\n\n\t\t\t\t\n\t\t\t\tFile f = new File(\"downloaded/image\" + i + \".png\");\n\t\t\t\tSystem.out.println(\"file is: \" + f.getName());\n\t\t\t\t\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\tSystem.out.println(\"in deStego if loop\");\n\t\t\t\t\t\n\t\t\t\t\t//System.in.read();\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.reveal(hidingText);\n\t\t\t\t\tString deSteg = hidingText.getText();\n\t\t\t\t\t\n\t\t\t\t\tif(deSteg.length() < 1) {\n\t\t\t\t\t\tSystem.out.println(\"no data in image!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"size of hiding text: \" + hidingText.getSize());\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deSteg data: \" + deSteg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//split the extracted string into data and command message\n\t\t\t\t\t\tString[] split = deSteg.split(\":\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString cC = split[0];\n\t\t\t\t\t\tString stegText = split[2];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j = 0; j < stegText.length(); j++) {\n\t\t\t\t\t\t\tdeStegData.add(stegText.charAt(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deStegText: \" + stegText);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Finished Desteganography\");\n\t\t\t\t\tsteganographise(deStegData);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InvalidTypeException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RevealingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t\t\n\t\t\n\t}", "void barcodeCaptured(String barcodeString);", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "TextDecoder getTextDecoder();", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "@Override\n\tpublic boolean saveBarCode(int kodPoint, String readedCod) {\n\t\treturn false;\n\t}", "private void generateGraphCode() {\n StringBuilder finalCode = new StringBuilder(\"digraph G{\\n\");\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n finalCode.append(generateSubGraphCode(workingPanel.getConnections(), idx));\n }\n finalCode.append(\"\\n}\");\n JFrame generatedCodeFrame = new JFrame(\"Code Generator\");\n JTextArea codeDisplay = new JTextArea();\n generatedCodeFrame.add(codeDisplay);\n codeDisplay.append(finalCode.toString());\n generatedCodeFrame.setSize(400, 700);\n generatedCodeFrame.setVisible(true);\n }", "void setTextDecoder(TextDecoder decoder);", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "int hitGfx();", "public void render() {\r\n Color geneColor=null;\r\n\r\n if(isChanged) {\r\n this.removeChild(predRect);\r\n predRect = new PPath();\r\n\r\n if(type == SegmentInfo.TYPE_AUTO) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 10, 10));\r\n else if(type == SegmentInfo.TYPE_MANUAL) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 0, 0));\r\n\r\n if(this.isSelected()) {\r\n if(this.sign < 0) geneColor = this.SELECTED_DOWN_COLOR;\r\n else geneColor = this.SELECTED_UP_COLOR;\r\n }\r\n else {\r\n if(this.sign < 0) geneColor = this.DOWN_COLOR;\r\n else geneColor = this.UP_COLOR;\r\n }\r\n\r\n predRect.setPaint(geneColor);\r\n this.addChild(predRect);\r\n isChanged=false;\r\n }\r\n }", "private void readAndEditFrame()\n\t{\n\t\tmirror();\n\t\tinvert();\n\t\tgreenScreen();\n\t\tbackgroundSubtraction();\n\t}", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public abstract String visualizar();", "private void displayExp(int disp_nr){\r\n\t\tswitch (disp_nr){\r\n\t\t\tcase 0 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(200,100), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Bei 'Fletcher's Checksum' handelt es sich, wie beim Namen ersichtlich,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"um einen Pruefsummen-Algorithmus zur Erkennung von Datenuebertragungsfehlern.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Er ist aehnlich stark wie das CRC-Verfahren,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"hat aber einen teils wesentlich geringeren Rechenaufwand.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Wir sehen uns den Algorithmus in 2 Faellen an:\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Korrekte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Fehlerhafte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Doch zuerst muessen die Pruefsummen selbst berechnet werden.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"In der urspruenglichen Variante des Algorithmus wird hierfuer der Datenstream\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"in Bytes (8-Bit Bloecke) zerlegt...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 1 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun stehen die zwei Pruefsummen fest.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Damit aber die Qualitaet von CRC in Sachen Fehlererkennung erreicht wird,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"muessen diese noch einmal verarbeitet werden und zwar wie folgt:\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Diese 2 Werte werden nun an die zu versendende Nachricht drangehaengt\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Zur Fehlerpruefung muss der Empfaenger nun den Algorithmus erneut\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"auf die empfangene Nachricht, samt Prueffeldern, andwenden\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme (sum1 + sum2) ist 0! Somit kann von einer\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"korrekten uebertragung der Daten ausgegangen werden!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 5 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun ein anderes Szenario: Bei der uebertragung ist ein Fehler \", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"aufgetreten - hier : in Byte #\" + error_position, null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 6 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Wir pruefen erneut wie vorher...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 7 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme ist NICHT 0. Somit weiss der Empfaenger,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"dass ein Fehler aufgetreten ist\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Es wurden\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim ersten Errechnen von sum1 und sum2 \"+op_counts[0]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim Pruefen der Nachricht jeweils \"+op_counts[2]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"... durchgefuehrt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Man erkennt, dass die Zeitkomplexitaet ( der Hauptschleife ) bei n*4 liegt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"wobei n die Laenge der Nachricht ( die zu erweitern oder zu pruefen ist ) in Bytes ist.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Dies steht im Gegensatz zu - zB. - dem CRC-Verfahren, welches (im schlimmsten Fall) von der Anzahl der einzelnen Bits abhaengt.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Fazit: Ein einfacher, aber effektiver Algorithmus zur Erkennung\" +\r\n\t\t\t\t\t\t\" von uebertragungsfehlern. Hoffentlich war diese Animation aufschlussreich!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10 : \r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Schwaeche dieses Verfahrens liegt darin, dass es nicht zwischen den Bytes 11111111 und 00000000,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"bzw. 255 und 0 ( in Dezimal ) unterscheiden kann, weswegen sich die Pruefsummen nicht geaendert und folgich der Fehler\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"leider nicht entdeckt wurde\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t}", "Barcode getBarcode() {\n Barcode barcode = null;\n List<BarcodeGraphic> barcodeList = mGraphicOverlay.getGraphics();\n\n if (!barcodeList.isEmpty()) {\n Log.d(TAG, \"Barcode list is not empty\");\n barcode = barcodeList.get(0).getBarcode();\n }\n\n return barcode;\n }", "public void drawString(String var1, int var2, int var3, int var4, int var5) {\n boolean var11 = field_759;\n\n try {\n byte[] var6 = field_748[var4];\n int var7 = 0;\n if(var11 || var7 < var1.length()) {\n do {\n label165: {\n if(var1.charAt(var7) == 64 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 64) {\n label166: {\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"red\")) {\n var5 = 16711680;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"lre\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"yel\")) {\n var5 = 16776960;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gre\")) {\n var5 = '\\uff00';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"blu\")) {\n var5 = 255;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"cya\")) {\n var5 = '\\uffff';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"mag\")) {\n var5 = 16711935;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"whi\")) {\n var5 = 16777215;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"bla\")) {\n var5 = 0;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"dre\")) {\n var5 = 12582912;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ora\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ran\")) {\n var5 = (int)(Math.random() * 1.6777215E7D);\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or1\")) {\n var5 = 16756736;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or2\")) {\n var5 = 16740352;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or3\")) {\n var5 = 16723968;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr1\")) {\n var5 = 12648192;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr2\")) {\n var5 = 8453888;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr3\")) {\n var5 = 4259584;\n }\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n if(var1.charAt(var7) == 126 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 126) {\n char var8 = var1.charAt(var7 + 1);\n char var9 = var1.charAt(var7 + 2);\n char var10 = var1.charAt(var7 + 3);\n if(var8 >= 48 && var8 <= 57 && var9 >= 48 && var9 <= 57 && var10 >= 48 && var10 <= 57) {\n var2 = Integer.parseInt(var1.substring(var7 + 1, var7 + 4));\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n int var13 = field_749[var1.charAt(var7)];\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2 + 1, var3, 0, var6);\n }\n\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2, var3 + 1, 0, var6);\n }\n\n this.method_268(var13, var2, var3, var5, var6);\n var2 += var6[var13 + 7];\n }\n\n ++var7;\n } while(var7 < var1.length());\n\n }\n } catch (Exception var12) {\n System.out.println(\"drawstring: \" + var12); // authentic System.out.println\n var12.printStackTrace();\n }\n }", "public void showNet()\n/* */ {\n/* 482 */ update(getGraphics());\n/* */ }", "private void showSourceCode(boolean whole){\r\n\t\tsc = lang.newSourceCode(new Coordinates(50, 220), \"\", null, sc_props);\r\n\t\t\r\n\t\tsc.addCodeLine(\"fletcher(byte[] message){\", null, 0, null); // #0\r\n\t\tsc.addCodeLine(\"int i = 0; int sum1 = 0; int sum2 = 0;\", null, 1, null); // #1\r\n\t\tsc.addCodeLine(\"for(; i < message.length; i++){\", null, 1, null); // #2\r\n\t\tsc.addCodeLine(\"sum1 = (sum1 + message[i]) % 255 // 2 Operationen\", null, 2, null); // #3\r\n\t\tsc.addCodeLine(\"sum2 = (sum1 + sum2) % 255 // 2 Operationen\", null, 2, null); // #4\r\n\t\tsc.addCodeLine(\"}\", null, 1, null); // #5\r\n\t\t\r\n\t\tif(whole){\r\n\t\t\tsc.addCodeLine(\"int check1 = 255 - ((sum1 + sum2) % 255) // 3 Operationen\", null, 1, null); // #6\r\n\t\t\tsc.addCodeLine(\"int check2 = 255 - ((sum1 + check1) % 255) // 3 Operationen\", null, 1, null); // #7\r\n\t\t\tsc.addCodeLine(\"message = append(message,check1) // Erweitert arrays um ein angegebenes Element\", null, 1, null); // #8\r\n\t\t\tsc.addCodeLine(\"message = append(message,check2)\", null, 1, null); // #9\r\n\t\t\tsc.addCodeLine(\"return message\", null, 1, null); // #10\r\n\t\t}\r\n\t\t\r\n\t\tsc.addCodeLine(\"}\", null, 0, null); // #11\r\n\t}", "void mo27482a(String str, Bitmap bitmap);", "public void showbitmap4() {\n \n \t}", "public byte[] code();", "public static void graphTree(CommonTree tree){\n\t\tDOTTreeGenerator gen = new DOTTreeGenerator(); \n\t\tStringTemplate st = gen.toDOT(tree); \n\n\t\tString type = \"jpg\";\n\t\tGraphViz gv = new GraphViz();\n\t\tgv.addln(st.toString());\n\n\t\tSystem.out.println(\"Before\");\n\n\t\tImageIcon img = new ImageIcon(gv.getGraph(gv.getDotSource(), type));\n\n\t\tSystem.out.println(\"After\");\n\n\t\tint newHeight = 775, newWidth = 1255; \n\t\t/* This is for writing the image to disk*/\n\t\tFile out = new File(\"graph.\" + type); // Linux\n\t\tgv.writeGraphToFile( gv.getGraph( gv.getDotSource(), type ), out );\n\t\t//\t\tif (iw > newWidth){\n\t\t//\t\t\tnewHeight = newWidth * ih/iw ;\n\t\t//\t\t\tBufferedImage resizedImg = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB);\n\t\t//\t\t\tGraphics2D g2 = resizedImg.createGraphics();\n\t\t//\t\t\t\n\t\t//\t\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\t//\t\t\tg2.drawImage(img.getImage(), 0, 0, newWidth, newHeight, null);\n\t\t//\t\t\tg2.dispose();\n\t\t//\t\t\timg = new ImageIcon(resizedImg);\n\t\t//\t\t}\n\n\t\tJFrame jf = new JFrame(\"Abstract Syntax Tree\");\n\t\tjf.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n\t\tJLabel photographLabel = new JLabel();\n\t\tphotographLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t//private Image getScaledImage(Image srcImg, int w, int h){\n\n\n\t\tphotographLabel.setIcon(img);\n\t\tJScrollPane scrollPane = new JScrollPane(photographLabel);\n\t\tjf.add(scrollPane, BorderLayout.CENTER);\n\t\tjf.pack();\n\t\tjf.setSize(newWidth+50, newHeight+50);\n\t\tjf.setResizable(true);\n\t\tjf.setVisible(true);\n\t\t/*end graphical display*/\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n ArrayList<String> Tokens = new ArrayList<String>();\n\n String CODE = jTextArea1.getText();\n //String CODE=\"{float cos, x, n, term, eps, alt;\";\n String code = CODE.replaceAll(\"(?:/\\\\*(?:[^*]|(?:\\\\*+[^*/]))*\\\\*+/)|(?://.*)\", \"\")\n .replace(\"+\", \" + \")\n .replace(\"-\", \" - \")\n .replace(\"*\", \" * \")\n .replace(\"/\", \" / \")\n .replace(\"==\", \" == \")\n .replace(\">=\", \" >= \")\n .replace(\"<=\", \" <= \")\n .replace(\"!=\", \" != \")\n .replace(\"&&\", \" && \")\n .replace(\"(\", \" ( \")\n .replace(\")\", \" ) \")\n .replace(\"{\", \" { \")\n .replace(\"}\", \" } \")\n .replace(\"[\", \" [ \")\n .replace(\"]\", \" ] \")\n .replace(\".\", \" . \")\n .replace(\",\", \" , \")\n .replace(\";\", \" ; \")\n .replace(\":\", \" ; \");\n\n String[] output = code.split(\"\\\\n+\");\n output2 = new String[output.length][];\n for (int i = 0; i < output.length; i++) {\n output2[i] = functionCall(output[i].split(\"\\\\s+\"));\n }\n //for(int i=0;i<output2.length;i++){\n // for(int j=0;j<output2[i].length;j++){\n // System.out.print(output2[i][j]+\" \");\n // }\n // System.out.println();\n //}\n output = functionCall(output);\n for (int j = 0; j < output2.length; j++) {\n for (int i = 0; i < output2[j].length; i++) {\n\n switch (output2[j][i]) {\n //DataTypes\n case (\"int\"):\n Tokens.add(\"int\");\n System.out.println(\"int --> DATA TYPE\");\n break;\n case (\"float\"):\n Tokens.add(\"float\");\n System.out.println(\"float --> DATA TYPE\");\n break;\n\n //Reserved Words\n case (\"for\"):\n Tokens.add(\"for\");\n System.out.println(\"for --> Reserved Word\");\n break;\n case (\"while\"):\n Tokens.add(\"while\");\n System.out.println(\"while --> Reserved Word\");\n break;\n case (\"if\"):\n Tokens.add(\"if\");\n System.out.println(\"if --> Reserved Word \");\n break;\n case (\"else\"):\n Tokens.add(\"else\");\n System.out.println(\"else --> Reserved Word \");\n break;\n //Binary Operators\n case (\"+\"):\n Tokens.add(\"+\");\n System.out.println(\"+ -->Binary Operator \");\n break;\n case (\"-\"):\n Tokens.add(\"-\");\n System.out.println(\"- -->Binary Operator \");\n break;\n case (\"*\"):\n Tokens.add(\"*\");\n System.out.println(\"* -->Binary Operator \");\n break;\n case (\"/\"):\n Tokens.add(\"/\");\n System.out.println(\"/ -->Binary Operator \");\n break;\n\n //Symbols \n case (\"\"):\n Tokens.add(\"\");\n System.out.println(\"\");\n break;\n case (\"=\"):\n Tokens.add(\"=\");\n System.out.println(\"= -->Symbol \");\n break;\n case (\"<\"):\n Tokens.add(\"<\");\n System.out.println(\"< -->Symbol \");\n break;\n case (\">\"):\n Tokens.add(\">\");\n System.out.println(\"> -->Symbol \");\n break;\n case (\"(\"):\n Tokens.add(\"(\");\n System.out.println(\"( -->Symbol \");\n break;\n case (\")\"):\n Tokens.add(\")\");\n System.out.println(\") -->Symbol \");\n break;\n case (\"{\"):\n Tokens.add(\"{\");\n System.out.println(\"{ -->Symbol \");\n break;\n case (\"}\"):\n Tokens.add(\"}\");\n System.out.println(\"} -->Symbol \");\n break;\n case (\";\"):\n Tokens.add(\";\");\n System.out.println(\"; -->Symbol \");\n break;\n case (\",\"):\n Tokens.add(\",\");\n System.out.println(\", -->Symbol \");\n break;\n case (\".\"):\n Tokens.add(\".\");\n System.out.println(\". -->Symbol \");\n break;\n case (\"<=\"):\n Tokens.add(\"<=\");\n System.out.println(\"<= -->Symbol \");\n break;\n case (\">=\"):\n Tokens.add(\">=\");\n System.out.println(\">= -->Symbol \");\n break;\n case (\"!=\"):\n Tokens.add(\"!=\");\n System.out.println(\"!= -->Symbol \");\n break;\n case (\"==\"):\n Tokens.add(\"==\");\n System.out.println(\"== -->Symbol \");\n break;\n\n default:\n String c = output2[j][i];\n\n char ch[] = c.toCharArray();\n\n if (Character.isDigit(ch[0])) {\n Tokens.add(\"Integer Lateral\");\n System.out.println(output2[j][i] + \" --> Integer Lateral \");\n } else if (Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } else if (c.matches(\"\") && Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } // else if(c.contains(\"=\"))\n // {\n // // symbols.contains(Character.toString(code.charAt(i)))\n // System.out.println(output[i] + \" --> Symbol \");\n // }\n else {\n System.out.println(output2[j][i] + \" --> Invalid Token \");\n }\n break;\n }\n }\n }\n\n\n }", "public native void annotateImage(DrawInfo info);", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }", "private void decodeOpcode(int opcode) {\r\n\t\tSystem.out.println(pc);\r\n\t\tSystem.out.println(Integer.toHexString(opcode));\r\n\t\t//0-codes\r\n\t\tswitch (opcode) {\t\t\r\n\t\tcase 0x00E0:\r\n\t\t\t//Clears the screen.\r\n\t\t\tOpcode.clearScreen(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x00EE:\r\n\t\t\t//Returns from a subroutine.\r\n\t\t\tOpcode.returnFromSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//1-codes through 7-codes\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0x1000:\r\n\t\t\t//1NNN. Jumps to address NNN.\r\n\t\t\tOpcode.jumpToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x2000:\r\n\t\t\t//2NNN. Calls subroutine at NNN.\r\n\t\t\tOpcode.callSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x3000:\r\n\t\t\t//3XNN. Skips the next instruction if VX = NN.\r\n\t\t\tOpcode.skipIfEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x4000:\r\n\t\t\t//4XNN. Skips the next instruction if VX != NN.\r\n\t\t\tOpcode.skipIfNotEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x5000:\r\n\t\t\t//5XY0. Skips the next instruction if VX = VY.\r\n\t\t\tOpcode.skipIfEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x6000:\r\n\t\t\t//6XNN. Sets VX to NN.\r\n\t\t\tOpcode.setRegisterToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x7000:\r\n\t\t\t//7XNN. Adds NN to VX.\r\n\t\t\tOpcode.addImmediateToRegister(opcode, this);\r\n\t\t}\r\n\t\t\r\n\t\t//8-codes and 9-codes.\r\n\t\tswitch (opcode & 0xF00F) {\r\n\t\tcase 0x8000:\r\n\t\t\t//8XY0. Sets VX to the value of VY.\r\n\t\t\tOpcode.setRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8001:\r\n\t\t\t//8XY1. Sets VX to the value of VX|VY.\r\n\t\t\tOpcode.setRegisterToRegisterOr(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8002:\r\n\t\t\t//8XY2. Sets VX to the value of VX&VY.\r\n\t\t\tOpcode.setRegisterToRegisterAnd(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8003:\r\n\t\t\t//8XY3. Sets VX to the value of VX^VY.\r\n\t\t\tOpcode.setRegisterToRegisterXor(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8004:\r\n\t\t\t//8XY4. Adds VY to VX. VF is set to 1 when there is a carry, otherwise 0.\r\n\t\t\tOpcode.addRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8005:\r\n\t\t\t//8XY5. VY is subtracted from VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterXFromRegisterY(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8006:\r\n\t\t\t//8XY6. Shifts VX right by one. VF is set to the value of the LSB before the shift.\r\n\t\t\tOpcode.shiftRegisterRight(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8007:\r\n\t\t\t//8XY7. Sets VX to VY minus VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterYFromRegisterX(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x800E:\r\n\t\t\t//8XYE. Shifts VX left by one. VF is set to the value of the MSB before the shift.\r\n\t\t\tOpcode.shiftRegisterLeft(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x9000:\r\n\t\t\t//9XY0. Skips the next instruction if VX != VY.\r\n\t\t\tOpcode.skipIfNotEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//A-codes through D-codes.\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0xA000:\r\n\t\t\t//ANNN. Sets I to the address NNN.\r\n\t\t\tOpcode.setIndexToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xB000:\r\n\t\t\t//BNNN. Jumps to the address NNN plus V0.\r\n\t\t\tOpcode.jumpToImmediatePlusRegister0(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xC000:\r\n\t\t\t//CXNN. Sets VX to the result of a rand(255)&NN.\r\n\t\t\tOpcode.setRegisterToRandom(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xD000:\r\n\t\t\t//DXYN. Draws a sprite at coordinate (VX, VY) that has a width of 8 pixels \r\n\t\t\t//and a height of N pixels.\r\n\t\t\tOpcode.drawSprite(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//E-codes and F-codes.\r\n\t\tswitch (opcode & 0xF0FF) {\r\n\t\tcase 0xE09E:\r\n\t\t\t//EX9E. Skips the next instruction if the key stored in VX is pressed.\r\n\t\t\tOpcode.skipIfKeyPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xE0A1:\r\n\t\t\t//EXA1. Skips the next instruction if the key stored in VX isn't pressed.\r\n\t\t\tOpcode.skipIfKeyNotPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF007:\r\n\t\t\t//FX07. Sets VX to the value of the delay timer.\r\n\t\t\tOpcode.setRegisterToDelay(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF00A:\r\n\t\t\t//FX0A. A key press is awaited, and then stored in VX. Blocking operation.\r\n\t\t\tOpcode.awaitKeyPress(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF015:\r\n\t\t\t//FX15. Sets the delay timer to VX.\r\n\t\t\tOpcode.setDelayToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF018:\r\n\t\t\t//FX18. Sets the sound timer to VX.\r\n\t\t\tOpcode.setSoundToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF01E:\r\n\t\t\t//FX1E. Adds VX to I.\r\n\t\t\tOpcode.addRegisterToIndex(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF029:\r\n\t\t\t//FX29. Sets I to the location of the sprite for the character in VX.\r\n\t\t\tOpcode.setIndexToSpriteLocation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF033:\r\n\t\t\t//FX33. Stores the binary-coded decimal representation of VX.\r\n\t\t\tOpcode.storeBinaryRepresentation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF055:\r\n\t\t\t//FX55. Stores V0 to VX in memory starting at address I.\r\n\t\t\tOpcode.loadRegistersToMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF065:\r\n\t\t\t//FX65. Fills V0 to VX with values from memory starting at address I.\r\n\t\t\tOpcode.loadRegistersFromMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "Code getCode();", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private void processTextRecognitionResult(FirebaseVisionText texts) {\n List<FirebaseVisionText.Block> blocks = texts.getBlocks();\n if (blocks.size() == 0) {\n Toast.makeText(getApplicationContext(), \"onDevice: No text found\", Toast.LENGTH_SHORT).show();\n return;\n }\n mGraphicOverlay.clear();\n for (int i = 0; i < blocks.size(); i++) {\n List<FirebaseVisionText.Line> lines = blocks.get(i).getLines();\n for (int j = 0; j < lines.size(); j++) {\n List<FirebaseVisionText.Element> elements = lines.get(j).getElements();\n for (int k = 0; k < elements.size(); k++) {\n GraphicOverlay.Graphic textGraphic = new TextGraphic(mGraphicOverlay, elements.get(k));\n mGraphicOverlay.add(textGraphic);\n\n }\n }\n }\n }", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "public boolean translateImageToText();", "Bitmap mo27481a(String str);", "private void loadJava(byte[] encodedData, int offset, int len, String file){\n try{\n PngReader reader = new PngReader();\n pixels = reader.read(new ByteArrayInputStream(encodedData, offset, len));\n width = reader.width;\n height = reader.height;\n handle = -1;\n pixels.position(0).limit(pixels.capacity());\n }catch(Exception e){\n throw new ArcRuntimeException(\"Failed to load PNG data\" + (file == null ? \"\" : \" (\" + file + \")\"), e);\n }\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n inactivityTimer.onActivity();\n\n boolean fromLiveScan = barcode != null;\n if (fromLiveScan) {\n // Then not from history, so beep/vibrate and we have an image to draw on\n beepManager.playBeepSoundAndVibrate();\n }\n\n //rawResult.getText() 结果\n if (rawResult == null || TextUtils.isEmpty(rawResult.getText())) {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeFailed();\n }\n } else {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeSuccess(barcode, rawResult.getText());\n }\n }\n\n }", "public void setDrawCodes(boolean draw) {\r\n this.drawCodes = draw;\r\n }", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public static void main(String[] args) {\n MyImageVector.Double img = new MyImageVector.Double(new Loader().loadSVGDocument(\"D:\\\\sample_images_PA\\\\trash_test_mem\\\\images_de_test_pr_figure_assistant\\\\test_scaling_SVG.svg\"));\n //MyImage2D img = new MyImage2D.Double(0, 0, \"D:\\\\sample_images_PA\\\\trash_test_mem\\\\mini\\\\focused_Series010.png\");\n img.addAssociatedObject(new MyRectangle2D.Double(10, 10, 128, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(200, 20, 256, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(100, 10, 256, 128));\n MyPoint2D.Double text = new MyPoint2D.Double(220, 220);\n text.setText(new ColoredTextPaneSerializable(new StyledDoc2Html().reparse(\"<i>test<i>\"), \"\"));\n img.addAssociatedObject(text);\n CheckLineArts iopane = new CheckLineArts(img, 1.5f, true);\n if (!iopane.noError) {\n int result = JOptionPane.showOptionDialog(null, new Object[]{iopane}, \"Check stroke width of line arts\", JOptionPane.CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[]{\"Accept automated solution\", \"Ignore\"}, null);\n if (result == JOptionPane.OK_OPTION) {\n //--> replace objects with copy\n Object strokeData = iopane.getModifiedStrokeData();\n if (strokeData instanceof ArrayList) {\n img.setAssociatedObjects(((ArrayList<Object>) strokeData));\n// for (Object string : img.getAssociatedObjects()) {\n// if (string instanceof PARoi) {\n// System.out.println(((PARoi) string).getStrokeSize());\n// }\n// }\n } else if (strokeData instanceof String) {\n ((MyImageVector) img).setSvg_content_serializable((String) strokeData);\n ((MyImageVector) img).reloadDocFromString();\n }\n }\n }\n System.exit(0);\n }", "public void vision()\n {\n NIVision.IMAQdxGrab(session, colorFrame, 1);\t\t\t\t\n RETRO_HUE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro hue min\", RETRO_HUE_RANGE.minValue);\n\t\tRETRO_HUE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro hue max\", RETRO_HUE_RANGE.maxValue);\n\t\tRETRO_SAT_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro sat min\", RETRO_SAT_RANGE.minValue);\n\t\tRETRO_SAT_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro sat max\", RETRO_SAT_RANGE.maxValue);\n\t\tRETRO_VAL_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro val min\", RETRO_VAL_RANGE.minValue);\n\t\tRETRO_VAL_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro val max\", RETRO_VAL_RANGE.maxValue);\n\t\tAREA_MINIMUM = SmartDashboard.getNumber(\"Area min %\");\n\t\t//MIN_RECT_WIDTH = SmartDashboard.getNumber(\"Min Rect Width\", MIN_RECT_WIDTH);\n\t\t//MAX_RECT_WIDTH = SmartDashboard.getNumber(\"Max Rect Width\", MAX_RECT_WIDTH);\n\t\t//MIN_RECT_HEIGHT = SmartDashboard.getNumber(\"Min Rect Height\", MIN_RECT_HEIGHT);\n\t\t//MAX_RECT_HEIGHT= SmartDashboard.getNumber(\"Max Rect Height\", MAX_RECT_HEIGHT);\n\t\t\n\t\t//SCALE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Scale Range Min\");\n\t\t//SCALE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Scale Range Max\");\n\t\t//MIN_MATCH_SCORE = (int)SmartDashboard.getNumber(\"Min Match Score\");\n //Look at the color frame for colors that fit the range. Colors that fit the range will be transposed as a 1 to the binary frame.\n\t\t\n\t\tNIVision.imaqColorThreshold(binaryFrame, colorFrame, 255, ColorMode.HSV, RETRO_HUE_RANGE, RETRO_SAT_RANGE, RETRO_VAL_RANGE);\n\t\t//Send the binary image to the cameraserver\n\t\tif(cameraView.getSelected() == BINARY)\n\t\t{\n\t\t\tCameraServer.getInstance().setImage(binaryFrame);\n\t\t}\n\n\t\tcriteria[0] = new NIVision.ParticleFilterCriteria2(NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA, AREA_MINIMUM, 100.0, 0, 0);\t\t\n\t\t\n NIVision.imaqParticleFilter4(binaryFrame, binaryFrame, criteria, filterOptions, null);\n\n // NIVision.RectangleDescriptor rectangleDescriptor = new NIVision.RectangleDescriptor(MIN_RECT_WIDTH, MAX_RECT_WIDTH, MIN_RECT_HEIGHT, MAX_RECT_HEIGHT);\n// \n// //I don't know\n// NIVision.CurveOptions curveOptions = new NIVision.CurveOptions(NIVision.ExtractionMode.NORMAL_IMAGE, 0, NIVision.EdgeFilterSize.NORMAL, 0, 1, 1, 100, 1,1);\n// NIVision.ShapeDetectionOptions shapeDetectionOptions = new NIVision.ShapeDetectionOptions(1, rectAngleRanges, SCALE_RANGE, MIN_MATCH_SCORE);\n// NIVision.ROI roi = NIVision.imaqCreateROI();\n//\n// NIVision.DetectRectanglesResult result = NIVision.imaqDetectRectangles(binaryFrame, rectangleDescriptor, curveOptions, shapeDetectionOptions, roi);\n// //Dummy rectangle to start\n// \n// NIVision.RectangleMatch bestMatch = new NIVision.RectangleMatch(new PointFloat[]{new PointFloat(0.0, 0.0)}, 0, 0, 0, 0);\n// \n// //Find the best matching rectangle\n// for(NIVision.RectangleMatch match : result.array)\n// {\n// \tif(match.score > bestMatch.score)\n// \t{\n// \t\tbestMatch = match;\n// \t}\n// }\n// SmartDashboard.putNumber(\"Rect height\", bestMatch.height);\n// SmartDashboard.putNumber(\"Rect Width\", bestMatch.width);\n// SmartDashboard.putNumber(\"Rect rotation\", bestMatch.rotation);\n// SmartDashboard.putNumber(\"Rect Score\", bestMatch.score);\n \n //Report how many particles there are\n\t\tint numParticles = NIVision.imaqCountParticles(binaryFrame, 1);\n\t\tSmartDashboard.putNumber(\"Masked particles\", numParticles);\n\t\t\n \n\t\tif(numParticles > 0)\n\t\t{\n\t\t\t//Measure particles and sort by particle size\n\t\t\tVector<ParticleReport> particles = new Vector<ParticleReport>();\n\t\t\tfor(int particleIndex = 0; particleIndex < numParticles; particleIndex++)\n\t\t\t{\n\t\t\t\tParticleReport par = new ParticleReport();\n\t\t\t\tpar.Area = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA);\n\t\t\t\tpar.AreaByImageArea = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA);\n\t\t\t\tpar.BoundingRectTop = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_TOP);\n\t\t\t\tpar.BoundingRectLeft = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_LEFT);\n\t\t\t\tpar.BoundingRectHeight = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_HEIGHT);\n\t\t\t\tpar.BoundingRectWidth = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_WIDTH);\n\t\t\t\tparticles.add(par);\n\n\t\t\t}\n\t\t\tparticles.sort(null);\n\n\t\t\t//This example only scores the largest particle. Extending to score all particles and choosing the desired one is left as an exercise\n\t\t\t//for the reader. Note that this scores and reports information about a single particle (single L shaped target). To get accurate information \n\t\t\t//about the location of the tote (not just the distance) you will need to correlate two adjacent targets in order to find the true center of the tote.\n//\t\t\tscores.Aspect = AspectScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Aspect\", scores.Aspect);\n//\t\t\tscores.Area = AreaScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Area\", scores.Area);\n//\t\t\tboolean isTote = scores.Aspect > SCORE_MIN && scores.Area > SCORE_MIN;\n//\n\t\t\tParticleReport bestParticle = particles.elementAt(0);\n\t\t NIVision.Rect particleRect = new NIVision.Rect((int)bestParticle.BoundingRectTop, (int)bestParticle.BoundingRectLeft, (int)bestParticle.BoundingRectHeight, (int)bestParticle.BoundingRectWidth);\n\t\t \n\t\t //NIVision.imaqOverlayRect(colorFrame, particleRect, new NIVision.RGBValue(0, 0, 0, 255), DrawMode.PAINT_VALUE, \"a\");//;(colorFrame, colorFrame, particleRect, DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 20);\n\t\t NIVision.imaqDrawShapeOnImage(colorFrame, colorFrame, particleRect, NIVision.DrawMode.DRAW_VALUE, ShapeMode.SHAPE_RECT, 0.0f);\n\t\t SmartDashboard.putNumber(\"Rect Top\", bestParticle.BoundingRectTop);\n\t\t SmartDashboard.putNumber(\"Rect Left\", bestParticle.BoundingRectLeft);\n\t\t SmartDashboard.putNumber(\"Rect Width\", bestParticle.BoundingRectWidth);\n\t\t SmartDashboard.putNumber(\"Area by image area\", bestParticle.AreaByImageArea);\n\t\t SmartDashboard.putNumber(\"Area\", bestParticle.Area);\n\t\t double bestParticleMidpoint = bestParticle.BoundingRectLeft + bestParticle.BoundingRectWidth/2.0;\n\t\t double bestParticleMidpointAimingCoordnates = pixelCoordnateToAimingCoordnate(bestParticleMidpoint, CAMERA_RESOLUTION_X);\n\t\t angleToTarget = aimingCoordnateToAngle(bestParticleMidpointAimingCoordnates, VIEW_ANGLE);\n\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\tangleToTarget = 0.0;\n\t\t}\n\n if(cameraView.getSelected() == COLOR)\n {\n \tCameraServer.getInstance().setImage(colorFrame);\n }\n\t SmartDashboard.putNumber(\"Angle to target\", angleToTarget);\n\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "String getBbgSymbol();", "public void parsePseudocode() {\n\t\tputTokens();\n\t\tsetTokenLength();\n\t\ttokenize();\n\t\tdataToJS();\n\t}", "Editor mo117962b();", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "String getMapCode();", "Value getInterpretation();", "@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}", "public void visualChange();", "private void gen_rdp_pc() {\r\n // create prolog: coordinates, name, display options, default properties\r\n // first, set the visual properties for the source code\r\n SourceCodeProperties scProps = new SourceCodeProperties();\r\n scProps.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n scProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\",\r\n Font.PLAIN, 12));\r\n scProps.set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n scProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n // now, create the prolog entity\r\n SourceCode prolog = lang.newSourceCode(new Coordinates(15, 40), \"prolog\",\r\n null, scProps);\r\n\r\n // add the lines to the prolog object.\r\n // line, name, indentation, display delay\r\n prolog\r\n .addCodeLine(\r\n \"The Ramer-Douglas-Peucker algorithm is an algorithm for reducing the number\",\r\n null, 0, null); // 0\r\n prolog.addCodeLine(\r\n \"of points in a curve that is approximated by a series of points.\",\r\n null, 0, null); // 1\r\n prolog\r\n .addCodeLine(\r\n \"The initial form of the algorithm was independently suggested in 1972\",\r\n null, 0, null); // 2\r\n prolog.addCodeLine(\r\n \"by Urs Ramer and 1973 by David Douglas and Thomas Peucker.\", null, 0,\r\n null); // 3\r\n prolog.addCodeLine(\" \", null, 0, null); // 4\r\n prolog\r\n .addCodeLine(\r\n \"The purpose of the algorithm is, given a curve composed of line segments,\",\r\n null, 0, null); // 5\r\n prolog\r\n .addCodeLine(\r\n \"to find a similar curve with fewer points. The algorithm defines 'dissimilarity'\",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"based on the maximum distance between the original curve and the simplified curve.\",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"The simplified curve consists of a subset of the points that defined the original curve.\",\r\n null, 0, null); // 6\r\n prolog.addCodeLine(\" \", null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"The Ramer-Douglas-Peucker algorithm finds its application within processing of \",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"vector graphics and in cartographic generalization. One can find it also in robotics.\",\r\n null, 0, null); // 6\r\n\r\n // create code entity\r\n code = lang\r\n .newSourceCode(new Coordinates(15, 40), \"code\", null, SourceCode);\r\n code.addCodeLine(\"Input: points=\" + p + \"; \" + \"epsilon=\" + e + \"; \", null,\r\n 0, null);\r\n code.addCodeLine(\" \", null, 1, null);\r\n code.addCodeLine(\"ResultList.add(PointList[1], PointList[end]);\", null, 0,\r\n null);\r\n code.addCodeLine(\"pdp(PointList[],1,(PointList[].size()),epsilon);\", null,\r\n 0, null);\r\n code.addCodeLine(\"function rdp(lPointList[], start, end, l_epsilon) {\",\r\n null, 0, null);\r\n code.addCodeLine(\r\n \"dmax = OrthogonalMaxDistance(PointList[start+1...end-1]);\", null, 1,\r\n null);\r\n code.addCodeLine(\"index = OrthogonalMaxDistancePointIndex();\", null, 1,\r\n null);\r\n code.addCodeLine(\"if (dmax >= epsilon){\", null, 1, null);\r\n code.addCodeLine(\r\n \"ResultList.add(lPointList.get(index)); //add a split point\", null, 2,\r\n null);\r\n code.addCodeLine(\r\n \"pdp(lPointList[],start,index,l_epsilon); //go recursively left\", null,\r\n 2, null);\r\n code.addCodeLine(\r\n \"pdp(lPointList[],index,end,l_epsilon); //go recursively right\", null,\r\n 2, null);\r\n code.addCodeLine(\"}else{\", null, 1, null);\r\n code.addCodeLine(\"//dmax < l_epsilon: no new 'dissimilar' points to add\",\r\n null, 2, null);\r\n code.addCodeLine(\"}endif\", null, 1, null);\r\n code.addCodeLine(\"return ResultList[];\", null, 1, null);\r\n code.addCodeLine(\"}\", null, 0, null);\r\n\r\n SourceCodeProperties scPROPERTIES = new SourceCodeProperties();\r\n scPROPERTIES.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n scPROPERTIES.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\r\n \"Monospaced\", Font.PLAIN, 12));\r\n scPROPERTIES\r\n .set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n scPROPERTIES.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n SourceCode func_desc = lang.newSourceCode(new Coordinates(15, 245),\r\n \"func_desc\", null, scPROPERTIES);\r\n func_desc.addCodeLine(\"Remarks:\", null, 0, null);\r\n func_desc.addCodeLine(\r\n \"The algorithm makes use of the following functions:\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"OrthogonalMaxDistance() - computes orthogonal distance from a point to a line segment;\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"OrthogonalMaxDistancePointIndex() - retrieves the index and coordinates of the furtherst point.\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"There are different approaches how to compute orthogonal distances: e.g. least squares or least circles for 2D.\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"Practically it might be effective to combine both functions or even to embedd OrthogonalMaxDistancePointIndex()\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"directly within OrthogonalMaxDistance(), where OrthogonalMaxDistance() is executed against the current set\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"of points, and goes through every point in the set located within the given line segment computing their\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"orthogonal distances; here OrthogonalMaxDistancePointIndex() keeps track of the most distant point\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"and retrieves its index and coordinates.\", null, 0,\r\n null);\r\n\r\n func_desc.highlight(0);\r\n code.hide();\r\n lang.nextStep();\r\n\r\n code.show();\r\n func_desc.hide();\r\n prolog.hide();\r\n\r\n lang.nextStep();\r\n }", "public abstract void mo2141b(Typeface typeface, boolean z);", "private static void displayXCode() {\n if (dvm.getStartingLine() < 0){\n System.out.println(\"====\"+dvm.getCurrentFunction().toUpperCase()+\"====\");\n }else{\n for (int i = dvm.getStartingLine(); i <= dvm.getEndingLine(); i++) {\n if (dvm.isLineABreakPoint(i)){\n //NOTE: (char)249 is extended ascii for a little solid square.\n //I'm sorry if it comes out as something else on your machine\n //I do not know how (or if its possible) to check if the machine\n //that will run this program supports extended ascii. If it doesnt\n //It should just show up as an empty box, which is acceptable\n //For my purposes as well.\n System.out.print((char)249);\n }else\n System.out.print(\" \");\n\n if (i == dvm.getCurrentLine())\n System.out.println(String.format(\"%1$4s %2$s\", i + \")\", dvm.getLineOfSourceCode(i)+ \" <-----------\"));\n else\n System.out.println(String.format(\"%1$4s %2$s\", i + \")\", dvm.getLineOfSourceCode(i)));\n }\n }\n }", "com.google.protobuf.ByteString\n getRendererBytes();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public MainFrame() {\n \n /*Integer a = 127;\n Integer b = 127;\n Integer c = 128;\n Integer d = 128;\n System.out.println(a==b);\n System.out.println(c==d);*/\n \n initComponents();\n net = new Hopfield(10, 12);\n net.init();\n net.learn();\n \n \n /*int[][] figure = new int[5][5];\n for (int i=0; i<5; i++)\n for (int j=0; j<5; j++)\n figure[i][j]=-1;\n \n figure[1][3]=1;*/\n \n /*int[][] figure = {\n {-1, -1, -1, -1, -1}, \n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1},\n {-1, -1, -1, -1, -1}};\n \n figure = net.identify(figure);\n \n for (int i=0; i<5; i++) {\n java.lang.System.out.println();\n for (int j=0; j<5; j++)\n java.lang.System.out.print(figure[i][j]>=0?\"+\"+figure[i][j]+\" \":figure[i][j]+\" \");\n }*/\n \n /*int[][] test_fig = new int[7][7];\n for (int i=0; i<7; i++)\n for (int j=0; j<7; j++)\n test_fig[i][j] = -1;\n test_fig[1][1] = 1;\n test_fig[2][2] = 1;\n test_fig[3][3] = 1;\n test_fig[4][4] = 1;\n test_fig[5][5] = 1;\n test_fig[6][6] = 1;\n test_fig[1][1] = 1;\n test_fig[3][4] = 1;\n test_fig[4][3] = 1;\n test_fig[4][1] = 1;\n \n java.lang.System.out.println(net.getWidth()+\" \"+net.getHeight());\n \n java.lang.System.out.println(\"\\nИзначально\");\n \n for (int i=0; i<7; i++) {\n for (int j=0; j<7; j++) {\n //java.lang.System.out.println(i+\" \"+j);\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(test_fig[i][j]==1?\"#\":\"_\");\n }\n }\n \n int[][] res = net.resize(test_fig, 7, 7);\n \n java.lang.System.out.println(\"\\n\\n\\nДо трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }\n \n res = net.identify(res);\n \n java.lang.System.out.println(\"\\n\\n\\nПосле трансформации\");\n \n for (int i=0; i<net.getWidth(); i++) {\n for (int j=0; j<net.getHeight(); j++) {\n if (j==0)\n java.lang.System.out.println();\n if (j>0)\n java.lang.System.out.print(\".\");\n java.lang.System.out.print(res[i][j]==1?\"#\":\"_\");\n }\n }*/\n //net.test_old();\n //net.test();\n buttonGroup.add(rbuttonFonModel);\n buttonGroup.add(rbuttonPorogBit);\n buttonGroup.add(rbuttonPorogColor);\n buttonGroup.add(rbuttonPorogGrey);\n buttonGroup.add(rbuttonPorogColorSubstr);\n buttonGroup.add(rbuttonItog);\n //rbuttonFonModel.setSelected(true);\n //rbuttonPorogBit.setSelected(true);\n rbuttonItog.setSelected(true);\n model.setNet(net);\n }", "public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}", "void draw() {\n\n // SeamInfo lowestSeam = this.lowestSeamVert();\n // lowestSeam.changeColor();\n\n ComputedPixelImage seamRemovedImg = new ComputedPixelImage(this.newImg.width,\n this.newImg.height);\n int countRow = 0;\n int countCol = 0;\n\n Pixel current = this.curPixel;\n Pixel temp;\n\n while (current.down != null) {\n temp = current.down;\n while (current.right != null) {\n Color c = Color.MAGENTA;\n if (current.highlighted) {\n c = Color.RED;\n }\n else {\n c = current.color;\n }\n if (this.showType.equals(\"e\")) {\n int energy = (int) (current.energy * 100);\n if (energy > 255) {\n System.out.println(\"energy: \" + energy + \" to 255\");\n energy = 255;\n }\n c = new Color(energy, energy, energy);\n }\n else if (this.showType.equals(\"w\")) {\n int weight = (int) (current.seam.totalWeight);\n if (weight > 255) {\n System.out.println(\"weight: \" + weight + \" to 255\");\n weight = 255;\n }\n c = new Color(weight, weight, weight);\n }\n\n seamRemovedImg.setColorAt(countCol, countRow, c);\n countCol += 1;\n current = current.right;\n }\n countCol = 0;\n countRow += 1;\n current = temp;\n }\n countCol = 0;\n\n this.newImg = seamRemovedImg;\n\n }", "public void showbitmap3() {\n \n \t}", "@Override\r\n public void run() {\n do {\r\n try {\r\n Thread.sleep(100);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n Result result = null;\r\n BufferedImage image = null;\r\n if (webcam.isOpen()) {\r\n if ((image = webcam.getImage()) == null) {\r\n continue;\r\n }\r\n \t//iconlabel\r\n\t ImageIcon icon=new ImageIcon(image);\r\n\t icon.setImage(icon.getImage().getScaledInstance(300,300,Image.SCALE_DEFAULT));\r\n\t iconLabel.setIcon(icon); \r\n\t \r\n \t//qrcode\r\n LuminanceSource source =new BufferedImageLuminanceSource( image) ;\r\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\r\n\r\n try {\r\n result = new MultiFormatReader().decode(bitmap);\r\n } catch (NotFoundException e) {\r\n // fall thru, it means there is no QR code in image\r\n }\r\n }\r\n if (result != null) {\r\n textarea.setText(result.getText());\r\n System.out.println(result.getText());\r\n }\r\n\r\n } while (true);\r\n }", "public interface GraphicsNode\n/* */ {\n/* */ public static final int VISIBLE_PAINTED = 0;\n/* */ public static final int VISIBLE_FILL = 1;\n/* */ public static final int VISIBLE_STROKE = 2;\n/* */ public static final int VISIBLE = 3;\n/* */ public static final int PAINTED = 4;\n/* */ public static final int FILL = 5;\n/* */ public static final int STROKE = 6;\n/* */ public static final int ALL = 7;\n/* */ public static final int NONE = 8;\n/* 102 */ public static final AffineTransform IDENTITY = new AffineTransform();\n/* */ \n/* */ WeakReference getWeakReference();\n/* */ \n/* */ int getPointerEventType();\n/* */ \n/* */ void setPointerEventType(int paramInt);\n/* */ \n/* */ void setTransform(AffineTransform paramAffineTransform);\n/* */ \n/* */ AffineTransform getTransform();\n/* */ \n/* */ AffineTransform getInverseTransform();\n/* */ \n/* */ AffineTransform getGlobalTransform();\n/* */ \n/* */ void setComposite(Composite paramComposite);\n/* */ \n/* */ Composite getComposite();\n/* */ \n/* */ void setVisible(boolean paramBoolean);\n/* */ \n/* */ boolean isVisible();\n/* */ \n/* */ void setClip(ClipRable paramClipRable);\n/* */ \n/* */ ClipRable getClip();\n/* */ \n/* */ void setRenderingHint(RenderingHints.Key paramKey, Object paramObject);\n/* */ \n/* */ void setRenderingHints(Map paramMap);\n/* */ \n/* */ void setRenderingHints(RenderingHints paramRenderingHints);\n/* */ \n/* */ RenderingHints getRenderingHints();\n/* */ \n/* */ void setMask(Mask paramMask);\n/* */ \n/* */ Mask getMask();\n/* */ \n/* */ void setFilter(Filter paramFilter);\n/* */ \n/* */ Filter getFilter();\n/* */ \n/* */ Filter getGraphicsNodeRable(boolean paramBoolean);\n/* */ \n/* */ Filter getEnableBackgroundGraphicsNodeRable(boolean paramBoolean);\n/* */ \n/* */ void paint(Graphics2D paramGraphics2D);\n/* */ \n/* */ void primitivePaint(Graphics2D paramGraphics2D);\n/* */ \n/* */ CompositeGraphicsNode getParent();\n/* */ \n/* */ RootGraphicsNode getRoot();\n/* */ \n/* */ Rectangle2D getBounds();\n/* */ \n/* */ Rectangle2D getTransformedBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ Rectangle2D getPrimitiveBounds();\n/* */ \n/* */ Rectangle2D getTransformedPrimitiveBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ Rectangle2D getGeometryBounds();\n/* */ \n/* */ Rectangle2D getTransformedGeometryBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ Rectangle2D getSensitiveBounds();\n/* */ \n/* */ Rectangle2D getTransformedSensitiveBounds(AffineTransform paramAffineTransform);\n/* */ \n/* */ boolean contains(Point2D paramPoint2D);\n/* */ \n/* */ boolean intersects(Rectangle2D paramRectangle2D);\n/* */ \n/* */ GraphicsNode nodeHitAt(Point2D paramPoint2D);\n/* */ \n/* */ Shape getOutline();\n/* */ }", "void mo12205a(Bitmap bitmap);", "public String getlbr_Barcode2();", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "private boolean aYV() {\n /*\n r4 = this;\n r3 = 1;\n r2 = 0;\n r0 = com.android.common.custom.C0421M.dC();\n r0 = r0.dD();\n r0 = r0.bU();\n if (r0 != 0) goto L_0x001d;\n L_0x0010:\n r0 = r4.aiG;\n r0 = r0.SY();\n r0 = r0.tx();\n if (r0 == 0) goto L_0x001d;\n L_0x001c:\n return r2;\n L_0x001d:\n r0 = r4.aIO;\n if (r0 == 0) goto L_0x0041;\n L_0x0021:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NF();\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = r4.aiG;\n r0 = r0.TE();\n r0 = r0.Ll();\n if (r0 == 0) goto L_0x0041;\n L_0x0039:\n r0 = r4.asP();\n r1 = com.android.common.camerastate.UIState.CAMERA_FAMILY;\n if (r0 != r1) goto L_0x0042;\n L_0x0041:\n return r2;\n L_0x0042:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NP();\n if (r0 != 0) goto L_0x0041;\n L_0x004e:\n r0 = r4.asJ();\n r1 = com.android.common.camerastate.DeviceState.SNAPSHOT_IN_PROGRESS;\n if (r0 == r1) goto L_0x0041;\n L_0x0056:\n r0 = r4.aiG;\n r0 = r0.SQ();\n r1 = com.android.common.cameradevice.C0384o.Jr();\n r1 = r1.Jt();\n if (r0 != r1) goto L_0x0067;\n L_0x0066:\n return r2;\n L_0x0067:\n r0 = r4.aiG;\n r0 = r0.To();\n switch(r0) {\n case 0: goto L_0x0073;\n case 90: goto L_0x0084;\n case 180: goto L_0x0073;\n case 270: goto L_0x0084;\n default: goto L_0x0070;\n };\n L_0x0070:\n r0 = r4.aID;\n return r0;\n L_0x0073:\n r0 = r4.aIK;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIJ;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0081:\n r4.aID = r3;\n goto L_0x0070;\n L_0x0084:\n r0 = r4.aIJ;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIK;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0092:\n r4.aID = r3;\n goto L_0x0070;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.Camera.aYV():boolean\");\n }", "public void doAutoDetect()\r\n {\r\n Graphics g = this.getGraphics(); \r\n // Create the off-screen drawing area\r\n offscreenImage = createImage(getWidth(), getHeight());\r\n offscreenGraphics = offscreenImage.getGraphics();\r\n long start;\r\n long end;\r\n\r\n // Tally the number of times we were able to draw direct and buffered\r\n int directCount = 0;\r\n int bufferedCount = 0;\r\n\r\n g.setColor(getBackground());\r\n // Mark what time we started\r\n start = System.currentTimeMillis();\r\n end = start;\r\n\r\n // Paint patterns directly to the screen, but only for 500 milliseconds\r\n while ((end-start) < 500) {\r\n paintDetectionDesign(g);\r\n end = System.currentTimeMillis();\r\n directCount++;\r\n }\r\n g.setColor(getForeground());\r\n\r\n // record the total time spent drawing directly\r\n long directTime = end - start;\r\n\r\n start = System.currentTimeMillis();\r\n end = start;\r\n\r\n // Paint patterns to the offscreen graphics, but only for 500 milliseconds\r\n while ((end-start) < 500) {\r\n paintDetectionDesign(offscreenGraphics);\r\n end = System.currentTimeMillis();\r\n bufferedCount++;\r\n }\r\n\r\n long bufferedTime = end - start;\r\n\r\n // If we were able to draw more times using the buffered graphics,\r\n // or if the drawing counts are the same, but the total time for\r\n // the buffering was less, buffering is faster.\r\n if ((bufferedCount > directCount) ||\r\n ((bufferedCount == directCount) &&\r\n (bufferedTime < directTime))) {\r\n drawDirect = false;\r\n } else {\r\n // If we want to draw direct, free the space taken up by the\r\n // offscreen image and graphics context.\r\n offscreenImage.flush();\r\n offscreenImage = null;\r\n offscreenGraphics = null;\r\n drawDirect = true;\r\n }\r\n }", "public void algorithmPerformed(AlgorithmBase algorithm) {\r\n\r\n /* if (algorithm instanceof AlgorithmRegVOILandmark) {\r\n\r\n if (algoRegVOILankmark.isCompleted() == true) {\r\n\r\n // display registered image\r\n Vector imageFrames = image.getImageFrameVector();\r\n\r\n for (int i = 0; i < imageFrames.size(); i++) {\r\n //((Frame) (imageFrames.elementAt(i))).setTitle(titles[i]);\r\n ((Frame) (imageFrames.elementAt(i))).setEnabled(true);\r\n\r\n if (((Frame) (imageFrames.elementAt(i))) != parentFrame) {\r\n UI.registerFrame((Frame) (imageFrames.elementAt(i)));\r\n }\r\n }\r\n\r\n if (parentFrame != null) {\r\n UI.registerFrame(parentFrame);\r\n }\r\n\r\n image.notifyImageDisplayListeners(null, true);\r\n }\r\n }*/\r\n\r\n // Update frame\r\n // ((ViewJFrameBase)parentFrame).updateImages(true);\r\n dispose();\r\n }", "public String visualize(byte[] input) {\n if (input == null) {\n return \"NULL\";\n }\n\n // This method could be overridden if needed, but currently all visualization\n // techniques can work on a single byte.\n StringBuilder builder = new StringBuilder();\n for (byte b : input) {\n builder.append(visualize(b));\n }\n return builder.toString();\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "public void drawInfo(Graphics g) {\n if (db == null) return;\n int zVal = zSliceSel == null ? 1 : zSliceSel.getValue();\n int tVal = tSliceSel == null ? 1 : tSliceSel.getValue();\n \n int textGap = 0;\n \n int nSlices = imp.getStackSize();\n \n // ImageStack stack = imp.getStack();\n int currentSlice = imp.getCurrentSlice();\n \n StringBuffer sb = new StringBuffer();\n sb.append(currentSlice);\n sb.append(\"/\");\n sb.append(nSlices);\n sb.append(\"; \");\n if (db.hasZ) {\n sb.append(zString);\n sb.append(\": \");\n sb.append(zVal);\n sb.append(\"/\");\n sb.append(db.numZ);\n sb.append(\"; \");\n }\n if (db.hasT) {\n sb.append(tString);\n sb.append(\": \");\n sb.append(tVal);\n sb.append(\"/\");\n sb.append(db.numT);\n sb.append(\"; \");\n }\n if (db.names != null) {\n String name = db.names[currentSlice - 1];\n if (name != null) {\n sb.append(name);\n sb.append(\"; \");\n }\n }\n \n int width = imp.getWidth(), height = imp.getHeight();\n Calibration cal = imp.getCalibration();\n if (cal.pixelWidth != 1.0 || cal.pixelHeight != 1.0) {\n sb.append(IJ.d2s(width * cal.pixelWidth, 2));\n sb.append(\"x\");\n sb.append(IJ.d2s(height * cal.pixelHeight, 2));\n sb.append(\" \");\n sb.append(cal.getUnits());\n sb.append(\" (\");\n sb.append(width);\n sb.append(\"x\");\n sb.append(height);\n sb.append(\"); \");\n }\n else {\n sb.append(width);\n sb.append(\"x\");\n sb.append(height);\n sb.append(\" pixels; \");\n }\n int type = imp.getType();\n int stackSize = imp.getStackSize();\n int size = (width * height * stackSize) / 1048576;\n switch (type) {\n case ImagePlus.GRAY8:\n sb.append(\"8-bit grayscale\");\n break;\n case ImagePlus.GRAY16:\n sb.append(\"16-bit grayscale\");\n size *= 2;\n break;\n case ImagePlus.GRAY32:\n sb.append(\"32-bit grayscale\");\n size *= 4;\n break;\n case ImagePlus.COLOR_256:\n sb.append(\"8-bit color\");\n break;\n case ImagePlus.COLOR_RGB:\n sb.append(\"RGB\");\n size *= 4;\n break;\n }\n sb.append(\"; \");\n sb.append(size);\n sb.append(\"M\");\n \n Insets insets = super.getInsets();\n g.drawString(sb.toString(), 5, insets.top + textGap);\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tiv_showCode.setImageBitmap(GenerateCodeActivity.getInstance().createBitmap());\n\t\t}", "public boolean getSaveBytecode();" ]
[ "0.6494408", "0.5775395", "0.5756827", "0.5717434", "0.5545533", "0.55110055", "0.55078566", "0.5440935", "0.54335433", "0.53870404", "0.53850377", "0.53645307", "0.53496313", "0.5303144", "0.53006923", "0.5296524", "0.52869713", "0.5270739", "0.5264797", "0.5254236", "0.5206741", "0.5196173", "0.5192985", "0.5190853", "0.51805925", "0.5110961", "0.5099412", "0.5098235", "0.5086192", "0.5062387", "0.505989", "0.5050246", "0.5046661", "0.5012938", "0.49988616", "0.49885297", "0.49758866", "0.49655017", "0.49504077", "0.49379846", "0.49193156", "0.49140576", "0.49131915", "0.4899296", "0.48910758", "0.48894352", "0.48884675", "0.48825648", "0.48759264", "0.4871062", "0.48590288", "0.48582885", "0.48484695", "0.4829415", "0.48259246", "0.48128447", "0.4811896", "0.48101956", "0.48077554", "0.47953802", "0.47950104", "0.47883183", "0.47870016", "0.4786041", "0.47845113", "0.47703743", "0.4769876", "0.47686905", "0.47676817", "0.47569212", "0.4753955", "0.47522846", "0.47475", "0.47430927", "0.47380355", "0.47366023", "0.47335935", "0.47335935", "0.47335935", "0.47335935", "0.47335935", "0.47326484", "0.47308016", "0.47233823", "0.47196028", "0.4713185", "0.47101048", "0.47071216", "0.47000986", "0.47000507", "0.4699574", "0.46913415", "0.4688805", "0.4688682", "0.4687707", "0.468733", "0.4683775", "0.46814483", "0.4679766", "0.46764097" ]
0.54994875
7
C++: bool cv::GraphicalCodeDetector::detectMulti(Mat img, Mat& points) Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
public boolean detectMulti(Mat img, Mat points) { return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void process(String fname, String imgpath) {\n\t\tMat img = Highgui.imread(fname, 0);\n\n\t\tMat smallerImg = new Mat();\n\t\tdouble aspect_ratio = img.cols() * 1.0 / img.rows();\n\n\t\tint size = 1024;\n\t\tImgproc.resize(img, smallerImg, new Size(size, size / aspect_ratio), 0,\n\t\t\t\t0, 0);\n\n\t\tMat thresholdImg = new Mat();\n\t\tImgproc.threshold(smallerImg, thresholdImg, 90, 255,\n\t\t\t\tImgproc.THRESH_BINARY_INV);\n\n\t\timshow(thresholdImg, \"Thresholded Image\");\n\n\t\tMat element = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,\n\t\t\t\tnew Size(3, 3));\n\t\tImgproc.dilate(thresholdImg, thresholdImg, element);\n\n\t\tList<MatOfPoint> contourList = new ArrayList<MatOfPoint>();\n\n\t\tMat hierarchy = new Mat();\n\t\tMat tempImg = new Mat();\n\t\tthresholdImg.copyTo(tempImg);\n\n\t\tMat edges = new Mat();\n\t\tImgproc.Canny(tempImg, edges, 55, 200);\n\n\t\tImgproc.findContours(tempImg, contourList, hierarchy,\n\t\t\t\tImgproc.RETR_CCOMP, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\tSystem.out.println(\"Contours: \" + contourList.size());\n\n\t\tScalar color = new Scalar(255, 0, 255);\n\n\t\tList<List<Integer>> topLevelList = new ArrayList<List<Integer>>();\n\n\t\tfor (int i = 0; i < contourList.size(); i++) {\n\t\t\tdouble vals[] = hierarchy.get(0, i);\n\n\t\t\tif ((int) vals[PARENT] < 0) {\n\t\t\t\tMat c = contourList.get(i);\n\t\t\t\tif (Imgproc.contourArea(c) > 10) {\n\t\t\t\t\tList<Integer> obj = new ArrayList<Integer>();\n\t\t\t\t\tobj.add(i);\n\n\t\t\t\t\tint ptr = (int) vals[CHILD];\n\t\t\t\t\twhile (ptr != -1) {\n\t\t\t\t\t\tobj.add(ptr);\n\t\t\t\t\t\tptr = (int) hierarchy.get(0, ptr)[NEXT];\n\t\t\t\t\t}\n\t\t\t\t\ttopLevelList.add(obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMat drawn = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tfor (Integer i : obj) {\n\t\t\t\tImgproc.drawContours(drawn, contourList, i, color);\n\t\t\t}\n\t\t}\n\t\timshow(drawn, \"Contours\");\n\n\t\tList<Rect> rectangles = new ArrayList<Rect>();\n\t\tList<String> keys = new ArrayList<String>();\n\n\t\tMat houghImg = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tMatOfPoint outline = contourList.get(obj.get(0));\n\t\t\tRect r = Imgproc.boundingRect(outline);\n\t\t\tMat raw = Mat.zeros(r.size(), CvType.CV_8UC3);\n\n\t\t\traw = thresholdImg.submat(r);\n\n\t\t\tMat lines = new Mat();\n\t\t\tImgproc.HoughLinesP(raw, lines, 2, Math.PI / 4, 30);\n\n\t\t\tMat hough = houghImg.submat(r);\n\t\t\tList<Double> angles = new ArrayList<Double>();\n\t\t\tList<Double> xintercepts = new ArrayList<Double>();\n\t\t\tList<Double> yintercepts = new ArrayList<Double>();\n\t\t\tList<Double> lengths = new ArrayList<Double>();\n\n\t\t\tfor (int i = 0; i < lines.cols(); i++) {\n\t\t\t\tdouble val[] = lines.get(0, i);\n\n\t\t\t\tint dy = (int) (val[1] - val[3]);\n\t\t\t\tint dx = (int) (val[0] - val[2]);\n\t\t\t\tdouble len = Math.sqrt(dy * dy + dx * dx);\n\n\t\t\t\tdouble percent = 0.0;\n\t\t\t\tdouble divisor = 0;\n\t\t\t\tdouble rad;\n\t\t\t\tdouble yintercept;\n\t\t\t\tdouble xintercept;\n\n\t\t\t\tif (dy == 0) {\n\t\t\t\t\tdivisor = r.width;\n\t\t\t\t\tyintercept = val[1] / r.height; // y-intercept in %\n\t\t\t\t\txintercept = Math.min(val[0], val[2]) / r.width; // x-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\trad = 0;\n\t\t\t\t} else if (dx == 0) {\n\t\t\t\t\tdivisor = r.height;\n\t\t\t\t\tyintercept = Math.min(val[1], val[3]) / r.height; // y-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\txintercept = val[0] / r.width; // x-intercept in %\n\t\t\t\t\trad = Double.NaN;\n\t\t\t\t} else {\n\t\t\t\t\trad = Math.atan2(dy, dx);\n\t\t\t\t\t// This is going to be a diagonal at n * pi / 4 because of\n\t\t\t\t\t// magic\n\t\t\t\t\tdivisor = Math\n\t\t\t\t\t\t\t.sqrt(r.width * r.width + r.height * r.height);\n\t\t\t\t\tyintercept = (val[1] - dy * val[0] / dx) / r.height;\n\t\t\t\t\txintercept = (val[0] - dx * val[1] / dy) / r.width;\n\t\t\t\t}\n\t\t\t\tpercent = Math.abs(len / divisor);\n\n\t\t\t\tif (percent > 0.333) {\n\t\t\t\t\tangles.add(rad);\n\t\t\t\t\tyintercepts.add(yintercept);\n\t\t\t\t\txintercepts.add(xintercept);\n\t\t\t\t\tlengths.add(percent);\n\t\t\t\t\tCore.line(hough, new Point(val[0], val[1]), new Point(\n\t\t\t\t\t\t\tval[2], val[3]), new Scalar(255, 0, 255), 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean flags[] = setFlags(angles, lengths, yintercepts,\n\t\t\t\t\txintercepts);\n\t\t\tString key = match(flags);\n\t\t\tfor (int i = 0; i < flags.length; i++) {\n\t\t\t\tif (flags[i]) {\n\t\t\t\t\tdrawFlag(hough, i);\n\t\t\t\t}\n\t\t\t}\n\t\t\trectangles.add(r);\n\t\t\tkeys.add(key);\n\n\t\t\timshow(hough, \"Symbol_HOUGH\");\n\t\t\timshow(raw, \"Symbol_RAW\");\n\t\t}\n\n\t\tif (keys.size() > 0) {\n\t\t\tBaselineStructureTree bst = constructFormula(keys, rectangles);\n\t\t\tif (bst != null) {\n\t\t\t\tSystem.out.println(bst.interpretLaTeX());\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Could not recognize image\");\n\t\t}\n\t\timshow(houghImg, \"Hough transformed image\");\n\t\twriteToFile(houghImg, imgpath);\n\t\timshow(thresholdImg, \"post-processed image\");\n\t}", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "private void faceDetection(){\n\n String haarPath = resToFile(R.raw.haarcascade_frontalface_default, \"haarcascade_frontalface_default.xml\");\n String testPicPath = resToFile(R.drawable.test_me, \"test_me.jpg\");\n\n CascadeClassifier faceDetector = new CascadeClassifier();\n Mat image = imread(testPicPath);\n boolean isEmpty = image.empty();\n\n faceDetector = new CascadeClassifier(haarPath);\n if(faceDetector.empty())\n {\n Log.v(\"MyActivity\",\"--(!)Error loading A\\n\");\n return;\n }\n else\n {\n Log.v(\"MyActivity\", \"Loaded cascade classifier from \" + haarPath);\n }\n\n //My Code\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n for (Rect rect : faceDetections.toArray()) {\n Imgproc.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n new Scalar(0, 255, 0));\n// Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n// new Scalar(0, 255, 0));\n }\n\n Bitmap bm = Bitmap.createBitmap(image.cols(), image.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(image, bm);\n\n ImageView imageView = (ImageView) findViewById(R.id.imageView);\n imageView.setImageBitmap(bm);\n }", "Code[] getCodes();", "public List<Result> recognize(IplImage image);", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public Bitmap getShapesImage();", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public static Integer[] findEdgecolors(BufferedImage image)\r\n\t{\r\n\t\t// try to clean up the image by removing stray marks\r\n\t\t\t\tInteger[] colors=new Integer[10]; \r\n\t\t\t\tint[] width={0,image.getWidth()-1}; // horizontal comparision array\r\n\t\t\t\tint[] heigth={0,image.getHeight()-1}; // vertical comparision array\r\n\t\t\t\tint i=0;\r\n\t\t\t\tfor(int x=0;x<=1;x++){ \r\n\t\t\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint pixelVal = image.getRGB(width[x], y);//getting the edge color in RGB value\r\n\t\t\t\t\t\tif(!Arrays.asList(colors).contains(pixelVal)) // checking if the color already exists if yes do nothing if no add the color to array\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcolors[i]=pixelVal;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t i=0;\r\n\t\t\t\t\tfor(int x=0;x<image.getWidth();x++){\r\n\t\t\t\t\t\tfor (int y=0; y<=1; y++) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint pixelVal = image.getRGB(x, width[y]);//getting the edge color in RGB value\r\n\t\t\t\t\t\t\tif(!Arrays.asList(colors).contains(pixelVal))// checking if the color already exists if yes do nothing if no add the color to array\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcolors[i]=pixelVal;\r\n\t\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\treturn colors;\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tArrayList<Lines> result; \r\n\t\tArrayList<Junctions> resultJunction;\r\n\t\tboolean isDarkLine = true;\r\n\t\tboolean doCorrectPosition = false;\r\n\t\tboolean doEstimateWidth = false;\r\n\t\tboolean doExtendLine = true;\r\n\t\tdouble lowerThresh = lowerThreshDefault;\r\n\t\tdouble upperThresh = upperThreshDefault;\r\n\t\tdouble sigma = 3.39;\r\n\t\tresult = new ArrayList<Lines>();\r\n\t\tresultJunction = new ArrayList<Junctions>();\r\n\t\t\r\n\t\tOpener opener = new Opener(); \r\n\t\tString imageFilePath = \"./images/image.jpg\";\r\n\t\tImagePlus imp = opener.openImage(imageFilePath);\r\n\t\tImageProcessor ip = imp.getProcessor();\r\n\t\t\r\n\t\tLineDetector detect = new LineDetector();\r\n\t\tresult.add(detect.detectLines(ip, sigma, upperThresh, lowerThresh, isDarkLine, doCorrectPosition, doEstimateWidth, doExtendLine));\r\n\t\t//usedOptions = detect.getUsedParamters();\r\n\t\tresultJunction.add(detect.getJunctions());\r\n\t\tSystem.out.print(\"helo\");\r\n\r\n\t}", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "public List<Point> findCornerPoints(Mat mRgba) throws NoSudokuFoundException{\n // draw edge points\n findUpperAndLowerEdge();\n findLeftAndRightEdge();\n \n for(int i=0; i<edges.length; i++){\n Point a = new Point(edges[i][0], edges[i][1]);\n Point b = new Point(edges[i][2], edges[i][3]);\n Core.line(mRgba, a, b, new Scalar(255, 0, 0), 3);\n }\n // Find the upper left corner point\n Point tl = findCornerPoint(edges[0], edges[3]);\n // Find the upper right corner point\n Point tr = findCornerPoint(edges[0], edges[1]);\n // Find the lower left corner point\n Point bl = findCornerPoint(edges[3], edges[2]);\n // Find the lower right corner point\n Point br = findCornerPoint(edges[2], edges[1]);\n \n // Sanity check: The corner points have to be correctly relative\n // to each other\n if(tl.x > tr.x || bl.x > br.x || tl.y > br.y || tr.y > br.y) {\n throw new NoSudokuFoundException(\"Points are not correctly aligned\");\n }\n \n // Sanity check: The Sudoku has to be about square\n // calculate and compare the distance of the diagonals\n // raise an exception if the difference is more than 10%.\n double a = Math.sqrt(Math.pow(tr.y-bl.y, 2) + Math.pow(tr.x-bl.x, 2));\n double b = Math.sqrt(Math.pow(tl.y-br.y, 2) + Math.pow(tl.x-br.x, 2));\n double diff = Math.abs(a-b);\n \n // Sanity check: The upper edge is the shortest because it is farthest\n // from the lens. So the area of the square found must be larger than \n // the square of the upper line.\n\n \n\n // draw the points cyan.\n Core.line(mRgba, tl, tl, new Scalar(20,255,255), 3);\n Core.line(mRgba, tr, tr, new Scalar(20,255,255), 3);\n Core.line(mRgba, bl, bl, new Scalar(20,255,255), 3);\n Core.line(mRgba, br, br, new Scalar(20,255,255), 3);\n \n if(diff * 10 > a || diff * 10 > b) {\n throw new NoSudokuFoundException(\"Structure is not a square.\");\n }\n List<Point> points = new ArrayList<Point>();\n points.add(bl);\n points.add(br);\n points.add(tr);\n points.add(tl);\n return points;\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public native int getColors() throws MagickException;", "private int[] determineRegion(int X, int Y ,int H){\n int[] quadrantPoint = new int[2];\n for(int y = 0; y < BITMAP_SIZE /H; y++){\n for(int x = 0; x < BITMAP_SIZE /H; x++){\n Region reg = regions[x][y];\n if (X >= reg.leftX && X <= reg.rightX && Y >= reg.topY && Y <= reg.bottomY){\n quadrantPoint[0] = x;\n quadrantPoint[1] = y;\n return quadrantPoint;\n }\n }\n }\n\n return null;\n }", "public native int pathologyDetection(int[] lumVector);", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public Bitmap getFinalShapesImage();", "@Override\n public double[] find(BufferedImage image, boolean debug) throws IOException {\n\n ListDisplayPanel panel = debug ? new ListDisplayPanel() : null;\n\n List<Shape> shapes = ImageProcessingPipeline.fromBufferedImage(image, panel)\n .gray()\n .medianBlur(3) // this is fairly critical\n .edges()\n .dilate()\n .contours()\n .polygons(0.05, 0.05)\n .getExternalShapes();\n\n int expectedWidth = 40 * 3; // 40mm\n int expectedHeight = 20 * 3; // 20mm\n int tolerancePct = 40;\n List<Shape> filtered = GeometryUtils.filterByArea(shapes, expectedWidth, expectedHeight, tolerancePct);\n List<Shape> nonOverlapping = GeometryUtils.filterNonOverlappingBoundingBoxes(filtered);\n\n if (debug) {\n System.out.println(shapes);\n System.out.println(filtered);\n System.out.println(nonOverlapping);\n ShowImages.showWindow(panel, \"Binary Operations\", true);\n }\n return new double[] { nonOverlapping.size() % 3 }; // just return as an int mod 3\n }", "public void findPattern(){\n List<MatOfPoint> arrContours = new ArrayList<>();\n Mat hierachy = new Mat();\n MatOfPoint2f contour2f = new MatOfPoint2f();\n MatOfPoint2f approxPoly = new MatOfPoint2f();\n Mat transformMatrix;\n Mat warped = new Mat();\n Mat compareTemplateResult = new Mat(4,1,CvType.CV_32FC1);\n\n Imgproc.Canny(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), mEdges, mCanny1, mCanny2);\n Imgproc.findContours(mEdges,arrContours,hierachy,Imgproc.RETR_LIST,Imgproc.CHAIN_APPROX_SIMPLE);\n for(int i = 0; i<arrContours.size(); i++){\n arrContours.get(i).convertTo(contour2f, CvType.CV_32FC2);\n Imgproc.approxPolyDP(contour2f,approxPoly,mPoly,true);\n if(approxPoly.height()==4){\n transformMatrix = Imgproc.getPerspectiveTransform(approxPoly,mTemplateTargetPoints);\n Imgproc.warpPerspective(mGray.submat(mScanTop, mScanBottom, mScanLeft, mScanRight), warped, transformMatrix, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n Imgproc.matchTemplate(warped, mTemplateGray, compareTemplateResult.rowRange(0, 1), Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate90,compareTemplateResult.rowRange(1, 2),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate180,compareTemplateResult.rowRange(2, 3),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped, mTemplate270, compareTemplateResult.rowRange(3, 4), Imgproc.TM_SQDIFF_NORMED);\n\n Core.MinMaxLocResult mmr = Core.minMaxLoc(compareTemplateResult);\n\n if(Double.compare(mmr.minVal,mTemplateThreshold)<0){\n\n /* used to solvepnp */\n List<Point> approxPolyList = approxPoly.toList();\n switch (mmr.minLoc.toString()){\n case \"{0.0, 0.0}\":\n {\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 1.0}\":\n {\n Collections.rotate(approxPolyList,3);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 2.0}\":\n {\n Collections.rotate(approxPolyList,2);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 3.0}\":\n {\n Collections.rotate(approxPolyList,1);\n mFrameBox.fromList(approxPolyList);\n }break;\n default:{\n Log.i(TAG,\"mmr.minLoc out of bound error.\");\n mFrameBox.fromList(approxPolyList);\n }break;\n }\n /* calculate the average center of the box. used to readjust mscancenter later */\n List<Point> approxPolyPts = approxPoly.toList();\n double totalX = 0,\n totalY = 0,\n count = 0;\n for(int j = 0; j<approxPolyPts.size(); j++){\n count++;\n totalX += approxPolyPts.get(j).x+mScanLeft;\n totalY += approxPolyPts.get(j).y+mScanTop;\n }\n mBoxCenter = new Point(totalX/count,totalY/count);\n\n\n /* check if show fill poly */\n if(staticConfig.showPatternMatch){\n Imgproc.fillConvexPoly(mMixed.submat(mScanTop,mScanBottom,mScanLeft,mScanRight),arrContours.get(i),new Scalar(255,155,155,255));\n }\n\n return;\n }\n }\n }\n }", "public void findCaptured(Mat in)\r\n\t{\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset; // offset for playable board\r\n\t\t\r\n\t\tint capSquares = 12; // number of capture squares\r\n\t\tint rowNum = 1; // starting row number for capture squares\r\n\t\tint rightdx = 48;\r\n\t\tint leftdx = 0;\r\n\t\toffset = hsegment;\r\n\t\tint count = 0;\r\n\t\t// keep track of captured squares\r\n\t\t// left: end user, right: system\r\n\t\tfor (int i = 0; i < capSquares; i++)\r\n\t\t{\t\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\tchar color;\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\t\t\t\r\n\t\t\t// get the color\r\n\t\t\tcolor = identifyColor(roi);\r\n\t\t\t\r\n\t\t\tswitch(color)\r\n\t\t\t{\r\n\t\t\t\tcase COLOR_BLUE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 0, 0), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_ORANGE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 128, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(0, 128, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_WHITE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 255, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_BLACK:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcount++;\r\n\t\t\tif (count == 1)\r\n\t\t\t{\r\n\t\t\t\toffset = hsegment * 10 - rightdx;\r\n\t\t\t}\r\n\t\t\telse if (count == 2)\r\n\t\t\t{\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trightdx -= 6;\r\n\t\t\t\tleftdx += 6;\r\n\t\t\t\toffset = hsegment - leftdx;\r\n\t\t\t\trowNum++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean[][] getMatrizBool(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n boolean[][] output = new boolean[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = true;\r\n } else {\r\n output[x][y] = false;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "private Tuple<PatternCoordinates, Mat> pair(){\n mCamera.takePicture(null, null, jpegCallBack);\n\n Tuple<PatternCoordinates, Mat> patternAndImagePair = null;\n switch(GlobalResources.getInstance().getImageSettings().getBackgroundMode()){\n case ImageSettings.BACKGROUND_MODE_RGB:\n patternAndImagePair = patternDetectorAlgorithm.find(rgba, binary, false);\n break;\n case ImageSettings.BACKGROUND_MODE_GRAYSCALE:\n patternAndImagePair = patternDetectorAlgorithm.find(grey, binary, true);\n break;\n case ImageSettings.BACKGROUND_MODE_BINARY:\n patternAndImagePair = patternDetectorAlgorithm.find(binary, binary, true);\n }\n GlobalResources.getInstance().updateImage(patternAndImagePair.element2);\n return patternAndImagePair;\n }", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "public Collection<CV> getCvLookup() throws InvalidFormatException;", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "public static int[][] getMatrizBin(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n int[][] output = new int[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = 1;\r\n } else {\r\n output[x][y] = 0;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "@FXML\n public void AnalyiseImg(ActionEvent e) {\n\n for (int readY = 0; readY < height; readY++) {\n for (int readX = 0; readX < width - 1; readX++) {\n //For red blood cells\n if (TricolourController.BloodCells[readY * width + readX] != 0 && (TricolourController.BloodCells[readY * width + readX + 1] != 0)) {\n Recognision.union(TricolourController.BloodCells, readY * width + readX, readY * width + readX + 1);\n }\n if (readY < height - 1 && TricolourController.BloodCells[readY * width + readX] != 0 && TricolourController.BloodCells[readY * width + readX + width] != 0) {\n Recognision.union(TricolourController.BloodCells, readY * width + readX, readY * width + readX + width);\n }\n\n\n\n//For white blood cells\n if (TricolourController.WhiteCells[readY * width + readX] != 0 && (TricolourController.WhiteCells[readY * width + readX + 1] != 0)) {\n Recognision.union(TricolourController.WhiteCells, readY * width + readX, readY * width + readX + 1);\n }\n if (readY < height - 1 && TricolourController.WhiteCells[readY * width + readX] != 0 && TricolourController.WhiteCells[readY * width + readX + width] != 0) {\n Recognision.union(TricolourController.WhiteCells, readY * width + readX, readY * width + readX + width);\n }\n\n }\n }\n\n/* for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (i % width == 0) System.out.println(); //New line\n System.out.print(Recognision.find(TricolourController.BloodCells, i) + \" \"); //Print root value\n }*/\n\n/* for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (i % width == 0) System.out.println(); //New line\n System.out.print(Recognision.find(TricolourController.WhiteCells, i) + \" \"); //Print root value\n }*/\n\n displayRectangles();\n\n }", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "public static void main(String[] args) {\n\t\tint n=2;\n\t\tArrayList arr=grayCode(n);\n\t\tfor(int i=0;i<arr.size();i++) {\n\t\t\tSystem.out.println(arr.get(i));\n\t\t}\n\n\t}", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "public static Mat[] split(Mat m, int size) {\n Mat cArr[] = new Mat[3];\n Mat c1 = new Mat(), c2 = new Mat(), c3 = new Mat();\n Mat c1TempDest = new Mat(),c1TempDest2 = new Mat(), c2TempDest = new Mat();\n Mat max=new Mat(size, size, CvType.CV_8UC1, new Scalar(255));\n List<Mat> lRgb = new ArrayList<Mat>(3);\n\n Core.split(m, lRgb);\n Mat R = lRgb.get(0);\n Mat G = lRgb.get(1);\n Mat B = lRgb.get(2);\n\n //C1\n Core.add(R,G,c1TempDest);\n Core.add(c1TempDest, B, c1TempDest2);\n Core.divide(c1TempDest2,new Scalar(3),c1);\n cArr[0] = c1;\n\n //C2\n Mat maxMinusB = new Mat(), maxMinusBPlusR= new Mat();\n Core.subtract(max,B,maxMinusB);\n Core.add(maxMinusB,R,maxMinusBPlusR);\n Core.divide(maxMinusBPlusR,new Scalar(2),c2);\n cArr[1] = c2;\n\n //C3\n Mat maxMinusG = new Mat() , maxMinusGTimes2 = new Mat(), maxMinusGTimes2PlusR = new Mat(), maxMinusGTimes2PlusRPlusB = new Mat();\n Core.subtract(max,G, maxMinusG);\n Core.multiply(maxMinusG, new Scalar(2), maxMinusGTimes2);\n Core.add(maxMinusGTimes2, R, maxMinusGTimes2PlusR);\n Core.add(maxMinusGTimes2PlusR, B, maxMinusGTimes2PlusRPlusB);\n Core.divide(maxMinusGTimes2PlusRPlusB, new Scalar(4), c3);\n cArr[2] = c3;\n return cArr;\n }", "Picture highlightComponentImage() throws Exception;", "private boolean aYV() {\n /*\n r4 = this;\n r3 = 1;\n r2 = 0;\n r0 = com.android.common.custom.C0421M.dC();\n r0 = r0.dD();\n r0 = r0.bU();\n if (r0 != 0) goto L_0x001d;\n L_0x0010:\n r0 = r4.aiG;\n r0 = r0.SY();\n r0 = r0.tx();\n if (r0 == 0) goto L_0x001d;\n L_0x001c:\n return r2;\n L_0x001d:\n r0 = r4.aIO;\n if (r0 == 0) goto L_0x0041;\n L_0x0021:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NF();\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = r4.aiG;\n r0 = r0.TE();\n r0 = r0.Ll();\n if (r0 == 0) goto L_0x0041;\n L_0x0039:\n r0 = r4.asP();\n r1 = com.android.common.camerastate.UIState.CAMERA_FAMILY;\n if (r0 != r1) goto L_0x0042;\n L_0x0041:\n return r2;\n L_0x0042:\n r0 = r4.aiG;\n r0 = r0.Td();\n r0 = r0.NP();\n if (r0 != 0) goto L_0x0041;\n L_0x004e:\n r0 = r4.asJ();\n r1 = com.android.common.camerastate.DeviceState.SNAPSHOT_IN_PROGRESS;\n if (r0 == r1) goto L_0x0041;\n L_0x0056:\n r0 = r4.aiG;\n r0 = r0.SQ();\n r1 = com.android.common.cameradevice.C0384o.Jr();\n r1 = r1.Jt();\n if (r0 != r1) goto L_0x0067;\n L_0x0066:\n return r2;\n L_0x0067:\n r0 = r4.aiG;\n r0 = r0.To();\n switch(r0) {\n case 0: goto L_0x0073;\n case 90: goto L_0x0084;\n case 180: goto L_0x0073;\n case 270: goto L_0x0084;\n default: goto L_0x0070;\n };\n L_0x0070:\n r0 = r4.aID;\n return r0;\n L_0x0073:\n r0 = r4.aIK;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIJ;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0081:\n r4.aID = r3;\n goto L_0x0070;\n L_0x0084:\n r0 = r4.aIJ;\n r0 = java.lang.Math.abs(r0);\n r1 = r4.aIK;\n r1 = java.lang.Math.abs(r1);\n if (r0 <= r1) goto L_0x0070;\n L_0x0092:\n r4.aID = r3;\n goto L_0x0070;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.Camera.aYV():boolean\");\n }", "@Test\n\tpublic void checkImageBorders() {\n\t\tOrientationHistogramSift alg = new OrientationHistogramSift(36,2.5,1.5);\n\n\t\tGrowQueue_F64 found = alg.getOrientations();\n\n\t\tdouble theta = 1.2;\n\t\tdouble dx = Math.cos(theta);\n\t\tdouble dy = Math.sin(theta);\n\t\tsetAllDerivatives(dx,dy);\n\n\t\talg.setScaleSpace(ss);\n\n\t\talg.process(0,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(0,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t}", "private void findContours(Mat input, boolean externalOnly, List<MatOfPoint> contours) {\n Mat hierarchy = new Mat();\n contours.clear();\n int mode;\n if (externalOnly) {\n mode = Imgproc.RETR_EXTERNAL;\n } else {\n mode = Imgproc.RETR_LIST;\n }\n int method = Imgproc.CHAIN_APPROX_SIMPLE;\n Imgproc.findContours(input, contours, hierarchy, mode, method);\n }", "public static BufferedImage contornarFace(BufferedImage pImage) {\n System.out.println(\"\\nRunning DetectFaceDemo\");\n\n // Create a face detector from the cascade file in the resources\n // directory.\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n Mat image = new Mat(rows, cols, type);\n\n // Detect faces in the image.\n // MatOfRect is a special container class for Rect\n CascadeClassifier faceDetector = new CascadeClassifier();\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n Rect[] facesArray = faceDetections.toArray();\n for (int i = 0; i < facesArray.length; i++) {\n Core.rectangle(image, facesArray[i].tl(), facesArray[i].br(), new Scalar(200, 200, 200), 3);\n }\n return matTOImg(image);\n\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "public void detect_lines(float[] image,long width, long height, Lines contours, MutableLong num_result, double sigma, double low, double high, long mode, boolean compute_width, boolean correct_pos,boolean extend_lines, Junctions junctions)\r\n\t{\r\n\t byte[] ismax;\r\n\t float[] ev, n1, n2, p1, p2;\r\n\t float[][] k = new float[5][(int) (width*height)];\r\n\t \r\n\t// for (i=0;i<5;i++)\r\n\t// k[i] = xcalloc(width*height,sizeof(float));\r\n\t Convol convol = new Convol();\r\n\t convol.convolve_gauss(image,k[0],width,height,sigma,LinesUtil.DERIV_R);\r\n\t convol.convolve_gauss(image,k[1],width,height,sigma,LinesUtil.DERIV_C);\r\n\t convol.convolve_gauss(image,k[2],width,height,sigma,LinesUtil.DERIV_RR);\r\n\t convol.convolve_gauss(image,k[3],width,height,sigma,LinesUtil.DERIV_RC);\r\n\t \r\n\t convol.convolve_gauss(image,k[4],width,height,sigma,LinesUtil.DERIV_CC);\r\n\t\r\n\t ismax = new byte[(int) (width*height)];\r\n\t ev = new float[(int) (width*height)];\r\n\t n1 = new float[(int) (width*height)];\r\n\t n2 = new float[(int) (width*height)];\r\n\t p1 = new float[(int) (width*height)];\r\n\t p2 = new float[(int) (width*height)];\r\n\t /*\r\n\t * The C library function void *memset(void *str, int c, size_t n) \r\n\t * copies the character c (an unsigned char) to the first n characters \r\n\t * of the string pointed to by the argument str.\r\n\t */\r\n\t // memset(ismax,0,width*height*sizeof(*ismax));\r\n\t // memset(ev,0,width*height*sizeof(*ev));\r\n\t for(int j = 0; j < ismax.length; j++){\r\n\t\t ev[j] = 0;\r\n\t\t ismax[j] = 0;\r\n\t }\r\n\r\n\t compute_line_points(k,ismax,ev,n1,n2,p1,p2,width,height,low,high,mode);\r\n\t \r\n\t Link l = new Link();\r\n\t l.compute_contours(ismax,ev,n1,n2,p1,p2,k[0],k[1],contours,num_result,sigma,\r\n\t extend_lines,(int)mode,low,high,width,height,junctions);\r\n\t Width w = new Width();\r\n\t if (compute_width)\r\n\t w.compute_line_width(k[0],k[1],width,height,sigma,mode,correct_pos,contours,\r\n\t num_result);\r\n\r\n\t}", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public ArrayList<double[]> detectCorners(final byte[] f, int width, int height, double sigma, double threshold) {\n\t\tArrayList<double[]> cornersOut = new ArrayList<double[]>();\n\t\t/**\n\t\t * Parameter values that worked for both images in detecting corners of the black squares:\n\t\t * signma = 1.5\n\t\t * threshold = 700,000\n\t\t */\n\t\t//double[] aTestCorner = new double[2];\n\t\t//double x = 10.0;\n\t\t//double y = 100.0;\n\t\t//aTestCorner[0] = x;\n\t\t//aTestCorner[1] = y;\n\t\t//cornersOut.add(aTestCorner);\n\n\t\tdouble fx2[] = new double[f.length];\n\t\tdouble fy2[] = new double[f.length];\n\t\tdouble fxy[] = new double[f.length];\n\t\tdouble R[] = new double[f.length];\n\t\tfor (int y = 1;y<height-1;y++) {\n\t\t\tfor (int x = 1;x<width-1;x++) {\n\t\t\t\tint fy = ((int)f[(y+1)*width+x]&0xFF) - ((int)f[(y-1)*width+x]& 0xFF);\n\t\t\t\tint fx = ((int)f[y*width+x+1]&0xFF) - ((int)f[y*width+x-1]& 0xFF);\n\t\t\t\tfx2[y*width+x] = fx * fx;\n\t\t\t\tfy2[y*width+x] = fy * fy;\n\t\t\t\tfxy[y*width+x] = fx * fy;\n\t\t\t}\n\t\t}\n\n\t\tgaussianSmooth(fx2, width, height, sigma);\n\t\tgaussianSmooth(fy2, width, height, sigma);\n\t\tgaussianSmooth(fxy, width, height, sigma);\n\n\t\tR = computeR(fx2, fy2, fxy, width, height);\n\t\t// supress non-maximal corners\n\t\tfor (int y=1; y<height-1; y++) {\n\t\t\tfor (int x=1; x<width-1; x++) {\n\t\t\t\tdouble hh = R[x+width*y];\n\t\t\t\tif (hh<threshold) continue;\n\t\t\t\tif (!isLocalMaxima(R, x, y, width)) continue;\n\n\t\t\t\t// Sub-pixel Accuracy\n\t\t\t\tdouble y2 = y - (R[x+width*(y+1)] - R[x+width*(y-1)]) / (2 * (R[x+width*(y+1)] + R[x+width*(y-1)] - 2 * R[x+width*(y)]));\n\t\t\t\tdouble x2 = x - (R[(x+1)+width*y] - R[(x-1)+width*y]) / (2 * (R[(x+1)+width*y] + R[(x-1)+width*y] - 2 * R[(x)+width*y]));\n\n\t\t\t\tdouble[] aTestCorner = new double[2];\n\t\t\t\t//double x = 10.0;\n\t\t\t\t//double y = 100.0;\n\t\t\t\taTestCorner[0] = x2;\n\t\t\t\taTestCorner[1] = y2;\n\t\t\t\tcornersOut.add(aTestCorner);\n\t\t\t}\n\t\t}\n\n\t\treturn cornersOut;\n\t}", "private static android.hardware.camera2.params.MeteringRectangle[] getMeteringRectangles(android.graphics.Rect r1, android.hardware.camera2.legacy.ParameterUtils.ZoomData r2, java.util.List<android.hardware.Camera.Area> r3, java.lang.String r4) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.getMeteringRectangles(android.graphics.Rect, android.hardware.camera2.legacy.ParameterUtils$ZoomData, java.util.List, java.lang.String):android.hardware.camera2.params.MeteringRectangle[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.getMeteringRectangles(android.graphics.Rect, android.hardware.camera2.legacy.ParameterUtils$ZoomData, java.util.List, java.lang.String):android.hardware.camera2.params.MeteringRectangle[]\");\n }", "@RequestLine(\"GET /geoip/territories?codes={codes}\")\n Collection<Collection<Region>> getAvailableRegions(@Param(\"codes\") String codes);", "public static native int getEdgeDetection(int pin) throws RuntimeException;", "public native boolean signatureImage() throws MagickException;", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "public void testFindBorders() {\n System.out.println(\"findBorders\");\n RasterImage rImage = new RasterImage(20,21);\n int expResult[] = {16777215, 0, 0, 0, 0, 0, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 16777215, 16777215, 16777215, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 0, 16777215, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215,\n 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0,\n 16777215, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 0, 16777215, 0, 0, 0, 16777215,\n 16777215, 16777215, 0, 0, 0, 0, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0, 0, 16777215,\n 16777215, 16777215, 16777215};\n int pixels[] = {16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,0,0,0,\n 0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,16777215,16777215,\n 16777215,0,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215};\n for(int i=0;i<420;i++){\n int x = i%20;\n int y = i/20;\n rImage.setRGB(x, y, pixels[i]);\n }\n\n\n\n RasterImage result = CutCharacter.findBorders(rImage);\n for(int i=0;i<168;i++)\n assertEquals(expResult[i], result.getRGB(i));\n \n }", "public int[] getCodeMakerPegs() {\n Color[] colors = decodingBoard.getCMakeRowColor();\n return changeColorToInt(colors);\n }", "public boolean generateImageFromText();", "public static List<int[]> getContainedPixels(MeshImageStack stack, DeformableMesh3D mesh){\n Box3D box = mesh.getBoundingBox();\n double[] lowI = stack.getImageCoordinates(box.low);\n double[] highI = stack.getImageCoordinates(box.high);\n\n InterceptingMesh3D picker = new InterceptingMesh3D(mesh);\n double[] xdirection = {1,0,0};\n\n int slices = stack.getNSlices();\n int w = stack.getWidthPx();\n int h = stack.getHeightPx();\n double center[] = new double[3];\n\n int sliceLow = (int)lowI[2];\n int sliceHigh = (int)highI[2];\n //verify\n sliceLow = sliceLow < 0 ? 0 : sliceLow;\n sliceHigh = sliceHigh <= slices ? sliceHigh : slices;\n\n int jlo = (int)lowI[1];\n int jhi = (int)highI[1];\n jlo = jlo < 0 ? 0 : jlo;\n jhi = jhi <= h ? jhi : h;\n\n int xlo = (int)lowI[0];\n int xhi = (int)highI[0];\n xlo = xlo < 0 ? 0: xlo;\n xhi = xhi > w ? w : xhi;\n List<int[]> contained = new ArrayList<>();\n for(int slice = sliceLow; slice<sliceHigh; slice++){\n\n center[2] = slice;\n\n\n for(int j = jlo; j<jhi; j++){\n\n int offset = j*w;\n center[1] = j;\n\n List<Intersection> sections = picker.getIntersections(stack.getNormalizedCoordinate(center), xdirection);\n if(sections.size()==0){\n //No intersections. No points inside.\n continue;\n }\n scanDirty(sections);\n sections.sort((a,b)->Double.compare(a.location[0], b.location[0]));\n\n boolean startInside = false;\n double count = 0;\n double[] boundaries = new double[sections.size()+1];\n\n //the number of boundaries that switch the state from inside to outside.\n int valid = 0;\n double lowestEntry = Double.MAX_VALUE;\n double highestExit = -Double.MAX_VALUE;\n\n for(int k = 0; k<sections.size(); k++){\n\n double bound = stack.getImageCoordinates(sections.get(k).location)[0];\n\n boolean facingLeft = sections.get(k).surfaceNormal[0]<0;\n boolean facingRight = !facingLeft;\n //going through all interfaces, and either going further in\n //or back out.\n if(facingLeft){\n count++;\n if(bound < lowestEntry){\n lowestEntry = bound;\n }\n } else{\n count--;\n if(bound > highestExit){\n highestExit = bound;\n }\n }\n if(bound>0) {\n //check if it is actually a boundary\n if ( count==1 && facingLeft ) {\n //boundary entering region.\n if( valid == 0){\n startInside = false;\n }\n boundaries[valid] = bound;\n valid++;\n } else if (count==0 && facingRight) {\n //stepped out.\n if( valid == 0){\n startInside = true;\n }\n boundaries[valid] = bound;\n valid++;\n }\n\n }\n }\n\n boolean inside = startInside;\n\n\n if(lowestEntry < lowI[0]){\n System.out.println(\"Topo Error: lowest entry is less than bounding box!\");\n }\n if( (int)highestExit > highI[0] ){\n System.out.println(\"Topo Error: highest exit is outside of bounding box!\");\n }\n\n if(startInside && lowestEntry>0){\n System.out.println(\"Topo Error: Lower bound above zero but mesh starts inside.\");\n }\n\n boundaries[valid] = w;\n\n //This isn't necessarily true.\n //lowestIntersection >= lowI[0] and highestIntersection <= highI[0]\n boolean finishesOutsideImage = lowestEntry <= (w-1) && highestExit >= (w - 1) ;\n\n int current = 0;\n\n\n for(int p = 0; p<w; p++){\n if(p>boundaries[current]){\n //switch.\n current++;\n inside = !inside;\n }\n if(inside){\n contained.add(new int[]{p, j, slice});\n }\n }\n if(finishesOutsideImage && !inside){\n System.out.println(\"topography warning: bounds outside image, but not inside the shape at end\");\n }\n\n if(!finishesOutsideImage && inside){\n System.out.println(\"Inconsistent bounding box: End of image is out of bounds, but state is inside the shape\");\n System.out.println(Arrays.toString(lowI) + \" [~] \" + Arrays.toString(highI));\n }\n\n }\n\n }\n return contained;\n }", "private static Stack<Point> grahamScan(Set<Point> points){\n List<Point> sortedPoints = new ArrayList<>(sortedPointsSet(points));\n\n if(sortedPoints.size() < 3)\n throw new IllegalArgumentException(\"At least three unique points must be provided\");\n if(pointsAreCollinear(sortedPoints))\n throw new IllegalArgumentException(\"Points must not be collinear\");\n\n Stack<Point> stack = new Stack<>();\n stack.push(sortedPoints.get(0));\n stack.push(sortedPoints.get(1));\n stack.push(sortedPoints.get(2));\n\n for (int i = 3; i < sortedPoints.size(); i++) {\n Point top = stack.pop();\n Point nextToTop = stack.peek();\n Point pi = sortedPoints.get(i);\n\n AngleDirection direction = getAngleDirection(nextToTop, top, pi);\n\n switch (direction){\n case COUNTERCLOCKWISE: {\n stack.push(top);\n stack.push(pi);\n break;\n }\n case CLOCKWISE: {\n i--;\n break;\n }\n case COLLINEAR:{\n stack.push(pi);\n break;\n }\n }\n }\n return stack;\n }", "public void vision()\n {\n NIVision.IMAQdxGrab(session, colorFrame, 1);\t\t\t\t\n RETRO_HUE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro hue min\", RETRO_HUE_RANGE.minValue);\n\t\tRETRO_HUE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro hue max\", RETRO_HUE_RANGE.maxValue);\n\t\tRETRO_SAT_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro sat min\", RETRO_SAT_RANGE.minValue);\n\t\tRETRO_SAT_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro sat max\", RETRO_SAT_RANGE.maxValue);\n\t\tRETRO_VAL_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro val min\", RETRO_VAL_RANGE.minValue);\n\t\tRETRO_VAL_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro val max\", RETRO_VAL_RANGE.maxValue);\n\t\tAREA_MINIMUM = SmartDashboard.getNumber(\"Area min %\");\n\t\t//MIN_RECT_WIDTH = SmartDashboard.getNumber(\"Min Rect Width\", MIN_RECT_WIDTH);\n\t\t//MAX_RECT_WIDTH = SmartDashboard.getNumber(\"Max Rect Width\", MAX_RECT_WIDTH);\n\t\t//MIN_RECT_HEIGHT = SmartDashboard.getNumber(\"Min Rect Height\", MIN_RECT_HEIGHT);\n\t\t//MAX_RECT_HEIGHT= SmartDashboard.getNumber(\"Max Rect Height\", MAX_RECT_HEIGHT);\n\t\t\n\t\t//SCALE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Scale Range Min\");\n\t\t//SCALE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Scale Range Max\");\n\t\t//MIN_MATCH_SCORE = (int)SmartDashboard.getNumber(\"Min Match Score\");\n //Look at the color frame for colors that fit the range. Colors that fit the range will be transposed as a 1 to the binary frame.\n\t\t\n\t\tNIVision.imaqColorThreshold(binaryFrame, colorFrame, 255, ColorMode.HSV, RETRO_HUE_RANGE, RETRO_SAT_RANGE, RETRO_VAL_RANGE);\n\t\t//Send the binary image to the cameraserver\n\t\tif(cameraView.getSelected() == BINARY)\n\t\t{\n\t\t\tCameraServer.getInstance().setImage(binaryFrame);\n\t\t}\n\n\t\tcriteria[0] = new NIVision.ParticleFilterCriteria2(NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA, AREA_MINIMUM, 100.0, 0, 0);\t\t\n\t\t\n NIVision.imaqParticleFilter4(binaryFrame, binaryFrame, criteria, filterOptions, null);\n\n // NIVision.RectangleDescriptor rectangleDescriptor = new NIVision.RectangleDescriptor(MIN_RECT_WIDTH, MAX_RECT_WIDTH, MIN_RECT_HEIGHT, MAX_RECT_HEIGHT);\n// \n// //I don't know\n// NIVision.CurveOptions curveOptions = new NIVision.CurveOptions(NIVision.ExtractionMode.NORMAL_IMAGE, 0, NIVision.EdgeFilterSize.NORMAL, 0, 1, 1, 100, 1,1);\n// NIVision.ShapeDetectionOptions shapeDetectionOptions = new NIVision.ShapeDetectionOptions(1, rectAngleRanges, SCALE_RANGE, MIN_MATCH_SCORE);\n// NIVision.ROI roi = NIVision.imaqCreateROI();\n//\n// NIVision.DetectRectanglesResult result = NIVision.imaqDetectRectangles(binaryFrame, rectangleDescriptor, curveOptions, shapeDetectionOptions, roi);\n// //Dummy rectangle to start\n// \n// NIVision.RectangleMatch bestMatch = new NIVision.RectangleMatch(new PointFloat[]{new PointFloat(0.0, 0.0)}, 0, 0, 0, 0);\n// \n// //Find the best matching rectangle\n// for(NIVision.RectangleMatch match : result.array)\n// {\n// \tif(match.score > bestMatch.score)\n// \t{\n// \t\tbestMatch = match;\n// \t}\n// }\n// SmartDashboard.putNumber(\"Rect height\", bestMatch.height);\n// SmartDashboard.putNumber(\"Rect Width\", bestMatch.width);\n// SmartDashboard.putNumber(\"Rect rotation\", bestMatch.rotation);\n// SmartDashboard.putNumber(\"Rect Score\", bestMatch.score);\n \n //Report how many particles there are\n\t\tint numParticles = NIVision.imaqCountParticles(binaryFrame, 1);\n\t\tSmartDashboard.putNumber(\"Masked particles\", numParticles);\n\t\t\n \n\t\tif(numParticles > 0)\n\t\t{\n\t\t\t//Measure particles and sort by particle size\n\t\t\tVector<ParticleReport> particles = new Vector<ParticleReport>();\n\t\t\tfor(int particleIndex = 0; particleIndex < numParticles; particleIndex++)\n\t\t\t{\n\t\t\t\tParticleReport par = new ParticleReport();\n\t\t\t\tpar.Area = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA);\n\t\t\t\tpar.AreaByImageArea = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA);\n\t\t\t\tpar.BoundingRectTop = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_TOP);\n\t\t\t\tpar.BoundingRectLeft = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_LEFT);\n\t\t\t\tpar.BoundingRectHeight = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_HEIGHT);\n\t\t\t\tpar.BoundingRectWidth = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_WIDTH);\n\t\t\t\tparticles.add(par);\n\n\t\t\t}\n\t\t\tparticles.sort(null);\n\n\t\t\t//This example only scores the largest particle. Extending to score all particles and choosing the desired one is left as an exercise\n\t\t\t//for the reader. Note that this scores and reports information about a single particle (single L shaped target). To get accurate information \n\t\t\t//about the location of the tote (not just the distance) you will need to correlate two adjacent targets in order to find the true center of the tote.\n//\t\t\tscores.Aspect = AspectScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Aspect\", scores.Aspect);\n//\t\t\tscores.Area = AreaScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Area\", scores.Area);\n//\t\t\tboolean isTote = scores.Aspect > SCORE_MIN && scores.Area > SCORE_MIN;\n//\n\t\t\tParticleReport bestParticle = particles.elementAt(0);\n\t\t NIVision.Rect particleRect = new NIVision.Rect((int)bestParticle.BoundingRectTop, (int)bestParticle.BoundingRectLeft, (int)bestParticle.BoundingRectHeight, (int)bestParticle.BoundingRectWidth);\n\t\t \n\t\t //NIVision.imaqOverlayRect(colorFrame, particleRect, new NIVision.RGBValue(0, 0, 0, 255), DrawMode.PAINT_VALUE, \"a\");//;(colorFrame, colorFrame, particleRect, DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 20);\n\t\t NIVision.imaqDrawShapeOnImage(colorFrame, colorFrame, particleRect, NIVision.DrawMode.DRAW_VALUE, ShapeMode.SHAPE_RECT, 0.0f);\n\t\t SmartDashboard.putNumber(\"Rect Top\", bestParticle.BoundingRectTop);\n\t\t SmartDashboard.putNumber(\"Rect Left\", bestParticle.BoundingRectLeft);\n\t\t SmartDashboard.putNumber(\"Rect Width\", bestParticle.BoundingRectWidth);\n\t\t SmartDashboard.putNumber(\"Area by image area\", bestParticle.AreaByImageArea);\n\t\t SmartDashboard.putNumber(\"Area\", bestParticle.Area);\n\t\t double bestParticleMidpoint = bestParticle.BoundingRectLeft + bestParticle.BoundingRectWidth/2.0;\n\t\t double bestParticleMidpointAimingCoordnates = pixelCoordnateToAimingCoordnate(bestParticleMidpoint, CAMERA_RESOLUTION_X);\n\t\t angleToTarget = aimingCoordnateToAngle(bestParticleMidpointAimingCoordnates, VIEW_ANGLE);\n\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\tangleToTarget = 0.0;\n\t\t}\n\n if(cameraView.getSelected() == COLOR)\n {\n \tCameraServer.getInstance().setImage(colorFrame);\n }\n\t SmartDashboard.putNumber(\"Angle to target\", angleToTarget);\n\n }", "public int[][] extractVoxels(ImageStack stack){\n\t\tint stack_width = stack.getWidth();\n\t\tint stack_height = stack.getHeight();\n\t\tint stack_length = stack.getSize();\n\n\t\t// method will extract cone thath's been cutoff from the stack\n\t\t\n\t\tint cone_radius \t= (int)Math.round(this.r);\n\t\t//int cone_radius1 \t= (int)Math.round(this.r1);\n\t\tint cone_height\t\t= (int)Math.round(this.getH());\n\t\tint cone_limit\t\t= (int)Math.ceil(Math.sqrt(Math.pow(r1, 2)+Math.pow(this.getH(), 2)));\n\t\t\n\t\tif(cone_radius>cone_limit){\n\t\t\tcone_limit = cone_radius;\n\t\t}\n\t\t\n\t\t// center in pixel coordinates\n\t\tint[] centerPix = {(int)Math.round(this.x), (int)Math.round(this.y), (int)Math.round(this.z)};\n\t\t\n\t\t// define the range\n\t\tint startX = 1; if (centerPix[0]-cone_limit > 1) startX = centerPix[0]-cone_limit;\n\t\tint startY = 1; if (centerPix[1]-cone_limit > 1) startY = centerPix[1]-cone_limit;\n\t\tint startZ = 1; if (centerPix[2]-cone_limit > 1) startZ = centerPix[2]-cone_limit;\n\t\t\t\n\t\tint endX = stack_width; if (centerPix[0]+cone_limit < stack_width) endX = centerPix[0]+cone_limit;\n\t\tint endY = stack_height; if (centerPix[1]+cone_limit < stack_height) endY = centerPix[1]+cone_limit;\n\t\tint endZ = stack_length; if (centerPix[2]+cone_limit < stack_length) endZ = centerPix[2]+cone_limit;\n\n\t\tint count=0;\n\t\t// this consumes memory! - maybe not necessary to allocate here\n\t\tbyte[] pixels = new byte[stack_width*stack_height]; //storage for pixels from one layer\n\t\tint[][] roi = new int [2*cone_limit*2*cone_limit*2*cone_limit][4];//roi big enough to take cone at any orientation\n\t\t\n\t\tdouble[] b ={0, 0, 0}; \n\t\tdouble[] c ={0, 0, 0};\n\t\tdouble[] a ={0, 0, 0}; //this one will serve as unit h vector\n\t\ta[0] = h[0]/this.getH(); a[1] = h[1]/this.getH(); a[2] = h[2]/this.getH();\n\t\t\n\t\tTransf.cartesian(a[0], a[1], a[2], b, c);\n\t\t\n\t\tfor(int z_layer=startZ; z_layer<endZ; z_layer++){\n\t\t\tpixels = (byte[])stack.getPixels(z_layer);\n\t\t\tfor(int x_row=startX; x_row<endX; x_row++){\n\t\t\t\tfor(int y_col=startY; y_col<endY; y_col++){\n\t\t\t\t\t\n\t\t\t\t\tdouble point_h, point_r;\n\t\t\t\t\tdouble vx, vy, vz;\n\t\t\t\t\t\n\t\t\t\t\tvx = x_row-x; \n\t\t\t\t\tvy = y_col-y; \n\t\t\t\t\tvz = z_layer-z;\n\t\t\t\t\t\n\t\t\t\t\tpoint_h = vx*a[0]+vy*a[1]+vz*a[2]; \n\t\t\t\t\tpoint_r = Math.sqrt(Math.pow(vx*b[0]+vy*b[1]+vz*b[2], 2)+Math.pow(vx*c[0]+vy*c[1]+vz*c[2], 2));\n\t\t\t\t\t\n\t\t\t\t\tboolean isInCone = true;\n\t\t\t\t\tisInCone = (point_h<=cone_height) && (point_h>=0) && (point_r<= ((r1-r)/this.getH())*point_h+r);//\n\t\t\t\t\t\n\t\t\t\t\tif(isInCone){\n\t\t\t\t\t\troi[count][3] = pixels[x_row + stack_width * y_col] & 0xff; //int\n\t\t\t\t\t\troi[count][0] = x_row; \n\t\t\t\t\t\troi[count][1] = y_col; \n\t\t\t\t\t\troi[count][2] = z_layer;\n\t\t\t\t\t\tcount ++;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// quite inefficient for memory to extract twice... but left it this way by now\n\t\tint[][] extractedVoxels = new int [count][4];\n\t\tfor(int i=0; i<count; i++){\n\t\t\tfor(int j=0; j<4; j++){\n\t\t\t\textractedVoxels[i][j]=roi[i][j];\n\t\t\t}\n\t\t}\n\t\treturn extractedVoxels;\n\t}", "public abstract boolean isInSelectionImage(final Rectangle _r);", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "private static int[] intersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4){\n\n\t\tdouble b1 = (y2 - y1)/(x2 - x1);\n\t\tdouble a1 = y1 - (b1*x1);\n\t\tdouble b2 = (y4 - y3)/(x4 - x3);\n\t\tdouble a2 = y3 - (b2*x3);\n\t\tif(x2-x1 == 0) //vertical\n\t\t\treturn new int[]{(int)x1,(int)(a2+(b2*x1))};\n\t\tif(x3-x4 == 0) //vertical\n\t\t\treturn new int[]{(int)x3,(int)(a1+(b1*x3))};\n\t/*\tif(Math.abs(b1-b2) < 0.001)\n\t\t\treturn null;\n\t\tdouble intX = -(a1-a2)/(b1-b2);\n\t\tdouble intY = a1+(b1*intX);*/\n\t\tdouble d = ((y4-y3)*(x2-x1) - (x4-x3)*(y2-y1));\n\t\tif(d == 0)\n\t\t\treturn null; //parallel roads\n\t\tdouble a = ((x4-x3)*(y1-y3) - (y4-y3)*(x1-x3))*1.0/d;\n\t\tint intX = (int)x1+(int)(a*(x2-x1));\n\t\tint intY = (int)y1+(int)(a*(y2-y1));\n\t\treturn new int[]{(int)intX,(int)intY};\n\t}", "public static String detectFacesGcs(String gcsPath) throws IOException {\n \tSystem.out.println(\"Enter Face detection\");\n List<AnnotateImageRequest> requests = new ArrayList<AnnotateImageRequest>();\n StringBuilder sb = new StringBuilder();\n ImageSource imgSource = ImageSource.newBuilder().setGcsImageUri(gcsPath).build();\n Image img = Image.newBuilder().setSource(imgSource).build();\n Feature feat = Feature.newBuilder().setType(Feature.Type.FACE_DETECTION).build();\n \n AnnotateImageRequest request =\n AnnotateImageRequest.newBuilder().addFeatures(feat).setImage(img).build();\n requests.add(request);\n try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) {\n \t\tSystem.out.println(\" Face detection request sent\");\n BatchAnnotateImagesResponse response = client.batchAnnotateImages(requests);\n List<AnnotateImageResponse> responses = response.getResponsesList();\n System.out.println(\" Face detection response recieved\");\n for (AnnotateImageResponse res : responses) {\n if (res.hasError()) {\n System.out.format(\"Error: %s%n\", res.getError().getMessage());\n return \"\";\n }\n sb.append(\"{\");\n for (FaceAnnotation annotation : res.getFaceAnnotationsList()) {\n \t sb.append(\"\\\"anger\\\":\");sb.append('\"');\n \t sb.append(annotation.getAngerLikelihood().toString());\n \t sb.append('\"');sb.append(\",\");sb.append(\"\\\"joy\\\":\"); sb.append('\"');\n \t sb.append( annotation.getJoyLikelihood().toString());\n \t sb.append('\"'); sb.append(\",\");sb.append(\"\\\"suprise\\\":\");sb.append('\"');\n \t sb.append(annotation.getSurpriseLikelihood().toString());\n \t sb.append('\"');\n }\n sb.append(\"}\");}}return sb.toString();}", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "private int getCodeLines(String code)\n{\n StringTokenizer tok = new StringTokenizer(code,\"\\n\");\n int codelines = 0;\n boolean incmmt = false;\n while (tok.hasMoreTokens()) {\n String lin = tok.nextToken();\n boolean hascode = false;\n for (int i = 0; i < lin.length() && !hascode; ++i) {\n\t int ch = lin.charAt(i);\n\t if (Character.isWhitespace(ch)) continue;\n\t if (incmmt) {\n\t if (ch == '*' && i+1 < lin.length() && lin.charAt(i+1) == '/') {\n\t ++i;\n\t incmmt = false;\n\t }\n\t }\n\t else if (ch == '/' && i+1 < lin.length()) {\n\t if (lin.charAt(i+1) == '/') break;\n\t else if (lin.charAt(i+1) == '*') {\n\t incmmt = true;\n\t }\n\t }\n\t else hascode = true;\n }\n if (hascode) ++codelines;\n }\n\n return codelines;\n}", "private Marker isMarker(MatOfPoint2f result, Mat texture) {\n boolean[][] pattern = new boolean[4][4];\n \n // reset error allowance\n int errorAllowance = 0;\n // Check border:\n for (int i = 1; i < MARKER_GRID - 1; i++) {\n if (testSample(half + (i * step), half,\n texture) > 0)\n errorAllowance++;\n if (testSample(half, half + (i * step), texture) > 0)\n errorAllowance++;\n if (testSample(half + (i * step), MARKER_SIZE - 1 - half,\n texture) > 0)\n errorAllowance++;\n if (testSample(MARKER_SIZE - 1 - half, half + (i * step),\n texture) > 0)\n errorAllowance++;\n }\n \n // we'll allow 4 incorrect border pieces but no more\n if (errorAllowance > 4) {\n log.debug(TAG, \"Discarding over incomplete border detection!\");\n // Return null if we're not debugging – we're done in that case.\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n // Now read pattern:\n // time: ~3ms\n for (int i = 0; i < 4; i++)\n for (int j = 0; j < 4; j++) {\n pattern[i][j] = (testSample(half + (i + 1) * step,\n half + (j + 1) * step, texture) > 0);\n }\n \n // Check corners, get rotation, and rotate pattern to correct\n // orientation:\n // time: ~0ms\n int angle;\n if (!pattern[0][0] && pattern[0][3] && pattern[3][0] && pattern[3][3]) {\n angle = -90;\n pattern = rotatePattern(3, pattern);\n } else if (pattern[0][0] && !pattern[0][3] &&\n pattern[0][3] && pattern[3][3]) {\n angle = 0;\n } else if (pattern[0][0] && pattern[0][3] &&\n !pattern[3][0] && pattern[3][3]) {\n angle = 180;\n pattern = rotatePattern(2, pattern);\n } else if (pattern[0][0] && pattern[0][3] &&\n pattern[3][0] && !pattern[3][3]) {\n angle = 90;\n pattern = rotatePattern(1, pattern);\n } else {\n // This happens when a black border is found but has no\n // orientation information.\n log.debug(TAG, \"Discarding over missing orientation information!\");\n angle = -1;\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n \n // Get Hamming code corrected id:\n // time: ~0ms\n int id = MarkerPatternHelper.getID(pattern);\n \n // Check if id is valid.\n if (id < 0) {\n log.debug(TAG, \"Discarding over illegal ID!\");\n return null;\n }\n \n Marker marker = new Marker(result, angle, id);\n \n // For debug, we need to remember the grayTexture, otherwise not.\n if (mainInterface.DEBUG_FRAME && (DEBUG_DRAW_MARKERS || DEBUG_POLY)) {\n // INFO: Debugging with this HALFS the framerate!\n marker.setDebugParameters(pattern, texture);\n return marker;\n }\n \n return marker;\n }", "public static void main( String[] args)\r\n\t{\r\n\t\t\r\n\t\tNetworkTable piVals = NetworkTable.getTable(\"piTable\"); \r\n\t\t\r\n\t\tdouble startPro = 0; \r\n\t\tlong startMills = Instant.now().toEpochMilli(); \r\n\t\t//double start = System.currentTimeMillis();\r\n\t\t\r\n\t//\tString address = \"roboRIO-5822-FRC.local\";\r\n\t\t\r\n\t\t\t\t\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\t\r\n\t\tVideoCapture capture = new VideoCapture();\r\n\t\t\r\n\t\t//this link has changed, check with code on the pi right now \r\n\t\tcapture.open(\"http://10.58.22.72/mjpg/video.mjpg\");\r\n\t\t\r\n\t\tMat bgr = new Mat(); \r\n\t\tMat hsvConvert = new Mat(); \r\n\t\tMat hsv = new Mat();\r\n\t\tMatOfPoint test = new MatOfPoint(); \r\n\t\tArrayList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t\tArrayList<MatOfPoint> finalContours = new ArrayList<MatOfPoint>();\r\n\t\tMatOfPoint biggest = null; \r\n\t\tMat mhierarchy = new Mat(); //have no clue why hierarchy is needed. Still need to figure this one out. \r\n\t\tdouble centerX; \r\n\t\tdouble distance;\r\n\t\tdouble [] nums = new double [4]; \r\n\t\tnums = null; \r\n\t\t//int greta = 0; \r\n\t\t\r\n\t\twhile (true) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tstartPro = piVals.getNumber(\"RioTime\",0); \r\n\t\t\tcontours.clear(); \r\n\t\t\tfinalContours.clear(); \r\n\r\n\t\t\tcapture.read(bgr);\r\n\t\t\t//Imgcodecs.imwrite(\"greenCart.jpg\",bgr);\t\r\n\t\t\tImgproc.cvtColor(bgr, hsvConvert, Imgproc.COLOR_BGR2HSV); //using RGB does not work. MUST use BGR. We are still unsure of the reasons. \r\n\t\t\tCore.inRange(hsvConvert, new Scalar (13, 39, 135), new Scalar (92, 118, 255), hsv); //those two Scalar values are the the max and min HSV values respectively. Those were determined in GRIP. \r\n\t\t\tImgproc.findContours(hsv, contours, mhierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); //first enum lets you control things about hierarchy, I chose option with no hierarchy \r\n\r\n\t\t\tint idex=0; \r\n\t\t\tint size = contours.size();\r\n\t\t\t\r\n\t\t\t//changed to a for loop \r\n\t\t\tfor (idex=0; idex < contours.size(); idex++)\r\n\t\t\t{\r\n\t\t\t\ttest = contours.get(idex); \r\n\t\t\t\tif (Imgproc.contourArea(test)>100)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinalContours.add(test); \r\n\t\t\t\t}\r\n\t\t\t\tidex++; \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (finalContours.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnums = findCenterXDistance(finalContours.get(0).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +0+ \": \" + nums[2]);\r\n\t\t\t\tSystem.out.println(\"DISTANCE TO CONTOUR \" +0+ \": \" + (12*nums[3]));\r\n\t\t\t\tpiVals.putNumber(\"Center\", nums[2]);\r\n\t\t\t\tpiVals.putNumber(\"Distance\", (12*nums[3])); \r\n\t\t\t\tpiVals.putNumber(\"Start Time\", startPro); \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t//for (int count = 0; count < finalContours.size(); count++)\r\n\t\t\t//{ \r\n\t\t\t\t\r\n\t\t\t//\tnums = findCenterXDistance(finalContours.get(count).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +count+ \": \" + nums[2]);\r\n\t\t\t//\tSystem.out.println(\"DISTANCE TO CONTOUR \" +count+ \": \" + (12*nums[3]));\r\n\t\t\t//\trobot.Send(rioMillis, true, nums[2], nums[3]); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//}\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public static boolean[][] apply(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n boolean[][] output = new boolean[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = true;\r\n } else {\r\n output[x][y] = false;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "private List<Bitmap> processFaceResult(List<FirebaseVisionFace> faces, FirebaseVisionImage image, boolean keepOriginal) {\n final int FACE_IMG_WIDTH = 160;\n final int FACE_IMG_HEIGHT = 160;\n\n List<Bitmap> facesInFrame = new ArrayList<>();\n for (FirebaseVisionFace face : faces) {\n Rect bounds = face.getBoundingBox();\n Bitmap bitmap = cropBitmap(image.getBitmap(), bounds);\n if(keepOriginal == false) {\n bitmap = Bitmap.createScaledBitmap(bitmap, FACE_IMG_WIDTH, FACE_IMG_HEIGHT, true);\n }\n facesInFrame.add(bitmap);\n\n }\n return facesInFrame;\n }", "private boolean compareChromaPanes(boolean crossed)\n {\n int d;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n if (decodedVideo[j] != null)\n {\n // We compare the U and V pane before and after\n if (!crossed)\n {\n for (int i = size; i < 3 * size / 2; i += 1)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n d = d < 0 ? -d : d;\n if (d > 50)\n {\n f++;\n break;\n }\n }\n\n // We compare the V pane before with the U pane after\n }\n else\n {\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i + 1] & 0xFF);\n d = d < 0 ? -d : d;\n if (d > 50)\n {\n f++;\n }\n }\n }\n }\n }\n\n return f <= NB_DECODED / 2;\n }", "int match(ArrayList<ImageCell> images);", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "public static void detectFaces(File file) throws Exception, IOException {\r\n\t\t List<AnnotateImageRequest> requests = new ArrayList<>();\r\n System.out.println(file.getPath());\r\n\r\n \r\n //convert picture file into original ByteString object and set values to request for google vision API\r\n\t\t ByteString imgBytes = ByteString.readFrom(new FileInputStream(file));\r\n\r\n\t\t Image img = Image.newBuilder().setContent(imgBytes).build();\r\n\t\t Feature feat = Feature.newBuilder().setType(Type.FACE_DETECTION).build();\r\n\t\t AnnotateImageRequest request =\r\n\t\t AnnotateImageRequest.newBuilder().addFeatures(feat).setImage(img).build();\r\n\t\t requests.add(request);\r\n\r\n //call google vision API engine and returns annotations of the image\r\n\t\t try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) {\r\n\t\t BatchAnnotateImagesResponse response = client.batchAnnotateImages(requests);\r\n\t\t List<AnnotateImageResponse> responses = response.getResponsesList();\r\n\r\n\t\t for (AnnotateImageResponse res : responses) {\r\n\t\t if (res.hasError()) {\r\n\t\t System.out.printf(\"Error: %s\\n\", res.getError().getMessage());\r\n\t\t return;\r\n\t\t }\r\n\r\n\t\t // retrieve annotation value of each emotion\r\n\t\t for (FaceAnnotation annotation : res.getFaceAnnotationsList()) {\r\n\t\t int[] emoValue = {annotation.getAngerLikelihoodValue(),\r\n annotation.getJoyLikelihoodValue(),\r\n annotation.getSorrowLikelihoodValue(),\r\n annotation.getSurpriseLikelihoodValue(),\r\n };\r\n \r\n //choose highest annotation value of each emotion\r\n int max = 0;\r\n for (int i = 0; i < emoValue.length; i++){\r\n System.out.print(emoValue[i] + \" \");\r\n if (max < emoValue[i]){\r\n max = emoValue[i];\r\n index = i;\r\n }\r\n }\r\n //if all of emotion likelihood balue = 1, no expression\r\n if (max == 1){index = emotion.length-1;}\r\n System.out.println();\r\n System.out.println(emotion[index]);\r\n }\r\n\r\n\t\t }\r\n \r\n\t\t }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n\r\n\t\t}", "public int[][] RdB() {\t\t\t\t\t\t\t\t// cherche les 4 points noirs\n\t\tint[][] pixNoirs = new int[img.getWidth()*img.getHeight()][2];\n\n\t\tint i=0;\n\t\tint radius=8;\t\t\t\t\t\t\t\t\t// 19= limite de detection de checkCircle\n\t\tfor (int ty=0; ty<img.getHeight();ty++) {\n\t\t\tfor (int tx=0;tx<img.getWidth();tx++) {\n\n\t\t\t\tColor tmp=new Color(img.getRGB(tx, ty));\n\t\t\t\tif (tmp.getGreen()<20) { \t\t\t\t//si le pixel est noir\n\t\t\t\t\tif (checkCircle(tx,ty,radius) ) {\t//verifie si un cercle de radius entoure le pixel\n\t\t\t\t\t\tpixNoirs[i][0]=tx;\n\t\t\t\t\t\tpixNoirs[i][1]=ty;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"fin\");\n\t\tint tmp=1;\n\t\tint centreX[][]=new int [img.getWidth()*img.getHeight()][2];\n\t\tcentreX[0]=pixNoirs[0];\n\t\tfor (int l=0;l<img.getHeight()*img.getWidth() && (pixNoirs[l][1]!=0 || pixNoirs[l][0]!=0);l++) {\n\t\t\tif((pixNoirs[l][0]-centreX[tmp-1][0])<5 || pixNoirs[l][1]-centreX[tmp-1][1]<5 ){\t\t//x-(x-1)>5 ou y-(y-1)>5\n\t\t\t\tcentreX[tmp][0]=pixNoirs[l][0];\t\t\t//efface le precedent roar2 si il était a 1 pixel de diff\n\t\t\t\tcentreX[tmp][1]=pixNoirs[l][1];\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttmp++;\n\t\t\t\tcentreX[tmp]=pixNoirs[l];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//boucle de determination des points noirs\n\t\t//System.out.println(\"roar2debut\");\n\t\tint points[][]=new int [4][2];\n\t\tint centres[][]=new int [centreX.length][2]; int boucl=0; int lasti=0;\n\t\tint t=0;\n\t\tfor (int l=1;l<=img.getHeight()*img.getWidth() && (centreX[l-1][1]!=0 || centreX[l-1][0]!=0);l++) {\n\n\n\t\t\t\n\t\t\tint diffx=centreX[l][0]-centreX[l-1][0];\n\t\t\tint diffy=centreX[l][1]-centreX[l-1][1];\n\t\t\tint diff=Math.abs(diffx)+Math.abs(diffy);\n\t\t\tif (diff>img.getWidth()*0.85)\n\t\t\t{\n\t\t\t\tpoints[t]=centreX[l];\n\t\t\t\tt++;\n\t\t\t}\n\t\t\t\n\t\t\tif (diffx<10 && diffy<10) {\n\t\t\t\tboucl++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcentres[lasti][0]=centreX[l-boucl/2][0];\n\t\t\t\tcentres[lasti][1]=centreX[l-boucl/2][1];\n\t\t\t\tlasti++;boucl=0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor (int l=0;l<=centres.length && (centres[l][1]!=0 || centres[l][0]!=0);l++) {\t\n\t\t\tboolean test=true;\n\t\t\tint maxPoint=0;\n\t\t\tfor (int li=0;li<=points.length && (points[li][1]!=0 || points[li][0]!=0);li++) {\n\t\t\t\tint diffx=\tMath.abs(centres[l][0]-points[li][0]);\n\t\t\t\tint diffy=\tMath.abs(centres[l][1]-points[li][1]);\n\t\t\t\tboolean testx=\t\tdiffx>img.getWidth()*0.85 \t|| diffx<img.getWidth()*0.2;\t//diff <0.1 ou >0.8 x la largeur de feuille\n\t\t\t\tboolean testy=\t\tdiffy>img.getHeight()*0.8 \t|| diffy<img.getWidth()*0.2;\n\t\t\t\tboolean Repeat=\tdiffx+diffy>img.getWidth()*0.2;\t //si point deja présent\n\n\t\t\t\tif (!Repeat || (!testx || !testy) )\t// si 0.2>diffx>0.8 ou \"diffy\" et \n\t\t\t\t{\n\t\t\t\t\ttest=false;\n\t\t\t\t}\n\t\t\t\tmaxPoint=li;\n\t\t\t}\n\t\t\t\n\t\t\tif(test && maxPoint<2) {\n\t\t\t\t//System.out.println(lastRoar[l][0]+\" \"+lastRoar[l][1]);\n\t\t\t\tpoints[maxPoint+1][0]=centres[l][0];\n\t\t\t\tpoints[maxPoint+1][1]=centres[l][1];\n\t\t\t}\n\t\t}\n\t\treturn points;\n\n\t}" ]
[ "0.69729584", "0.64502615", "0.64392376", "0.61358947", "0.59805787", "0.59126484", "0.5784025", "0.5768534", "0.5611797", "0.5603992", "0.5402923", "0.53182644", "0.5298051", "0.5230985", "0.5220954", "0.5202089", "0.51957095", "0.50189054", "0.49018797", "0.48937187", "0.48780885", "0.4875955", "0.48050842", "0.48009744", "0.4796828", "0.47920883", "0.47906864", "0.47479436", "0.47238147", "0.4701613", "0.46949685", "0.46920797", "0.46782923", "0.46720153", "0.46656024", "0.4664788", "0.46635014", "0.4639307", "0.4632093", "0.4606999", "0.45894355", "0.4585071", "0.45816308", "0.45565307", "0.4551733", "0.45433325", "0.45401433", "0.45377922", "0.4528041", "0.45206007", "0.4519929", "0.45026577", "0.44977224", "0.44806656", "0.44777644", "0.4473248", "0.44673026", "0.44670174", "0.4463249", "0.44501692", "0.44414473", "0.44365352", "0.4434062", "0.44240242", "0.442226", "0.44173402", "0.4407849", "0.44025072", "0.43767238", "0.43755355", "0.43738386", "0.43697914", "0.435694", "0.43551067", "0.4351525", "0.43515122", "0.4338329", "0.4335016", "0.4331982", "0.43305755", "0.43295568", "0.43293798", "0.43202984", "0.43196258", "0.43196", "0.43187004", "0.43133602", "0.43106213", "0.43070963", "0.4305869", "0.43027863", "0.4296837", "0.42887142", "0.4279385", "0.42785937", "0.42747793", "0.427379", "0.42700782", "0.426247", "0.42607093" ]
0.6140876
3
C++: bool cv::GraphicalCodeDetector::decodeMulti(Mat img, Mat points, vector_string& decoded_info, vector_Mat& straight_code = vector_Mat()) Decodes graphical codes in image once it's found by the detect() method.
public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) { Mat straight_code_mat = new Mat(); boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj); Converters.Mat_to_vector_Mat(straight_code_mat, straight_code); straight_code_mat.release(); return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "private static native long imdecode_0(long buf_nativeObj, int flags);", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public static byte[] decode(byte[] code) throws CorruptedCodeException {\r\n\tboolean end;\r\n\tbyte[] output;\r\n\tbyte m;\r\n\tbyte a;\r\n\tbyte b;\r\n\tbyte c;\r\n\tbyte d;\r\n\tint i;\r\n\tint j;\r\n\tint k;\r\n\tint l;\r\n\r\n\tl = code.length;\r\n\tend = false;\r\n\r\n\tfor (i = 0, j = 0; i < l; i++) {\r\n\t if ((code[i] < 0) || (code[i] >= REVERSE.length)) {\r\n\t\tthrow new CorruptedCodeException(\"Code was not Base64 encoded\");\r\n\t }\r\n\t m = REVERSE[code[i]];\r\n\r\n\t if (m == PAD) {\r\n\t\tif (end) {\r\n\t\t break;\r\n\t\t}\r\n\t\tend = true;\r\n\t\tcontinue;\r\n\t }\r\n\t if (end) {\r\n\t\tthrow new CorruptedCodeException(\r\n\t\t\t\"Second pad character missing!\");\r\n\t }\r\n\t if (m == F) {\r\n\t\tcontinue;\r\n\t }\r\n\t code[j++] = m;\r\n\t}\r\n\tl = j >> 2;\r\n\ti = l * 3;\r\n\tk = j & 3;\r\n\r\n\tif (k == 1) {\r\n\t throw new CorruptedCodeException(\"One character is missing!\");\r\n\t}\r\n\tif (k > 0) {\r\n\t i = (i + k) - 1;\r\n\t}\r\n\toutput = new byte[i];\r\n\r\n\ti = 0;\r\n\tj = 0;\r\n\tb = 0;\r\n\r\n\twhile (l > 0) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t c = code[i++];\r\n\t d = code[i++];\r\n\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t output[j++] = (byte) (((c & 3) << 6) | d);\r\n\t l--;\r\n\t}\r\n\tif (k >= 2) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t}\r\n\tif (k >= 3) {\r\n\t c = code[i++];\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t}\r\n\treturn output;\r\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public java.math.BigInteger[] decode(byte[] r1) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[]\");\n }", "public void DecodeImage(String encodedString, int id) throws CustomServiceUnavailableException {\r\n\r\n\t\tString filename = String.valueOf(id) + \".jpg\";\r\n\t\tString finalfile = \"\";\r\n\t\tfinalfile = filename;\r\n\t\tBufferedImage image = null;\r\n\t\tbyte[] imageByte;\r\n\r\n\t\ttry {\r\n\t\t\tBASE64Decoder decoder = new BASE64Decoder();\r\n\t\t\timageByte = decoder.decodeBuffer(encodedString);\r\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(imageByte);\r\n\t\t\timage = ImageIO.read(bis);\r\n\t\t\tbis.close();\r\n\t\t\tImageIO.write(image, \"jpg\", new File(finalfile));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CustomServiceUnavailableException(\"Internal error in the application\");\r\n\t\t}\r\n\r\n\t}", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "public void decodeImage(String completeImageData, ImageView imageView) {\n if (completeImageData == null) { return; }\n\n // Incase you're storing into aws or other places where we have extension stored in the starting.\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n imageView.setImageBitmap(bitmap);\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "public List<Result> recognize(IplImage image);", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "public static Mat imdecode(Mat buf, int flags)\n {\n\n Mat retVal = new Mat(imdecode_0(buf.nativeObj, flags));\n\n return retVal;\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "private void decodeBase64AndSetImage(String completeImageData, ImageView imageView) {\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n\n imageView.setImageBitmap(bitmap);\n }", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n inactivityTimer.onActivity();\n\n boolean fromLiveScan = barcode != null;\n if (fromLiveScan) {\n // Then not from history, so beep/vibrate and we have an image to draw on\n beepManager.playBeepSoundAndVibrate();\n }\n\n //rawResult.getText() 结果\n if (rawResult == null || TextUtils.isEmpty(rawResult.getText())) {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeFailed();\n }\n } else {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeSuccess(barcode, rawResult.getText());\n }\n }\n\n }", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "void process(Mat image);", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "public byte[] decode_text(byte[] image) {\n int length = 0;\n int offset = 32;\n // loop through 32 bytes of data to determine text length\n for (int i = 0; i < 32; ++i) // i=24 will also work, as only the 4th\n // byte contains real data\n {\n length = (length << 1) | (image[i] & 1);\n }\n\n byte[] result = new byte[length];\n\n // loop through each byte of text\n for (int b = 0; b < result.length; ++b) {\n // loop through each bit within a byte of text\n for (int i = 0; i < 8; ++i, ++offset) {\n // assign bit: [(new byte value) << 1] OR [(text byte) AND 1]\n result[b] = (byte) ((result[b] << 1) | (image[offset] & 1));\n }\n }\n return result;\n }", "public native void annotateImage(DrawInfo info);", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "public int decodeBytes(byte[] bytes) {\n if (bytes.length < 200)\n return 0;\n\n List<Code> createdCodes = null;\n // Size of symbol is 10 bytes, so we need to shift\n for (int i = 0; i < 10; i++) {\n byte[] tempBytes = new byte[bytes.length - i];\n System.arraycopy(bytes, i, tempBytes, 0, bytes.length - i);\n\n createdCodes = Code.createCodes(tempBytes);\n\n // Counter for incorrect symbols\n int bad = 0;\n\n // Check on errors\n for (Code sign : createdCodes)\n if (sign.equals(ERROR_CODE))\n bad++;\n\n if (!(tempBytes.length / 10 - bad < 10))\n break;\n }\n\n // Message ready for further decoding?\n int headPosition = findHeadPosition(createdCodes);\n // if we've found beginning then continue decoding\n // else remove 21 bytes\n if (headPosition < 0)\n return 21;\n\n // Do we need to put back into buffer and save?\n int endPosition = findEndingPosition(createdCodes);\n // if we've found end of sequence then continue decoding\n // else remove bytes\n if (endPosition < 0) {\n if (bytes.length > 2000)\n return 50;\n\n return 0;\n }\n\n // Is DSC with expanded sequence?\n int expandPosition = findExpandPosition(\n createdCodes, endPosition + endingPattern.size()\n );\n if (expandPosition < 0 && bytes.length < 2000) {\n return 0;\n }\n\n // To the end position adds two for decoding ECC symbol\n List<Code> message = processMessage(\n createdCodes, headPosition,\n expandPosition < 0 ? endPosition + 3 : expandPosition + 3,\n expandPosition > 0\n );\n\n String decodedSymbols = message.stream().map(\n (c) -> c.getSymbol() + \"\" + \" \"\n ).reduce(\n (s1, s2) -> s1 + s2\n ).orElse(\"\");\n\n logger.info(\"Decoded symbols: \" + decodedSymbols);\n\n codeDecoder.decodeCodes(message);\n\n return (endPosition * 10 + endingPattern.size() * 10);\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public interface C0605e {\n Bitmap m4508a(int i, int i2, Config config);\n\n void m4509a();\n\n void m4510a(int i);\n\n boolean m4511a(Bitmap bitmap);\n\n Bitmap m4512b(int i, int i2, Config config);\n}", "final int silk_decode_frame(final Jec_dec psRangeDec,\r\n\t\t\tfinal short pOut[], final int outoffset,// java\r\n\t\t\t// final int[] pN,// java returned\r\n\t\t\tfinal int lostFlag, final int condCoding)//, final int arch)\r\n\t{\r\n\t\t// final int ret = 0;// java not using\r\n\t\t// SAVE_STACK;\r\n\r\n\t\tfinal int L = this.frame_length;\r\n\t\tfinal Jsilk_decoder_control psDecCtrl = new Jsilk_decoder_control();\r\n\t\tpsDecCtrl.LTP_scale_Q14 = 0;\r\n\r\n\t\t/* Safety checks */\r\n\t\t// celt_assert( L > 0 && L <= MAX_FRAME_LENGTH );\r\n\r\n\t\tif( lostFlag == Jsilk_decoder.FLAG_DECODE_NORMAL ||\r\n\t\t\t\t( lostFlag == Jsilk_decoder.FLAG_DECODE_LBRR && this.LBRR_flags[ this.nFramesDecoded ] ) )\r\n\t\t{\r\n\t\t\tfinal short[] pulses = new short[(L + Jdefine.SHELL_CODEC_FRAME_LENGTH - 1) & ~(Jdefine.SHELL_CODEC_FRAME_LENGTH - 1)];\r\n\t\t\t/*********************************************/\r\n\t\t\t/* Decode quantization indices of side info */\r\n\t\t\t/*********************************************/\r\n\t\t\tthis.silk_decode_indices( psRangeDec, this.nFramesDecoded, lostFlag != 0, condCoding );\r\n\r\n\t\t\t/*********************************************/\r\n\t\t\t/* Decode quantization indices of excitation */\r\n\t\t\t/*********************************************/\r\n\t\t\tsilk_decode_pulses( psRangeDec, pulses, this.indices.signalType,\r\n\t\t\t\t\t\t\t\tthis.indices.quantOffsetType, this.frame_length );\r\n\r\n\t\t\t/********************************************/\r\n\t\t\t/* Decode parameters and pulse signal */\r\n\t\t\t/********************************************/\r\n\t\t\tsilk_decode_parameters( psDecCtrl, condCoding );\r\n\r\n\t\t\t/********************************************************/\r\n\t\t\t/* Run inverse NSQ */\r\n\t\t\t/********************************************************/\r\n\t\t\tsilk_decode_core( psDecCtrl, pOut, outoffset, pulses );//, arch );\r\n\r\n\t\t\t/********************************************************/\r\n\t\t\t/* Update PLC state */\r\n\t\t\t/********************************************************/\r\n\t\t\tsilk_PLC( psDecCtrl, pOut, outoffset, false );//, arch );\r\n\r\n\t\t\tthis.lossCnt = 0;\r\n\t\t\tthis.prevSignalType = this.indices.signalType;\r\n\t\t\t// celt_assert( psDec.prevSignalType >= 0 && psDec.prevSignalType <= 2 );\r\n\r\n\t\t\t/* A frame has been decoded without errors */\r\n\t\t\tthis.first_frame_after_reset = false;\r\n\t\t} else {\r\n\t\t\t/* Handle packet loss by extrapolation */\r\n\t\t\tthis.indices.signalType = (byte)this.prevSignalType;// FIXME implicit int to char\r\n\t\t\tsilk_PLC( psDecCtrl, pOut, outoffset, true );//, arch );\r\n\t\t}\r\n\r\n\t\t/*************************/\r\n\t\t/* Update output buffer. */\r\n\t\t/*************************/\r\n\t\t// celt_assert( psDec.ltp_mem_length >= psDec.frame_length );\r\n\t\tfinal int mv_len = this.ltp_mem_length - this.frame_length;\r\n\t\tSystem.arraycopy( this.outBuf, this.frame_length, this.outBuf, 0, mv_len );\r\n\t\tSystem.arraycopy( pOut, outoffset, this.outBuf, mv_len, this.frame_length );\r\n\r\n\t\t/************************************************/\r\n\t\t/* Comfort noise generation / estimation */\r\n\t\t/************************************************/\r\n\t\tsilk_CNG( psDecCtrl, pOut, outoffset, L );\r\n\r\n\t\t/****************************************************************/\r\n\t\t/* Ensure smooth connection of extrapolated and good frames */\r\n\t\t/****************************************************************/\r\n\t\tsilk_PLC_glue_frames( pOut, outoffset, L );\r\n\r\n\t\t/* Update some decoder state variables */\r\n\t\tthis.lagPrev = psDecCtrl.pitchL[ this.nb_subfr - 1 ];\r\n\r\n\t\t/* Set output frame length */\r\n\t\t// pN[0] = L;// java returned\r\n\r\n\t\t// RESTORE_STACK;\r\n\t\t// return ret;// java always 0\r\n\t\treturn L;// java frame length\r\n\t}", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public static Bitmap decodeBase64(String input) {\r\n byte[] decodedBytes = Base64.decode(input, 0);\r\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\r\n }", "public static Bitmap bitmapDecodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "public Void call() {\n if (C42323i.this.f110090e == null || C42323i.this.f110090e.isEmpty()) {\n return null;\n }\n for (String a : C42323i.this.f110090e) {\n Bitmap a2 = C42341f.m134633a(a, C42319f.f110087a);\n if (a2 != null) {\n String a3 = C42323i.this.f110077c.mo88162a();\n C42341f.m134636a(a2, new File(a3), 70, CompressFormat.JPEG);\n C42323i.this.f110075a.addFrameAtLastSegment(a3);\n }\n }\n return null;\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}", "public static Bitmap decodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "public void process(Mat rgbaImage) {\n rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n isFound = true;\n\n }", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "public void onFinalImageSet(java.lang.String r3, @javax.annotation.Nullable com.facebook.imagepipeline.image.ImageInfo r4, @javax.annotation.Nullable android.graphics.drawable.Animatable r5) {\r\n /*\r\n r2 = this;\r\n r3 = 0;\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x007e }\r\n r4 = r4.dataSource;\t Catch:{ all -> 0x007e }\r\n r4 = r4.getResult();\t Catch:{ all -> 0x007e }\r\n r4 = (com.facebook.common.references.CloseableReference) r4;\t Catch:{ all -> 0x007e }\r\n r3 = 1;\r\n if (r4 == 0) goto L_0x003b;\r\n L_0x0010:\r\n r5 = r4.get();\t Catch:{ all -> 0x0039 }\r\n r5 = (com.facebook.imagepipeline.image.CloseableImage) r5;\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0018:\r\n r0 = r5 instanceof com.facebook.imagepipeline.image.CloseableStaticBitmap;\t Catch:{ all -> 0x0039 }\r\n if (r0 == 0) goto L_0x003b;\r\n L_0x001c:\r\n r5 = (com.facebook.imagepipeline.image.CloseableStaticBitmap) r5;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.getUnderlyingBitmap();\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0024:\r\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.copy(r0, r3);\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmap = r5;\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r5 = com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(r5);\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmapDescriptor = r5;\t Catch:{ all -> 0x0039 }\r\n goto L_0x003b;\r\n L_0x0039:\r\n r3 = move-exception;\r\n goto L_0x0082;\r\n L_0x003b:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0049;\r\n L_0x0046:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0049:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0051:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.imageUri;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0059:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.imageUri;\r\n r4 = r4.getSharedIcon(r5);\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.iconBitmapDescriptor;\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r0 = r0.iconBitmap;\r\n r4.updateIcon(r5, r0);\r\n L_0x0078:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4.update(r3);\r\n return;\r\n L_0x007e:\r\n r4 = move-exception;\r\n r1 = r4;\r\n r4 = r3;\r\n r3 = r1;\r\n L_0x0082:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0090;\r\n L_0x008d:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0090:\r\n throw r3;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.android.react.maps.AirMapMarker.1.onFinalImageSet(java.lang.String, com.facebook.imagepipeline.image.ImageInfo, android.graphics.drawable.Animatable):void\");\r\n }", "private void callbitmapmethod() {\n\t\ttry {\n\t\t\tencode.clear();\n\t\t\tfor (int i = 0; i < queueItemforApproval.size(); i++) {\n\t\t\t\t/**/\n\t\t\t\tQueueString en = new QueueString();\n\t\t\t\tif (queueItemforApproval.get(i).bitmap != null) {\n\t\t\t\t\tSystem.out.println(\"bitmap is:\"\n\t\t\t\t\t\t\t+ queueItemforApproval.get(i).bitmap);\n\t\t\t\t\ten.path = convertintobase64(queueItemforApproval.get(i).bitmap);\n\t\t\t\t\tSystem.out.println(\"path is :\" + en.path);\n\t\t\t\t\t// Bitmap bitmap = decodeBase64(en.path, i);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"bitmap is null\");\n\t\t\t\t}\n\t\t\t\tencode.add(en);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public Mat beforeDataEncoded(Mat frame);", "@Override\r\n public void run() {\n do {\r\n try {\r\n Thread.sleep(100);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n Result result = null;\r\n BufferedImage image = null;\r\n if (webcam.isOpen()) {\r\n if ((image = webcam.getImage()) == null) {\r\n continue;\r\n }\r\n \t//iconlabel\r\n\t ImageIcon icon=new ImageIcon(image);\r\n\t icon.setImage(icon.getImage().getScaledInstance(300,300,Image.SCALE_DEFAULT));\r\n\t iconLabel.setIcon(icon); \r\n\t \r\n \t//qrcode\r\n LuminanceSource source =new BufferedImageLuminanceSource( image) ;\r\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\r\n\r\n try {\r\n result = new MultiFormatReader().decode(bitmap);\r\n } catch (NotFoundException e) {\r\n // fall thru, it means there is no QR code in image\r\n }\r\n }\r\n if (result != null) {\r\n textarea.setText(result.getText());\r\n System.out.println(result.getText());\r\n }\r\n\r\n } while (true);\r\n }", "protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "public static Bitmap decodeBase64(String input)\n {\n byte[] decodedBytes = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\n }" ]
[ "0.84974426", "0.78516746", "0.7819859", "0.77997154", "0.7517559", "0.7467243", "0.7394678", "0.7111581", "0.69605875", "0.6903781", "0.6688996", "0.6586961", "0.6232708", "0.5848124", "0.5761253", "0.55882496", "0.54025465", "0.52927965", "0.5262179", "0.5233367", "0.51369214", "0.5106762", "0.5065291", "0.5052526", "0.5017296", "0.5000214", "0.49968702", "0.49768704", "0.4950532", "0.49468213", "0.49388427", "0.49137247", "0.48942357", "0.4884829", "0.487629", "0.48756176", "0.48606816", "0.48440862", "0.4840569", "0.48328203", "0.48025143", "0.4790376", "0.47896287", "0.47860307", "0.47855198", "0.47734222", "0.47683486", "0.4760023", "0.47473007", "0.47419536", "0.4733312", "0.47149494", "0.47123018", "0.4707988", "0.4706574", "0.4706073", "0.47017762", "0.469896", "0.46770048", "0.46749103", "0.46744353", "0.4672992", "0.46668515", "0.46653563", "0.4663851", "0.46434608", "0.46303922", "0.46138403", "0.46121868", "0.46120578", "0.45975056", "0.45918807", "0.45803124", "0.4576742", "0.45702896", "0.45578164", "0.4554176", "0.45488814", "0.45396757", "0.45387426", "0.4524111", "0.45232695", "0.4518839", "0.451865", "0.4513627", "0.45073777", "0.45051745", "0.4504789", "0.45037964", "0.4502516", "0.44986722", "0.4494363", "0.4489923", "0.44880936", "0.4487121", "0.44838342", "0.4483636", "0.44824368", "0.44817534", "0.4473101" ]
0.8292856
1
Decodes graphical codes in image once it's found by the detect() method.
public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) { return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "public List<Result> recognize(IplImage image);", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "public byte[] decode_text(byte[] image) {\n int length = 0;\n int offset = 32;\n // loop through 32 bytes of data to determine text length\n for (int i = 0; i < 32; ++i) // i=24 will also work, as only the 4th\n // byte contains real data\n {\n length = (length << 1) | (image[i] & 1);\n }\n\n byte[] result = new byte[length];\n\n // loop through each byte of text\n for (int b = 0; b < result.length; ++b) {\n // loop through each bit within a byte of text\n for (int i = 0; i < 8; ++i, ++offset) {\n // assign bit: [(new byte value) << 1] OR [(text byte) AND 1]\n result[b] = (byte) ((result[b] << 1) | (image[offset] & 1));\n }\n }\n return result;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native long imdecode_0(long buf_nativeObj, int flags);", "public native void annotateImage(DrawInfo info);", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "Picture identifyComponentImage() throws Exception;", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "public void processImage() {\n\n\n ++timestamp;\n final long currTimestamp = timestamp;\n byte[] originalLuminance = getLuminance();\n tracker.onFrame(\n previewWidth,\n previewHeight,\n getLuminanceStride(),\n sensorOrientation,\n originalLuminance,\n timestamp);\n trackingOverlay.postInvalidate();\n\n // No mutex needed as this method is not reentrant.\n if (computingDetection) {\n readyForNextImage();\n return;\n }\n computingDetection = true;\n LOGGER.i(\"Preparing image \" + currTimestamp + \" for detection in bg thread.\");\n\n rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);\n\n if (luminanceCopy == null) {\n luminanceCopy = new byte[originalLuminance.length];\n }\n System.arraycopy(originalLuminance, 0, luminanceCopy, 0, originalLuminance.length);\n readyForNextImage();\n\n final Canvas canvas = new Canvas(croppedBitmap);\n canvas.drawBitmap(rgbFrameBitmap, frameToCropTransform, null);\n // For examining the actual TF input.\n if (SAVE_PREVIEW_BITMAP) {\n ImageUtils.saveBitmap(croppedBitmap);\n }\n\n runInBackground(\n new Runnable() {\n @Override\n public void run() {\n LOGGER.i(\"Running detection on image \" + currTimestamp);\n final long startTime = SystemClock.uptimeMillis();\n final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap);\n lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;\n\n cropCopyBitmap = Bitmap.createBitmap(croppedBitmap);\n final Canvas canvas = new Canvas(cropCopyBitmap);\n final Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2.0f);\n\n float minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n switch (MODE) {\n case TF_OD_API:\n minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n break;\n }\n\n final List<Classifier.Recognition> mappedRecognitions =\n new LinkedList<Classifier.Recognition>();\n //boolean unknown = false, cervix = false, os = false;\n\n for (final Classifier.Recognition result : results) {\n final RectF location = result.getLocation();\n if (location != null && result.getConfidence() >= minimumConfidence) {\n\n //if (result.getTitle().equals(\"unknown\") && !unknown) {\n // unknown = true;\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n\n /*} else if (result.getTitle().equals(\"Cervix\") && !cervix) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n cervix = true;\n\n } else if (result.getTitle().equals(\"Os\") && !os) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n os = true;\n }*/\n\n\n }\n }\n\n tracker.trackResults(mappedRecognitions, luminanceCopy, currTimestamp);\n trackingOverlay.postInvalidate();\n\n\n computingDetection = false;\n\n }\n });\n\n\n }", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public void deSteganographise() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\tArrayList<Character> deStegData = new ArrayList<Character>();\n\t\t\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\tfor(int i = 0;;i++) {\n\t\t\t\tSystem.out.println(\"fucking herp\");\n\t\t\t\t//System.in.read();\n\n\t\t\t\t\n\t\t\t\tFile f = new File(\"downloaded/image\" + i + \".png\");\n\t\t\t\tSystem.out.println(\"file is: \" + f.getName());\n\t\t\t\t\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\tSystem.out.println(\"in deStego if loop\");\n\t\t\t\t\t\n\t\t\t\t\t//System.in.read();\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.reveal(hidingText);\n\t\t\t\t\tString deSteg = hidingText.getText();\n\t\t\t\t\t\n\t\t\t\t\tif(deSteg.length() < 1) {\n\t\t\t\t\t\tSystem.out.println(\"no data in image!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"size of hiding text: \" + hidingText.getSize());\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deSteg data: \" + deSteg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//split the extracted string into data and command message\n\t\t\t\t\t\tString[] split = deSteg.split(\":\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString cC = split[0];\n\t\t\t\t\t\tString stegText = split[2];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j = 0; j < stegText.length(); j++) {\n\t\t\t\t\t\t\tdeStegData.add(stegText.charAt(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deStegText: \" + stegText);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Finished Desteganography\");\n\t\t\t\t\tsteganographise(deStegData);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InvalidTypeException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RevealingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t\t\n\t\t\n\t}", "public boolean translateImageToText();", "public boolean generateImageFromText();", "public void ocrExtraction(BufferedImage image) {\n\t\tFile outputfile = new File(\"temp.png\");\n\t\toutputfile.deleteOnExit();\n\t\tString ocrText = \"\", currLine = \"\";\n\t\ttry {\n\t\t\tImageIO.write(image, \"png\", outputfile);\n\n\t\t\t// System call to Tesseract OCR\n\t\t\tRuntime r = Runtime.getRuntime();\n\t\t\tProcess p = r.exec(\"tesseract temp.png ocrText -psm 6\");\n//\t\t\tProcess p = r.exec(\"tesseract temp.png ocrText\");\n\t\t\tp.waitFor();\n\n\t\t\t// Read text file generated by tesseract\n\t\t\tFile f = new File(\"ocrText.txt\");\n\t\t\tf.deleteOnExit();\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\t\t\n\t\t\twhile ((currLine = br.readLine()) != null) {\n\t\t\t\tocrText += (currLine + \" \");\n\t\t\t}\n\t\t\tif(ocrText.trim().isEmpty()) {\n\t\t\t\tocrText = \"OCR_FAIL\";\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttextField.setText(ocrText.trim());\n\t\ttextField.requestFocus();\n\t\ttextField.selectAll();\n\t}", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "static Type detectType(ImageWrapper image) {\n if (image.u.pixelStride == 1)\n return Type.YUV_420;\n else\n return Type.YUV_NV21;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap imageBitmap = (Bitmap) extras.get(\"data\");\n\n detextTextFromImage(imageBitmap);\n\n }\n }", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public void setQrcodeDecodeRect(int x, int y, int w, int h);", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "public String detectObject(Bitmap bitmap) {\n results = classifierObject.recognizeImage(bitmap);\n\n // Toast.makeText(context, results.toString(), Toast.LENGTH_LONG).show();\n return String.valueOf(results.toString());\n }", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "DetectionResult getObjInImage(Mat image);", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "private void readImage(final InputStream inputStream) throws IOException\n {\n final int lzwCode = inputStream.read();\n\n if (lzwCode < 0)\n {\n throw new IOException(\"No enough data to read LZW code\");\n }\n\n this.colorIndexes = new int[this.width * this.height];\n SubBlock subBlock = SubBlock.read(inputStream);\n\n if (subBlock == SubBlock.EMPTY)\n {\n return;\n }\n\n byte[] data = subBlock.getData();\n\n if (data.length < 4)\n {\n // To avoid some malformed GIF\n return;\n }\n\n this.buffer32 = (data[0] & 0xFF) | ((data[1] & 0xFF) << 8) | ((data[2] & 0xFF) << 16) | ((data[3] & 0xFF) << 24);\n final int clearCode = 1 << lzwCode;\n final int endCode = clearCode + 1;\n int code, oldCode = 0;\n final int[] prefix = new int[4096];\n final byte[] suffix = new byte[4096];\n final byte[] initial = new byte[4096];\n final int[] length = new int[4096];\n final byte[] string = new byte[4096];\n this.initializeStringTable(prefix, suffix, initial, length, lzwCode);\n int tableIndex = (1 << lzwCode) + 2;\n int codeSize = lzwCode + 1;\n int codeMask = (1 << codeSize) - 1;\n Pair<Integer, SubBlock> pair = new Pair<Integer, SubBlock>(0, subBlock);\n\n while (pair.element1 != endCode)\n {\n pair = this.getCode(codeSize, codeMask, inputStream, subBlock, endCode);\n code = pair.element1;\n subBlock = pair.element2;\n\n if (code == clearCode)\n {\n this.initializeStringTable(prefix, suffix, initial, length, lzwCode);\n tableIndex = (1 << lzwCode) + 2;\n codeSize = lzwCode + 1;\n codeMask = (1 << codeSize) - 1;\n\n pair = this.getCode(codeSize, codeMask, inputStream, subBlock, endCode);\n code = pair.element1;\n subBlock = pair.element2;\n if (code == endCode)\n {\n return;\n }\n }\n else if (code == endCode)\n {\n return;\n }\n else\n {\n int newSuffixIndex;\n if (code < tableIndex)\n {\n newSuffixIndex = code;\n }\n else\n { // code == tableIndex\n newSuffixIndex = oldCode;\n if (code != tableIndex)\n {\n // warning - code out of sequence\n // possibly data corruption\n Debug.println(DebugLevel.WARNING, \"Out-of-sequence code!\");\n }\n }\n\n final int ti = tableIndex;\n\n prefix[ti] = oldCode;\n suffix[ti] = initial[newSuffixIndex];\n initial[ti] = initial[oldCode];\n length[ti] = length[oldCode] + 1;\n\n tableIndex++;\n if ((tableIndex == (1 << codeSize)) && (tableIndex < 4096))\n {\n codeSize++;\n codeMask = (1 << codeSize) - 1;\n }\n }\n\n // Reverse code\n int c = code;\n final int len = length[c];\n for (int i = len - 1; i >= 0; i--)\n {\n string[i] = suffix[c];\n c = prefix[c];\n }\n\n this.writeImage(string, len);\n oldCode = code;\n }\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "public void process(Mat rgbaImage) {\n rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n isFound = true;\n\n }", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public void decodeImage(String completeImageData, ImageView imageView) {\n if (completeImageData == null) { return; }\n\n // Incase you're storing into aws or other places where we have extension stored in the starting.\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n imageView.setImageBitmap(bitmap);\n }", "@Override\n public void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG,\"Barcode detected\");\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n inactivityTimer.onActivity();\n\n boolean fromLiveScan = barcode != null;\n if (fromLiveScan) {\n // Then not from history, so beep/vibrate and we have an image to draw on\n beepManager.playBeepSoundAndVibrate();\n }\n\n //rawResult.getText() 结果\n if (rawResult == null || TextUtils.isEmpty(rawResult.getText())) {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeFailed();\n }\n } else {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeSuccess(barcode, rawResult.getText());\n }\n }\n\n }", "private void runTextRecognition(Bitmap bitmap) {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionTextDetector detector = FirebaseVision.getInstance().getVisionTextDetector();\n\n detector.detectInImage(image).addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n processTextRecognitionResult(texts);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n e.printStackTrace();\n }\n });\n }", "public String scanText(BufferedImage image) throws IOException {\n File tmpImgFile = File.createTempFile(\"tmpImg\", \".jpg\");\n ImageIO.write(image, \"jpg\", tmpImgFile);\n String rawData = TesseractWrapper.runTesseract(tmpImgFile.getAbsolutePath());\n tmpImgFile.delete();\n return rawData;\n }", "private void openCVImage(){\n Imgcodecs codec = new Imgcodecs();\n image = codec.imread(currentPhotoPath, Imgcodecs.IMREAD_COLOR);\n }", "private void performOCR(){\n }", "private void processTextRecognitionResult(FirebaseVisionText texts) {\n List<FirebaseVisionText.Block> blocks = texts.getBlocks();\n if (blocks.size() == 0) {\n Toast.makeText(getApplicationContext(), \"onDevice: No text found\", Toast.LENGTH_SHORT).show();\n return;\n }\n mGraphicOverlay.clear();\n for (int i = 0; i < blocks.size(); i++) {\n List<FirebaseVisionText.Line> lines = blocks.get(i).getLines();\n for (int j = 0; j < lines.size(); j++) {\n List<FirebaseVisionText.Element> elements = lines.get(j).getElements();\n for (int k = 0; k < elements.size(); k++) {\n GraphicOverlay.Graphic textGraphic = new TextGraphic(mGraphicOverlay, elements.get(k));\n mGraphicOverlay.add(textGraphic);\n\n }\n }\n }\n }", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public Image getTrebleClef();", "private static Bitmap getImage(byte[] image) {\n /**\n * @brief convert from byte array to bitmap\n */\n return BitmapFactory.decodeByteArray(image, 0, image.length);\n }", "public native int getRenderingIntent() throws MagickException;", "Bitmap mo27481a(String str);", "@RequestMapping(\"/user.imagecode\")\n public void getImageCode(HttpSession session, HttpServletResponse response) throws Exception {\n String vericode = VerificationCode.getSecurityCode();\n session.setAttribute(\"verityCode\", vericode);\n // 设置返回的内容\n response.setContentType(\"img/jpeg\");\n // 浏览器不缓存响应内容--验证码图片,点一次就要刷新一次,所以不能有缓存出现\n response.setHeader(\"Pragma\", \"No-cache\");\n response.setHeader(\"Cache-Control\", \"no-cache\");\n // 设置验证码失效时间\n response.setDateHeader(\"Expires\", 0);\n // 以字节流发过去,交给img的src属性去解析即可\n ImageIO.write(new CreateVerificationCodeImage(vericode).createImage(), \"JPEG\", response.getOutputStream());\n }", "Picture binaryComponentImage() throws Exception;", "@Override\r\n public void run() {\n do {\r\n try {\r\n Thread.sleep(100);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n Result result = null;\r\n BufferedImage image = null;\r\n if (webcam.isOpen()) {\r\n if ((image = webcam.getImage()) == null) {\r\n continue;\r\n }\r\n \t//iconlabel\r\n\t ImageIcon icon=new ImageIcon(image);\r\n\t icon.setImage(icon.getImage().getScaledInstance(300,300,Image.SCALE_DEFAULT));\r\n\t iconLabel.setIcon(icon); \r\n\t \r\n \t//qrcode\r\n LuminanceSource source =new BufferedImageLuminanceSource( image) ;\r\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\r\n\r\n try {\r\n result = new MultiFormatReader().decode(bitmap);\r\n } catch (NotFoundException e) {\r\n // fall thru, it means there is no QR code in image\r\n }\r\n }\r\n if (result != null) {\r\n textarea.setText(result.getText());\r\n System.out.println(result.getText());\r\n }\r\n\r\n } while (true);\r\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "private static AnalysisResults analyzeImage(ByteString imageBytes) throws IOException {\n AnalysisResults.Builder analysisBuilder = retrieveText(imageBytes);\n\n // Generate categories and parse date and price if text was extracted.\n if (analysisBuilder.getRawText().isPresent()) {\n ImmutableSet<String> categories = categorizeText(analysisBuilder.getRawText().get());\n analysisBuilder.setCategories(categories);\n\n checkForParsableDate(analysisBuilder);\n checkForParsablePrices(analysisBuilder);\n }\n\n return analysisBuilder.build();\n }", "public void vision()\n {\n NIVision.IMAQdxGrab(session, colorFrame, 1);\t\t\t\t\n RETRO_HUE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro hue min\", RETRO_HUE_RANGE.minValue);\n\t\tRETRO_HUE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro hue max\", RETRO_HUE_RANGE.maxValue);\n\t\tRETRO_SAT_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro sat min\", RETRO_SAT_RANGE.minValue);\n\t\tRETRO_SAT_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro sat max\", RETRO_SAT_RANGE.maxValue);\n\t\tRETRO_VAL_RANGE.minValue = (int)SmartDashboard.getNumber(\"Retro val min\", RETRO_VAL_RANGE.minValue);\n\t\tRETRO_VAL_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Retro val max\", RETRO_VAL_RANGE.maxValue);\n\t\tAREA_MINIMUM = SmartDashboard.getNumber(\"Area min %\");\n\t\t//MIN_RECT_WIDTH = SmartDashboard.getNumber(\"Min Rect Width\", MIN_RECT_WIDTH);\n\t\t//MAX_RECT_WIDTH = SmartDashboard.getNumber(\"Max Rect Width\", MAX_RECT_WIDTH);\n\t\t//MIN_RECT_HEIGHT = SmartDashboard.getNumber(\"Min Rect Height\", MIN_RECT_HEIGHT);\n\t\t//MAX_RECT_HEIGHT= SmartDashboard.getNumber(\"Max Rect Height\", MAX_RECT_HEIGHT);\n\t\t\n\t\t//SCALE_RANGE.minValue = (int)SmartDashboard.getNumber(\"Scale Range Min\");\n\t\t//SCALE_RANGE.maxValue = (int)SmartDashboard.getNumber(\"Scale Range Max\");\n\t\t//MIN_MATCH_SCORE = (int)SmartDashboard.getNumber(\"Min Match Score\");\n //Look at the color frame for colors that fit the range. Colors that fit the range will be transposed as a 1 to the binary frame.\n\t\t\n\t\tNIVision.imaqColorThreshold(binaryFrame, colorFrame, 255, ColorMode.HSV, RETRO_HUE_RANGE, RETRO_SAT_RANGE, RETRO_VAL_RANGE);\n\t\t//Send the binary image to the cameraserver\n\t\tif(cameraView.getSelected() == BINARY)\n\t\t{\n\t\t\tCameraServer.getInstance().setImage(binaryFrame);\n\t\t}\n\n\t\tcriteria[0] = new NIVision.ParticleFilterCriteria2(NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA, AREA_MINIMUM, 100.0, 0, 0);\t\t\n\t\t\n NIVision.imaqParticleFilter4(binaryFrame, binaryFrame, criteria, filterOptions, null);\n\n // NIVision.RectangleDescriptor rectangleDescriptor = new NIVision.RectangleDescriptor(MIN_RECT_WIDTH, MAX_RECT_WIDTH, MIN_RECT_HEIGHT, MAX_RECT_HEIGHT);\n// \n// //I don't know\n// NIVision.CurveOptions curveOptions = new NIVision.CurveOptions(NIVision.ExtractionMode.NORMAL_IMAGE, 0, NIVision.EdgeFilterSize.NORMAL, 0, 1, 1, 100, 1,1);\n// NIVision.ShapeDetectionOptions shapeDetectionOptions = new NIVision.ShapeDetectionOptions(1, rectAngleRanges, SCALE_RANGE, MIN_MATCH_SCORE);\n// NIVision.ROI roi = NIVision.imaqCreateROI();\n//\n// NIVision.DetectRectanglesResult result = NIVision.imaqDetectRectangles(binaryFrame, rectangleDescriptor, curveOptions, shapeDetectionOptions, roi);\n// //Dummy rectangle to start\n// \n// NIVision.RectangleMatch bestMatch = new NIVision.RectangleMatch(new PointFloat[]{new PointFloat(0.0, 0.0)}, 0, 0, 0, 0);\n// \n// //Find the best matching rectangle\n// for(NIVision.RectangleMatch match : result.array)\n// {\n// \tif(match.score > bestMatch.score)\n// \t{\n// \t\tbestMatch = match;\n// \t}\n// }\n// SmartDashboard.putNumber(\"Rect height\", bestMatch.height);\n// SmartDashboard.putNumber(\"Rect Width\", bestMatch.width);\n// SmartDashboard.putNumber(\"Rect rotation\", bestMatch.rotation);\n// SmartDashboard.putNumber(\"Rect Score\", bestMatch.score);\n \n //Report how many particles there are\n\t\tint numParticles = NIVision.imaqCountParticles(binaryFrame, 1);\n\t\tSmartDashboard.putNumber(\"Masked particles\", numParticles);\n\t\t\n \n\t\tif(numParticles > 0)\n\t\t{\n\t\t\t//Measure particles and sort by particle size\n\t\t\tVector<ParticleReport> particles = new Vector<ParticleReport>();\n\t\t\tfor(int particleIndex = 0; particleIndex < numParticles; particleIndex++)\n\t\t\t{\n\t\t\t\tParticleReport par = new ParticleReport();\n\t\t\t\tpar.Area = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA);\n\t\t\t\tpar.AreaByImageArea = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_AREA_BY_IMAGE_AREA);\n\t\t\t\tpar.BoundingRectTop = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_TOP);\n\t\t\t\tpar.BoundingRectLeft = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_LEFT);\n\t\t\t\tpar.BoundingRectHeight = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_HEIGHT);\n\t\t\t\tpar.BoundingRectWidth = NIVision.imaqMeasureParticle(binaryFrame, particleIndex, 0, NIVision.MeasurementType.MT_BOUNDING_RECT_WIDTH);\n\t\t\t\tparticles.add(par);\n\n\t\t\t}\n\t\t\tparticles.sort(null);\n\n\t\t\t//This example only scores the largest particle. Extending to score all particles and choosing the desired one is left as an exercise\n\t\t\t//for the reader. Note that this scores and reports information about a single particle (single L shaped target). To get accurate information \n\t\t\t//about the location of the tote (not just the distance) you will need to correlate two adjacent targets in order to find the true center of the tote.\n//\t\t\tscores.Aspect = AspectScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Aspect\", scores.Aspect);\n//\t\t\tscores.Area = AreaScore(particles.elementAt(0));\n//\t\t\tSmartDashboard.putNumber(\"Area\", scores.Area);\n//\t\t\tboolean isTote = scores.Aspect > SCORE_MIN && scores.Area > SCORE_MIN;\n//\n\t\t\tParticleReport bestParticle = particles.elementAt(0);\n\t\t NIVision.Rect particleRect = new NIVision.Rect((int)bestParticle.BoundingRectTop, (int)bestParticle.BoundingRectLeft, (int)bestParticle.BoundingRectHeight, (int)bestParticle.BoundingRectWidth);\n\t\t \n\t\t //NIVision.imaqOverlayRect(colorFrame, particleRect, new NIVision.RGBValue(0, 0, 0, 255), DrawMode.PAINT_VALUE, \"a\");//;(colorFrame, colorFrame, particleRect, DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 20);\n\t\t NIVision.imaqDrawShapeOnImage(colorFrame, colorFrame, particleRect, NIVision.DrawMode.DRAW_VALUE, ShapeMode.SHAPE_RECT, 0.0f);\n\t\t SmartDashboard.putNumber(\"Rect Top\", bestParticle.BoundingRectTop);\n\t\t SmartDashboard.putNumber(\"Rect Left\", bestParticle.BoundingRectLeft);\n\t\t SmartDashboard.putNumber(\"Rect Width\", bestParticle.BoundingRectWidth);\n\t\t SmartDashboard.putNumber(\"Area by image area\", bestParticle.AreaByImageArea);\n\t\t SmartDashboard.putNumber(\"Area\", bestParticle.Area);\n\t\t double bestParticleMidpoint = bestParticle.BoundingRectLeft + bestParticle.BoundingRectWidth/2.0;\n\t\t double bestParticleMidpointAimingCoordnates = pixelCoordnateToAimingCoordnate(bestParticleMidpoint, CAMERA_RESOLUTION_X);\n\t\t angleToTarget = aimingCoordnateToAngle(bestParticleMidpointAimingCoordnates, VIEW_ANGLE);\n\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\tangleToTarget = 0.0;\n\t\t}\n\n if(cameraView.getSelected() == COLOR)\n {\n \tCameraServer.getInstance().setImage(colorFrame);\n }\n\t SmartDashboard.putNumber(\"Angle to target\", angleToTarget);\n\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray, ScreenOrientation orientation) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, orientation);\n }", "private void setUiAfterDetection(Face[] result, boolean succeed, int checkImage) {\n\n // Detection is done, hide the progress dialog.\n mProgressDialog.dismiss();\n\n // Enable all the buttons.\n setAllButtonsEnabledStatus(true);\n\n // Disable button \"detect\" as the image has already been detected.\n setShareButtonsEnabledStatus(false);\n setShowButtonsEnabledStatus(false);\n if (checkImage == 0) {\n if (succeed) {\n check = 1;\n // The information about the detection result.\n if (result.length != 0) {\n face1 = result;\n foundFace1 = true;\n // Show the detected faces on original image.\n ImageView imageView = (ImageView) findViewById(R.id.image_0);\n imageView.setImageBitmap(ImageHelper.drawFaceRectanglesOnBitmap(\n mBitmap1, result, true));\n genderFace1 = face1[0].faceAttributes.gender.startsWith(\"male\") ? 0 : 1;\n }\n }\n } else {\n if (succeed) {\n // The information about the detection result.\n check = 0;\n if (result.length != 0) {\n face2 = result;\n foundFace2 = true;\n // Show the detected faces on original image.\n ImageView imageView = (ImageView) findViewById(R.id.image_1);\n imageView.setImageBitmap(ImageHelper.drawFaceRectanglesOnBitmap(\n mBitmap2, result, true));\n\n }\n }\n checkInputImage(face1, face2);\n count = 0;\n }\n }", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "void mo27482a(String str, Bitmap bitmap);", "public String getImage(){\n StringBuilder sb = new StringBuilder();\n for (char[] subArray : hidden) {\n sb.append(subArray);\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "private void imgDetected(Matcher matcher) {\n String component;\n matcher.reset();\n\n // store src value if <img> exist\n while (matcher.find()) {\n Data.imagesSrc.add(matcher.group(1));\n }\n\n // separate if the paragraph contain img\n // replace <img> with -+-img-+- to indicate image position in the text\n component = matcher.replaceAll(\"-+-img-+-\");\n\n //split the delimiter to structure image position\n String[] imageStructure = component.split(\"-\\\\+-\");\n\n // start looping the structured text\n int imageFoundIndex = 0;\n for (String structure : imageStructure) {\n // continue if the current index is not empty string \"\"\n if (!structure.trim().equals(\"\")) {\n // create ImageView if current index value equeal to \"img\"\n if (structure.trim().equals(\"img\")) {\n createImageView();\n imageFoundIndex++;\n } else {\n // else create textView for the text\n generateView(structure);\n }\n }\n }\n }", "public C6992d mo21844d(String str) {\n InputStream e = mo21851e(str);\n if (e == null) {\n PrintStream printStream = System.err;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not find the image \");\n sb.append(str);\n sb.append(\".\");\n printStream.println(sb.toString());\n return null;\n }\n try {\n Bitmap decodeStream = BitmapFactory.decodeStream(e);\n if (decodeStream == null) {\n System.err.println(\"Could not load the image because the bitmap was empty.\");\n return null;\n }\n C6992d dVar = new C6992d(decodeStream);\n dVar.f24755cj = this;\n return dVar;\n } finally {\n try {\n e.close();\n } catch (IOException unused) {\n }\n }\n }", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "List<List<Pixel>> transform(Image img, String operation);", "Picture highlightComponentImage() throws Exception;", "protected void setImageData(BufferedImage img) {\n \t\tif (format == null || format == Format.TEXT || format == Format.COLOR16_8x8)\n \t\t\treturn;\n \t\n \t\tequalize(img);\n \t\t\n \t\t//denoise(img);\n \t\t\n \t\tupdatePaletteMapping();\n \t\n \t\tflatten(img);\n \t\t\n \t\tif (!importDirectMappedImage(img)) {\n \t\t\tconvertImageToColorMap(img);\n \t\t}\n \t\n \t\treplaceImageData(img);\n \t}", "static Bitmap getImage(byte[] image) {\n return BitmapFactory.decodeByteArray(image, 0, image.length);\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "private void runTextRecognition() {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(mSelectedImage);\n FirebaseVisionTextRecognizer recognizer = FirebaseVision.getInstance()\n .getOnDeviceTextRecognizer();\n //mTextButton.setEnabled(false);\n recognizer.processImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n //mTextButton.setEnabled(true);\n processTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n //mTextButton.setEnabled(true);\n e.printStackTrace();\n }\n });\n }", "java.lang.String getImage();", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "public static void detectFaces(File file) throws Exception, IOException {\r\n\t\t List<AnnotateImageRequest> requests = new ArrayList<>();\r\n System.out.println(file.getPath());\r\n\r\n \r\n //convert picture file into original ByteString object and set values to request for google vision API\r\n\t\t ByteString imgBytes = ByteString.readFrom(new FileInputStream(file));\r\n\r\n\t\t Image img = Image.newBuilder().setContent(imgBytes).build();\r\n\t\t Feature feat = Feature.newBuilder().setType(Type.FACE_DETECTION).build();\r\n\t\t AnnotateImageRequest request =\r\n\t\t AnnotateImageRequest.newBuilder().addFeatures(feat).setImage(img).build();\r\n\t\t requests.add(request);\r\n\r\n //call google vision API engine and returns annotations of the image\r\n\t\t try (ImageAnnotatorClient client = ImageAnnotatorClient.create()) {\r\n\t\t BatchAnnotateImagesResponse response = client.batchAnnotateImages(requests);\r\n\t\t List<AnnotateImageResponse> responses = response.getResponsesList();\r\n\r\n\t\t for (AnnotateImageResponse res : responses) {\r\n\t\t if (res.hasError()) {\r\n\t\t System.out.printf(\"Error: %s\\n\", res.getError().getMessage());\r\n\t\t return;\r\n\t\t }\r\n\r\n\t\t // retrieve annotation value of each emotion\r\n\t\t for (FaceAnnotation annotation : res.getFaceAnnotationsList()) {\r\n\t\t int[] emoValue = {annotation.getAngerLikelihoodValue(),\r\n annotation.getJoyLikelihoodValue(),\r\n annotation.getSorrowLikelihoodValue(),\r\n annotation.getSurpriseLikelihoodValue(),\r\n };\r\n \r\n //choose highest annotation value of each emotion\r\n int max = 0;\r\n for (int i = 0; i < emoValue.length; i++){\r\n System.out.print(emoValue[i] + \" \");\r\n if (max < emoValue[i]){\r\n max = emoValue[i];\r\n index = i;\r\n }\r\n }\r\n //if all of emotion likelihood balue = 1, no expression\r\n if (max == 1){index = emotion.length-1;}\r\n System.out.println();\r\n System.out.println(emotion[index]);\r\n }\r\n\r\n\t\t }\r\n \r\n\t\t }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n\r\n\t\t}", "@SuppressLint(\"UnsafeExperimentalUsageError\")\n @Override\n public void analyze(@NonNull ImageProxy image_proxy) {\n ArrayList<Recognition> detections = _detector.DetectImage(image_proxy);\n\n // draw the bounding boxes\n _obj_tracker.ObjectTrackerDraw(detections);\n\n image_proxy.close();\n\n }", "void barcodeCaptured(String barcodeString);" ]
[ "0.70271426", "0.69342816", "0.64710474", "0.62931347", "0.6001634", "0.59829265", "0.59342164", "0.585248", "0.5833436", "0.57202995", "0.57052314", "0.5570768", "0.55372", "0.55344534", "0.5522291", "0.5513882", "0.5510819", "0.54958993", "0.5438833", "0.5409744", "0.5395796", "0.5390706", "0.539044", "0.5369963", "0.5360842", "0.5353235", "0.5294769", "0.52914053", "0.5270114", "0.52602196", "0.5238834", "0.52354723", "0.52274996", "0.5226145", "0.5223752", "0.5211034", "0.5207042", "0.5206338", "0.5205177", "0.52050686", "0.51929027", "0.51872545", "0.51859033", "0.5183182", "0.51697564", "0.51593405", "0.51396424", "0.5136776", "0.5136579", "0.5128171", "0.51197594", "0.5111967", "0.51092845", "0.50990695", "0.50920177", "0.5085264", "0.50707656", "0.50612646", "0.50570434", "0.504977", "0.50294995", "0.5026497", "0.50026387", "0.4993133", "0.49828506", "0.49732023", "0.4971259", "0.49705628", "0.49702218", "0.49579832", "0.49551788", "0.4950019", "0.49477023", "0.4946131", "0.49384385", "0.49368578", "0.49292877", "0.49185598", "0.49130246", "0.49066648", "0.49012217", "0.4894033", "0.48892716", "0.48879814", "0.4885821", "0.4882416", "0.48810878", "0.48716766", "0.48686534", "0.48670316", "0.48532265", "0.48509568", "0.4848006", "0.4847125", "0.48425463", "0.48377758", "0.48353282", "0.48316082", "0.48174462", "0.48165184", "0.4815425" ]
0.0
-1
C++: bool cv::GraphicalCodeDetector::detectAndDecodeMulti(Mat img, vector_string& decoded_info, Mat& points = Mat(), vector_Mat& straight_code = vector_Mat()) Both detects and decodes graphical codes
public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) { Mat straight_code_mat = new Mat(); boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj); Converters.Mat_to_vector_Mat(straight_code_mat, straight_code); straight_code_mat.release(); return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "private static native long imdecode_0(long buf_nativeObj, int flags);", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public List<Result> recognize(IplImage image);", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public native void annotateImage(DrawInfo info);", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "void identify()\n{\n BytePtr head = new BytePtr(32);\n BytePtr cp = new BytePtr();\n int hlen, fsize, i, c;\n boolean is_canon;\n jhead jh = new jhead();\n /*\n static const struct {\n int fsize;\n char make[12], model[15], withjpeg;\n } \n */\n IdentifyTable table = new IdentifyTable();\n table.addElt( 62464, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 124928, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 1652736, \"Kodak\", \"DCS200\" ,0 );\n table.addElt( 4159302, \"Kodak\", \"C330\" ,0 );\n table.addElt( 4162462, \"Kodak\", \"C330\" ,0 );\n table.addElt( 460800, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 614400, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 6163328, \"Kodak\", \"C603\" ,0 );\n table.addElt( 6166488, \"Kodak\", \"C603\" ,0 );\n table.addElt( 9116448, \"Kodak\", \"C603y\" ,0 );\n table.addElt( 311696, \"ST Micro\", \"STV680 VGA\" ,0 ); /* SPYz */\n table.addElt( 614400, \"Kodak\", \"KAI-0340\" ,0 );\n table.addElt( 787456, \"Creative\", \"PC-CAM 600\" ,0 );\n table.addElt( 1138688, \"Minolta\", \"RD175\" ,0 );\n table.addElt( 3840000, \"Foculus\", \"531C\" ,0 );\n table.addElt( 786432, \"AVT\", \"F-080C\" ,0 );\n table.addElt( 1447680, \"AVT\", \"F-145C\" ,0 );\n table.addElt( 1920000, \"AVT\", \"F-201C\" ,0 );\n table.addElt( 5067304, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 10134608, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 16157136, \"AVT\", \"F-810C\" ,0 );\n table.addElt( 1409024, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 2818048, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 3884928, \"Micron\", \"2010\" ,0 );\n table.addElt( 6624000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 13248000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 6291456, \"RoverShot\",\"3320AF\" ,0 );\n table.addElt( 6553440, \"Canon\", \"PowerShot A460\",0 );\n table.addElt( 6653280, \"Canon\", \"PowerShot A530\",0 );\n table.addElt( 6573120, \"Canon\", \"PowerShot A610\",0 );\n table.addElt( 9219600, \"Canon\", \"PowerShot A620\",0 );\n table.addElt( 10341600, \"Canon\", \"PowerShot A720\",0 );\n table.addElt( 10383120, \"Canon\", \"PowerShot A630\",0 );\n table.addElt( 12945240, \"Canon\", \"PowerShot A640\",0 );\n table.addElt( 15636240, \"Canon\", \"PowerShot A650\",0 );\n table.addElt( 5298000, \"Canon\", \"PowerShot SD300\" ,0 );\n table.addElt( 7710960, \"Canon\", \"PowerShot S3 IS\",0 ); \n table.addElt( 5939200, \"OLYMPUS\", \"C770UZ\" ,0 );\n table.addElt( 1581060, \"NIKON\", \"E900\" ,1 ); /* or E900s,E910 */\n table.addElt( 2465792, \"NIKON\", \"E950\" ,1 ); /* or E800,E700 */\n table.addElt( 2940928, \"NIKON\", \"E2100\" ,1 ); /* or E2500 */\n table.addElt( 4771840, \"NIKON\", \"E990\" ,1 ); /* or E995, Oly C3030Z */\n table.addElt( 4775936, \"NIKON\", \"E3700\" ,1 ); /* or Optio 33WR */\n table.addElt( 5869568, \"NIKON\", \"E4300\" ,1 ); /* or DiMAGE Z2 */\n table.addElt( 5865472, \"NIKON\", \"E4500\" ,1 );\n table.addElt( 7438336, \"NIKON\", \"E5000\" ,1 ); /* or E5700 */\n table.addElt( 8998912, \"NIKON\", \"COOLPIX S6\" ,1 );\n table.addElt( 1976352, \"CASIO\", \"QV-2000UX\" ,1 );\n table.addElt( 3217760, \"CASIO\", \"QV-3*00EX\" ,1 );\n table.addElt( 6218368, \"CASIO\", \"QV-5700\" ,1 );\n table.addElt( 6054400, \"CASIO\", \"QV-R41\" ,1 );\n table.addElt( 7530816, \"CASIO\", \"QV-R51\" ,1 );\n table.addElt( 7684000, \"CASIO\", \"QV-4000\" ,1 );\n table.addElt( 4948608, \"CASIO\", \"EX-S100\" ,1 );\n table.addElt( 7542528, \"CASIO\", \"EX-Z50\" ,1 );\n table.addElt( 7753344, \"CASIO\", \"EX-Z55\" ,1 );\n table.addElt( 7426656, \"CASIO\", \"EX-P505\" ,1 );\n table.addElt( 9313536, \"CASIO\", \"EX-P600\" ,1 );\n table.addElt( 10979200, \"CASIO\", \"EX-P700\" ,1 );\n table.addElt( 3178560, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 4841984, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 6114240, \"PENTAX\", \"Optio S4\" ,1 ); /* or S4i */\n table.addElt( 10702848, \"PENTAX\", \"Optio 750Z\" ,1 );\n table.addElt( 12582980, \"Sinar\", \"\" ,0 );\n table.addElt( 33292868, \"Sinar\", \"\" ,0 );\n table.addElt( 44390468, \"Sinar\", \"\" ,0 );\n \n String[] corp =\n { \"Canon\", \"NIKON\", \"EPSON\", \"KODAK\", \"Kodak\", \"OLYMPUS\", \"PENTAX\",\n \"MINOLTA\", \"Minolta\", \"Konica\", \"CASIO\", \"Sinar\", \"Phase One\",\n \"SAMSUNG\", \"Mamiya\" };\n\n tiff_flip = flip = -1;\t/* 0 is valid, so -1 is unknown */\n filters = CTOJ.toUnsigned(-1);\n cr2_slice.at(0,(short)0);\n raw_height = raw_width = fuji_width = 0;\n maximum = height = width = top_margin = left_margin = 0;\n cdesc.setAt(0,(char) 0);\n desc.setAt(0,(char) 0);\n artist.setAt(0,(char) 0);\n make.setAt(0,(char)0);\n model.setAt(0,(char)0);\n model2.setAt(0,(char)0);\n iso_speed = shutter = aperture = focal_len = unique_id = 0;\n //Uc.memset (white, 0, white.sizeof());\n thumb_offset = thumb_length = thumb_width = thumb_height = 0;\n load_raw = null;\n thumb_load_raw = null;\n //write_thumb = & jpeg_thumb;\n data_offset = meta_length = tiff_bps = tiff_compress = 0;\n kodak_cbpp = zero_after_ff = dng_version = fuji_secondary = 0;\n timestamp = shot_order = tiff_samples = black = is_foveon = 0;\n data_error = false;\n zero_is_bad = false;\n pixel_aspect = is_raw = raw_color = use_gamma = 1;\n tile_length = Integer.MAX_VALUE;\n for (i=0; i < 4; i++) {\n cam_mul[i] = (i == 1 ? 1 : 0);\n pre_mul[i] = (i < 3 ?1:0);\n for (c=0; c < 3; c++) rgb_cam[c][i] = (c == i? 1: 0);\n }\n colors = 3;\n tiff_bps = 12;\n for (i=0; i < 0x4000; i++) curve.at(i, (short)i);\n profile_length = 0;\n\n order = (short)get2();\n hlen = get4();\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n CTOJ.fread (head, 1, 32, ifp);\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_END);\n fsize = CTOJ.ftell(ifp);\n if (( !cp.assign(CTOJ.memmem (head, 32, \"MMMM\", 4)).isNull()) ||\n ( !cp.assign(CTOJ.memmem (head, 32, \"IIII\", 4)).isNull())) {\n //parse_phase_one (cp.minus(head));\n if (cp.minus(head)!=0) parse_tiff(0);\n } else if (order == 0x4949 || order == 0x4d4d) {\n if (CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8) == 0) {\n data_offset = hlen;\n parse_ciff (hlen, fsize - hlen);\n } else {\n parse_tiff(0);\n }\n } else if ( CTOJ.memcmp (head,\"\\u00ff\\u00d8\\u00ff\\u00e1\",4) == 0 &&\n\t CTOJ.memcmp (head.plus(6),\"Exif\",4) == 0) {\n CTOJ.fseek (ifp, 4, CTOJ.SEEK_SET);\n data_offset = 4 + get2();\n CTOJ.fseek (ifp, data_offset, CTOJ.SEEK_SET);\n if (CTOJ.fgetc(ifp) != 0xff)\n parse_tiff(12);\n thumb_offset = 0;\n } else if ( CTOJ.memcmp (head,\"BM\",2)==0 &&\n\thead.at(26) == 1 && head.at(28) == 16 && head.at(30) == 0) {\n data_offset = 0x1000;\n order = 0x4949;\n CTOJ.fseek (ifp, 38, CTOJ.SEEK_SET);\n if (get4() == 2834 && get4() == 2834 && get4() == 0 && get4() == 4096) {\n Uc.strcpy (model, \"BMQ\");\n flip = 3;\n// goto nucore;\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n }\n } else if ( CTOJ.memcmp (head,\"BR\",2) == 0) {\n Uc.strcpy (model, \"RAW\");\nnucore:\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n } else if ( CTOJ.memcmp (head.plus(25),\"ARECOYK\",7) == 0) {\n Uc.strcpy (make, \"Contax\");\n Uc.strcpy (model,\"N Digital\");\n CTOJ.fseek (ifp, 33, CTOJ.SEEK_SET);\n get_timestamp(1);\n CTOJ.fseek (ifp, 60, CTOJ.SEEK_SET);\n for (c=0; c < 4; c++) cam_mul[c ^ (c >> 1)] = get4();\n } else if ( CTOJ.strcmp (head, \"PXN\") == 0) {\n Uc.strcpy (make, \"Logitech\");\n Uc.strcpy (model,\"Fotoman Pixtura\");\n } else if ( CTOJ.memcmp (head,\"FUJIFILM\",8) == 0) {\n CTOJ.fseek (ifp, 84, CTOJ.SEEK_SET);\n thumb_offset = get4();\n thumb_length = get4();\n CTOJ.fseek (ifp, 92, CTOJ.SEEK_SET);\n parse_fuji (get4());\n if (thumb_offset > 120) {\n CTOJ.fseek (ifp, 120, CTOJ.SEEK_SET);\n fuji_secondary = ((i = get4()) !=0 && true) ? 1:0;\n if (fuji_secondary != 0 && use_secondary != 0)\n\tparse_fuji (i);\n }\n CTOJ.fseek (ifp, 100, CTOJ.SEEK_SET);\n data_offset = get4();\n parse_tiff (thumb_offset+12);\n } else if ( CTOJ.memcmp (head,\"RIFF\",4)==0) {\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n //parse_riff();\n } else if (CTOJ.memcmp (head,\"DSC-Image\",9)==0)\n ;//parse_rollei();\n else if (CTOJ.memcmp (head,\"\\0MRM\",4)==0)\n parse_minolta(0);\n else if (CTOJ.memcmp (head,\"FOVb\",4)==0)\n ;//parse_foveon();\n else\n for (i=0; i < table.size(); i++)\n if (fsize == table.at(i).fsize) {\n\tUc.strcpy (make, table.at(i).make );\n\tUc.strcpy (model, table.at(i).model);\n\tif (table.at(i).withjpeg)\n\t ;//parse_external_jpeg();\n }\n if (make.charAt(0) == 0) ;//parse_smal (0, fsize);\n if (make.charAt(0) == 0) parse_jpeg (is_raw = 0);\n\n for (i=0; i < corp.length; i++)\n if (Uc.strstr (make, corp[i]) != null)\t\t/* Simplify company names */\n\tUc.strcpy (make, corp[i]);\n if ( Uc.strncmp (make,\"KODAK\",5) == 0) {\n make.setAt(16,(char)0); model.setAt(16, (char)0);\n }\n CharPtr cp2;\n cp2 = make.plus(Uc.strlen(make));\t\t/* Remove trailing spaces */\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n cp2 = model.plus(Uc.strlen(model));\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n i = Uc.strlen(make);\t\t\t/* Remove make from model */\n if ( Uc.strncmp (model, make, i)==0 && model.charAt(i++) == ' ')\n Uc.memmove (model, model.plus(i), 64-i);\n if ( Uc.strncmp (model,\"Digital Camera \",15) == 0)\n Uc.strcpy (model, model.plus(15));\n make.setAt(63,(char)0);\n model.setAt(63,(char)0);\n model2.setAt(63,(char)0);\n if ( is_raw == 0) return;\n\n if ((raw_height | raw_width) < 0)\n raw_height = raw_width = 0;\n if ( maximum == 0) maximum = (1 << tiff_bps) - 1;\n if ( height ==0) height = raw_height;\n if ( width == 0) width = raw_width;\n if (fuji_width != 0) {\n width = height + fuji_width;\n height = width - 1;\n pixel_aspect = 1;\n }\n if (height == 2624 && width == 3936)\t/* Pentax K10D and Samsung GX10 */\n { height = 2616; width = 3896; }\n if (height == 3136 && width == 4864)\t/* Pentax K20D */\n { height = 3124; width = 4688; } \n /*\n if (dng_version) {\n strcat (model,\" DNG\");\n if (filters == UINT_MAX) filters = 0;\n if (!filters)\n colors = tiff_samples;\n if (tiff_compress == 1)\n load_raw = & adobe_dng_load_raw_nc;\n if (tiff_compress == 7)\n load_raw = & adobe_dng_load_raw_lj;\n for (c=0; c < 4; c++) cam_mul[c] = pre_mul[c];\n goto dng_skip;\n }\n*/\n/* We'll try to decode anything from Canon or Nikon. */\n\n if ((is_canon = (Uc.strcmp(make,\"Canon\")==0))) {\n load_raw = CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8)!=0 ?\n\tnew LosslessJpegLoadRaw() : new CanonCompressedLoadRaw();\n //maximum = 0xfff;\n }\n if ( Uc.strcmp(make,\"NIKON\") == 0 && load_raw == null)\n load_raw = new NikonLoadRaw();\n if ( Uc.strncmp (make,\"OLYMPUS\",7) == 0)\n height += height & 1;\n\n/* Set parameters based on camera name (for non-DNG files). */\n\n if (is_foveon != 0) {\n if (height*2 < width) pixel_aspect = 0.5;\n if (height > width) pixel_aspect = 2;\n filters = 0;\n load_raw = new FoveonLoadRaw();\n //simple_coeff(0);\n } else if (is_canon && tiff_samples == 4) {\n filters = 0;\n load_raw = new CanonSrawLoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot 600\")==0) {\n height = 613;\n width = 854;\n raw_width = 896;\n pixel_aspect = 607/628.0;\n colors = 4;\n filters = 0xe1e4e1e4l;\n load_raw = new Canon600LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A5\")==0 ||\n\t Uc.strcmp(model,\"PowerShot A5 Zoom\") == 0) {\n height = 773;\n width = 960;\n raw_width = 992;\n pixel_aspect = 256/235.0;\n colors = 4;\n filters = 0x1e4e1e4el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A50\") == 0) {\n height = 968;\n width = 1290;\n raw_width = 1320;\n colors = 4;\n filters = 0x1b4e4b1el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro70\") == 0) {\n height = 1024;\n width = 1552;\n colors = 4;\n filters = 0x1e4b4e1bl;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A460\") == 0) {\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2664;\n top_margin = 4;\n left_margin = 4;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A530\") == 0) {\n height = 1984;\n width = 2620;\n raw_height = 1992;\n raw_width = 2672;\n top_margin = 6;\n left_margin = 10;\n load_raw = new CanonA5LoadRaw();\n raw_color = 0;\n } else if ( Uc.strcmp(model,\"PowerShot A610\") == 0) {\n //if (canon_s2is()) Uc.strcpy (model+10, \"S2 IS\"); // TODO\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2672;\n top_margin = 8;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A620\") == 0) {\n height = 2328;\n width = 3112;\n raw_height = 2340;\n raw_width = 3152;\n top_margin = 12;\n left_margin = 36;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A720\") == 0) {\n height = 2472;\n width = 3298;\n raw_height = 2480;\n raw_width = 3336;\n top_margin = 5;\n left_margin = 6;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A630\") == 0) {\n height = 2472;\n width = 3288;\n raw_height = 2484;\n raw_width = 3344;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A640\") == 0) {\n height = 2760;\n width = 3672;\n raw_height = 2772;\n raw_width = 3736;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A650\") == 0) {\n height = 3024;\n width = 4032;\n raw_height = 3048;\n raw_width = 4104;\n top_margin = 12;\n left_margin = 48;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot S3 IS\") == 0) {\n height = 2128;\n width = 2840;\n raw_height = 2136;\n raw_width = 2888;\n top_margin = 8;\n left_margin = 44;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro90 IS\") == 0) {\n width = 1896;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (is_canon && raw_width == 2144) {\n height = 1550;\n width = 2088;\n top_margin = 8;\n left_margin = 4;\n if ( Uc.strcmp(model,\"PowerShot G1\")==0) {\n colors = 4;\n filters = 0xb4b4b4b4l;\n }\n } else if (is_canon && raw_width == 2224) {\n height = 1448;\n width = 2176;\n top_margin = 6;\n left_margin = 48;\n } else if (is_canon && raw_width == 2376) {\n height = 1720;\n width = 2312;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 2672) {\n height = 1960;\n width = 2616;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 3152) {\n height = 2056;\n width = 3088;\n top_margin = 12;\n left_margin = 64;\n if (unique_id == 0x80000170)\n adobe_coeff (\"Canon\",\"EOS 300D\");\n// maximum = 0xfa0;\n } else if (is_canon && raw_width == 3160) {\n height = 2328;\n width = 3112;\n top_margin = 12;\n left_margin = 44;\n } else if (is_canon && raw_width == 3344) {\n height = 2472;\n width = 3288;\n top_margin = 6;\n left_margin = 4;\n } else if ( Uc.strcmp(model,\"EOS D2000C\")==0) {\n filters = 0x61616161l;\n black = curve.at(200);\n } else if (is_canon && raw_width == 3516) {\n top_margin = 14;\n left_margin = 42;\n if (unique_id == 0x80000189)\n adobe_coeff (\"Canon\",\"EOS 350D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3596) {\n top_margin = 12;\n left_margin = 74;\n canon_cr2();\n } else if (is_canon && raw_width == 3944) {\n height = 2602;\n width = 3908;\n top_margin = 18;\n left_margin = 30;\n } else if (is_canon && raw_width == 3948) {\n top_margin = 18;\n left_margin = 42;\n height -= 2;\n if (unique_id == 0x80000236)\n adobe_coeff (\"Canon\",\"EOS 400D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3984) {\n top_margin = 20;\n left_margin = 76;\n height -= 2;\n canon_cr2();\n } else if (is_canon && raw_width == 4104) {\n height = 3024;\n width = 4032;\n top_margin = 12;\n left_margin = 48;\n } else if (is_canon && raw_width == 4312) {\n top_margin = 18;\n left_margin = 22;\n height -= 2;\n if (unique_id == 0x80000176)\n adobe_coeff (\"Canon\",\"EOS 450D\");\n canon_cr2();\n } else if (is_canon && raw_width == 4476) {\n top_margin = 34;\n left_margin = 90;\n //maximum = 0xe6c;\n canon_cr2();\n } else if (is_canon && raw_width == 1208) {\n top_margin = 51;\n left_margin = 62;\n raw_width = width *= 4;\n maximum = 0x3d93;\n canon_cr2();\n } else if (is_canon && raw_width == 5108) {\n top_margin = 13;\n left_margin = 98;\n //maximum = 0xe80;\n canon_cr2();\n } else if (is_canon && raw_width == 5712) {\n height = 3752;\n width = 5640;\n top_margin = 20;\n left_margin = 62;\n } else if (Uc.strcmp(model,\"D1\")==0) {\n cam_mul[0] *= 256/527.0;\n cam_mul[2] *= 256/317.0;\n } else if (Uc.strcmp(model,\"D1X\")==0) {\n width -= 4;\n //ymag = 2;\n pixel_aspect = 0.5;\n } else if ( Uc.strcmp(model,\"D40X\")==0 ||\n\t Uc.strcmp(model,\"D60\")==0 ||\n\t Uc.strcmp(model,\"D80\")==0) {\n height -= 3;\n width -= 4;\n } else if (Uc.strncmp(model,\"D40\",3)==0 ||\n\t Uc.strncmp(model,\"D50\",3)==0 ||\n\t Uc.strncmp(model,\"D70\",3)==0) {\n width--;\n } else if ( Uc.strcmp(model,\"D90\") == 0) {\n width -= 42;\n } else if (Uc.strcmp(model,\"D100\")==0) {\n if (tiff_compress == 34713 && !nikon_is_compressed())\n load_raw = new NikonLoadRaw();\n raw_width = (width += 3) + 3;\n maximum = 0xf44;\n } else if (Uc.strcmp(model,\"D200\")==0) {\n left_margin = 1;\n width -= 4;\n maximum = 0xfbc;\n filters = 0x94949494l;\n } else if (Uc.strncmp(model,\"D2H\",3)==0) {\n left_margin = 6;\n width -= 14;\n } else if (Uc.strcmp(model,\"D2X\")==0) {\n if (width == 3264) width -= 32;\n width -= 8;\n } else if ( Uc.strcmp(model,\"D3\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"D300\")==0) {\n width -= 32;\n } else if (fsize == 1581060) {\n height = 963;\n width = 1287;\n raw_width = 1632;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3f4;\n colors = 4;\n filters = 0x1e1e1e1el;\n //simple_coeff(3);\n pre_mul[0] = 1.2085f;\n pre_mul[1] = 1.0943f;\n pre_mul[3] = 1.1103f;\n } else if (fsize == 2465792) {\n height = 1203;\n width = 1616;\n raw_width = 2048;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3dd;\n colors = 4;\n filters = 0x4b4b4b4bl;\n adobe_coeff (\"NIKON\",\"E950\");\n } else if (fsize == 4771840) {\n height = 1540;\n width = 2064;\n colors = 4;\n filters = 0xe1e1e1e1l;\n load_raw = new NikonLoadRaw();\n// if (!timestamp && nikon_e995())\n// Uc.strcpy (model, \"E995\");\n if (Uc.strcmp(model,\"E995\") != 0) {\n filters = 0xb4b4b4b4l;\n //simple_coeff(3);\n pre_mul[0] = 1.196f;\n pre_mul[1] = 1.246f;\n pre_mul[2] = 1.018f;\n }\n } else if (Uc.strcmp(model,\"E2100\")==0) {\n /*\n if ( timestamp==0 && !nikon_e2100()) {\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4b;\n\n }\n else {\n height = 1206;\n width = 1616;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.945;\n pre_mul[2] = 1.040;\n }\n */\n } else if ( Uc.strcmp(model,\"E2500\")==0) {\ncp_e2500:\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4bl;\n } else if (fsize == 4775936) {\n height = 1542;\n width = 2064;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.818f;\n pre_mul[2] = 1.618f;\n //if (!timestamp) nikon_3700();\n if (model.charAt(0) == 'E' && Uc.atoi(model.plus(1)) < 3700)\n filters = 0x49494949l;\n if (Uc.strcmp(model,\"Optio 33WR\")==0) {\n flip = 1;\n filters = 0x16161616l;\n pre_mul[0] = 1.331f;\n pre_mul[2] = 1.820f;\n }\n } else if (fsize == 5869568) {\n height = 1710;\n width = 2288;\n filters = 0x16161616l;\n if ( timestamp==0 && minolta_z2()!=0) {\n Uc.strcpy (make, \"Minolta\");\n Uc.strcpy (model,\"DiMAGE Z2\");\n }\n if (make.charAt(0) == 'M')\n load_raw = new NikonE2100LoadRaw();\n } else if ( Uc.strcmp(model,\"E4500\") == 0) {\n height = 1708;\n width = 2288;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (fsize == 7438336) {\n height = 1924;\n width = 2576;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if ( Uc.strncmp(model,\"R-D1\",4) == 0) {\n tiff_compress = 34713;\n load_raw = new NikonLoadRaw();\n } else if (Uc.strcmp(model,\"FinePix S5100\")==0 ||\n\t Uc.strcmp(model,\"FinePix S5500\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3e00;\n } else if ( Uc.strcmp(make,\"FUJIFILM\") == 0) {\n if ( Uc.strcmp(model.plus(7),\"S2Pro\") == 0) {\n Uc.strcpy (model.plus(7),\" S2Pro\");\n height = 2144;\n width = 2880;\n flip = 6;\n } else\n maximum = 0x3e00;\n if (is_raw == 2 && shot_select != 0)\n maximum = 0x2f00;\n top_margin = (raw_height - height)/2;\n left_margin = (raw_width - width )/2;\n if (is_raw == 2)\n data_offset += ((shot_select > 0)?1:0) * ( fuji_layout!=0 ?\n\t\t(raw_width *= 2) : raw_height*raw_width*2 );\n fuji_width = width >> (fuji_layout!=0 ? 0 : 1);\n width = (height >> fuji_layout) + fuji_width;\n raw_height = height;\n height = width - 1;\n load_raw = new FujiLoadRaw();\n if ((fuji_width & 1) == 0) filters = 0x49494949l;\n } else if ( Uc.strcmp(model,\"RD175\")==0) {\n height = 986;\n width = 1534;\n data_offset = 513;\n filters = 0x61616161l;\n load_raw = new MinoltaRd175LoadRaw();\n } else if ( Uc.strcmp(model,\"KD-400Z\")==0) {\n height = 1712;\n width = 2312;\n raw_width = 2336;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n } else if ( Uc.strcmp(model,\"KD-510Z\")==0) {\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if ( Uc.strcasecmp(make,\"MINOLTA\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xf7d;\n if ( Uc.strncmp(model,\"DiMAGE A\",8)==0) {\n if (Uc.strcmp(model,\"DiMAGE A200\")==0)\n\tfilters = 0x49494949l;\n load_raw = new Packed12LoadRaw();\n maximum = model.charAt(8) == '1' ? 0xf8b : 0xfff;\n } else if ( Uc.strncmp(model,\"ALPHA\",5)==0 ||\n\t Uc.strncmp(model,\"DYNAX\",5)==0 ||\n\t Uc.strncmp(model,\"MAXXUM\",6)==0) {\n Uc.sprintf (model.plus(20), \"DYNAX %-10s\", model.plus(6+((model.charAt(0)=='M')?1:0)));\n adobe_coeff (make, model.plus(20));\n load_raw = new Packed12LoadRaw();\n maximum = 0xffb;\n } else if (Uc.strncmp(model,\"DiMAGE G\",8)==0) {\n if (model.charAt(8) == '4') {\n\theight = 1716;\n\twidth = 2304;\n } else if (model.charAt(8) == '5') {\nkonica_510z:\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if (model.charAt(8) == '6') {\n\theight = 2136;\n\twidth = 2848;\n }\n data_offset += 14;\n filters = 0x61616161l;\nkonica_400z:\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n }\n } else if ( Uc.strcmp(model,\"*ist DS\")==0) {\n height -= 2;\n } else if ( Uc.strcmp(model,\"Optio S\")==0) {\n if (fsize == 3178560) {\n height = 1540;\n width = 2064;\n load_raw = new EightBitLoadRaw();\n cam_mul[0] *= 4;\n cam_mul[2] *= 4;\n pre_mul[0] = 1.391f;\n pre_mul[2] = 1.188f;\n } else {\n height = 1544;\n width = 2068;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7c;\n pre_mul[0] = 1.137f;\n pre_mul[2] = 1.453f;\n }\n } else if (Uc.strncmp(model,\"Optio S4\",8)==0) {\n height = 1737;\n width = 2324;\n raw_width = 3520;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7a;\n pre_mul[0] = 1.980f;\n pre_mul[2] = 1.570f;\n } else if (Uc.strcmp(model,\"STV680 VGA\")==0) {\n height = 484;\n width = 644;\n load_raw = new EightBitLoadRaw();\n flip = 2;\n filters = 0x16161616l;\n black = 16;\n pre_mul[0] = 1.097f;\n pre_mul[2] = 1.128f;\n } else if (Uc.strcmp(model,\"KAI-0340\")==0) {\n height = 477;\n width = 640;\n order = 0x4949;\n data_offset = 3840;\n load_raw = new UnpackedLoadRaw() ;\n pre_mul[0] = 1.561f;\n pre_mul[2] = 2.454f;\n } else if ( Uc.strcmp(model,\"531C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new UnpackedLoadRaw() ;\n filters = 0x49494949l;\n pre_mul[1] = 1.218f;\n } else if ( Uc.strcmp(model,\"F-145C\")==0) {\n height = 1040;\n width = 1392;\n load_raw = new EightBitLoadRaw();\n } else if ( Uc.strcmp(model,\"F-201C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"F-510C\")==0) {\n height = 1958;\n width = 2588;\n load_raw = fsize < 7500000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"F-810C\")==0) {\n height = 2469;\n width = 3272;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"XCD-SX910CR\")==0) {\n height = 1024;\n width = 1375;\n raw_width = 1376;\n filters = 0x49494949l;\n maximum = 0x3ff;\n load_raw = fsize < 2000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"2010\")==0) {\n height = 1207;\n width = 1608;\n order = 0x4949;\n filters = 0x16161616l;\n data_offset = 3212;\n maximum = 0x3ff;\n load_raw = new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"A782\")==0) {\n height = 3000;\n width = 2208;\n filters = 0x61616161l;\n load_raw = fsize < 10000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xffc0;\n } else if (Uc.strcmp(model,\"3320AF\")==0) {\n height = 1536;\n raw_width = width = 2048;\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3ff;\n pre_mul[0] = 1.717f;\n pre_mul[2] = 1.138f;\n CTOJ.fseek (ifp, 0x300000, CTOJ.SEEK_SET);\n// if ((order = guess_byte_order(0x10000)) == 0x4d4d) {\n// height -= (top_margin = 16);\n// width -= (left_margin = 28);\n// maximum = 0xf5c0;\n// Uc.strcpy (make, \"ISG\");\n// model[0] = 0;\n// }\n } else if ( Uc.strcmp(make,\"Imacon\")==0) {\n Uc.sprintf (model, \"Ixpress %d-Mp\", height*width/1000000);\n load_raw = new ImaconFullLoadRaw();\n if (filters != 0) {\n if ((left_margin & 1)!= 0) filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n }\n maximum = 0xffff;\n } else if ( Uc.strcmp(make,\"Sinar\")==0) {\n if (CTOJ.memcmp(head,\"8BPS\",4) == 0) {\n CTOJ.fseek (ifp, 14, CTOJ.SEEK_SET);\n height = get4();\n width = get4();\n filters = 0x61616161l;\n data_offset = 68;\n }\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3fff;\n } else if (Uc.strcmp(make,\"Leaf\")==0) {\n maximum = 0x3fff;\n if (tiff_samples > 1) filters = 0;\n if (tiff_samples > 1 || tile_length < raw_height)\n load_raw = new LeafHdrLoadRaw();\n if ((width | height) == 2048) {\n if (tiff_samples == 1) {\n\tfilters = 1;\n\tUc.strcpy (cdesc, \"RBTG\");\n\tUc.strcpy (model, \"CatchLight\");\n\ttop_margin = 8; left_margin = 18; height = 2032; width = 2016;\n } else {\n\tUc.strcpy (model, \"DCB2\");\n\ttop_margin = 10; left_margin = 16; height = 2028; width = 2022;\n }\n } else if (width+height == 3144+2060) {\n if ( model.charAt(0) == 0) Uc.strcpy (model, \"Cantare\");\n if (width > height) {\n\t top_margin = 6; left_margin = 32; height = 2048; width = 3072;\n\tfilters = 0x61616161l;\n } else {\n\tleft_margin = 6; top_margin = 32; width = 2048; height = 3072;\n\tfilters = 0x16161616l;\n }\n if ( cam_mul[0] == 0 || model.charAt(0) == 'V') filters = 0;\n } else if (width == 2116) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 30);\n width -= 2 * (left_margin = 55);\n filters = 0x49494949l;\n } else if (width == 3171) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 24);\n width -= 2 * (left_margin = 24);\n filters = 0x16161616l;\n }\n } else if ( Uc.strcmp(make,\"LEICA\")==0 || Uc.strcmp(make,\"Panasonic\")==0) {\n maximum = 0xfff0;\n if ((fsize-data_offset) / (width*8/7) == height)\n load_raw = new PanasonicLoadRaw();\n if (load_raw==null) load_raw = new UnpackedLoadRaw() ;\n if (width == 2568)\n adobe_coeff (\"Panasonic\",\"DMC-LC1\");\n else if (width == 3304) {\n maximum = 0xf94c;\n width -= 16;\n adobe_coeff (\"Panasonic\",\"DMC-FZ30\");\n } else if ( width == 3330) {\n width = 3291;\n left_margin = 9;\n maximum = 0xf7f0;\nfz18:\tif (height > 2480)\n\t height = 2480 - (top_margin = 10);\n\tfilters = 0x49494949l;\n\tzero_is_bad = true;\n } else if (width == 3690) {\n maximum = 0xf7f0;\n height -= 3;\n width = 3672;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3770) {\n height = 2760;\n width = 3672;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3880) {\n maximum = 0xf7f0;\n width -= 22;\n left_margin = 6;\n adobe_coeff (\"Panasonic\",\"DMC-LX1\");\n } else if (width == 4290) {\n height--;\n width = 4248;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n } else if (width == 4330) {\n height = 2400;\n width = 4248;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n }\n } else if ( Uc.strcmp(model,\"E-1\")==0) {\n filters = 0x61616161l;\n maximum = 0xfff0;\n black = 1024;\n } else if ( Uc.strcmp(model,\"E-10\")==0) {\n maximum = 0xfff0;\n black = 2048;\n } else if (Uc.strncmp(model,\"E-20\",4)==0) {\n maximum = 0xffc0;\n black = 2560;\n } else if ( Uc.strcmp(model,\"E-300\")==0 ||\n\t Uc.strcmp(model,\"E-500\")==0) {\n width -= 20;\n maximum = 0xfc30;\n } else if (Uc.strcmp(model,\"E-330\")==0) {\n width -= 30;\n } else if (Uc.strcmp(model,\"C770UZ\")==0) {\n height = 1718;\n width = 2304;\n filters = 0x16161616l;\n load_raw = new NikonE2100LoadRaw();\n } else if (Uc.strcmp(make,\"OLYMPUS\")==0) {\n load_raw = new OlympusCseriesLoadRaw();\n if ( Uc.strcmp(model,\"C5050Z\")==0 ||\n\tUc.strcmp(model,\"C8080WZ\")==0)\n filters = 0x16161616l;\n if (Uc.strcmp(model,\"SP500UZ\")==0)\n filters = 0x49494949l;\n } else if (Uc.strcmp(model,\"N Digital\")==0) {\n height = 2047;\n width = 3072;\n filters = 0x61616161l;\n data_offset = 0x1a00;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf1e;\n } else if (Uc.strcmp(model,\"DSC-F828\")==0) {\n width = 3288;\n left_margin = 5;\n data_offset = 862144;\n load_raw = new SonyLoadRaw();\n filters = 0x9c9c9c9cl;\n colors = 4;\n Uc.strcpy (cdesc, \"RGBE\");\n } else if (Uc.strcmp(model,\"DSC-V3\")==0) {\n width = 3109;\n left_margin = 59;\n data_offset = 787392;\n load_raw = new SonyLoadRaw();\n } else if (Uc.strcmp(make,\"SONY\")==0 && raw_width == 3984) {\n adobe_coeff (\"SONY\",\"DSC-R1\");\n width = 3925;\n order = 0x4d4d;\n } else if (Uc.strcmp(model,\"DSLR-A100\")==0) {\n height--;\n load_raw = new SonyArwLoadRaw();\n maximum = 0xfeb;\n } else if (Uc.strncmp(model,\"P850\",4)==0) {\n maximum = 0xf7c;\n } else if (Uc.strcasecmp(make,\"KODAK\")==0) {\n if (filters == CTOJ.UINT_MAX) filters = 0x61616161l;\n if (Uc.strncmp(model,\"NC2000\",6)==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS3B\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS1\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS420\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460A\")==0) {\n width -= 4;\n left_margin = 2;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS660M\")==0) {\n black = 214;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS760M\")==0) {\n colors = 1;\n filters = 0;\n }\n if (load_raw.getClass().equals( EightBitLoadRaw.class))\n\tload_raw = new KodakEasyLoadRaw();\n if (Uc.strstr(model,\"DC25\") != null) {\n Uc.strcpy (model, \"DC25\");\n data_offset = 15424;\n }\n if (Uc.strncmp(model,\"DC2\",3)==0) {\n height = 242;\n if (fsize < 100000) {\n\traw_width = 256; width = 249;\n } else {\n\traw_width = 512; width = 501;\n }\n data_offset += raw_width + 1;\n colors = 4;\n filters = 0x8d8d8d8dl;\n //simple_coeff(1);\n pre_mul[1] = 1.179f;\n pre_mul[2] = 1.209f;\n pre_mul[3] = 1.036f;\n load_raw = new KodakEasyLoadRaw();\n } else if (Uc.strcmp(model,\"40\")==0) {\n Uc.strcpy (model, \"DC40\");\n height = 512;\n width = 768;\n data_offset = 1152;\n// load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC50\") != null) {\n Uc.strcpy (model, \"DC50\");\n height = 512;\n width = 768;\n data_offset = 19712;\n // load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC120\") != null) {\n Uc.strcpy (model, \"DC120\");\n height = 976;\n width = 848;\n pixel_aspect = height/0.75/width;\n// load_raw = tiff_compress == 7 ?\n//\tnew KodakJpegLoadRaw() : new KodakDc120LoadRaw();\n }\n } else if (Uc.strcmp(model,\"Fotoman Pixtura\")==0) {\n height = 512;\n width = 768;\n data_offset = 3632;\n load_raw = new KodakRadcLoadRaw();\n filters = 0x61616161l;\n //simple_coeff(2);\n } else if (Uc.strcmp(make,\"Rollei\")==0) {\n switch (raw_width) {\n case 1316:\n\theight = 1030;\n\twidth = 1300;\n\ttop_margin = 1;\n\tleft_margin = 6;\n\tbreak;\n case 2568:\n\theight = 1960;\n\twidth = 2560;\n\ttop_margin = 2;\n\tleft_margin = 8;\n }\n filters = 0x16161616l;\n load_raw = new RolleiLoadRaw();\n pre_mul[0] = 1.8f;\n pre_mul[2] = 1.3f;\n } else if ( Uc.strcmp(model,\"PC-CAM 600\")==0) {\n height = 768;\n data_offset = width = 1024;\n filters = 0x49494949l;\n load_raw = new EightBitLoadRaw();\n pre_mul[0] = 1.14f;\n pre_mul[2] = 2.73f;\n } else if ( Uc.strcmp(model,\"QV-2000UX\")==0) {\n height = 1208;\n width = 1632;\n data_offset = width * 2;\n load_raw = new EightBitLoadRaw();\n } else if (fsize == 3217760) {\n height = 1546;\n width = 2070;\n raw_width = 2080;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"QV-4000\")==0) {\n height = 1700;\n width = 2260;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xffff;\n } else if (Uc.strcmp(model,\"QV-5700\")==0) {\n height = 1924;\n width = 2576;\n //load_raw = new CasioQv5700LoadRaw();\n } else if (Uc.strcmp(model,\"QV-R51\")==0) {\n height = 1926;\n width = 2576;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.340f;\n pre_mul[2] = 1.672f;\n } else if (Uc.strcmp(model,\"EX-S100\")==0) {\n height = 1544;\n width = 2058;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.631f;\n pre_mul[2] = 1.106f;\n } else if (Uc.strcmp(model,\"EX-Z50\")==0) {\n height = 1931;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.529f;\n pre_mul[2] = 1.185f;\n } else if (Uc.strcmp(model,\"EX-Z55\")==0) {\n height = 1960;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.520f;\n pre_mul[2] = 1.316f;\n } else if (Uc.strcmp(model,\"EX-P505\")==0) {\n height = 1928;\n width = 2568;\n raw_width = 3852;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.07f;\n pre_mul[2] = 1.88f;\n } else if (fsize == 9313536) {\t/* EX-P600 or QV-R61 */\n height = 2142;\n width = 2844;\n raw_width = 4288;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.797f;\n pre_mul[2] = 1.219f;\n } else if (Uc.strcmp(model,\"EX-P700\")==0) {\n height = 2318;\n width = 3082;\n raw_width = 4672;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.758f;\n pre_mul[2] = 1.504f;\n } else if (Uc.strcmp(make,\"Nucore\")==0) {\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n if (width == 2598) {\n filters = 0x16161616l;\n //load_raw = new NucoreLoadRaw();\n flip = 2;\n }\n }\n if ( model.charAt(0)==0)\n Uc.sprintf (model, \"%dx%d\", width, height);\n if (filters == CTOJ.UINT_MAX) \n filters = 0x94949494l;\n if (raw_color != 0) adobe_coeff (make, model);\n if (thumb_offset!=0 && thumb_height==0) {\n CTOJ.fseek (ifp, thumb_offset, CTOJ.SEEK_SET);\n if (ljpeg_start (jh, 1)!=0) {\n thumb_width = jh.wide;\n thumb_height = jh.high;\n }\n }\ndng_skip:\n if (load_raw==null || height==0) is_raw = 0;\n if (flip == -1) flip = tiff_flip;\n if (flip == -1) flip = 0;\n if (cdesc.charAt(0)==0)\n Uc.strcpy (cdesc, colors == 3 ? \"RGB\":\"GMCY\");\n if ( raw_height == 0) raw_height = height;\n if ( raw_width == 0) raw_width = width;\n if (filters!= 0 && colors == 3)\n for (i=0; i < 32; i+=4) {\n if ((filters >> i & 15) == 9) {\n\tfilters |= 2 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n if ((filters >> i & 15) == 6) {\n\tfilters |= 8 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n }\n}", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "public native boolean getMatte() throws MagickException;", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "DetectionResult getObjInImage(Mat image);", "private void faceDetection(){\n\n String haarPath = resToFile(R.raw.haarcascade_frontalface_default, \"haarcascade_frontalface_default.xml\");\n String testPicPath = resToFile(R.drawable.test_me, \"test_me.jpg\");\n\n CascadeClassifier faceDetector = new CascadeClassifier();\n Mat image = imread(testPicPath);\n boolean isEmpty = image.empty();\n\n faceDetector = new CascadeClassifier(haarPath);\n if(faceDetector.empty())\n {\n Log.v(\"MyActivity\",\"--(!)Error loading A\\n\");\n return;\n }\n else\n {\n Log.v(\"MyActivity\", \"Loaded cascade classifier from \" + haarPath);\n }\n\n //My Code\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n for (Rect rect : faceDetections.toArray()) {\n Imgproc.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n new Scalar(0, 255, 0));\n// Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n// new Scalar(0, 255, 0));\n }\n\n Bitmap bm = Bitmap.createBitmap(image.cols(), image.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(image, bm);\n\n ImageView imageView = (ImageView) findViewById(R.id.imageView);\n imageView.setImageBitmap(bm);\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "void process(Mat image);", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "public Mat beforeDataEncoded(Mat frame);", "public boolean generateImageFromText();", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "private Image mat2Image(Mat frame)\r\n {\n MatOfByte buffer = new MatOfByte();\r\n // encode the frame in the buffer\r\n // HighGui.imencode(\".png\", frame, buffer);\r\n Imgcodecs.imencode(\".png\", frame, buffer);\r\n // build and return an Image created from the image encoded in the buffer\r\n return new Image(new ByteArrayInputStream(buffer.toArray()));\r\n }", "private void runTextRecognition(Bitmap bitmap) {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionTextDetector detector = FirebaseVision.getInstance().getVisionTextDetector();\n\n detector.detectInImage(image).addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n processTextRecognitionResult(texts);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n e.printStackTrace();\n }\n });\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "public static void main( String[] args)\r\n\t{\r\n\t\t\r\n\t\tNetworkTable piVals = NetworkTable.getTable(\"piTable\"); \r\n\t\t\r\n\t\tdouble startPro = 0; \r\n\t\tlong startMills = Instant.now().toEpochMilli(); \r\n\t\t//double start = System.currentTimeMillis();\r\n\t\t\r\n\t//\tString address = \"roboRIO-5822-FRC.local\";\r\n\t\t\r\n\t\t\t\t\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\t\r\n\t\tVideoCapture capture = new VideoCapture();\r\n\t\t\r\n\t\t//this link has changed, check with code on the pi right now \r\n\t\tcapture.open(\"http://10.58.22.72/mjpg/video.mjpg\");\r\n\t\t\r\n\t\tMat bgr = new Mat(); \r\n\t\tMat hsvConvert = new Mat(); \r\n\t\tMat hsv = new Mat();\r\n\t\tMatOfPoint test = new MatOfPoint(); \r\n\t\tArrayList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t\tArrayList<MatOfPoint> finalContours = new ArrayList<MatOfPoint>();\r\n\t\tMatOfPoint biggest = null; \r\n\t\tMat mhierarchy = new Mat(); //have no clue why hierarchy is needed. Still need to figure this one out. \r\n\t\tdouble centerX; \r\n\t\tdouble distance;\r\n\t\tdouble [] nums = new double [4]; \r\n\t\tnums = null; \r\n\t\t//int greta = 0; \r\n\t\t\r\n\t\twhile (true) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tstartPro = piVals.getNumber(\"RioTime\",0); \r\n\t\t\tcontours.clear(); \r\n\t\t\tfinalContours.clear(); \r\n\r\n\t\t\tcapture.read(bgr);\r\n\t\t\t//Imgcodecs.imwrite(\"greenCart.jpg\",bgr);\t\r\n\t\t\tImgproc.cvtColor(bgr, hsvConvert, Imgproc.COLOR_BGR2HSV); //using RGB does not work. MUST use BGR. We are still unsure of the reasons. \r\n\t\t\tCore.inRange(hsvConvert, new Scalar (13, 39, 135), new Scalar (92, 118, 255), hsv); //those two Scalar values are the the max and min HSV values respectively. Those were determined in GRIP. \r\n\t\t\tImgproc.findContours(hsv, contours, mhierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); //first enum lets you control things about hierarchy, I chose option with no hierarchy \r\n\r\n\t\t\tint idex=0; \r\n\t\t\tint size = contours.size();\r\n\t\t\t\r\n\t\t\t//changed to a for loop \r\n\t\t\tfor (idex=0; idex < contours.size(); idex++)\r\n\t\t\t{\r\n\t\t\t\ttest = contours.get(idex); \r\n\t\t\t\tif (Imgproc.contourArea(test)>100)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinalContours.add(test); \r\n\t\t\t\t}\r\n\t\t\t\tidex++; \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (finalContours.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnums = findCenterXDistance(finalContours.get(0).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +0+ \": \" + nums[2]);\r\n\t\t\t\tSystem.out.println(\"DISTANCE TO CONTOUR \" +0+ \": \" + (12*nums[3]));\r\n\t\t\t\tpiVals.putNumber(\"Center\", nums[2]);\r\n\t\t\t\tpiVals.putNumber(\"Distance\", (12*nums[3])); \r\n\t\t\t\tpiVals.putNumber(\"Start Time\", startPro); \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t//for (int count = 0; count < finalContours.size(); count++)\r\n\t\t\t//{ \r\n\t\t\t\t\r\n\t\t\t//\tnums = findCenterXDistance(finalContours.get(count).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +count+ \": \" + nums[2]);\r\n\t\t\t//\tSystem.out.println(\"DISTANCE TO CONTOUR \" +count+ \": \" + (12*nums[3]));\r\n\t\t\t//\trobot.Send(rioMillis, true, nums[2], nums[3]); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//}\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "public interface C0605e {\n Bitmap m4508a(int i, int i2, Config config);\n\n void m4509a();\n\n void m4510a(int i);\n\n boolean m4511a(Bitmap bitmap);\n\n Bitmap m4512b(int i, int i2, Config config);\n}", "public boolean qrcodeVideoPreviewEnabled();", "public Collection<CV> getCvLookup() throws InvalidFormatException;", "public void process(Mat rgbaImage) {\n rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n isFound = true;\n\n }", "private void callCloudVision(final Bitmap bitmap, final Feature feature) {\n final ArrayList<Feature> featureList = new ArrayList<>();\n featureList.add(feature);\n\n final ArrayList<AnnotateImageRequest> annotateImageRequests = new ArrayList<>();\n\n AnnotateImageRequest annotateImageReq = new AnnotateImageRequest();\n annotateImageReq.setFeatures(featureList);\n annotateImageReq.setImage(bitmap2JPEG(bitmap));\n annotateImageRequests.add(annotateImageReq);\n\n\n new AsyncTask<Object, Void, String>() {\n @Override\n protected String doInBackground(Object... params) {\n runOnUiThread(new Runnable() {\n public void run() {\n dialog = new ProgressDialog(MainActivity.this);\n dialog.setMessage(\"Processing Data...\");\n dialog.show();\n }\n });\n\n try {\n\n\n HttpTransport http = AndroidHttp.newCompatibleTransport();\n JsonFactory json = GsonFactory.getDefaultInstance();\n\n VisionRequestInitializer request = new VisionRequestInitializer(VISION_API_KEY);\n\n Vision.Builder build = new Vision.Builder(http, json, null);\n build.setVisionRequestInitializer(request);\n\n Vision vision = build.build();\n\n BatchAnnotateImagesRequest batchRequest = new BatchAnnotateImagesRequest();\n batchRequest.setRequests(annotateImageRequests);\n\n Vision.Images.Annotate annotateRequest = vision.images().annotate(batchRequest);\n annotateRequest.setDisableGZipContent(true);\n BatchAnnotateImagesResponse response = annotateRequest.execute();\n return convertResponseToString(response);\n } catch (GoogleJsonResponseException e) {\n Toast.makeText(getApplicationContext(), \"failed to reach API: \" + e.getContent(), Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n Toast.makeText(getApplicationContext(), \"failed to reach API: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n return \"Google Vision API request failed. Check logs for details.\";\n }\n\n protected void onPostExecute(String result) {\n\n dialog.dismiss();\n myDia = new Dialog(MainActivity.this);\n\n\n myDia.setContentView(R.layout.returnpopup);\n Button close = myDia.findViewById(R.id.close);\n Button help = myDia.findViewById(R.id.help);\n TextView text = myDia.findViewById(R.id.dataviewr);\n\n text.setText(result);\n\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n myDia.dismiss();\n\n }\n });\n help.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AlertDialog alert = null;\n final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"Help\")\n .setMessage(\"This application is a demo of the Google Vision API for Android. \\n\\nThe default API in the app is \\\"LABEL_DETECTION\\\", which tries to detect objects in the image. You can change this in the app inside the API string. \\n\\nThe source code of this application is available on Github @darshanbhatta. \\n\\nIf you have any questions email me @ [email protected].\");\n\n\n final AlertDialog finalAlert = alert;\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (finalAlert != null)\n finalAlert.dismiss();\n }\n });\n alert = builder.create();\n\n\n alert.show();\n\n\n }\n });\n\n\n myDia.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n myDia.show();\n }\n\n\n }.execute();\n }", "public void detect_lines(float[] image,long width, long height, Lines contours, MutableLong num_result, double sigma, double low, double high, long mode, boolean compute_width, boolean correct_pos,boolean extend_lines, Junctions junctions)\r\n\t{\r\n\t byte[] ismax;\r\n\t float[] ev, n1, n2, p1, p2;\r\n\t float[][] k = new float[5][(int) (width*height)];\r\n\t \r\n\t// for (i=0;i<5;i++)\r\n\t// k[i] = xcalloc(width*height,sizeof(float));\r\n\t Convol convol = new Convol();\r\n\t convol.convolve_gauss(image,k[0],width,height,sigma,LinesUtil.DERIV_R);\r\n\t convol.convolve_gauss(image,k[1],width,height,sigma,LinesUtil.DERIV_C);\r\n\t convol.convolve_gauss(image,k[2],width,height,sigma,LinesUtil.DERIV_RR);\r\n\t convol.convolve_gauss(image,k[3],width,height,sigma,LinesUtil.DERIV_RC);\r\n\t \r\n\t convol.convolve_gauss(image,k[4],width,height,sigma,LinesUtil.DERIV_CC);\r\n\t\r\n\t ismax = new byte[(int) (width*height)];\r\n\t ev = new float[(int) (width*height)];\r\n\t n1 = new float[(int) (width*height)];\r\n\t n2 = new float[(int) (width*height)];\r\n\t p1 = new float[(int) (width*height)];\r\n\t p2 = new float[(int) (width*height)];\r\n\t /*\r\n\t * The C library function void *memset(void *str, int c, size_t n) \r\n\t * copies the character c (an unsigned char) to the first n characters \r\n\t * of the string pointed to by the argument str.\r\n\t */\r\n\t // memset(ismax,0,width*height*sizeof(*ismax));\r\n\t // memset(ev,0,width*height*sizeof(*ev));\r\n\t for(int j = 0; j < ismax.length; j++){\r\n\t\t ev[j] = 0;\r\n\t\t ismax[j] = 0;\r\n\t }\r\n\r\n\t compute_line_points(k,ismax,ev,n1,n2,p1,p2,width,height,low,high,mode);\r\n\t \r\n\t Link l = new Link();\r\n\t l.compute_contours(ismax,ev,n1,n2,p1,p2,k[0],k[1],contours,num_result,sigma,\r\n\t extend_lines,(int)mode,low,high,width,height,junctions);\r\n\t Width w = new Width();\r\n\t if (compute_width)\r\n\t w.compute_line_width(k[0],k[1],width,height,sigma,mode,correct_pos,contours,\r\n\t num_result);\r\n\r\n\t}", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "public Mat ProcessImage(Mat newFrame) {\n current = newFrame;\n\n tmp = new Mat((int)current.size().height, (int)current.size().width, CvType.CV_8UC1);\n\n currentGray = new Mat(height, width, CvType.CV_8UC1);\n Imgproc.cvtColor(current, currentGray, Imgproc.COLOR_RGBA2GRAY);\n getBackground();\n getBinaryImage();\n postProcessing();\n calculateCentroid();\n calculateMovement();\n calculateBoxMovement();\n\n Log.e(TAG, \"Send delta Movement: \" + boxMovement.getFirst());\n change.firePropertyChange(\"position\", null, boxMovement.getFirst());\n\n return binary;\n }", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "public Mat cameraFrame(Mat mat) {\n frame.empty(); hsv.empty(); hsv2.empty(); hierarchy.empty(); contours.clear();\n //Converts the RGB frame to the HSV frame\n Imgproc.cvtColor(mat, hsv, Imgproc.COLOR_BGR2HSV);\n // Blur image\n //Imgproc.medianBlur(frame, frame, 9);\n //Color ranges for in the Workshop\n //Core.inRange(hsv, new Scalar(55, 40, 125), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(45, 100, 100), new Scalar(70, 200, 200), frame);\n //Color ranges for in the PAST Foundation\n if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000 && thresholSet < 5) {\n oldMillis = System.currentTimeMillis();\n thresholSet++;\n } else if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000){\n oldMillis = System.currentTimeMillis();\n thresholSet = 0;\n }\n //Blurs the black and white image to eliminate all noise\n //Imgproc.bilateralFilter(hsv, hsv, 5, 200, 200);\n hsv.copyTo(hsv2);\n Imgproc.bilateralFilter(hsv, hsv2, 3, 10, 10);\n Imgproc.medianBlur(hsv, hsv, 3);\n Mat element = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(5, 5));\n Imgproc.erode(hsv, hsv, element);\n Imgproc.dilate(hsv, hsv, element);\n Core.inRange(hsv, new Scalar(45, 100, 150), new Scalar(70, 255, 255), frame);\n\n //System.out.println(thresholSet);\n //Core.inRange(hsv, new Scalar(48, 152, 122), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(46, 112, 100), new Scalar(70, 255, 255), frame);\n //Bilatersl FIltering\n //mat.copyTo(biMat);\n //Copies the black and white image to a new frame to prevent messing up the original\n frame.copyTo(contourFrame);\n //Finds the contours in the thresholded frame\n Imgproc.findContours(contourFrame, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n //Draws the contours found on the original camera feed\n Imgproc.drawContours(mat, contours, -2, new Scalar(0, 0, 255), 5, 8, hierarchy, Imgproc.INTER_MAX, offset);\n //Draws circle at the center of the feed\n Imgproc.circle(mat, new Point((mat.size().width) / 2, (mat.size().height) / 2), 5, new Scalar(255, 255, 0), 15, Imgproc.LINE_8, 0);\n try {\n //Creates the max variable\n int max = 0;\n //Sets up loop to go through all contuors\n for (int a=0;a<contours.size();a++){\n //Gets the area of all of the contours\n double s2 = Imgproc.contourArea(contours.get(a));\n //Checks the area against the other areas of the contours to find out which is largest\n if (s2 > Imgproc.contourArea(contours.get(max))) {\n //Sets largest contour equal to max variable\n max = a;\n }\n }\n\n try{\n //Gets the minimum area vertical(non titlted) rectangle that outlines the contour\n Rect place = Imgproc.boundingRect(contours.get(max));\n //Creates variable for center point\n Point center = new Point();\n //Sets variale fpr screen center so now we adjust the X and Y axis\n Point screenCenter = new Point();\n //Creates top left point variable\n Point topleft = place.tl();\n //Cerates bottom right point variable\n Point bottomright = place.br();\n //Finds the width of rectangle\n double width = (bottomright.x - topleft.x);\n if (width < 90){\n //Tells Rio to move further away during Targeting modes\n status = 1;\n }\n else if (width > 110){\n // Tells Rio to move robot closer during Targeting modes\n status = -1;\n }\n else{\n //Tell Rio not to move robot during Targeting modes\n status = 0;\n }\n //Finding the middle of the countoured area on the screen\n center.x = (topleft.x+bottomright.x)/2;\n center.y = (topleft.y+bottomright.y)/2;\n //Draws the circle at center of contoured object\n Imgproc.circle(mat, center, 5, new Scalar(255, 0, 255), 5, Imgproc.LINE_8, 0);\n //Draws rectangle around the recognized contour\n Imgproc.rectangle(mat, place.tl(), place.br(), new Scalar(255, 0, 0), 10, Imgproc.LINE_8, 0);\n System.out.println(\"X Away: \" + Math.abs((mat.size().width / 2) - center.x));\n System.out.println(\"Y Away: \" + Math.abs((mat.size().height / 2) - center.y));\n }\n catch(Exception e) {\n //This is\n status = 2;\n }\n }\n catch (Exception e) {\n //In case no contours are found\n }\n //Returns the original image with drawn contours and shape identifiers\n return mat;\n }", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\r\n// /**Any -> TXT **/\r\n//\t\t\r\n//\t\tgetTXTfromAny(\"./images/DJI_0707.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0708.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0709.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0710.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0711.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0712.txt\");\r\n\t\t\r\n\t\t/**Any -> BMP **/\r\n//\t\tgetBMPfromAny(\"./images/DJI_0707.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0708.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0709.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0710.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0711.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0712.JPG\");\r\n\t\t\r\n//\t\t/**Any -> JPG **/\r\n\t\tgetJPGfromAny(\"./images/DJI_0707.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0708.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0709.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0710.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0711.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0712.txt\");\r\n\r\n\t}", "private Mat processFrame(Mat frame) {\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n // Forward image through network.\n Mat blob = Dnn.blobFromImage(frame, IN_SCALE_FACTOR,\n new Size(IN_WIDTH, IN_HEIGHT),\n new Scalar(MEAN_VAL, MEAN_VAL, MEAN_VAL), false, false);\n net.setInput(blob);\n Mat detections = net.forward();\n int cols = frame.cols();\n int rows = frame.rows();\n Size cropSize;\n if ((float)cols / rows > WH_RATIO) {\n cropSize = new Size(rows * WH_RATIO, rows);\n } else {\n cropSize = new Size(cols, cols / WH_RATIO);\n }\n int y1 = (int)(rows - cropSize.height) / 2;\n int y2 = (int)(y1 + cropSize.height);\n int x1 = (int)(cols - cropSize.width) / 2;\n int x2 = (int)(x1 + cropSize.width);\n Mat subFrame = frame.submat(y1, y2, x1, x2);\n cols = subFrame.cols();\n rows = subFrame.rows();\n detections = detections.reshape(1, (int)detections.total() / 7);\n for (int i = 0; i < detections.rows(); ++i) {\n double confidence = detections.get(i, 2)[0];\n if (confidence > THRESHOLD) {\n int classId = (int)detections.get(i, 1)[0];\n int xLeftBottom = (int)(detections.get(i, 3)[0] * cols);\n int yLeftBottom = (int)(detections.get(i, 4)[0] * rows);\n int xRightTop = (int)(detections.get(i, 5)[0] * cols);\n int yRightTop = (int)(detections.get(i, 6)[0] * rows);\n // Draw rectangle around detected object.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom),\n new Point(xRightTop, yRightTop),\n new Scalar(0, 255, 0));\n String label = classNames[classId] + \": \" + confidence;\n int[] baseLine = new int[1];\n Size labelSize = Imgproc.getTextSize(label, Core.FONT_HERSHEY_SIMPLEX, 0.5, 1, baseLine);\n // Draw background for label.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom - labelSize.height),\n new Point(xLeftBottom + labelSize.width, yLeftBottom + baseLine[0]),\n new Scalar(255, 255, 255), Core.FILLED);\n // Write class name and confidence.\n Imgproc.putText(subFrame, label, new Point(xLeftBottom, yLeftBottom),\n Core.FONT_HERSHEY_SIMPLEX, 0.5, new Scalar(0, 0, 0));\n }\n }\n\n return frame;\n }" ]
[ "0.78994447", "0.7814422", "0.7676921", "0.7569249", "0.745575", "0.7271322", "0.72486466", "0.70818335", "0.6978838", "0.67126", "0.6655607", "0.6552764", "0.6084078", "0.59688514", "0.5741385", "0.56853753", "0.55718833", "0.5472388", "0.54576707", "0.5454512", "0.53995335", "0.53352845", "0.53210735", "0.5303427", "0.53011096", "0.5224249", "0.5214859", "0.5203763", "0.5172898", "0.5144724", "0.51291895", "0.5110585", "0.5102464", "0.50350946", "0.5031353", "0.5021528", "0.5019092", "0.49970815", "0.4949565", "0.49466532", "0.4919814", "0.48893794", "0.48653948", "0.48649815", "0.48597065", "0.48548564", "0.48479515", "0.48476297", "0.48430136", "0.48410982", "0.48346108", "0.48109797", "0.48061854", "0.47943294", "0.47850367", "0.47810248", "0.4780657", "0.47752672", "0.47743267", "0.4762427", "0.47544864", "0.47486863", "0.47403824", "0.4732377", "0.47301635", "0.4717368", "0.47171068", "0.47128117", "0.4710397", "0.4698468", "0.46963024", "0.46881592", "0.46769375", "0.4672603", "0.46633813", "0.46441603", "0.46372232", "0.46297362", "0.4621855", "0.46204787", "0.46161997", "0.4607163", "0.45991418", "0.4597046", "0.45954478", "0.4593639", "0.45910636", "0.4590204", "0.45845035", "0.45825225", "0.45777997", "0.4573287", "0.45695424", "0.45691586", "0.45546323", "0.45545694", "0.45506275", "0.45403963", "0.45365274", "0.45292637" ]
0.83681697
0
Both detects and decodes graphical codes
public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) { return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public abstract String visualize(byte input);", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public void setQrcodeDecodeRect(int x, int y, int w, int h);", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "void barcodeCaptured(String barcodeString);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "@Override\n\tpublic boolean saveBarCode(int kodPoint, String readedCod) {\n\t\treturn false;\n\t}", "public void displayCode (Graphics g){\r\n\t\tfor (int i = 0 ; i < counter; i++){\r\n\t\t\tif (code.charAt(i) == '1'){\r\n\t\t\t\tdrawOne(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '2'){\r\n\t\t\t\tdrawTwo(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '3'){\r\n\t\t\t\tdrawThree(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '4'){\r\n\t\t\t\tdrawFour(g);\r\n\t\t\t\tdelay(500);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tdisplay = false; //display is equal to false when displaying code has finished\r\n\t}", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "static public void visualize(PGraphics g, GCodeList gcodes) {\n float x = 0;\n float y = 0;\n float z = 0;\n \n float x2 = x;\n float y2 = y;\n float z2 = z;\n\n g.noFill();\n g.beginShape(LINES); \n\n for (int i = 0; i < gcodes.size(); i++) {\n GCode gcode = gcodes.get(i);\n if (gcode.getCode().equals(\"G0\") || gcode.getCode().equals(\"G1\")) { \n if (gcode.hasArg(\"X\")) { x2 = Float.parseFloat(gcode.getArg(\"X\")); }\n if (gcode.hasArg(\"Y\")) { y2 = Float.parseFloat(gcode.getArg(\"Y\")); }\n if (gcode.hasArg(\"Z\")) { z2 = Float.parseFloat(gcode.getArg(\"Z\")); } \n if (gcode.getCode().equals(\"G1\")) {\n g.stroke(0,128,255);\n } else {\n g.stroke(255,128,0);\n }\n if (g.is2D()) { \n g.vertex(x,y);\n g.vertex(x2,y2); \n } else { \n g.vertex(x,y,z);\n g.vertex(x2,y2,z2);\n } \n x = x2;\n y = y2;\n z = z2;\n } else {\n System.out.println(\"not (yet) supported code \" +gcodes.get(i));\n }\n }\n g.endShape();\n }", "Character getCode();", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public byte[] code();", "Code getCode();", "public native int getRenderingIntent() throws MagickException;", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "String getBbgSymbol();", "Barcode getBarcode() {\n Barcode barcode = null;\n List<BarcodeGraphic> barcodeList = mGraphicOverlay.getGraphics();\n\n if (!barcodeList.isEmpty()) {\n Log.d(TAG, \"Barcode list is not empty\");\n barcode = barcodeList.get(0).getBarcode();\n }\n\n return barcode;\n }", "TextDecoder getTextDecoder();", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String getlbr_Barcode2();", "@Test\n public void testColorCodeExtraction() {\n String text = \"§aHello §b§oWhat's up?\";\n\n String colorResult = stringUtils.extractColorCodes(text).toString();\n String styleResult = stringUtils.extractStyleCodes(text).toString();\n\n Assert.assertEquals(\"[§a, §b]\", colorResult);\n Assert.assertEquals(\"[§o]\", styleResult);\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}", "private void decodeOpcode(int opcode) {\r\n\t\tSystem.out.println(pc);\r\n\t\tSystem.out.println(Integer.toHexString(opcode));\r\n\t\t//0-codes\r\n\t\tswitch (opcode) {\t\t\r\n\t\tcase 0x00E0:\r\n\t\t\t//Clears the screen.\r\n\t\t\tOpcode.clearScreen(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x00EE:\r\n\t\t\t//Returns from a subroutine.\r\n\t\t\tOpcode.returnFromSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//1-codes through 7-codes\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0x1000:\r\n\t\t\t//1NNN. Jumps to address NNN.\r\n\t\t\tOpcode.jumpToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x2000:\r\n\t\t\t//2NNN. Calls subroutine at NNN.\r\n\t\t\tOpcode.callSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x3000:\r\n\t\t\t//3XNN. Skips the next instruction if VX = NN.\r\n\t\t\tOpcode.skipIfEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x4000:\r\n\t\t\t//4XNN. Skips the next instruction if VX != NN.\r\n\t\t\tOpcode.skipIfNotEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x5000:\r\n\t\t\t//5XY0. Skips the next instruction if VX = VY.\r\n\t\t\tOpcode.skipIfEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x6000:\r\n\t\t\t//6XNN. Sets VX to NN.\r\n\t\t\tOpcode.setRegisterToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x7000:\r\n\t\t\t//7XNN. Adds NN to VX.\r\n\t\t\tOpcode.addImmediateToRegister(opcode, this);\r\n\t\t}\r\n\t\t\r\n\t\t//8-codes and 9-codes.\r\n\t\tswitch (opcode & 0xF00F) {\r\n\t\tcase 0x8000:\r\n\t\t\t//8XY0. Sets VX to the value of VY.\r\n\t\t\tOpcode.setRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8001:\r\n\t\t\t//8XY1. Sets VX to the value of VX|VY.\r\n\t\t\tOpcode.setRegisterToRegisterOr(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8002:\r\n\t\t\t//8XY2. Sets VX to the value of VX&VY.\r\n\t\t\tOpcode.setRegisterToRegisterAnd(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8003:\r\n\t\t\t//8XY3. Sets VX to the value of VX^VY.\r\n\t\t\tOpcode.setRegisterToRegisterXor(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8004:\r\n\t\t\t//8XY4. Adds VY to VX. VF is set to 1 when there is a carry, otherwise 0.\r\n\t\t\tOpcode.addRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8005:\r\n\t\t\t//8XY5. VY is subtracted from VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterXFromRegisterY(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8006:\r\n\t\t\t//8XY6. Shifts VX right by one. VF is set to the value of the LSB before the shift.\r\n\t\t\tOpcode.shiftRegisterRight(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8007:\r\n\t\t\t//8XY7. Sets VX to VY minus VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterYFromRegisterX(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x800E:\r\n\t\t\t//8XYE. Shifts VX left by one. VF is set to the value of the MSB before the shift.\r\n\t\t\tOpcode.shiftRegisterLeft(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x9000:\r\n\t\t\t//9XY0. Skips the next instruction if VX != VY.\r\n\t\t\tOpcode.skipIfNotEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//A-codes through D-codes.\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0xA000:\r\n\t\t\t//ANNN. Sets I to the address NNN.\r\n\t\t\tOpcode.setIndexToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xB000:\r\n\t\t\t//BNNN. Jumps to the address NNN plus V0.\r\n\t\t\tOpcode.jumpToImmediatePlusRegister0(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xC000:\r\n\t\t\t//CXNN. Sets VX to the result of a rand(255)&NN.\r\n\t\t\tOpcode.setRegisterToRandom(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xD000:\r\n\t\t\t//DXYN. Draws a sprite at coordinate (VX, VY) that has a width of 8 pixels \r\n\t\t\t//and a height of N pixels.\r\n\t\t\tOpcode.drawSprite(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//E-codes and F-codes.\r\n\t\tswitch (opcode & 0xF0FF) {\r\n\t\tcase 0xE09E:\r\n\t\t\t//EX9E. Skips the next instruction if the key stored in VX is pressed.\r\n\t\t\tOpcode.skipIfKeyPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xE0A1:\r\n\t\t\t//EXA1. Skips the next instruction if the key stored in VX isn't pressed.\r\n\t\t\tOpcode.skipIfKeyNotPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF007:\r\n\t\t\t//FX07. Sets VX to the value of the delay timer.\r\n\t\t\tOpcode.setRegisterToDelay(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF00A:\r\n\t\t\t//FX0A. A key press is awaited, and then stored in VX. Blocking operation.\r\n\t\t\tOpcode.awaitKeyPress(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF015:\r\n\t\t\t//FX15. Sets the delay timer to VX.\r\n\t\t\tOpcode.setDelayToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF018:\r\n\t\t\t//FX18. Sets the sound timer to VX.\r\n\t\t\tOpcode.setSoundToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF01E:\r\n\t\t\t//FX1E. Adds VX to I.\r\n\t\t\tOpcode.addRegisterToIndex(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF029:\r\n\t\t\t//FX29. Sets I to the location of the sprite for the character in VX.\r\n\t\t\tOpcode.setIndexToSpriteLocation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF033:\r\n\t\t\t//FX33. Stores the binary-coded decimal representation of VX.\r\n\t\t\tOpcode.storeBinaryRepresentation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF055:\r\n\t\t\t//FX55. Stores V0 to VX in memory starting at address I.\r\n\t\t\tOpcode.loadRegistersToMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF065:\r\n\t\t\t//FX65. Fills V0 to VX with values from memory starting at address I.\r\n\t\t\tOpcode.loadRegistersFromMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "String getMapCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public void setRcode(float value) {\n this.rcode = value;\n }", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "public interface MclnStatePalette {\n\n String CORE_NOTHING_COLOR = \"0xC0C0C0\";\n String CORE_CONTRADICT_COLOR = \"0xAAAAAA\";\n String CORE_UNKNOWN_COLOR = \"0xC0C0C0\";\n String CORE_POSITIVE_COLOR = \"0xFFFFFF\";\n String CORE_NEGATIVE_COLOR = \"0xFFFFFF\";\n\n String CREATION = \"0xC0C0C0\";\n String NOT_CREATION = \"0x0B0B0B\";\n String WHITE = \"0xFFFFFF\";\n String BLACK = \"0x000000\";\n\n String GRAY = \"0xCCCCCC\";\n String NOT_GRAY = \"0x333333\";\n String MID_GRAY = \"0xBBBBBB\";\n String DARK_GRAY = \"0xAAAAAA\";\n\n String RED = \"0xFF0000\";\n String NOT_RED = \"0x00FFFF\";\n String MID_RED = \"0xCC0033\";\n String DARK_RED = \"0x800040\";\n\n String GREEN = \"0x00FF00\";\n String NOT_GREEN = \"0xFF00FF\";\n String MID_GREEN = \"0x94D352\";\n String DARK_GREEN = \"0x008040\";\n\n String BLUE = \"0x0000FF\";\n String NOT_BLUE = \"0xFFFF00\";\n String MID_BLUE = \"0x0040FF\";\n String DARK_BLUE = \"0x0020BB\";\n\n String PURPLE = \"0xFF00FF\";\n String NOT_PURPLE = GREEN;\n String MID_PURPLE = \"0x9900FF\";\n String DARK_PURPLE = \"0x4000DD\";\n\n String CYAN = \"0x00FFFF\";\n String NOT_CYAN = RED;\n String MID_CYAN = \"0x31A4B1\";\n String DARK_CYAN = \"0x2C5463\";\n\n String YELLOW = \"0xFFFF00\";\n String NOT_YELLOW = BLUE;\n String MID_YELLOW = \"0x9900FF\";\n String DARK_YELLOW = \"0x4000DD\";\n\n String BROWN = \"0xdec79f\";\n String MID_BROWN = \"0xce9b4e\";\n String DARK_BROWN = \"0xc27101\";\n\n String SWAMP = \"0xc8c8aa\";\n String MID_SWAMP = \"0x999966\";\n String DARK_SWAMP = \"0xe4e640\";\n\n String PINK = \"0xFF7FBF\";\n String NOT_PINK = \"0x005555\";\n String ORANGE = \"0xFF9900\";\n String CANARY = \"0xBFFF00\";\n\n int MCLN_MIN_STATE = MclnAlgebra.MCL_CORE_MAX + 1;\n\n MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE,\n NOT_CREATION);\n//\n// MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n// MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE, NOT_CREATION);\n//\n// MclnState MCLN_STATE_GRAY = MclnState.createState(\"Gray\", (MCLN_MIN_STATE + 1) , GRAY);\n// MclnState MCLN_STATE_NOT_GRAY = MclnState.createState(MCLN_STATE_GRAY, \"Not Gray\", -(MCLN_MIN_STATE + 1), NOT_GRAY);\n//\n// MclnState MCLN_STATE_RED = MclnState.createState(\"Red\", (MCLN_MIN_STATE + 2), RED);\n// MclnState MCLN_STATE_NOT_RED = MclnState.createState(MCLN_STATE_RED, \"Not Red\", -(MCLN_MIN_STATE + 2), NOT_RED);\n//\n// MclnState MCLN_STATE_GREEN = MclnState.createState(\"Green\", (MCLN_MIN_STATE + 3), GREEN);\n// MclnState MCLN_STATE_NOT_GREEN = MclnState.createState(MCLN_STATE_GREEN, \"Not Green\", -(MCLN_MIN_STATE + 3), NOT_GREEN);\n//\n// MclnState MCLN_STATE_BLUE = MclnState.createState(\"Blue\", (MCLN_MIN_STATE + 4), BLUE);\n// MclnState MCLN_STATE_NOT_BLUE = MclnState.createState(MCLN_STATE_BLUE, \"Not Blue\", -(MCLN_MIN_STATE + 4), NOT_BLUE);\n//\n// MclnState MCLN_STATE_DARK_BLUE = MclnState.createState(\"Dark blue\", (MCLN_MIN_STATE + 5), DARK_BLUE);\n// MclnState MCLN_STATE_NOT_DARK_BLUE = MclnState.createState(MCLN_STATE_DARK_BLUE, \"Not Dark blue\", -(MCLN_MIN_STATE + 5), NOT_DARK_BLUE);\n//\n// MclnState MCLN_STATE_PINK = MclnState.createState(\"Pink\", (MCLN_MIN_STATE + 6), PINK);\n// MclnState MCLN_STATE_NOT_PINK = MclnState.createState(MCLN_STATE_PINK, \"Not Pink\", -(MCLN_MIN_STATE + 6), NOT_PINK);\n//\n// MclnState MCLN_STATE_DARK_GREEN = MclnState.createState(\"Dark Brown\", (MCLN_MIN_STATE + 7), DARK_GREEN);\n\n public List<MclnState> getAvailableStates();\n\n /**\n * @param color\n * @return\n */\n public MclnState getState(String color);\n\n// String CREATION_COLOR = \"0xC0C0C0\";\n// MclnState CREATION_MCLN_STATE = MclnState.createState(\"Creation State\", 0, CREATION_COLOR);\n\n// int mclnPaletteMax = 10 * 2;\n// int RED = 0xFF0000;\n// int NOT_RED = 0x00FFFF;\n// int GREEN = 0x00FF00;\n// int NOT_GREEN = 0xFF00FF;\n// int BLUE = 0x0000FF;\n// int NOT_BLUE = 0xFFFF00;\n// int YELLOW = NOT_BLUE;\n// int NOT_YELLOW = BLUE;\n// int MAGENTA = NOT_GREEN;\n// int NOT_MAGENTA = GREEN;\n// int CYAN = NOT_RED;\n// int NOT_CYAN = RED;\n// int PINK = 0xFFAAAA;\n// int NOT_PINK = 0x005555;\n//\n// int WHITE = 0xFFFFFF;\n// int VERY_LIGHT_CIAN = 0xCCFFFF;\n// int VERY_LIGHT_BLUE = 0xCCCCFF;\n// int VERY_LIGHT_MAGENTA = 0xCCFFCC;\n// int VERY_LIGHT_RED = 0xFFCCCC;\n// int VERY_LIGHT_YELLOW = 0xFFFFCC;\n//\n//\n// int DARK_RED = 0xCC0000;\n// int DARK_CIAN = 0x00CCCC;\n// int DARK_GREEN = 0x00CC00;\n// int DARK_MAGENTA = 0xCC00CC;\n// int DARK_BLUE = 0x0000CC;\n// int DARK_YELLOW = 0xCCCC00;\n//\n// int VERY_DARK_CIAN = 0x006666;\n// int VERY_DARK_BLUE1 = 0x003366;\n// int VERY_DARK_BLUE2 = 0x000066;\n// int VERY_DARK_BLUE3 = 0x330066;\n// int VERY_DARK_MAGENTA = 0x660066;\n// int VERY_DARK_RED1 = 0x660033;\n// int VERY_DARK_RED2 = 0x660000;\n// int VERY_DARK_RED3 = 0x663300;\n// int VERY_DARK_YELLOW = 0x666600;\n// int VERY_DARK_GREEN1 = 0x336600;\n// int VERY_DARK_GREEN2 = 0x006600;\n// int VERY_DARK_GREEN3 = 0x006633;\n//\n//\n//\n// MclnState getState(Integer color);\n//\n//// Integer getActiveState(Color color) {\n//// return activeColorPalette.get(color);\n//// }\n////\n//// Color getActiveColor(Integer state) {\n//// return activeStatePalette.get(state);\n//// }\n\n}", "java.lang.String getCode();", "java.lang.String getCode();", "public byte getCode();", "public boolean generateImageFromText();", "private void drawJavaString(JComponent frame) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\t// opens test.java\n\t\t\tbr = new BufferedReader(new FileReader(\"test.java\"));\n\t\t\t// variables to keep track of message\n\t\t\t//String message = \"<html>\";\n\t\t\tString message = \"\";\n\t\t\tString sCurrentLine;\n\t\t\t// loops through each line to read file\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tmessage += sCurrentLine + \"\\r\";\n\t\t\t}\n\t\t\t//message += \"</html>\";\n\t\t\t// sets JTextPane codeLabel attributes\n\t\t\tcodeLabel.setContentType(\"text/plain\");\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setOpaque(false);\n\t\t\tcodeLabel.setEditable(true);\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n\t\t\tcodeLabel.setForeground(Color.MAGENTA);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void drawString(String var1, int var2, int var3, int var4, int var5) {\n boolean var11 = field_759;\n\n try {\n byte[] var6 = field_748[var4];\n int var7 = 0;\n if(var11 || var7 < var1.length()) {\n do {\n label165: {\n if(var1.charAt(var7) == 64 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 64) {\n label166: {\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"red\")) {\n var5 = 16711680;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"lre\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"yel\")) {\n var5 = 16776960;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gre\")) {\n var5 = '\\uff00';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"blu\")) {\n var5 = 255;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"cya\")) {\n var5 = '\\uffff';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"mag\")) {\n var5 = 16711935;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"whi\")) {\n var5 = 16777215;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"bla\")) {\n var5 = 0;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"dre\")) {\n var5 = 12582912;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ora\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ran\")) {\n var5 = (int)(Math.random() * 1.6777215E7D);\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or1\")) {\n var5 = 16756736;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or2\")) {\n var5 = 16740352;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or3\")) {\n var5 = 16723968;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr1\")) {\n var5 = 12648192;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr2\")) {\n var5 = 8453888;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr3\")) {\n var5 = 4259584;\n }\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n if(var1.charAt(var7) == 126 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 126) {\n char var8 = var1.charAt(var7 + 1);\n char var9 = var1.charAt(var7 + 2);\n char var10 = var1.charAt(var7 + 3);\n if(var8 >= 48 && var8 <= 57 && var9 >= 48 && var9 <= 57 && var10 >= 48 && var10 <= 57) {\n var2 = Integer.parseInt(var1.substring(var7 + 1, var7 + 4));\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n int var13 = field_749[var1.charAt(var7)];\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2 + 1, var3, 0, var6);\n }\n\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2, var3 + 1, 0, var6);\n }\n\n this.method_268(var13, var2, var3, var5, var6);\n var2 += var6[var13 + 7];\n }\n\n ++var7;\n } while(var7 < var1.length());\n\n }\n } catch (Exception var12) {\n System.out.println(\"drawstring: \" + var12); // authentic System.out.println\n var12.printStackTrace();\n }\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "void setTextDecoder(TextDecoder decoder);", "public void setDrawCodes(boolean draw) {\r\n this.drawCodes = draw;\r\n }", "@Override\n\tpublic void updateCodeCanvas() {\n\n\t}", "public String lookupCodon( String codon )\n {\n // capitalize and replace U's with T's because the code tables are in terms of T's\n codon = codon.toUpperCase();\n codon = codon.replace('U','T');\n\n\n\n String letter = \"\";\n String outputStr = \"\";\n\n if (code.equals(\"Standard\"))\n {\n for (int i = 0; i < stdTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(stdTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( stdTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < stdTranCodeStart.length; j++)\n {\n if ( stdTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n for (int i = 0; i < drosMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(drosMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( drosMitoCode[i].equals( codon ) )\n {\n if ( ( letter.equals(\"I\") ) || ( letter.equals(\"M\") ) )\n {\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n \n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n for (int i = 0; i < vertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(vertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( vertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < vertMitoCodeStart.length; j++)\n {\n if ( vertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n for (int i = 0; i < yeastMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(yeastMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( yeastMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < yeastMitoCodeStart.length; j++)\n {\n if ( yeastMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n for (int i = 0; i < moldProtoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(moldProtoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( moldProtoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < moldProtoMitoCodeStart.length; j++)\n {\n if ( moldProtoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n for (int i = 0; i < invertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(invertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( invertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < invertMitoCodeStart.length; j++)\n {\n if ( invertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n for (int i = 0; i < cilDasHexNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(cilDasHexNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( cilDasHexNucCode[i].equals( codon ) )\n {\n for (int j = 0; j < cilDasHexNucCodeStart.length; j++)\n {\n if ( cilDasHexNucCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n for (int i = 0; i < echinoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(echinoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( echinoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < echinoMitoCodeStart.length; j++)\n {\n if ( echinoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n for (int i = 0; i < euplotidNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(euplotidNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( euplotidNucCode[i].equals( codon ) )\n {\n if ( letter.equals(\"M\") )\n {\n return (\"<B><FONT COLOR=red>M</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n for (int i = 0; i < bacterialTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(bacterialTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( bacterialTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < bacterialTranCodeStart.length; j++)\n {\n if ( bacterialTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n for (int i = 0; i < altYeastCodeAA.length(); i++)\n {\n\n letter = String.valueOf(altYeastCodeAA.charAt(i)); // takes one char as a string\n\n if ( altYeastCode[i].equals( codon ) )\n {\n for (int j = 0; j < altYeastCodeStart.length; j++)\n {\n if ( altYeastCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n for (int i = 0; i < ascidianMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(ascidianMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( ascidianMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < ascidianMitoCodeStart.length; j++)\n {\n if ( ascidianMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n for (int i = 0; i < flatMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(flatMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( flatMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < flatMitoCodeStart.length; j++)\n {\n if ( flatMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else // (code.equals(\"Blepharisma Mitochondrial\"))\n {\n for (int i = 0; i < blephMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(blephMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( blephMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < blephMitoCodeStart.length; j++)\n {\n if ( blephMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n unknownStatus = 1; // encountered an unknown codon so print this in legend\n\n return \"<FONT COLOR=#ff6633><B>u</B></FONT>\"; // unknown codon\n\n\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n inactivityTimer.onActivity();\n\n boolean fromLiveScan = barcode != null;\n if (fromLiveScan) {\n // Then not from history, so beep/vibrate and we have an image to draw on\n beepManager.playBeepSoundAndVibrate();\n }\n\n //rawResult.getText() 结果\n if (rawResult == null || TextUtils.isEmpty(rawResult.getText())) {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeFailed();\n }\n } else {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeSuccess(barcode, rawResult.getText());\n }\n }\n\n }", "public void deSteganographise() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\tArrayList<Character> deStegData = new ArrayList<Character>();\n\t\t\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\tfor(int i = 0;;i++) {\n\t\t\t\tSystem.out.println(\"fucking herp\");\n\t\t\t\t//System.in.read();\n\n\t\t\t\t\n\t\t\t\tFile f = new File(\"downloaded/image\" + i + \".png\");\n\t\t\t\tSystem.out.println(\"file is: \" + f.getName());\n\t\t\t\t\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\tSystem.out.println(\"in deStego if loop\");\n\t\t\t\t\t\n\t\t\t\t\t//System.in.read();\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.reveal(hidingText);\n\t\t\t\t\tString deSteg = hidingText.getText();\n\t\t\t\t\t\n\t\t\t\t\tif(deSteg.length() < 1) {\n\t\t\t\t\t\tSystem.out.println(\"no data in image!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"size of hiding text: \" + hidingText.getSize());\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deSteg data: \" + deSteg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//split the extracted string into data and command message\n\t\t\t\t\t\tString[] split = deSteg.split(\":\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString cC = split[0];\n\t\t\t\t\t\tString stegText = split[2];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j = 0; j < stegText.length(); j++) {\n\t\t\t\t\t\t\tdeStegData.add(stegText.charAt(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deStegText: \" + stegText);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Finished Desteganography\");\n\t\t\t\t\tsteganographise(deStegData);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InvalidTypeException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RevealingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t\t\n\t\t\n\t}", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "private void displayExp(int disp_nr){\r\n\t\tswitch (disp_nr){\r\n\t\t\tcase 0 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(200,100), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Bei 'Fletcher's Checksum' handelt es sich, wie beim Namen ersichtlich,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"um einen Pruefsummen-Algorithmus zur Erkennung von Datenuebertragungsfehlern.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Er ist aehnlich stark wie das CRC-Verfahren,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"hat aber einen teils wesentlich geringeren Rechenaufwand.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Wir sehen uns den Algorithmus in 2 Faellen an:\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Korrekte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Fehlerhafte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Doch zuerst muessen die Pruefsummen selbst berechnet werden.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"In der urspruenglichen Variante des Algorithmus wird hierfuer der Datenstream\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"in Bytes (8-Bit Bloecke) zerlegt...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 1 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun stehen die zwei Pruefsummen fest.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Damit aber die Qualitaet von CRC in Sachen Fehlererkennung erreicht wird,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"muessen diese noch einmal verarbeitet werden und zwar wie folgt:\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Diese 2 Werte werden nun an die zu versendende Nachricht drangehaengt\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Zur Fehlerpruefung muss der Empfaenger nun den Algorithmus erneut\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"auf die empfangene Nachricht, samt Prueffeldern, andwenden\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme (sum1 + sum2) ist 0! Somit kann von einer\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"korrekten uebertragung der Daten ausgegangen werden!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 5 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun ein anderes Szenario: Bei der uebertragung ist ein Fehler \", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"aufgetreten - hier : in Byte #\" + error_position, null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 6 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Wir pruefen erneut wie vorher...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 7 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme ist NICHT 0. Somit weiss der Empfaenger,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"dass ein Fehler aufgetreten ist\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Es wurden\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim ersten Errechnen von sum1 und sum2 \"+op_counts[0]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim Pruefen der Nachricht jeweils \"+op_counts[2]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"... durchgefuehrt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Man erkennt, dass die Zeitkomplexitaet ( der Hauptschleife ) bei n*4 liegt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"wobei n die Laenge der Nachricht ( die zu erweitern oder zu pruefen ist ) in Bytes ist.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Dies steht im Gegensatz zu - zB. - dem CRC-Verfahren, welches (im schlimmsten Fall) von der Anzahl der einzelnen Bits abhaengt.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Fazit: Ein einfacher, aber effektiver Algorithmus zur Erkennung\" +\r\n\t\t\t\t\t\t\" von uebertragungsfehlern. Hoffentlich war diese Animation aufschlussreich!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10 : \r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Schwaeche dieses Verfahrens liegt darin, dass es nicht zwischen den Bytes 11111111 und 00000000,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"bzw. 255 und 0 ( in Dezimal ) unterscheiden kann, weswegen sich die Pruefsummen nicht geaendert und folgich der Fehler\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"leider nicht entdeckt wurde\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t}", "Code[] getCodes();", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "void mo27482a(String str, Bitmap bitmap);", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "@Override\n public String decode(String code) throws IllegalStateException {\n if (code == null || code.equals(\"\")) {\n throw new IllegalStateException(\"the code cannot be null or empty.\");\n }\n Tree iterator = root;\n decode = \"\";\n\n for (int i = 0; i < code.length(); i++) {\n if (!encodingArray.contains(code.charAt(i))) {\n throw new IllegalStateException(\"The encoded string contains illegal symbol\");\n }\n }\n\n code = decoder(code, iterator);\n\n if (code.length() != 0) {\n throw new IllegalStateException(\"there is some problem with decoding.\");\n }\n\n return decode;\n }", "private String recognizeType(String code) {\n String subCode = StringUtils.substring(code, 0, 2);\n String type;\n switch (subCode) {\n case \"00\":\n type = \"sz\"; // A\n break;\n case \"20\":\n type = \"sz\"; // B\n break;\n case \"30\":\n type = \"sz\"; // Entrepreneurship 创业板\n break;\n case \"60\":\n type = \"sh\"; // A\n break;\n case \"90\":\n type = \"sh\"; // B\n break;\n default:\n type = \"sz\";\n }\n return type;\n }", "Bitmap mo27481a(String str);", "abstract public int get(int codePoint);", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "@Override\n public void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG,\"Barcode detected\");\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }", "protected boolean encode()\n {\n\t\tfor(int i=0;i<256;i++)\n {\n\t\t\tstr[i] = String.valueOf((char)i);\n\t\t}\n str[13] = \"\";\n\t\tstr[10] = \"\\n\";\n str[65] = \" \".concat(this.A);\n\t\tstr[67] = \" \".concat(this.C);\n str[71] = \" \".concat(this.G);\n\t\tstr[84] = \" \".concat(this.T);\n try\n\t\t{\n \treader = new FileReader(in);\n writer = new FileWriter(out);\n\n\t\t\t/*******************************************************************************\n\t\t\t *\tThis loop traverse to the dna sequence and maps each character to\n\t\t\t *\tpredefined graphical value character by character\n\t\t\t *******************************************************************************/\n\t\t\twhile(true)\n {\n\t\t\t\ttemp = reader.read();\n if(temp == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t\tif(temp>=97 && temp<=122)\n\t\t\t\t\t\ttemp=temp-32;\n\t\t\t\tif(temp==65 || temp==67 || temp==71 || temp==84)\n \tspace_flag = 1;\n\t\t\t\telse\n\t\t\t\t{\n \tif(space_flag == 1)\n {\n\t\t\t\t\t\tt_str = \" \".concat(str[temp]);\n writer.write(t_str);\n\t\t\t\t\t\tspace_flag = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n space_flag = 0;\n\t\t\t\t}\n if(temp == 59 || temp == 62)\n\t\t\t\t{\n \tt_str = \"\";\n while(temp != 10)\n\t\t\t\t\t{\n \tt_str = t_str.concat(String.valueOf((char)temp));\n temp = reader.read();\n\t\t\t\t\t}\n t_str = t_str.concat(\"(Mapping: A>\"+this.A+\" C>\"+this.C+\" G>\"+this.G+\" T>\"+this.T+\")\");\n t_str = t_str.concat(\"\\n\");\n\t\t\t\t\twriter.write(t_str);\n\t\t\t\t}\n else\n\t\t\t\t\twriter.write(str[temp]);\n\t\t\t}\n writer.close();\n\t\t\treader.close();\n\t\t}\n catch (IOException e)\n\t\t{\n e.printStackTrace (System.out);\n JOptionPane.showMessageDialog(null,\"Exception occurred :( \");\n return false;\n\t\t}\n\t\treturn true;\n\t}", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public static BufferedImage getCharacterImage(char c) throws CharacterNotSupportedException{\n int a = (int)'a';\n int o = (int)'o';\n int p = (int)'p';\n int z = (int)'z';\n \n int zero = (int)'0';\n int nine = (int)'9';\n \n int ac = (int)'A';\n int oc = (int)'O';\n int pc = (int)'P';\n int zc = (int)'Z';\n \n int ci = (int)c;\n \n //System.out.print(c);\n \n if(ci>=zero && ci<=nine){ \n for(int i=zero;i<=nine;i++){//from 0 to 9\n int d = i-zero;//difference between i and zero; a number from 0 to nine-zero.\n if(ci == i){\n return font.getImage(new Location(d,3));\n }\n }\n }\n else if(ci>=ac && ci<=zc){\n for(int i=ac;i<=oc;i++){//from A to O\n int d = i-ac;//difference between i and ac. a number from 0 to pc-ac.\n if(ci == i){\n return font.getImage(new Location(d+1,4));\n }\n }\n for(int j=pc;j<=zc;j++){//from P to Z\n int d = j-pc;//difference between j and pc. a number from 0 to zc-pc.\n if(ci == j){\n return font.getImage(new Location(d,5));\n }\n } \n } \n else if(ci>=a && ci<=z){\n for(int i=a;i<=o;i++){\n int d = i-a;//difference between i and a. a number from 0 to p-a.\n if(ci == i){\n return font.getImage(new Location(d+1,6));\n }\n }\n for(int j=p;j<=z;j++){//from p to z\n int d = j-p;//difference between j and p. Number from 0 to z-p.\n if(ci == j){\n return font.getImage(new Location(d,7));\n }\n } \n }\n else if(ci == ' '){//space\n return font.getImage(new Location(0,0));\n }\n else if(ci == ','){\n return font.getImage(new Location(12,2));\n }\n else if(ci == '.'){\n return font.getImage(new Location(14,2));\n }\n else if(ci == '!'){\n return font.getImage(new Location(1,2));\n }\n else if(ci == '\\''){//apostrophe or '\n return font.getImage(new Location(7,2));\n }\n else if(ci == '#'){\n return font.getImage(new Location(3,2));\n }\n else if(ci == '?'){\n return font.getImage(new Location(15,3));\n }\n else if(ci == ':'){\n return font.getImage(new Location(11,3));\n }\n else if(ci == ';'){\n return font.getImage(new Location(12,3));\n }\n \n throw new CharacterNotSupportedException(\"Character \"+c+\" is not supported in StringImage\");\n }", "public static void decode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n int c = BinaryStdIn.readChar();\r\n char t = charAtIndex[c];\r\n BinaryStdOut.write(t);\r\n for (int i = c - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = t;\r\n index[t] = 0;\r\n }\r\n BinaryStdOut.close(); \r\n }", "public void render() {\r\n Color geneColor=null;\r\n\r\n if(isChanged) {\r\n this.removeChild(predRect);\r\n predRect = new PPath();\r\n\r\n if(type == SegmentInfo.TYPE_AUTO) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 10, 10));\r\n else if(type == SegmentInfo.TYPE_MANUAL) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 0, 0));\r\n\r\n if(this.isSelected()) {\r\n if(this.sign < 0) geneColor = this.SELECTED_DOWN_COLOR;\r\n else geneColor = this.SELECTED_UP_COLOR;\r\n }\r\n else {\r\n if(this.sign < 0) geneColor = this.DOWN_COLOR;\r\n else geneColor = this.UP_COLOR;\r\n }\r\n\r\n predRect.setPaint(geneColor);\r\n this.addChild(predRect);\r\n isChanged=false;\r\n }\r\n }", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public abstract int code();", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n ArrayList<String> Tokens = new ArrayList<String>();\n\n String CODE = jTextArea1.getText();\n //String CODE=\"{float cos, x, n, term, eps, alt;\";\n String code = CODE.replaceAll(\"(?:/\\\\*(?:[^*]|(?:\\\\*+[^*/]))*\\\\*+/)|(?://.*)\", \"\")\n .replace(\"+\", \" + \")\n .replace(\"-\", \" - \")\n .replace(\"*\", \" * \")\n .replace(\"/\", \" / \")\n .replace(\"==\", \" == \")\n .replace(\">=\", \" >= \")\n .replace(\"<=\", \" <= \")\n .replace(\"!=\", \" != \")\n .replace(\"&&\", \" && \")\n .replace(\"(\", \" ( \")\n .replace(\")\", \" ) \")\n .replace(\"{\", \" { \")\n .replace(\"}\", \" } \")\n .replace(\"[\", \" [ \")\n .replace(\"]\", \" ] \")\n .replace(\".\", \" . \")\n .replace(\",\", \" , \")\n .replace(\";\", \" ; \")\n .replace(\":\", \" ; \");\n\n String[] output = code.split(\"\\\\n+\");\n output2 = new String[output.length][];\n for (int i = 0; i < output.length; i++) {\n output2[i] = functionCall(output[i].split(\"\\\\s+\"));\n }\n //for(int i=0;i<output2.length;i++){\n // for(int j=0;j<output2[i].length;j++){\n // System.out.print(output2[i][j]+\" \");\n // }\n // System.out.println();\n //}\n output = functionCall(output);\n for (int j = 0; j < output2.length; j++) {\n for (int i = 0; i < output2[j].length; i++) {\n\n switch (output2[j][i]) {\n //DataTypes\n case (\"int\"):\n Tokens.add(\"int\");\n System.out.println(\"int --> DATA TYPE\");\n break;\n case (\"float\"):\n Tokens.add(\"float\");\n System.out.println(\"float --> DATA TYPE\");\n break;\n\n //Reserved Words\n case (\"for\"):\n Tokens.add(\"for\");\n System.out.println(\"for --> Reserved Word\");\n break;\n case (\"while\"):\n Tokens.add(\"while\");\n System.out.println(\"while --> Reserved Word\");\n break;\n case (\"if\"):\n Tokens.add(\"if\");\n System.out.println(\"if --> Reserved Word \");\n break;\n case (\"else\"):\n Tokens.add(\"else\");\n System.out.println(\"else --> Reserved Word \");\n break;\n //Binary Operators\n case (\"+\"):\n Tokens.add(\"+\");\n System.out.println(\"+ -->Binary Operator \");\n break;\n case (\"-\"):\n Tokens.add(\"-\");\n System.out.println(\"- -->Binary Operator \");\n break;\n case (\"*\"):\n Tokens.add(\"*\");\n System.out.println(\"* -->Binary Operator \");\n break;\n case (\"/\"):\n Tokens.add(\"/\");\n System.out.println(\"/ -->Binary Operator \");\n break;\n\n //Symbols \n case (\"\"):\n Tokens.add(\"\");\n System.out.println(\"\");\n break;\n case (\"=\"):\n Tokens.add(\"=\");\n System.out.println(\"= -->Symbol \");\n break;\n case (\"<\"):\n Tokens.add(\"<\");\n System.out.println(\"< -->Symbol \");\n break;\n case (\">\"):\n Tokens.add(\">\");\n System.out.println(\"> -->Symbol \");\n break;\n case (\"(\"):\n Tokens.add(\"(\");\n System.out.println(\"( -->Symbol \");\n break;\n case (\")\"):\n Tokens.add(\")\");\n System.out.println(\") -->Symbol \");\n break;\n case (\"{\"):\n Tokens.add(\"{\");\n System.out.println(\"{ -->Symbol \");\n break;\n case (\"}\"):\n Tokens.add(\"}\");\n System.out.println(\"} -->Symbol \");\n break;\n case (\";\"):\n Tokens.add(\";\");\n System.out.println(\"; -->Symbol \");\n break;\n case (\",\"):\n Tokens.add(\",\");\n System.out.println(\", -->Symbol \");\n break;\n case (\".\"):\n Tokens.add(\".\");\n System.out.println(\". -->Symbol \");\n break;\n case (\"<=\"):\n Tokens.add(\"<=\");\n System.out.println(\"<= -->Symbol \");\n break;\n case (\">=\"):\n Tokens.add(\">=\");\n System.out.println(\">= -->Symbol \");\n break;\n case (\"!=\"):\n Tokens.add(\"!=\");\n System.out.println(\"!= -->Symbol \");\n break;\n case (\"==\"):\n Tokens.add(\"==\");\n System.out.println(\"== -->Symbol \");\n break;\n\n default:\n String c = output2[j][i];\n\n char ch[] = c.toCharArray();\n\n if (Character.isDigit(ch[0])) {\n Tokens.add(\"Integer Lateral\");\n System.out.println(output2[j][i] + \" --> Integer Lateral \");\n } else if (Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } else if (c.matches(\"\") && Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } // else if(c.contains(\"=\"))\n // {\n // // symbols.contains(Character.toString(code.charAt(i)))\n // System.out.println(output[i] + \" --> Symbol \");\n // }\n else {\n System.out.println(output2[j][i] + \" --> Invalid Token \");\n }\n break;\n }\n }\n }\n\n\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "int getCode();", "int getCode();", "int getCode();", "public void parsePseudocode() {\n\t\tputTokens();\n\t\tsetTokenLength();\n\t\ttokenize();\n\t\tdataToJS();\n\t}", "public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}", "public String getCode();", "public String getCode();", "private void generateGraphCode() {\n StringBuilder finalCode = new StringBuilder(\"digraph G{\\n\");\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n finalCode.append(generateSubGraphCode(workingPanel.getConnections(), idx));\n }\n finalCode.append(\"\\n}\");\n JFrame generatedCodeFrame = new JFrame(\"Code Generator\");\n JTextArea codeDisplay = new JTextArea();\n generatedCodeFrame.add(codeDisplay);\n codeDisplay.append(finalCode.toString());\n generatedCodeFrame.setSize(400, 700);\n generatedCodeFrame.setVisible(true);\n }", "public void mo3795b(String str) {\n float f;\n if (str == null || str.length() == 0) {\n this.f1432G = 0.0f;\n return;\n }\n int i = -1;\n int length = str.length();\n int indexOf = str.indexOf(44);\n int i2 = 0;\n if (indexOf > 0 && indexOf < length - 1) {\n String substring = str.substring(0, indexOf);\n if (substring.equalsIgnoreCase(QLog.TAG_REPORTLEVEL_COLORUSER)) {\n i = 0;\n } else if (substring.equalsIgnoreCase(\"H\")) {\n i = 1;\n }\n i2 = indexOf + 1;\n }\n int indexOf2 = str.indexOf(58);\n if (indexOf2 < 0 || indexOf2 >= length - 1) {\n String substring2 = str.substring(i2);\n if (substring2.length() > 0) {\n try {\n f = Float.parseFloat(substring2);\n } catch (NumberFormatException unused) {\n }\n }\n f = 0.0f;\n } else {\n String substring3 = str.substring(i2, indexOf2);\n String substring4 = str.substring(indexOf2 + 1);\n if (substring3.length() > 0 && substring4.length() > 0) {\n try {\n float parseFloat = Float.parseFloat(substring3);\n float parseFloat2 = Float.parseFloat(substring4);\n f = (parseFloat <= 0.0f || parseFloat2 <= 0.0f) ? 0.0f : i == 1 ? Math.abs(parseFloat2 / parseFloat) : Math.abs(parseFloat / parseFloat2);\n } catch (NumberFormatException unused2) {\n }\n }\n f = 0.0f;\n }\n if (f > 0.0f) {\n this.f1432G = f;\n this.f1433H = i;\n }\n }", "void parseQrCode(String qrCodeData);", "Value getInterpretation();", "boolean hasRecode();", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n byteArray0[0] = (byte)60;\n byteArray0[1] = (byte)82;\n byte byte0 = (byte) (-73);\n byteArray0[2] = (byte) (-73);\n byteArray0[3] = (byte)86;\n defaultNucleotideCodec0.iterator(byteArray0);\n byteArray0[4] = (byte)8;\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.decode(byteArray0, 3555L);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // index 3555 corresponds to encodedIndex 1781 encodedglyph length is 9\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec\", e);\n }\n }", "public abstract void mo2141b(Typeface typeface, boolean z);", "public String decoder(int[] Instruction) {\n\t\t\tString Information;\r\n\t\t\tInformation=\"The Instruction is:\";\r\n\t\t\tInformation=Information+\"Opcode:\";\r\n\t\t\tint[] Opcode=new int[6];\r\n\t\t\tint[] R=new int[2];\r\n\t\t\tint[] IX=new int[2];\r\n\t\t\tint[] Rx=new int[2];\r\n\t\t\tint[] Ry=new int[2];\r\n\t\t\tint[] Count=new int[4];\r\n\t\t\tint[] DevId=new int[5];\r\n\t\t\tint I;\r\n\t\t\tint[] Address=new int[5];\r\n\t\t\t\r\n\t\t\t//Parse out the Opcode, Register, IX, I, and Address from the instruction word\r\n\t\t\tfor(int i=0;i<6;i++) {\r\n\t\t\t\tOpcode[i]=Instruction[i];\r\n\t\t\t\tInformation=Information+Instruction[i];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" R:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tR[i]=Instruction[i+6];\r\n\t\t\t\tInformation=Information+Instruction[i+6];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" IX:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tIX[i]=Instruction[i+8];\r\n\t\t\t\tInformation=Information+Instruction[i+8];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Address:\";\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\tAddress[i]=Instruction[i+11];\r\n\t\t\t\tInformation=Information+Instruction[i+11];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Rx:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tRx[i]=Instruction[i+6];\r\n\t\t\t\tInformation=Information+Instruction[i+6];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Ry:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tRy[i]=Instruction[i+8];\r\n\t\t\t\tInformation=Information+Instruction[i+8];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" AL:\";\r\n\t\t\tint decAL = Instruction[8];\r\n\t\t\tInformation=Information+Instruction[8];\r\n\t\t\tInformation=Information+\" LR:\";\r\n\t\t\tint decLR = Instruction[9];\r\n\t\t\tInformation=Information+Instruction[9];\r\n\t\t\tInformation=Information+\" Count:\";\r\n\t\t\tfor(int i=0;i<4;i++) {\r\n\t\t\t\tCount[i]=Instruction[i+12];\r\n\t\t\t\tInformation=Information+Instruction[i+12];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" DevId:\";\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\tDevId[i]=Instruction[i+11];\r\n\t\t\t\tInformation=Information+Instruction[i+11];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" DevId:\";\r\n\t\t\tI=Instruction[10];\r\n\t\t\tInformation=Information+Instruction[10];\r\n\t\t\t\r\n\t\t\tInformation=Information+\"\\n\";\r\n\t\t\t\r\n\t\t\t//Convert parsed values to easier to user INTEGER value (base 10)\r\n\t\t\tint decOpcode=Binary_to_dec(Opcode);\r\n\t\t\tint decR=Binary_to_dec(R);\r\n\t\t\tint decIX=Binary_to_dec(IX);\r\n\t\t\tint decAddress=Binary_to_dec(Address);\r\n\t\t\tint decRx=Binary_to_dec(Rx);\r\n\t\t\tint decRy=Binary_to_dec(Ry);\r\n\t\t\tint decCount=Binary_to_dec(Count);\r\n\t\t\tint decDevId=Binary_to_dec(DevId);\r\n\t\t\t\r\n\t\t\t//Using switch statement to determine which instruction to run\r\n\t\t\t//Opcodes in the document are in BASE 8!!!\r\n\t\t\t//Note that the opcode is switched using its BASE 10 VALUE!\r\n\t\t\tswitch (decOpcode) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tInformation=Information+LDR(decR,decIX,I,decAddress);\r\n\t\t\t\t\t//fault diagnose\r\n\t\t\t\t\t//information report\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tInformation=Information+STR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tInformation=Information+LDA(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tInformation=Information+AMR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tInformation=Information+SMR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tInformation=Information+AIR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tInformation=Information+SIR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tInformation=Information+JZ(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tInformation=Information+JNE(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tInformation=Information+JCC(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tInformation=Information+JMA(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tInformation=Information+JSR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 13:\r\n\t\t\t\t\tInformation=Information+RFS(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 14:\r\n\t\t\t\t\tInformation=Information+SOB(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 15:\r\n\t\t\t\t\tInformation=Information+JGE(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 16:\r\n\t\t\t\t\tInformation=Information+MLT(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 17:\r\n\t\t\t\t\tInformation=Information+DVD(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 18:\r\n\t\t\t\t\tInformation=Information+TRR(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 19:\r\n\t\t\t\t\tInformation=Information+AND(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 20:\r\n\t\t\t\t\tInformation=Information+ORR(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 21:\r\n\t\t\t\t\tInformation=Information+NOT(decRx);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 25:\r\n\t\t\t\t\tInformation=Information+SRC(decR,decCount, decLR, decAL);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 26:\r\n\t\t\t\t\tInformation=Information+RRC(decR,decCount, decLR, decAL);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 33:\r\n\t\t\t\t\tInformation=Information+LDX(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 34:\r\n\t\t\t\t\tInformation=Information+STX(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 49:\r\n\t\t\t\t\tInformation=Information+IN(decR,decDevId);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 50:\r\n\t\t\t\t\tInformation=Information+OUT(decR,decDevId);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 51:\r\n\t\t\t\t\tInformation=Information+CHK(decR,decDevId);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tInformation=Information+\"Halted.\\n\";\r\n\t\t \t\t\t//When it halts Return PC to the beginning of program memory\r\n\t\t \t\t\tthis.PC.Insert((new int[] {0,0,0,0,0,0,0,0,0,1,1,0}), 0);\r\n\t\t \t\t\tisRunning = false;\r\n\t\t \t\t\t//do nothing;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn Information;\r\n\t\t\r\n\t\t}", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public CodePosition getCodePosition ();", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }" ]
[ "0.6474923", "0.587374", "0.5838794", "0.58331066", "0.568407", "0.5595924", "0.55483913", "0.5531226", "0.55188733", "0.54725313", "0.54489666", "0.54195744", "0.5391097", "0.5339741", "0.5328745", "0.528109", "0.5280383", "0.5233884", "0.5233338", "0.52326906", "0.5232368", "0.5212444", "0.5205398", "0.51894295", "0.5183911", "0.5183416", "0.5179659", "0.51765686", "0.51636297", "0.5159546", "0.51507324", "0.5138816", "0.51346457", "0.5133322", "0.5128072", "0.51248246", "0.51248246", "0.51248246", "0.51248246", "0.51248246", "0.5119341", "0.50982314", "0.5087786", "0.50863236", "0.50808525", "0.5060014", "0.5060014", "0.50459564", "0.50457877", "0.5027665", "0.5016378", "0.5011068", "0.5002049", "0.4967297", "0.49616548", "0.49603486", "0.4958151", "0.49576926", "0.4951879", "0.4946881", "0.49451187", "0.494495", "0.492979", "0.491825", "0.4906663", "0.49032846", "0.49021128", "0.48807248", "0.48651472", "0.48626024", "0.48565373", "0.4850403", "0.4849533", "0.4843955", "0.48408443", "0.48391977", "0.4835945", "0.48334262", "0.4832847", "0.48305658", "0.4827552", "0.4827231", "0.48231885", "0.48214597", "0.48214597", "0.48214597", "0.48115185", "0.4808783", "0.48068997", "0.48068997", "0.47983605", "0.4775954", "0.47743997", "0.47691494", "0.47644898", "0.47613415", "0.47608224", "0.475742", "0.4755349", "0.47544917", "0.47496438" ]
0.0
-1
Both detects and decodes graphical codes
public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) { return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public abstract String visualize(byte input);", "public void paintCode() {\n\t\tint maxErr, lenErr, tot, pad;\n\t\tif ((options & PDF417_USE_RAW_CODEWORDS) != 0) {\n\t\t\tif (lenCodewords > MAX_DATA_CODEWORDS || lenCodewords < 1\n\t\t\t\t\t|| lenCodewords != codewords[0]) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid codeword size.\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (text == null)\n\t\t\t\tthrow new NullPointerException(\"Text cannot be null.\");\n\t\t\tif (text.length > ABSOLUTE_MAX_TEXT_SIZE) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"The text is too big.\");\n\t\t\t}\n\t\t\tsegmentList = new SegmentList();\n\t\t\tbreakString();\n\t\t\t// dumpList();\n\t\t\tassemble();\n\t\t\tsegmentList = null;\n\t\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\t}\n\t\tmaxErr = maxPossibleErrorLevel(MAX_DATA_CODEWORDS + 2 - lenCodewords);\n\t\tif ((options & PDF417_USE_ERROR_LEVEL) == 0) {\n\t\t\tif (lenCodewords < 41)\n\t\t\t\terrorLevel = 2;\n\t\t\telse if (lenCodewords < 161)\n\t\t\t\terrorLevel = 3;\n\t\t\telse if (lenCodewords < 321)\n\t\t\t\terrorLevel = 4;\n\t\t\telse\n\t\t\t\terrorLevel = 5;\n\t\t}\n\t\tif (errorLevel < 0)\n\t\t\terrorLevel = 0;\n\t\telse if (errorLevel > maxErr)\n\t\t\terrorLevel = maxErr;\n\t\tif (codeColumns < 1)\n\t\t\tcodeColumns = 1;\n\t\telse if (codeColumns > 30)\n\t\t\tcodeColumns = 30;\n\t\tif (codeRows < 3)\n\t\t\tcodeRows = 3;\n\t\telse if (codeRows > 90)\n\t\t\tcodeRows = 90;\n\t\tlenErr = 2 << errorLevel;\n\t\tboolean fixedColumn = (options & PDF417_FIXED_ROWS) == 0;\n\t\tboolean skipRowColAdjust = false;\n\t\ttot = lenCodewords + lenErr;\n\t\tif ((options & PDF417_FIXED_RECTANGLE) != 0) {\n\t\t\ttot = codeColumns * codeRows;\n\t\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\t\ttot = getMaxSquare();\n\t\t\t}\n\t\t\tif (tot < lenCodewords + lenErr)\n\t\t\t\ttot = lenCodewords + lenErr;\n\t\t\telse\n\t\t\t\tskipRowColAdjust = true;\n\t\t} else if ((options & (PDF417_FIXED_COLUMNS | PDF417_FIXED_ROWS)) == 0) {\n\t\t\tdouble c, b;\n\t\t\tfixedColumn = true;\n\t\t\tif (aspectRatio < 0.001)\n\t\t\t\taspectRatio = 0.001f;\n\t\t\telse if (aspectRatio > 1000)\n\t\t\t\taspectRatio = 1000;\n\t\t\tb = 73 * aspectRatio - 4;\n\t\t\tc = (-b + Math.sqrt(b * b + 4 * 17 * aspectRatio\n\t\t\t\t\t* (lenCodewords + lenErr) * yHeight))\n\t\t\t\t\t/ (2 * 17 * aspectRatio);\n\t\t\tcodeColumns = (int) (c + 0.5);\n\t\t\tif (codeColumns < 1)\n\t\t\t\tcodeColumns = 1;\n\t\t\telse if (codeColumns > 30)\n\t\t\t\tcodeColumns = 30;\n\t\t}\n\t\tif (!skipRowColAdjust) {\n\t\t\tif (fixedColumn) {\n\t\t\t\tcodeRows = (tot - 1) / codeColumns + 1;\n\t\t\t\tif (codeRows < 3)\n\t\t\t\t\tcodeRows = 3;\n\t\t\t\telse if (codeRows > 90) {\n\t\t\t\t\tcodeRows = 90;\n\t\t\t\t\tcodeColumns = (tot - 1) / 90 + 1;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcodeColumns = (tot - 1) / codeRows + 1;\n\t\t\t\tif (codeColumns > 30) {\n\t\t\t\t\tcodeColumns = 30;\n\t\t\t\t\tcodeRows = (tot - 1) / 30 + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttot = codeRows * codeColumns;\n\t\t}\n\t\tif (tot > MAX_DATA_CODEWORDS + 2) {\n\t\t\ttot = getMaxSquare();\n\t\t}\n\t\terrorLevel = maxPossibleErrorLevel(tot - lenCodewords);\n\t\tlenErr = 2 << errorLevel;\n\t\tpad = tot - lenErr - lenCodewords;\n\t\tcwPtr = lenCodewords;\n\t\twhile (pad-- != 0)\n\t\t\tcodewords[cwPtr++] = TEXT_MODE;\n\t\tcodewords[0] = lenCodewords = cwPtr;\n\t\tcalculateErrorCorrection(lenCodewords);\n\t\tlenCodewords = tot;\n\t\toutPaintCode();\n\t}", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public void setQrcodeDecodeRect(int x, int y, int w, int h);", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "void barcodeCaptured(String barcodeString);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "@Override\n public String toString() {\n return \"code: \" + this.paintCode + \"secCode: \" + this.secCode + \", image: \" + this.image;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "@Override\n\tpublic boolean saveBarCode(int kodPoint, String readedCod) {\n\t\treturn false;\n\t}", "public void displayCode (Graphics g){\r\n\t\tfor (int i = 0 ; i < counter; i++){\r\n\t\t\tif (code.charAt(i) == '1'){\r\n\t\t\t\tdrawOne(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '2'){\r\n\t\t\t\tdrawTwo(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '3'){\r\n\t\t\t\tdrawThree(g);\r\n\t\t\t\tdelay(500);\r\n\t\t\t}\r\n\t\t\telse if (code.charAt(i) == '4'){\r\n\t\t\t\tdrawFour(g);\r\n\t\t\t\tdelay(500);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tdisplay = false; //display is equal to false when displaying code has finished\r\n\t}", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "static public void visualize(PGraphics g, GCodeList gcodes) {\n float x = 0;\n float y = 0;\n float z = 0;\n \n float x2 = x;\n float y2 = y;\n float z2 = z;\n\n g.noFill();\n g.beginShape(LINES); \n\n for (int i = 0; i < gcodes.size(); i++) {\n GCode gcode = gcodes.get(i);\n if (gcode.getCode().equals(\"G0\") || gcode.getCode().equals(\"G1\")) { \n if (gcode.hasArg(\"X\")) { x2 = Float.parseFloat(gcode.getArg(\"X\")); }\n if (gcode.hasArg(\"Y\")) { y2 = Float.parseFloat(gcode.getArg(\"Y\")); }\n if (gcode.hasArg(\"Z\")) { z2 = Float.parseFloat(gcode.getArg(\"Z\")); } \n if (gcode.getCode().equals(\"G1\")) {\n g.stroke(0,128,255);\n } else {\n g.stroke(255,128,0);\n }\n if (g.is2D()) { \n g.vertex(x,y);\n g.vertex(x2,y2); \n } else { \n g.vertex(x,y,z);\n g.vertex(x2,y2,z2);\n } \n x = x2;\n y = y2;\n z = z2;\n } else {\n System.out.println(\"not (yet) supported code \" +gcodes.get(i));\n }\n }\n g.endShape();\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "Character getCode();", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "public byte[] code();", "Code getCode();", "public native int getRenderingIntent() throws MagickException;", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "String getBbgSymbol();", "Barcode getBarcode() {\n Barcode barcode = null;\n List<BarcodeGraphic> barcodeList = mGraphicOverlay.getGraphics();\n\n if (!barcodeList.isEmpty()) {\n Log.d(TAG, \"Barcode list is not empty\");\n barcode = barcodeList.get(0).getBarcode();\n }\n\n return barcode;\n }", "TextDecoder getTextDecoder();", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String getlbr_Barcode2();", "@Test\n public void testColorCodeExtraction() {\n String text = \"§aHello §b§oWhat's up?\";\n\n String colorResult = stringUtils.extractColorCodes(text).toString();\n String styleResult = stringUtils.extractStyleCodes(text).toString();\n\n Assert.assertEquals(\"[§a, §b]\", colorResult);\n Assert.assertEquals(\"[§o]\", styleResult);\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "private void decodeOpcode(int opcode) {\r\n\t\tSystem.out.println(pc);\r\n\t\tSystem.out.println(Integer.toHexString(opcode));\r\n\t\t//0-codes\r\n\t\tswitch (opcode) {\t\t\r\n\t\tcase 0x00E0:\r\n\t\t\t//Clears the screen.\r\n\t\t\tOpcode.clearScreen(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x00EE:\r\n\t\t\t//Returns from a subroutine.\r\n\t\t\tOpcode.returnFromSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//1-codes through 7-codes\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0x1000:\r\n\t\t\t//1NNN. Jumps to address NNN.\r\n\t\t\tOpcode.jumpToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x2000:\r\n\t\t\t//2NNN. Calls subroutine at NNN.\r\n\t\t\tOpcode.callSubroutine(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x3000:\r\n\t\t\t//3XNN. Skips the next instruction if VX = NN.\r\n\t\t\tOpcode.skipIfEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x4000:\r\n\t\t\t//4XNN. Skips the next instruction if VX != NN.\r\n\t\t\tOpcode.skipIfNotEqualsImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x5000:\r\n\t\t\t//5XY0. Skips the next instruction if VX = VY.\r\n\t\t\tOpcode.skipIfEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x6000:\r\n\t\t\t//6XNN. Sets VX to NN.\r\n\t\t\tOpcode.setRegisterToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x7000:\r\n\t\t\t//7XNN. Adds NN to VX.\r\n\t\t\tOpcode.addImmediateToRegister(opcode, this);\r\n\t\t}\r\n\t\t\r\n\t\t//8-codes and 9-codes.\r\n\t\tswitch (opcode & 0xF00F) {\r\n\t\tcase 0x8000:\r\n\t\t\t//8XY0. Sets VX to the value of VY.\r\n\t\t\tOpcode.setRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8001:\r\n\t\t\t//8XY1. Sets VX to the value of VX|VY.\r\n\t\t\tOpcode.setRegisterToRegisterOr(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8002:\r\n\t\t\t//8XY2. Sets VX to the value of VX&VY.\r\n\t\t\tOpcode.setRegisterToRegisterAnd(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8003:\r\n\t\t\t//8XY3. Sets VX to the value of VX^VY.\r\n\t\t\tOpcode.setRegisterToRegisterXor(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8004:\r\n\t\t\t//8XY4. Adds VY to VX. VF is set to 1 when there is a carry, otherwise 0.\r\n\t\t\tOpcode.addRegisterToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8005:\r\n\t\t\t//8XY5. VY is subtracted from VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterXFromRegisterY(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8006:\r\n\t\t\t//8XY6. Shifts VX right by one. VF is set to the value of the LSB before the shift.\r\n\t\t\tOpcode.shiftRegisterRight(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x8007:\r\n\t\t\t//8XY7. Sets VX to VY minus VX. VF is set to 0 when there's a borrow, otherwise 1.\r\n\t\t\tOpcode.subtractRegisterYFromRegisterX(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x800E:\r\n\t\t\t//8XYE. Shifts VX left by one. VF is set to the value of the MSB before the shift.\r\n\t\t\tOpcode.shiftRegisterLeft(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0x9000:\r\n\t\t\t//9XY0. Skips the next instruction if VX != VY.\r\n\t\t\tOpcode.skipIfNotEqualsRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//A-codes through D-codes.\r\n\t\tswitch (opcode & 0xF000) {\r\n\t\tcase 0xA000:\r\n\t\t\t//ANNN. Sets I to the address NNN.\r\n\t\t\tOpcode.setIndexToImmediate(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xB000:\r\n\t\t\t//BNNN. Jumps to the address NNN plus V0.\r\n\t\t\tOpcode.jumpToImmediatePlusRegister0(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xC000:\r\n\t\t\t//CXNN. Sets VX to the result of a rand(255)&NN.\r\n\t\t\tOpcode.setRegisterToRandom(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xD000:\r\n\t\t\t//DXYN. Draws a sprite at coordinate (VX, VY) that has a width of 8 pixels \r\n\t\t\t//and a height of N pixels.\r\n\t\t\tOpcode.drawSprite(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//E-codes and F-codes.\r\n\t\tswitch (opcode & 0xF0FF) {\r\n\t\tcase 0xE09E:\r\n\t\t\t//EX9E. Skips the next instruction if the key stored in VX is pressed.\r\n\t\t\tOpcode.skipIfKeyPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xE0A1:\r\n\t\t\t//EXA1. Skips the next instruction if the key stored in VX isn't pressed.\r\n\t\t\tOpcode.skipIfKeyNotPressed(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF007:\r\n\t\t\t//FX07. Sets VX to the value of the delay timer.\r\n\t\t\tOpcode.setRegisterToDelay(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF00A:\r\n\t\t\t//FX0A. A key press is awaited, and then stored in VX. Blocking operation.\r\n\t\t\tOpcode.awaitKeyPress(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF015:\r\n\t\t\t//FX15. Sets the delay timer to VX.\r\n\t\t\tOpcode.setDelayToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF018:\r\n\t\t\t//FX18. Sets the sound timer to VX.\r\n\t\t\tOpcode.setSoundToRegister(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF01E:\r\n\t\t\t//FX1E. Adds VX to I.\r\n\t\t\tOpcode.addRegisterToIndex(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF029:\r\n\t\t\t//FX29. Sets I to the location of the sprite for the character in VX.\r\n\t\t\tOpcode.setIndexToSpriteLocation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF033:\r\n\t\t\t//FX33. Stores the binary-coded decimal representation of VX.\r\n\t\t\tOpcode.storeBinaryRepresentation(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF055:\r\n\t\t\t//FX55. Stores V0 to VX in memory starting at address I.\r\n\t\t\tOpcode.loadRegistersToMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\tcase 0xF065:\r\n\t\t\t//FX65. Fills V0 to VX with values from memory starting at address I.\r\n\t\t\tOpcode.loadRegistersFromMemory(opcode, this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}", "String getMapCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public void setRcode(float value) {\n this.rcode = value;\n }", "public String decode(String path, String name) {\n byte[] decode;\n try {\n // user space is necessary for decrypting\n BufferedImage image = user_space(getImage(image_path(\n path,\n name,\n \"png\")));\n decode = decode_text(get_byte_data(image));\n return (new String(decode));\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"There is no hidden message in this image!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n return \"\";\n }\n }", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "public interface MclnStatePalette {\n\n String CORE_NOTHING_COLOR = \"0xC0C0C0\";\n String CORE_CONTRADICT_COLOR = \"0xAAAAAA\";\n String CORE_UNKNOWN_COLOR = \"0xC0C0C0\";\n String CORE_POSITIVE_COLOR = \"0xFFFFFF\";\n String CORE_NEGATIVE_COLOR = \"0xFFFFFF\";\n\n String CREATION = \"0xC0C0C0\";\n String NOT_CREATION = \"0x0B0B0B\";\n String WHITE = \"0xFFFFFF\";\n String BLACK = \"0x000000\";\n\n String GRAY = \"0xCCCCCC\";\n String NOT_GRAY = \"0x333333\";\n String MID_GRAY = \"0xBBBBBB\";\n String DARK_GRAY = \"0xAAAAAA\";\n\n String RED = \"0xFF0000\";\n String NOT_RED = \"0x00FFFF\";\n String MID_RED = \"0xCC0033\";\n String DARK_RED = \"0x800040\";\n\n String GREEN = \"0x00FF00\";\n String NOT_GREEN = \"0xFF00FF\";\n String MID_GREEN = \"0x94D352\";\n String DARK_GREEN = \"0x008040\";\n\n String BLUE = \"0x0000FF\";\n String NOT_BLUE = \"0xFFFF00\";\n String MID_BLUE = \"0x0040FF\";\n String DARK_BLUE = \"0x0020BB\";\n\n String PURPLE = \"0xFF00FF\";\n String NOT_PURPLE = GREEN;\n String MID_PURPLE = \"0x9900FF\";\n String DARK_PURPLE = \"0x4000DD\";\n\n String CYAN = \"0x00FFFF\";\n String NOT_CYAN = RED;\n String MID_CYAN = \"0x31A4B1\";\n String DARK_CYAN = \"0x2C5463\";\n\n String YELLOW = \"0xFFFF00\";\n String NOT_YELLOW = BLUE;\n String MID_YELLOW = \"0x9900FF\";\n String DARK_YELLOW = \"0x4000DD\";\n\n String BROWN = \"0xdec79f\";\n String MID_BROWN = \"0xce9b4e\";\n String DARK_BROWN = \"0xc27101\";\n\n String SWAMP = \"0xc8c8aa\";\n String MID_SWAMP = \"0x999966\";\n String DARK_SWAMP = \"0xe4e640\";\n\n String PINK = \"0xFF7FBF\";\n String NOT_PINK = \"0x005555\";\n String ORANGE = \"0xFF9900\";\n String CANARY = \"0xBFFF00\";\n\n int MCLN_MIN_STATE = MclnAlgebra.MCL_CORE_MAX + 1;\n\n MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE,\n NOT_CREATION);\n//\n// MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n// MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE, NOT_CREATION);\n//\n// MclnState MCLN_STATE_GRAY = MclnState.createState(\"Gray\", (MCLN_MIN_STATE + 1) , GRAY);\n// MclnState MCLN_STATE_NOT_GRAY = MclnState.createState(MCLN_STATE_GRAY, \"Not Gray\", -(MCLN_MIN_STATE + 1), NOT_GRAY);\n//\n// MclnState MCLN_STATE_RED = MclnState.createState(\"Red\", (MCLN_MIN_STATE + 2), RED);\n// MclnState MCLN_STATE_NOT_RED = MclnState.createState(MCLN_STATE_RED, \"Not Red\", -(MCLN_MIN_STATE + 2), NOT_RED);\n//\n// MclnState MCLN_STATE_GREEN = MclnState.createState(\"Green\", (MCLN_MIN_STATE + 3), GREEN);\n// MclnState MCLN_STATE_NOT_GREEN = MclnState.createState(MCLN_STATE_GREEN, \"Not Green\", -(MCLN_MIN_STATE + 3), NOT_GREEN);\n//\n// MclnState MCLN_STATE_BLUE = MclnState.createState(\"Blue\", (MCLN_MIN_STATE + 4), BLUE);\n// MclnState MCLN_STATE_NOT_BLUE = MclnState.createState(MCLN_STATE_BLUE, \"Not Blue\", -(MCLN_MIN_STATE + 4), NOT_BLUE);\n//\n// MclnState MCLN_STATE_DARK_BLUE = MclnState.createState(\"Dark blue\", (MCLN_MIN_STATE + 5), DARK_BLUE);\n// MclnState MCLN_STATE_NOT_DARK_BLUE = MclnState.createState(MCLN_STATE_DARK_BLUE, \"Not Dark blue\", -(MCLN_MIN_STATE + 5), NOT_DARK_BLUE);\n//\n// MclnState MCLN_STATE_PINK = MclnState.createState(\"Pink\", (MCLN_MIN_STATE + 6), PINK);\n// MclnState MCLN_STATE_NOT_PINK = MclnState.createState(MCLN_STATE_PINK, \"Not Pink\", -(MCLN_MIN_STATE + 6), NOT_PINK);\n//\n// MclnState MCLN_STATE_DARK_GREEN = MclnState.createState(\"Dark Brown\", (MCLN_MIN_STATE + 7), DARK_GREEN);\n\n public List<MclnState> getAvailableStates();\n\n /**\n * @param color\n * @return\n */\n public MclnState getState(String color);\n\n// String CREATION_COLOR = \"0xC0C0C0\";\n// MclnState CREATION_MCLN_STATE = MclnState.createState(\"Creation State\", 0, CREATION_COLOR);\n\n// int mclnPaletteMax = 10 * 2;\n// int RED = 0xFF0000;\n// int NOT_RED = 0x00FFFF;\n// int GREEN = 0x00FF00;\n// int NOT_GREEN = 0xFF00FF;\n// int BLUE = 0x0000FF;\n// int NOT_BLUE = 0xFFFF00;\n// int YELLOW = NOT_BLUE;\n// int NOT_YELLOW = BLUE;\n// int MAGENTA = NOT_GREEN;\n// int NOT_MAGENTA = GREEN;\n// int CYAN = NOT_RED;\n// int NOT_CYAN = RED;\n// int PINK = 0xFFAAAA;\n// int NOT_PINK = 0x005555;\n//\n// int WHITE = 0xFFFFFF;\n// int VERY_LIGHT_CIAN = 0xCCFFFF;\n// int VERY_LIGHT_BLUE = 0xCCCCFF;\n// int VERY_LIGHT_MAGENTA = 0xCCFFCC;\n// int VERY_LIGHT_RED = 0xFFCCCC;\n// int VERY_LIGHT_YELLOW = 0xFFFFCC;\n//\n//\n// int DARK_RED = 0xCC0000;\n// int DARK_CIAN = 0x00CCCC;\n// int DARK_GREEN = 0x00CC00;\n// int DARK_MAGENTA = 0xCC00CC;\n// int DARK_BLUE = 0x0000CC;\n// int DARK_YELLOW = 0xCCCC00;\n//\n// int VERY_DARK_CIAN = 0x006666;\n// int VERY_DARK_BLUE1 = 0x003366;\n// int VERY_DARK_BLUE2 = 0x000066;\n// int VERY_DARK_BLUE3 = 0x330066;\n// int VERY_DARK_MAGENTA = 0x660066;\n// int VERY_DARK_RED1 = 0x660033;\n// int VERY_DARK_RED2 = 0x660000;\n// int VERY_DARK_RED3 = 0x663300;\n// int VERY_DARK_YELLOW = 0x666600;\n// int VERY_DARK_GREEN1 = 0x336600;\n// int VERY_DARK_GREEN2 = 0x006600;\n// int VERY_DARK_GREEN3 = 0x006633;\n//\n//\n//\n// MclnState getState(Integer color);\n//\n//// Integer getActiveState(Color color) {\n//// return activeColorPalette.get(color);\n//// }\n////\n//// Color getActiveColor(Integer state) {\n//// return activeStatePalette.get(state);\n//// }\n\n}", "java.lang.String getCode();", "java.lang.String getCode();", "public boolean generateImageFromText();", "public byte getCode();", "private void drawJavaString(JComponent frame) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\t// opens test.java\n\t\t\tbr = new BufferedReader(new FileReader(\"test.java\"));\n\t\t\t// variables to keep track of message\n\t\t\t//String message = \"<html>\";\n\t\t\tString message = \"\";\n\t\t\tString sCurrentLine;\n\t\t\t// loops through each line to read file\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tmessage += sCurrentLine + \"\\r\";\n\t\t\t}\n\t\t\t//message += \"</html>\";\n\t\t\t// sets JTextPane codeLabel attributes\n\t\t\tcodeLabel.setContentType(\"text/plain\");\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setOpaque(false);\n\t\t\tcodeLabel.setEditable(true);\n\t\t\tcodeLabel.setText(message);\n\t\t\tcodeLabel.setFont(new Font(\"Monospaced\", Font.PLAIN, 12));\n\t\t\tcodeLabel.setForeground(Color.MAGENTA);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null) {\n\t\t\t\t\tbr.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void drawString(String var1, int var2, int var3, int var4, int var5) {\n boolean var11 = field_759;\n\n try {\n byte[] var6 = field_748[var4];\n int var7 = 0;\n if(var11 || var7 < var1.length()) {\n do {\n label165: {\n if(var1.charAt(var7) == 64 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 64) {\n label166: {\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"red\")) {\n var5 = 16711680;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"lre\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"yel\")) {\n var5 = 16776960;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gre\")) {\n var5 = '\\uff00';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"blu\")) {\n var5 = 255;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"cya\")) {\n var5 = '\\uffff';\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"mag\")) {\n var5 = 16711935;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"whi\")) {\n var5 = 16777215;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"bla\")) {\n var5 = 0;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"dre\")) {\n var5 = 12582912;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ora\")) {\n var5 = 16748608;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"ran\")) {\n var5 = (int)(Math.random() * 1.6777215E7D);\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or1\")) {\n var5 = 16756736;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or2\")) {\n var5 = 16740352;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"or3\")) {\n var5 = 16723968;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr1\")) {\n var5 = 12648192;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr2\")) {\n var5 = 8453888;\n if(!var11) {\n break label166;\n }\n }\n\n if(var1.substring(var7 + 1, var7 + 4).equalsIgnoreCase(\"gr3\")) {\n var5 = 4259584;\n }\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n if(var1.charAt(var7) == 126 && var7 + 4 < var1.length() && var1.charAt(var7 + 4) == 126) {\n char var8 = var1.charAt(var7 + 1);\n char var9 = var1.charAt(var7 + 2);\n char var10 = var1.charAt(var7 + 3);\n if(var8 >= 48 && var8 <= 57 && var9 >= 48 && var9 <= 57 && var10 >= 48 && var10 <= 57) {\n var2 = Integer.parseInt(var1.substring(var7 + 1, var7 + 4));\n }\n\n var7 += 4;\n if(!var11) {\n break label165;\n }\n }\n\n int var13 = field_749[var1.charAt(var7)];\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2 + 1, var3, 0, var6);\n }\n\n if(this.loggedIn && var5 != 0) {\n this.method_268(var13, var2, var3 + 1, 0, var6);\n }\n\n this.method_268(var13, var2, var3, var5, var6);\n var2 += var6[var13 + 7];\n }\n\n ++var7;\n } while(var7 < var1.length());\n\n }\n } catch (Exception var12) {\n System.out.println(\"drawstring: \" + var12); // authentic System.out.println\n var12.printStackTrace();\n }\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "void setTextDecoder(TextDecoder decoder);", "public void setDrawCodes(boolean draw) {\r\n this.drawCodes = draw;\r\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n inactivityTimer.onActivity();\n\n boolean fromLiveScan = barcode != null;\n if (fromLiveScan) {\n // Then not from history, so beep/vibrate and we have an image to draw on\n beepManager.playBeepSoundAndVibrate();\n }\n\n //rawResult.getText() 结果\n if (rawResult == null || TextUtils.isEmpty(rawResult.getText())) {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeFailed();\n }\n } else {\n if (analyzeCallback != null) {\n analyzeCallback.onAnalyzeSuccess(barcode, rawResult.getText());\n }\n }\n\n }", "@Override\n\tpublic void updateCodeCanvas() {\n\n\t}", "public String lookupCodon( String codon )\n {\n // capitalize and replace U's with T's because the code tables are in terms of T's\n codon = codon.toUpperCase();\n codon = codon.replace('U','T');\n\n\n\n String letter = \"\";\n String outputStr = \"\";\n\n if (code.equals(\"Standard\"))\n {\n for (int i = 0; i < stdTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(stdTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( stdTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < stdTranCodeStart.length; j++)\n {\n if ( stdTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n for (int i = 0; i < drosMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(drosMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( drosMitoCode[i].equals( codon ) )\n {\n if ( ( letter.equals(\"I\") ) || ( letter.equals(\"M\") ) )\n {\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n \n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n for (int i = 0; i < vertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(vertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( vertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < vertMitoCodeStart.length; j++)\n {\n if ( vertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n for (int i = 0; i < yeastMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(yeastMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( yeastMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < yeastMitoCodeStart.length; j++)\n {\n if ( yeastMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n for (int i = 0; i < moldProtoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(moldProtoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( moldProtoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < moldProtoMitoCodeStart.length; j++)\n {\n if ( moldProtoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n for (int i = 0; i < invertMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(invertMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( invertMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < invertMitoCodeStart.length; j++)\n {\n if ( invertMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n for (int i = 0; i < cilDasHexNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(cilDasHexNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( cilDasHexNucCode[i].equals( codon ) )\n {\n for (int j = 0; j < cilDasHexNucCodeStart.length; j++)\n {\n if ( cilDasHexNucCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n for (int i = 0; i < echinoMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(echinoMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( echinoMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < echinoMitoCodeStart.length; j++)\n {\n if ( echinoMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n for (int i = 0; i < euplotidNucCodeAA.length(); i++)\n {\n\n letter = String.valueOf(euplotidNucCodeAA.charAt(i)); // takes one char as a string\n\n if ( euplotidNucCode[i].equals( codon ) )\n {\n if ( letter.equals(\"M\") )\n {\n return (\"<B><FONT COLOR=red>M</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n for (int i = 0; i < bacterialTranCodeAA.length(); i++)\n {\n\n letter = String.valueOf(bacterialTranCodeAA.charAt(i)); // takes one char as a string\n\n if ( bacterialTranCode[i].equals( codon ) )\n {\n for (int j = 0; j < bacterialTranCodeStart.length; j++)\n {\n if ( bacterialTranCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n for (int i = 0; i < altYeastCodeAA.length(); i++)\n {\n\n letter = String.valueOf(altYeastCodeAA.charAt(i)); // takes one char as a string\n\n if ( altYeastCode[i].equals( codon ) )\n {\n for (int j = 0; j < altYeastCodeStart.length; j++)\n {\n if ( altYeastCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n for (int i = 0; i < ascidianMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(ascidianMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( ascidianMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < ascidianMitoCodeStart.length; j++)\n {\n if ( ascidianMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n for (int i = 0; i < flatMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(flatMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( flatMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < flatMitoCodeStart.length; j++)\n {\n if ( flatMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n else // (code.equals(\"Blepharisma Mitochondrial\"))\n {\n for (int i = 0; i < blephMitoCodeAA.length(); i++)\n {\n\n letter = String.valueOf(blephMitoCodeAA.charAt(i)); // takes one char as a string\n\n if ( blephMitoCode[i].equals( codon ) )\n {\n for (int j = 0; j < blephMitoCodeStart.length; j++)\n {\n if ( blephMitoCodeStart[j].equals( codon ) )\n return (\"<B><FONT COLOR=red>\" + letter + \"</FONT></B>\"); // colors the start AA red\n }\n if (letter.equals(\"*\"))\n {\n if (stopFormat.length() > 0)\n return (\"<B><FONT COLOR=blue>\" + String.valueOf(stopFormat.charAt(0)) + \"</FONT></B>\");\n else\n return (\"<B><FONT COLOR=blue>*</B></FONT>\");\n }\n return letter; // found letter and it is not from a stop or start codon\n }\n else\n continue; // not found so continue searching\n }\n\n }\n\n unknownStatus = 1; // encountered an unknown codon so print this in legend\n\n return \"<FONT COLOR=#ff6633><B>u</B></FONT>\"; // unknown codon\n\n\n }", "public void deSteganographise() {\n\t\tSequentialImageAccessScheme seqImScheme = new SequentialImageAccessScheme();\n\t\tDualLSBImageHidingScheme imHidingScheme = new DualLSBImageHidingScheme();\n\t\tSimpleComponentModulationScheme compModScheme = new SimpleComponentModulationScheme();\n\t\tArrayList<Character> deStegData = new ArrayList<Character>();\n\t\t\n\t\n\t\tCarrierImage carrierImage = new CarrierImage(seqImScheme, imHidingScheme, compModScheme);\n\t \n\t\tImageManager imgManager = new ImageManager();\n\t\ttry {\n\t\t\tfor(int i = 0;;i++) {\n\t\t\t\tSystem.out.println(\"fucking herp\");\n\t\t\t\t//System.in.read();\n\n\t\t\t\t\n\t\t\t\tFile f = new File(\"downloaded/image\" + i + \".png\");\n\t\t\t\tSystem.out.println(\"file is: \" + f.getName());\n\t\t\t\t\n\t\t\t\tif(f.exists()) {\n\t\t\t\t\tSystem.out.println(\"in deStego if loop\");\n\t\t\t\t\t\n\t\t\t\t\t//System.in.read();\n\t\t\t\t\t\n\t\t\t\t\tRenderedImage img = imgManager.loadImage(f);\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.setCarrierImage(img);\n\t\t\t\t\tHidingText hidingText = new HidingText();\n\t\t\t\t\t\n\t\t\t\t\tcarrierImage.reveal(hidingText);\n\t\t\t\t\tString deSteg = hidingText.getText();\n\t\t\t\t\t\n\t\t\t\t\tif(deSteg.length() < 1) {\n\t\t\t\t\t\tSystem.out.println(\"no data in image!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"size of hiding text: \" + hidingText.getSize());\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deSteg data: \" + deSteg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//split the extracted string into data and command message\n\t\t\t\t\t\tString[] split = deSteg.split(\":\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString cC = split[0];\n\t\t\t\t\t\tString stegText = split[2];\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j = 0; j < stegText.length(); j++) {\n\t\t\t\t\t\t\tdeStegData.add(stegText.charAt(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"deStegText: \" + stegText);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Finished Desteganography\");\n\t\t\t\t\tsteganographise(deStegData);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InvalidTypeException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t} catch (CarrierInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentInitializationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RevealingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (HidingComponentSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (CarrierAccessSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CarrierHidingSchemeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (CompatibilityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\timgManager.terminate();\n\t\t}\n\t\t\n\t\t\n\t}", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "Code[] getCodes();", "private void displayExp(int disp_nr){\r\n\t\tswitch (disp_nr){\r\n\t\t\tcase 0 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(200,100), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Bei 'Fletcher's Checksum' handelt es sich, wie beim Namen ersichtlich,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"um einen Pruefsummen-Algorithmus zur Erkennung von Datenuebertragungsfehlern.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Er ist aehnlich stark wie das CRC-Verfahren,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"hat aber einen teils wesentlich geringeren Rechenaufwand.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Wir sehen uns den Algorithmus in 2 Faellen an:\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Korrekte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"- Fehlerhafte uebertragung der Daten\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"Doch zuerst muessen die Pruefsummen selbst berechnet werden.\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"In der urspruenglichen Variante des Algorithmus wird hierfuer der Datenstream\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"in Bytes (8-Bit Bloecke) zerlegt...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 1 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun stehen die zwei Pruefsummen fest.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Damit aber die Qualitaet von CRC in Sachen Fehlererkennung erreicht wird,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"muessen diese noch einmal verarbeitet werden und zwar wie folgt:\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Diese 2 Werte werden nun an die zu versendende Nachricht drangehaengt\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Zur Fehlerpruefung muss der Empfaenger nun den Algorithmus erneut\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"auf die empfangene Nachricht, samt Prueffeldern, andwenden\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme (sum1 + sum2) ist 0! Somit kann von einer\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"korrekten uebertragung der Daten ausgegangen werden!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 5 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Nun ein anderes Szenario: Bei der uebertragung ist ein Fehler \", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"aufgetreten - hier : in Byte #\" + error_position, null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 6 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Wir pruefen erneut wie vorher...\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 7 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Pruefsumme ist NICHT 0. Somit weiss der Empfaenger,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"dass ein Fehler aufgetreten ist\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9 :\r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Es wurden\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim ersten Errechnen von sum1 und sum2 \"+op_counts[0]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"- Beim Pruefen der Nachricht jeweils \"+op_counts[2]+\" Operationen\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"... durchgefuehrt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Man erkennt, dass die Zeitkomplexitaet ( der Hauptschleife ) bei n*4 liegt\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"wobei n die Laenge der Nachricht ( die zu erweitern oder zu pruefen ist ) in Bytes ist.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Dies steht im Gegensatz zu - zB. - dem CRC-Verfahren, welches (im schlimmsten Fall) von der Anzahl der einzelnen Bits abhaengt.\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"\",null,0,null);\r\n\t\t\t\texpl.addCodeLine(\"Fazit: Ein einfacher, aber effektiver Algorithmus zur Erkennung\" +\r\n\t\t\t\t\t\t\" von uebertragungsfehlern. Hoffentlich war diese Animation aufschlussreich!\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10 : \r\n\t\t\t\texpl = lang.newSourceCode(new Coordinates(300,150), \"\", null, expl_props);\r\n\t\t\t\texpl.addCodeLine(\"Die Schwaeche dieses Verfahrens liegt darin, dass es nicht zwischen den Bytes 11111111 und 00000000,\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"bzw. 255 und 0 ( in Dezimal ) unterscheiden kann, weswegen sich die Pruefsummen nicht geaendert und folgich der Fehler\", null, 0, null);\r\n\t\t\t\texpl.addCodeLine(\"leider nicht entdeckt wurde\", null, 0, null);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t}", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "void mo27482a(String str, Bitmap bitmap);", "public static void main(String[] args) throws IOException, NotFoundException\r\n\t{\n\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Praveen_Automation\\\\Launching_Browsers\\\\Launching_Browsers_Latest\\\\New folder\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://testautomationpractice.blogspot.com/\");\r\n\t\tAssert.assertEquals(driver.getTitle(), \"Automation Testing Practice\");\r\n\t \r\n\t\t//First Barcode\r\n\t\t//String barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://3.bp.blogspot.com/-xaeByLfXiFk/XCxZ33hrgKI/AAAAAAAAPPI/5d4O-mf27lEQKtSiiBjx3UgtxSV0yJUpwCLcBGAs/s1600/barcode.gif']\")).getAttribute(\"src\");\r\n\t\t//System.out.println(barcodeURL);\r\n\t\t\r\n\t\t\r\n\t\t//Second Barcode\r\n\t\tString barcodeURL = driver.findElement(By.xpath(\"//img[@src='https://4.bp.blogspot.com/-_Bz0eHUicUY/XCxnkToPvQI/AAAAAAAAPPU/055m3a6VabUzUlwlzwwipQA-MImBuxq_wCLcBGAs/s1600/barcode2.gif']\")).getAttribute(\"src\");\r\n\t\t\r\n\t \r\n\t URL url = new URL(barcodeURL);\r\n\t BufferedImage bufferedimage=ImageIO.read(url);\r\n\t \r\n\t LuminanceSource luminancesource = new BufferedImageLuminanceSource(bufferedimage);\r\n\t \r\n\t BinaryBitmap binarybitmap = new BinaryBitmap(new HybridBinarizer(luminancesource));\r\n\t \r\n\t Result result = new MultiFormatReader().decode(binarybitmap);\r\n\t System.out.println(result.getText());\r\n\t \r\n\t driver.close();\r\n\t \r\n\t //Sample Barcode URL \r\n\t //https://barcode.tec-it.com/en\r\n\t}", "private String recognizeType(String code) {\n String subCode = StringUtils.substring(code, 0, 2);\n String type;\n switch (subCode) {\n case \"00\":\n type = \"sz\"; // A\n break;\n case \"20\":\n type = \"sz\"; // B\n break;\n case \"30\":\n type = \"sz\"; // Entrepreneurship 创业板\n break;\n case \"60\":\n type = \"sh\"; // A\n break;\n case \"90\":\n type = \"sh\"; // B\n break;\n default:\n type = \"sz\";\n }\n return type;\n }", "@Override\n public String decode(String code) throws IllegalStateException {\n if (code == null || code.equals(\"\")) {\n throw new IllegalStateException(\"the code cannot be null or empty.\");\n }\n Tree iterator = root;\n decode = \"\";\n\n for (int i = 0; i < code.length(); i++) {\n if (!encodingArray.contains(code.charAt(i))) {\n throw new IllegalStateException(\"The encoded string contains illegal symbol\");\n }\n }\n\n code = decoder(code, iterator);\n\n if (code.length() != 0) {\n throw new IllegalStateException(\"there is some problem with decoding.\");\n }\n\n return decode;\n }", "Bitmap mo27481a(String str);", "abstract public int get(int codePoint);", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "@Override\n public void onBarcodeDetected(Barcode barcode) {\n Log.d(TAG,\"Barcode detected\");\n }", "public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {\n\t inactivityTimer.onActivity();\n\t lastResult = rawResult;\n//\t ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);\n//\n//\t boolean fromLiveScan = barcode != null;\n//\t if (fromLiveScan) {\n//\t historyManager.addHistoryItem(rawResult, resultHandler);\n//\t // Then not from history, so beep/vibrate and we have an image to draw on\n//\t beepManager.playBeepSoundAndVibrate();\n//\t drawResultPoints(barcode, scaleFactor, rawResult);\n//\t }\n//\n//\t displayBarcodeAnimation(currentEan);\n//\t displayBarcodeAnimation2(rawResult.getText(),barcode);\n//\t \tString message = \"Barcode result: \"\n//\t + \" (\" + rawResult.getText() + ')';\n//\t Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n//\t // Wait a moment or else it will scan the same barcode continuously about 3 times\n\t restartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n//\t \n\t \n\t \n\t try {\n\t\t\t\tif (barcode != null) {\n\t\t\t\t\tCaptureActivity.BARCODE = \"\";\n\t\t\t\t\tnow.setToNow();\n\t\t\t\t\tcurrentEan = rawResult.getText().trim();\n\t\t\t\t\t\n\t\t\t\t\tif (!lastEan.equals(currentEan)\n\t\t\t\t\t\t\t|| Math.abs(now.second - lastScanTime) >= SAME_PRODUCT_RESCAN_INTERVAL) {\n\t\t\t\t\t\tbeepManager.playBeepSoundAndVibrate();\n\n\t\t\t\t\t\tlastEan = currentEan;\n\t\t\t\t\t\tlastScanTime = now.second;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (currentEan!=null && !currentEan.isEmpty()) {\n\t\t\t\t\t\t\tdrawResultPoints(barcode, scaleFactor, rawResult);\n\t\t\t\t\t\t\tdisplayBarcodeAnimation2(rawResult.getText(),barcode);\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\n\t\t\t\t\t\t\n//\t\t\t\t\t\trestartPreviewAfterDelay(BULK_MODE_SCAN_DELAY_MS);\n\t\t\t\t\t\tscanEanAddingStarted = true;\n\t\t\t\t\t\twhile (!scanEanRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForArticle.add(currentEan);\n\t\t\t\t\t\t\tscanEanAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tscanImageAddingStarted = true;\n\t\t\t\t\t\twhile (!scanImageRemovingStarted) {\n\t\t\t\t\t\t\tsacannedItemListForImage.add(currentEan);\n\t\t\t\t\t\t\tscanImageAddingStarted = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\ttvScanningProgressCounter.setText(\"\"+sacannedItemListForArticle.size()+\" remaining\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tCommonTask.ShowMessage(this, e.getMessage());\n\t\t\t}\n\t }", "protected boolean encode()\n {\n\t\tfor(int i=0;i<256;i++)\n {\n\t\t\tstr[i] = String.valueOf((char)i);\n\t\t}\n str[13] = \"\";\n\t\tstr[10] = \"\\n\";\n str[65] = \" \".concat(this.A);\n\t\tstr[67] = \" \".concat(this.C);\n str[71] = \" \".concat(this.G);\n\t\tstr[84] = \" \".concat(this.T);\n try\n\t\t{\n \treader = new FileReader(in);\n writer = new FileWriter(out);\n\n\t\t\t/*******************************************************************************\n\t\t\t *\tThis loop traverse to the dna sequence and maps each character to\n\t\t\t *\tpredefined graphical value character by character\n\t\t\t *******************************************************************************/\n\t\t\twhile(true)\n {\n\t\t\t\ttemp = reader.read();\n if(temp == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t\tif(temp>=97 && temp<=122)\n\t\t\t\t\t\ttemp=temp-32;\n\t\t\t\tif(temp==65 || temp==67 || temp==71 || temp==84)\n \tspace_flag = 1;\n\t\t\t\telse\n\t\t\t\t{\n \tif(space_flag == 1)\n {\n\t\t\t\t\t\tt_str = \" \".concat(str[temp]);\n writer.write(t_str);\n\t\t\t\t\t\tspace_flag = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n space_flag = 0;\n\t\t\t\t}\n if(temp == 59 || temp == 62)\n\t\t\t\t{\n \tt_str = \"\";\n while(temp != 10)\n\t\t\t\t\t{\n \tt_str = t_str.concat(String.valueOf((char)temp));\n temp = reader.read();\n\t\t\t\t\t}\n t_str = t_str.concat(\"(Mapping: A>\"+this.A+\" C>\"+this.C+\" G>\"+this.G+\" T>\"+this.T+\")\");\n t_str = t_str.concat(\"\\n\");\n\t\t\t\t\twriter.write(t_str);\n\t\t\t\t}\n else\n\t\t\t\t\twriter.write(str[temp]);\n\t\t\t}\n writer.close();\n\t\t\treader.close();\n\t\t}\n catch (IOException e)\n\t\t{\n e.printStackTrace (System.out);\n JOptionPane.showMessageDialog(null,\"Exception occurred :( \");\n return false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public static BufferedImage getCharacterImage(char c) throws CharacterNotSupportedException{\n int a = (int)'a';\n int o = (int)'o';\n int p = (int)'p';\n int z = (int)'z';\n \n int zero = (int)'0';\n int nine = (int)'9';\n \n int ac = (int)'A';\n int oc = (int)'O';\n int pc = (int)'P';\n int zc = (int)'Z';\n \n int ci = (int)c;\n \n //System.out.print(c);\n \n if(ci>=zero && ci<=nine){ \n for(int i=zero;i<=nine;i++){//from 0 to 9\n int d = i-zero;//difference between i and zero; a number from 0 to nine-zero.\n if(ci == i){\n return font.getImage(new Location(d,3));\n }\n }\n }\n else if(ci>=ac && ci<=zc){\n for(int i=ac;i<=oc;i++){//from A to O\n int d = i-ac;//difference between i and ac. a number from 0 to pc-ac.\n if(ci == i){\n return font.getImage(new Location(d+1,4));\n }\n }\n for(int j=pc;j<=zc;j++){//from P to Z\n int d = j-pc;//difference between j and pc. a number from 0 to zc-pc.\n if(ci == j){\n return font.getImage(new Location(d,5));\n }\n } \n } \n else if(ci>=a && ci<=z){\n for(int i=a;i<=o;i++){\n int d = i-a;//difference between i and a. a number from 0 to p-a.\n if(ci == i){\n return font.getImage(new Location(d+1,6));\n }\n }\n for(int j=p;j<=z;j++){//from p to z\n int d = j-p;//difference between j and p. Number from 0 to z-p.\n if(ci == j){\n return font.getImage(new Location(d,7));\n }\n } \n }\n else if(ci == ' '){//space\n return font.getImage(new Location(0,0));\n }\n else if(ci == ','){\n return font.getImage(new Location(12,2));\n }\n else if(ci == '.'){\n return font.getImage(new Location(14,2));\n }\n else if(ci == '!'){\n return font.getImage(new Location(1,2));\n }\n else if(ci == '\\''){//apostrophe or '\n return font.getImage(new Location(7,2));\n }\n else if(ci == '#'){\n return font.getImage(new Location(3,2));\n }\n else if(ci == '?'){\n return font.getImage(new Location(15,3));\n }\n else if(ci == ':'){\n return font.getImage(new Location(11,3));\n }\n else if(ci == ';'){\n return font.getImage(new Location(12,3));\n }\n \n throw new CharacterNotSupportedException(\"Character \"+c+\" is not supported in StringImage\");\n }", "public static void decode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n int c = BinaryStdIn.readChar();\r\n char t = charAtIndex[c];\r\n BinaryStdOut.write(t);\r\n for (int i = c - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = t;\r\n index[t] = 0;\r\n }\r\n BinaryStdOut.close(); \r\n }", "public void render() {\r\n Color geneColor=null;\r\n\r\n if(isChanged) {\r\n this.removeChild(predRect);\r\n predRect = new PPath();\r\n\r\n if(type == SegmentInfo.TYPE_AUTO) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 10, 10));\r\n else if(type == SegmentInfo.TYPE_MANUAL) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 0, 0));\r\n\r\n if(this.isSelected()) {\r\n if(this.sign < 0) geneColor = this.SELECTED_DOWN_COLOR;\r\n else geneColor = this.SELECTED_UP_COLOR;\r\n }\r\n else {\r\n if(this.sign < 0) geneColor = this.DOWN_COLOR;\r\n else geneColor = this.UP_COLOR;\r\n }\r\n\r\n predRect.setPaint(geneColor);\r\n this.addChild(predRect);\r\n isChanged=false;\r\n }\r\n }", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public abstract int code();", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n ArrayList<String> Tokens = new ArrayList<String>();\n\n String CODE = jTextArea1.getText();\n //String CODE=\"{float cos, x, n, term, eps, alt;\";\n String code = CODE.replaceAll(\"(?:/\\\\*(?:[^*]|(?:\\\\*+[^*/]))*\\\\*+/)|(?://.*)\", \"\")\n .replace(\"+\", \" + \")\n .replace(\"-\", \" - \")\n .replace(\"*\", \" * \")\n .replace(\"/\", \" / \")\n .replace(\"==\", \" == \")\n .replace(\">=\", \" >= \")\n .replace(\"<=\", \" <= \")\n .replace(\"!=\", \" != \")\n .replace(\"&&\", \" && \")\n .replace(\"(\", \" ( \")\n .replace(\")\", \" ) \")\n .replace(\"{\", \" { \")\n .replace(\"}\", \" } \")\n .replace(\"[\", \" [ \")\n .replace(\"]\", \" ] \")\n .replace(\".\", \" . \")\n .replace(\",\", \" , \")\n .replace(\";\", \" ; \")\n .replace(\":\", \" ; \");\n\n String[] output = code.split(\"\\\\n+\");\n output2 = new String[output.length][];\n for (int i = 0; i < output.length; i++) {\n output2[i] = functionCall(output[i].split(\"\\\\s+\"));\n }\n //for(int i=0;i<output2.length;i++){\n // for(int j=0;j<output2[i].length;j++){\n // System.out.print(output2[i][j]+\" \");\n // }\n // System.out.println();\n //}\n output = functionCall(output);\n for (int j = 0; j < output2.length; j++) {\n for (int i = 0; i < output2[j].length; i++) {\n\n switch (output2[j][i]) {\n //DataTypes\n case (\"int\"):\n Tokens.add(\"int\");\n System.out.println(\"int --> DATA TYPE\");\n break;\n case (\"float\"):\n Tokens.add(\"float\");\n System.out.println(\"float --> DATA TYPE\");\n break;\n\n //Reserved Words\n case (\"for\"):\n Tokens.add(\"for\");\n System.out.println(\"for --> Reserved Word\");\n break;\n case (\"while\"):\n Tokens.add(\"while\");\n System.out.println(\"while --> Reserved Word\");\n break;\n case (\"if\"):\n Tokens.add(\"if\");\n System.out.println(\"if --> Reserved Word \");\n break;\n case (\"else\"):\n Tokens.add(\"else\");\n System.out.println(\"else --> Reserved Word \");\n break;\n //Binary Operators\n case (\"+\"):\n Tokens.add(\"+\");\n System.out.println(\"+ -->Binary Operator \");\n break;\n case (\"-\"):\n Tokens.add(\"-\");\n System.out.println(\"- -->Binary Operator \");\n break;\n case (\"*\"):\n Tokens.add(\"*\");\n System.out.println(\"* -->Binary Operator \");\n break;\n case (\"/\"):\n Tokens.add(\"/\");\n System.out.println(\"/ -->Binary Operator \");\n break;\n\n //Symbols \n case (\"\"):\n Tokens.add(\"\");\n System.out.println(\"\");\n break;\n case (\"=\"):\n Tokens.add(\"=\");\n System.out.println(\"= -->Symbol \");\n break;\n case (\"<\"):\n Tokens.add(\"<\");\n System.out.println(\"< -->Symbol \");\n break;\n case (\">\"):\n Tokens.add(\">\");\n System.out.println(\"> -->Symbol \");\n break;\n case (\"(\"):\n Tokens.add(\"(\");\n System.out.println(\"( -->Symbol \");\n break;\n case (\")\"):\n Tokens.add(\")\");\n System.out.println(\") -->Symbol \");\n break;\n case (\"{\"):\n Tokens.add(\"{\");\n System.out.println(\"{ -->Symbol \");\n break;\n case (\"}\"):\n Tokens.add(\"}\");\n System.out.println(\"} -->Symbol \");\n break;\n case (\";\"):\n Tokens.add(\";\");\n System.out.println(\"; -->Symbol \");\n break;\n case (\",\"):\n Tokens.add(\",\");\n System.out.println(\", -->Symbol \");\n break;\n case (\".\"):\n Tokens.add(\".\");\n System.out.println(\". -->Symbol \");\n break;\n case (\"<=\"):\n Tokens.add(\"<=\");\n System.out.println(\"<= -->Symbol \");\n break;\n case (\">=\"):\n Tokens.add(\">=\");\n System.out.println(\">= -->Symbol \");\n break;\n case (\"!=\"):\n Tokens.add(\"!=\");\n System.out.println(\"!= -->Symbol \");\n break;\n case (\"==\"):\n Tokens.add(\"==\");\n System.out.println(\"== -->Symbol \");\n break;\n\n default:\n String c = output2[j][i];\n\n char ch[] = c.toCharArray();\n\n if (Character.isDigit(ch[0])) {\n Tokens.add(\"Integer Lateral\");\n System.out.println(output2[j][i] + \" --> Integer Lateral \");\n } else if (Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } else if (c.matches(\"\") && Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } // else if(c.contains(\"=\"))\n // {\n // // symbols.contains(Character.toString(code.charAt(i)))\n // System.out.println(output[i] + \" --> Symbol \");\n // }\n else {\n System.out.println(output2[j][i] + \" --> Invalid Token \");\n }\n break;\n }\n }\n }\n\n\n }", "int getCode();", "int getCode();", "int getCode();", "public void parsePseudocode() {\n\t\tputTokens();\n\t\tsetTokenLength();\n\t\ttokenize();\n\t\tdataToJS();\n\t}", "public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}", "public String getCode();", "public String getCode();", "private void generateGraphCode() {\n StringBuilder finalCode = new StringBuilder(\"digraph G{\\n\");\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n finalCode.append(generateSubGraphCode(workingPanel.getConnections(), idx));\n }\n finalCode.append(\"\\n}\");\n JFrame generatedCodeFrame = new JFrame(\"Code Generator\");\n JTextArea codeDisplay = new JTextArea();\n generatedCodeFrame.add(codeDisplay);\n codeDisplay.append(finalCode.toString());\n generatedCodeFrame.setSize(400, 700);\n generatedCodeFrame.setVisible(true);\n }", "public void mo3795b(String str) {\n float f;\n if (str == null || str.length() == 0) {\n this.f1432G = 0.0f;\n return;\n }\n int i = -1;\n int length = str.length();\n int indexOf = str.indexOf(44);\n int i2 = 0;\n if (indexOf > 0 && indexOf < length - 1) {\n String substring = str.substring(0, indexOf);\n if (substring.equalsIgnoreCase(QLog.TAG_REPORTLEVEL_COLORUSER)) {\n i = 0;\n } else if (substring.equalsIgnoreCase(\"H\")) {\n i = 1;\n }\n i2 = indexOf + 1;\n }\n int indexOf2 = str.indexOf(58);\n if (indexOf2 < 0 || indexOf2 >= length - 1) {\n String substring2 = str.substring(i2);\n if (substring2.length() > 0) {\n try {\n f = Float.parseFloat(substring2);\n } catch (NumberFormatException unused) {\n }\n }\n f = 0.0f;\n } else {\n String substring3 = str.substring(i2, indexOf2);\n String substring4 = str.substring(indexOf2 + 1);\n if (substring3.length() > 0 && substring4.length() > 0) {\n try {\n float parseFloat = Float.parseFloat(substring3);\n float parseFloat2 = Float.parseFloat(substring4);\n f = (parseFloat <= 0.0f || parseFloat2 <= 0.0f) ? 0.0f : i == 1 ? Math.abs(parseFloat2 / parseFloat) : Math.abs(parseFloat / parseFloat2);\n } catch (NumberFormatException unused2) {\n }\n }\n f = 0.0f;\n }\n if (f > 0.0f) {\n this.f1432G = f;\n this.f1433H = i;\n }\n }", "void parseQrCode(String qrCodeData);", "Value getInterpretation();", "boolean hasRecode();", "public abstract void mo2141b(Typeface typeface, boolean z);", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n byteArray0[0] = (byte)60;\n byteArray0[1] = (byte)82;\n byte byte0 = (byte) (-73);\n byteArray0[2] = (byte) (-73);\n byteArray0[3] = (byte)86;\n defaultNucleotideCodec0.iterator(byteArray0);\n byteArray0[4] = (byte)8;\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.decode(byteArray0, 3555L);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // index 3555 corresponds to encodedIndex 1781 encodedglyph length is 9\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec\", e);\n }\n }", "public String decoder(int[] Instruction) {\n\t\t\tString Information;\r\n\t\t\tInformation=\"The Instruction is:\";\r\n\t\t\tInformation=Information+\"Opcode:\";\r\n\t\t\tint[] Opcode=new int[6];\r\n\t\t\tint[] R=new int[2];\r\n\t\t\tint[] IX=new int[2];\r\n\t\t\tint[] Rx=new int[2];\r\n\t\t\tint[] Ry=new int[2];\r\n\t\t\tint[] Count=new int[4];\r\n\t\t\tint[] DevId=new int[5];\r\n\t\t\tint I;\r\n\t\t\tint[] Address=new int[5];\r\n\t\t\t\r\n\t\t\t//Parse out the Opcode, Register, IX, I, and Address from the instruction word\r\n\t\t\tfor(int i=0;i<6;i++) {\r\n\t\t\t\tOpcode[i]=Instruction[i];\r\n\t\t\t\tInformation=Information+Instruction[i];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" R:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tR[i]=Instruction[i+6];\r\n\t\t\t\tInformation=Information+Instruction[i+6];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" IX:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tIX[i]=Instruction[i+8];\r\n\t\t\t\tInformation=Information+Instruction[i+8];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Address:\";\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\tAddress[i]=Instruction[i+11];\r\n\t\t\t\tInformation=Information+Instruction[i+11];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Rx:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tRx[i]=Instruction[i+6];\r\n\t\t\t\tInformation=Information+Instruction[i+6];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" Ry:\";\r\n\t\t\tfor(int i=0;i<2;i++) {\r\n\t\t\t\tRy[i]=Instruction[i+8];\r\n\t\t\t\tInformation=Information+Instruction[i+8];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" AL:\";\r\n\t\t\tint decAL = Instruction[8];\r\n\t\t\tInformation=Information+Instruction[8];\r\n\t\t\tInformation=Information+\" LR:\";\r\n\t\t\tint decLR = Instruction[9];\r\n\t\t\tInformation=Information+Instruction[9];\r\n\t\t\tInformation=Information+\" Count:\";\r\n\t\t\tfor(int i=0;i<4;i++) {\r\n\t\t\t\tCount[i]=Instruction[i+12];\r\n\t\t\t\tInformation=Information+Instruction[i+12];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" DevId:\";\r\n\t\t\tfor(int i=0;i<5;i++) {\r\n\t\t\t\tDevId[i]=Instruction[i+11];\r\n\t\t\t\tInformation=Information+Instruction[i+11];\r\n\t\t\t}\r\n\t\t\tInformation=Information+\" DevId:\";\r\n\t\t\tI=Instruction[10];\r\n\t\t\tInformation=Information+Instruction[10];\r\n\t\t\t\r\n\t\t\tInformation=Information+\"\\n\";\r\n\t\t\t\r\n\t\t\t//Convert parsed values to easier to user INTEGER value (base 10)\r\n\t\t\tint decOpcode=Binary_to_dec(Opcode);\r\n\t\t\tint decR=Binary_to_dec(R);\r\n\t\t\tint decIX=Binary_to_dec(IX);\r\n\t\t\tint decAddress=Binary_to_dec(Address);\r\n\t\t\tint decRx=Binary_to_dec(Rx);\r\n\t\t\tint decRy=Binary_to_dec(Ry);\r\n\t\t\tint decCount=Binary_to_dec(Count);\r\n\t\t\tint decDevId=Binary_to_dec(DevId);\r\n\t\t\t\r\n\t\t\t//Using switch statement to determine which instruction to run\r\n\t\t\t//Opcodes in the document are in BASE 8!!!\r\n\t\t\t//Note that the opcode is switched using its BASE 10 VALUE!\r\n\t\t\tswitch (decOpcode) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tInformation=Information+LDR(decR,decIX,I,decAddress);\r\n\t\t\t\t\t//fault diagnose\r\n\t\t\t\t\t//information report\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tInformation=Information+STR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tInformation=Information+LDA(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tInformation=Information+AMR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tInformation=Information+SMR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tInformation=Information+AIR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tInformation=Information+SIR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tInformation=Information+JZ(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 9:\r\n\t\t\t\t\tInformation=Information+JNE(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tInformation=Information+JCC(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 11:\r\n\t\t\t\t\tInformation=Information+JMA(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 12:\r\n\t\t\t\t\tInformation=Information+JSR(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 13:\r\n\t\t\t\t\tInformation=Information+RFS(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 14:\r\n\t\t\t\t\tInformation=Information+SOB(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 15:\r\n\t\t\t\t\tInformation=Information+JGE(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 16:\r\n\t\t\t\t\tInformation=Information+MLT(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 17:\r\n\t\t\t\t\tInformation=Information+DVD(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 18:\r\n\t\t\t\t\tInformation=Information+TRR(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 19:\r\n\t\t\t\t\tInformation=Information+AND(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 20:\r\n\t\t\t\t\tInformation=Information+ORR(decRx,decRy);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 21:\r\n\t\t\t\t\tInformation=Information+NOT(decRx);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 25:\r\n\t\t\t\t\tInformation=Information+SRC(decR,decCount, decLR, decAL);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 26:\r\n\t\t\t\t\tInformation=Information+RRC(decR,decCount, decLR, decAL);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 33:\r\n\t\t\t\t\tInformation=Information+LDX(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 34:\r\n\t\t\t\t\tInformation=Information+STX(decR,decIX,I,decAddress);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 49:\r\n\t\t\t\t\tInformation=Information+IN(decR,decDevId);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 50:\r\n\t\t\t\t\tInformation=Information+OUT(decR,decDevId);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 51:\r\n\t\t\t\t\tInformation=Information+CHK(decR,decDevId);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tInformation=Information+\"Halted.\\n\";\r\n\t\t \t\t\t//When it halts Return PC to the beginning of program memory\r\n\t\t \t\t\tthis.PC.Insert((new int[] {0,0,0,0,0,0,0,0,0,1,1,0}), 0);\r\n\t\t \t\t\tisRunning = false;\r\n\t\t \t\t\t//do nothing;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn Information;\r\n\t\t\r\n\t\t}", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public CodePosition getCodePosition ();", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }" ]
[ "0.6477305", "0.58739954", "0.5835916", "0.58337265", "0.5685895", "0.5594156", "0.55463827", "0.55311245", "0.55219424", "0.54714864", "0.5451459", "0.5418756", "0.5388303", "0.53401864", "0.5328756", "0.5280227", "0.52793205", "0.5233888", "0.5232678", "0.52314854", "0.52309674", "0.5211329", "0.52072215", "0.5191128", "0.518644", "0.51830286", "0.51790804", "0.5176821", "0.5165883", "0.5159091", "0.51507217", "0.51384735", "0.5132322", "0.51315296", "0.51280105", "0.5123902", "0.5123902", "0.5123902", "0.5123902", "0.5123902", "0.51189315", "0.5096924", "0.50866526", "0.50843316", "0.50827956", "0.50586313", "0.50586313", "0.50468105", "0.504556", "0.50251395", "0.5015343", "0.5010255", "0.5002103", "0.4967855", "0.49604866", "0.4958684", "0.4957661", "0.49565968", "0.49519512", "0.4948385", "0.49446583", "0.49430788", "0.49302936", "0.49191475", "0.49062672", "0.49028286", "0.49016878", "0.48822162", "0.4864563", "0.48620936", "0.48584723", "0.4851144", "0.4847543", "0.48417953", "0.48417103", "0.4839166", "0.4833871", "0.48331565", "0.48309398", "0.48300514", "0.48267677", "0.48266944", "0.48255405", "0.48214936", "0.48214936", "0.48214936", "0.4809774", "0.48082083", "0.48064727", "0.48064727", "0.4794289", "0.4776325", "0.4773785", "0.4770245", "0.47656748", "0.4762441", "0.4761418", "0.47555605", "0.47537932", "0.47535118", "0.47489598" ]
0.0
-1
C++: bool cv::GraphicalCodeDetector::detect(Mat img, Mat& points)
private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "DetectionResult getObjInImage(Mat image);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "boolean detect(Point p, MapLayer layer);", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public List<Result> recognize(IplImage image);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, ScreenOrientation.LANDSCAPE);\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "void process(Mat image);", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray, ScreenOrientation orientation) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, orientation);\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public void findKeyPoints(){\n Mat descriptorFrame = new Mat();\n MatOfKeyPoint keyPointFrame = new MatOfKeyPoint();\n\n mDetector.detect(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame);\n mExtractor.compute(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame, descriptorFrame);\n\n /* matches the keypoints of incoming frame with the key points of template */\n MatOfDMatch matches = new MatOfDMatch();\n\n /* if descriptorFrame.cols()==0, mMatcher.match will cause exception */\n if(descriptorFrame.cols()==0){\n lostTrack();\n return;\n }else{\n mMatcher.match(mDescriptor, descriptorFrame, matches);\n mLostTrackCounter = 0;\n mRectBorder = new Scalar(150,200,150);\n }\n\n /* check if pattern exist by checking the sume of DMatch.distance */\n DMatch dm[] = matches.toArray();\n\n /* pattern found. go through matofdmatch again, find all the key points whose distance is lower than threshold */\n /* which, in theory, should mean that these points belong to the pattern */\n KeyPoint kp[] = keyPointFrame.toArray();\n List<Point> frameKp = new ArrayList<>();\n List<KeyPoint> kpNew = new ArrayList<>();\n List<Point3> kpTemplate = new ArrayList<>();\n\n /* form new points to monitor */\n double xTally = 0,\n yTally = 0,\n counter = 0;\n\n /* find the average point to monitor */\n\n for(int i = 0; i<dm.length;i++){\n if(dm[i].distance<800&&dm[i].distance>200){\n kpNew.add(new KeyPoint((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop, kp[dm[i].trainIdx].size));\n frameKp.add(new Point((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop));\n Point3 newPoint3 = new Point3(mArrayListTemplateKP.get(dm[i].queryIdx).x-90,mArrayListTemplateKP.get(dm[i].queryIdx).y-70,0);\n kpTemplate.add(newPoint3);\n\n xTally += kp[dm[i].trainIdx].pt.x + (double)mScanLeft;\n yTally += kp[dm[i].trainIdx].pt.y + (double)mScanTop;\n counter += 1;\n }\n }\n\n if(counter>2){\n mKpMat.fromList(kpNew);\n mRefCoord.fromList(kpTemplate);\n mFrameKP.fromList(frameKp);\n\n mScanCenter = new Point(xTally/counter,yTally/counter);\n }else{\n lostTrack();\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n tvShutter.setBackground(ContextCompat.getDrawable(getApplicationContext(),R.drawable.shutter_active));\n }\n });\n\n adjustROI(mScanCenter, mDetectionBoxSize);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "private void faceDetection(){\n\n String haarPath = resToFile(R.raw.haarcascade_frontalface_default, \"haarcascade_frontalface_default.xml\");\n String testPicPath = resToFile(R.drawable.test_me, \"test_me.jpg\");\n\n CascadeClassifier faceDetector = new CascadeClassifier();\n Mat image = imread(testPicPath);\n boolean isEmpty = image.empty();\n\n faceDetector = new CascadeClassifier(haarPath);\n if(faceDetector.empty())\n {\n Log.v(\"MyActivity\",\"--(!)Error loading A\\n\");\n return;\n }\n else\n {\n Log.v(\"MyActivity\", \"Loaded cascade classifier from \" + haarPath);\n }\n\n //My Code\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n for (Rect rect : faceDetections.toArray()) {\n Imgproc.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n new Scalar(0, 255, 0));\n// Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n// new Scalar(0, 255, 0));\n }\n\n Bitmap bm = Bitmap.createBitmap(image.cols(), image.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(image, bm);\n\n ImageView imageView = (ImageView) findViewById(R.id.imageView);\n imageView.setImageBitmap(bm);\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "public void process(String fname, String imgpath) {\n\t\tMat img = Highgui.imread(fname, 0);\n\n\t\tMat smallerImg = new Mat();\n\t\tdouble aspect_ratio = img.cols() * 1.0 / img.rows();\n\n\t\tint size = 1024;\n\t\tImgproc.resize(img, smallerImg, new Size(size, size / aspect_ratio), 0,\n\t\t\t\t0, 0);\n\n\t\tMat thresholdImg = new Mat();\n\t\tImgproc.threshold(smallerImg, thresholdImg, 90, 255,\n\t\t\t\tImgproc.THRESH_BINARY_INV);\n\n\t\timshow(thresholdImg, \"Thresholded Image\");\n\n\t\tMat element = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,\n\t\t\t\tnew Size(3, 3));\n\t\tImgproc.dilate(thresholdImg, thresholdImg, element);\n\n\t\tList<MatOfPoint> contourList = new ArrayList<MatOfPoint>();\n\n\t\tMat hierarchy = new Mat();\n\t\tMat tempImg = new Mat();\n\t\tthresholdImg.copyTo(tempImg);\n\n\t\tMat edges = new Mat();\n\t\tImgproc.Canny(tempImg, edges, 55, 200);\n\n\t\tImgproc.findContours(tempImg, contourList, hierarchy,\n\t\t\t\tImgproc.RETR_CCOMP, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\tSystem.out.println(\"Contours: \" + contourList.size());\n\n\t\tScalar color = new Scalar(255, 0, 255);\n\n\t\tList<List<Integer>> topLevelList = new ArrayList<List<Integer>>();\n\n\t\tfor (int i = 0; i < contourList.size(); i++) {\n\t\t\tdouble vals[] = hierarchy.get(0, i);\n\n\t\t\tif ((int) vals[PARENT] < 0) {\n\t\t\t\tMat c = contourList.get(i);\n\t\t\t\tif (Imgproc.contourArea(c) > 10) {\n\t\t\t\t\tList<Integer> obj = new ArrayList<Integer>();\n\t\t\t\t\tobj.add(i);\n\n\t\t\t\t\tint ptr = (int) vals[CHILD];\n\t\t\t\t\twhile (ptr != -1) {\n\t\t\t\t\t\tobj.add(ptr);\n\t\t\t\t\t\tptr = (int) hierarchy.get(0, ptr)[NEXT];\n\t\t\t\t\t}\n\t\t\t\t\ttopLevelList.add(obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMat drawn = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tfor (Integer i : obj) {\n\t\t\t\tImgproc.drawContours(drawn, contourList, i, color);\n\t\t\t}\n\t\t}\n\t\timshow(drawn, \"Contours\");\n\n\t\tList<Rect> rectangles = new ArrayList<Rect>();\n\t\tList<String> keys = new ArrayList<String>();\n\n\t\tMat houghImg = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tMatOfPoint outline = contourList.get(obj.get(0));\n\t\t\tRect r = Imgproc.boundingRect(outline);\n\t\t\tMat raw = Mat.zeros(r.size(), CvType.CV_8UC3);\n\n\t\t\traw = thresholdImg.submat(r);\n\n\t\t\tMat lines = new Mat();\n\t\t\tImgproc.HoughLinesP(raw, lines, 2, Math.PI / 4, 30);\n\n\t\t\tMat hough = houghImg.submat(r);\n\t\t\tList<Double> angles = new ArrayList<Double>();\n\t\t\tList<Double> xintercepts = new ArrayList<Double>();\n\t\t\tList<Double> yintercepts = new ArrayList<Double>();\n\t\t\tList<Double> lengths = new ArrayList<Double>();\n\n\t\t\tfor (int i = 0; i < lines.cols(); i++) {\n\t\t\t\tdouble val[] = lines.get(0, i);\n\n\t\t\t\tint dy = (int) (val[1] - val[3]);\n\t\t\t\tint dx = (int) (val[0] - val[2]);\n\t\t\t\tdouble len = Math.sqrt(dy * dy + dx * dx);\n\n\t\t\t\tdouble percent = 0.0;\n\t\t\t\tdouble divisor = 0;\n\t\t\t\tdouble rad;\n\t\t\t\tdouble yintercept;\n\t\t\t\tdouble xintercept;\n\n\t\t\t\tif (dy == 0) {\n\t\t\t\t\tdivisor = r.width;\n\t\t\t\t\tyintercept = val[1] / r.height; // y-intercept in %\n\t\t\t\t\txintercept = Math.min(val[0], val[2]) / r.width; // x-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\trad = 0;\n\t\t\t\t} else if (dx == 0) {\n\t\t\t\t\tdivisor = r.height;\n\t\t\t\t\tyintercept = Math.min(val[1], val[3]) / r.height; // y-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\txintercept = val[0] / r.width; // x-intercept in %\n\t\t\t\t\trad = Double.NaN;\n\t\t\t\t} else {\n\t\t\t\t\trad = Math.atan2(dy, dx);\n\t\t\t\t\t// This is going to be a diagonal at n * pi / 4 because of\n\t\t\t\t\t// magic\n\t\t\t\t\tdivisor = Math\n\t\t\t\t\t\t\t.sqrt(r.width * r.width + r.height * r.height);\n\t\t\t\t\tyintercept = (val[1] - dy * val[0] / dx) / r.height;\n\t\t\t\t\txintercept = (val[0] - dx * val[1] / dy) / r.width;\n\t\t\t\t}\n\t\t\t\tpercent = Math.abs(len / divisor);\n\n\t\t\t\tif (percent > 0.333) {\n\t\t\t\t\tangles.add(rad);\n\t\t\t\t\tyintercepts.add(yintercept);\n\t\t\t\t\txintercepts.add(xintercept);\n\t\t\t\t\tlengths.add(percent);\n\t\t\t\t\tCore.line(hough, new Point(val[0], val[1]), new Point(\n\t\t\t\t\t\t\tval[2], val[3]), new Scalar(255, 0, 255), 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean flags[] = setFlags(angles, lengths, yintercepts,\n\t\t\t\t\txintercepts);\n\t\t\tString key = match(flags);\n\t\t\tfor (int i = 0; i < flags.length; i++) {\n\t\t\t\tif (flags[i]) {\n\t\t\t\t\tdrawFlag(hough, i);\n\t\t\t\t}\n\t\t\t}\n\t\t\trectangles.add(r);\n\t\t\tkeys.add(key);\n\n\t\t\timshow(hough, \"Symbol_HOUGH\");\n\t\t\timshow(raw, \"Symbol_RAW\");\n\t\t}\n\n\t\tif (keys.size() > 0) {\n\t\t\tBaselineStructureTree bst = constructFormula(keys, rectangles);\n\t\t\tif (bst != null) {\n\t\t\t\tSystem.out.println(bst.interpretLaTeX());\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Could not recognize image\");\n\t\t}\n\t\timshow(houghImg, \"Hough transformed image\");\n\t\twriteToFile(houghImg, imgpath);\n\t\timshow(thresholdImg, \"post-processed image\");\n\t}", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public Mat cameraFrame(Mat mat) {\n frame.empty(); hsv.empty(); hsv2.empty(); hierarchy.empty(); contours.clear();\n //Converts the RGB frame to the HSV frame\n Imgproc.cvtColor(mat, hsv, Imgproc.COLOR_BGR2HSV);\n // Blur image\n //Imgproc.medianBlur(frame, frame, 9);\n //Color ranges for in the Workshop\n //Core.inRange(hsv, new Scalar(55, 40, 125), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(45, 100, 100), new Scalar(70, 200, 200), frame);\n //Color ranges for in the PAST Foundation\n if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000 && thresholSet < 5) {\n oldMillis = System.currentTimeMillis();\n thresholSet++;\n } else if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000){\n oldMillis = System.currentTimeMillis();\n thresholSet = 0;\n }\n //Blurs the black and white image to eliminate all noise\n //Imgproc.bilateralFilter(hsv, hsv, 5, 200, 200);\n hsv.copyTo(hsv2);\n Imgproc.bilateralFilter(hsv, hsv2, 3, 10, 10);\n Imgproc.medianBlur(hsv, hsv, 3);\n Mat element = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(5, 5));\n Imgproc.erode(hsv, hsv, element);\n Imgproc.dilate(hsv, hsv, element);\n Core.inRange(hsv, new Scalar(45, 100, 150), new Scalar(70, 255, 255), frame);\n\n //System.out.println(thresholSet);\n //Core.inRange(hsv, new Scalar(48, 152, 122), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(46, 112, 100), new Scalar(70, 255, 255), frame);\n //Bilatersl FIltering\n //mat.copyTo(biMat);\n //Copies the black and white image to a new frame to prevent messing up the original\n frame.copyTo(contourFrame);\n //Finds the contours in the thresholded frame\n Imgproc.findContours(contourFrame, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n //Draws the contours found on the original camera feed\n Imgproc.drawContours(mat, contours, -2, new Scalar(0, 0, 255), 5, 8, hierarchy, Imgproc.INTER_MAX, offset);\n //Draws circle at the center of the feed\n Imgproc.circle(mat, new Point((mat.size().width) / 2, (mat.size().height) / 2), 5, new Scalar(255, 255, 0), 15, Imgproc.LINE_8, 0);\n try {\n //Creates the max variable\n int max = 0;\n //Sets up loop to go through all contuors\n for (int a=0;a<contours.size();a++){\n //Gets the area of all of the contours\n double s2 = Imgproc.contourArea(contours.get(a));\n //Checks the area against the other areas of the contours to find out which is largest\n if (s2 > Imgproc.contourArea(contours.get(max))) {\n //Sets largest contour equal to max variable\n max = a;\n }\n }\n\n try{\n //Gets the minimum area vertical(non titlted) rectangle that outlines the contour\n Rect place = Imgproc.boundingRect(contours.get(max));\n //Creates variable for center point\n Point center = new Point();\n //Sets variale fpr screen center so now we adjust the X and Y axis\n Point screenCenter = new Point();\n //Creates top left point variable\n Point topleft = place.tl();\n //Cerates bottom right point variable\n Point bottomright = place.br();\n //Finds the width of rectangle\n double width = (bottomright.x - topleft.x);\n if (width < 90){\n //Tells Rio to move further away during Targeting modes\n status = 1;\n }\n else if (width > 110){\n // Tells Rio to move robot closer during Targeting modes\n status = -1;\n }\n else{\n //Tell Rio not to move robot during Targeting modes\n status = 0;\n }\n //Finding the middle of the countoured area on the screen\n center.x = (topleft.x+bottomright.x)/2;\n center.y = (topleft.y+bottomright.y)/2;\n //Draws the circle at center of contoured object\n Imgproc.circle(mat, center, 5, new Scalar(255, 0, 255), 5, Imgproc.LINE_8, 0);\n //Draws rectangle around the recognized contour\n Imgproc.rectangle(mat, place.tl(), place.br(), new Scalar(255, 0, 0), 10, Imgproc.LINE_8, 0);\n System.out.println(\"X Away: \" + Math.abs((mat.size().width / 2) - center.x));\n System.out.println(\"Y Away: \" + Math.abs((mat.size().height / 2) - center.y));\n }\n catch(Exception e) {\n //This is\n status = 2;\n }\n }\n catch (Exception e) {\n //In case no contours are found\n }\n //Returns the original image with drawn contours and shape identifiers\n return mat;\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "public void determineKings(Mat in)\r\n\t{\r\n\t\tint playSquares = 32;\r\n\t\t\r\n\t\tMat dst = new Mat(in.rows(), in.cols(), in.type());\r\n in.copyTo(dst);\r\n\r\n Imgproc.cvtColor(dst, dst, Imgproc.COLOR_BGR2GRAY); // change to single color\r\n \r\n Mat canny = new Mat();\r\n Imgproc.Canny(dst, canny, 100, 200); // make image a canny image that is only edges; 2,4\r\n // lower threshold values find more edges\r\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n Mat hierarchy = new Mat(); // holds nested contour information\r\n Imgproc.findContours(canny, contours, hierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); // Imgproc.RETR_LIST, TREE\r\n \r\n //draw contour image\r\n Mat mask = new Mat();\r\n mask = Mat.zeros(dst.size(), dst.type());\r\n Imgproc.drawContours(mask, contours, -1, new Scalar(255,255,255), 1, 8, hierarchy, 2, new Point());\r\n Highgui.imwrite(\"contours.jpg\", mask);\r\n\r\n\t\t\r\n\t\tArrayList occupied = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < playSquares; i++)\r\n\t\t{\r\n\t\t\tif (board[i] != 0)\r\n\t\t\t\toccupied.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < contours.size(); i++) // assuming only contours are checker pieces\r\n\t\t{\t\r\n\t\t\t// determine if it should be a king\r\n\t\t\t// use Rect r = Imgproc.boundingRect then find height of it by r.height\r\n\t\t\t\r\n // Get bounding rect of contour\r\n Rect bound = Imgproc.boundingRect(contours.get(i));\r\n \r\n if (bound.height > in.rows() / 8)\r\n\t\t\t{\r\n\t\t\t\t//board[(int) occupied.get(0)]++; // make it a king\r\n\t\t\t\t//occupied.remove(0);\r\n\t\t\t}\r\n\t\t}\r\n \r\n \r\n \r\n // or apply to each region of interest\r\n \r\n /*\t\t\r\n\t\t// keep track of starting row square\r\n\t\tint parity = 0; // 0 is even, 1 is odd, tied to row number\r\n\t\tint count = 0; // row square\r\n\t\tint rowNum = 0; // row number, starting at 0\r\n\t\t\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset = hsegment * 2; // offset for playable board\r\n\t\t\r\n\t\t// For angle of camera\r\n\t\tint dx = 48;\r\n\t\thsegment -= 8;\r\n\t\t\r\n\t\t\r\n\t\t// Go through all playable squares\r\n\t\tfor (int i = 0; i < playSquares; i++)\r\n\t\t{\r\n\t\t\t// change offset depending on the row\r\n\t\t\tif (parity == 0) // playable squares start on immediate left\r\n\t\t\t\toffset = hsegment * 3 + dx;\r\n\t\t\telse // playable squares start on 2nd square from left\r\n\t\t\t\toffset = hsegment * 2 + dx;\r\n\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\r\n\t Imgproc.cvtColor(roi, roi, Imgproc.COLOR_BGR2GRAY); // change to single color\r\n\t \r\n\t Mat canny = new Mat();\r\n\t Imgproc.Canny(roi, canny, 2, 4); // make image a canny image that is only edges; 2,4\r\n\t // lower threshold values find more edges\r\n\t List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t Mat hierarchy = new Mat(); // holds nested contour information\r\n\t Imgproc.findContours(canny, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE); // Imgproc.RETR_LIST, TREE\r\n\t\t\t\r\n\t // Get bounding rect of contour\r\n Rect rect = Imgproc.boundingRect(contours.get(0));\r\n \r\n if (rect.height > in.rows() / 8)\r\n\t\t\t{\r\n\t\t\t\tboard[i]++; // make it a king\r\n\t\t\t}\r\n\t \r\n\t\t\tcount += 2;\r\n\t\t\tif (count == 8)\r\n\t\t\t{\r\n\t\t\t\tparity = ++parity % 2; // change odd or even\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trowNum++;\r\n\t\t\t\thsegment += 1;\r\n\t\t\t\tdx -= 6;\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public void detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)\r\n {\r\n Mat Bbox_mat = Bbox;\r\n Mat confidence_mat = confidence;\r\n detect_0(nativeObj, inputImage.nativeObj, Bbox_mat.nativeObj, confidence_mat.nativeObj);\r\n \r\n return;\r\n }", "public native boolean signatureImage() throws MagickException;", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "private Mat processFrame(Mat frame) {\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n // Forward image through network.\n Mat blob = Dnn.blobFromImage(frame, IN_SCALE_FACTOR,\n new Size(IN_WIDTH, IN_HEIGHT),\n new Scalar(MEAN_VAL, MEAN_VAL, MEAN_VAL), false, false);\n net.setInput(blob);\n Mat detections = net.forward();\n int cols = frame.cols();\n int rows = frame.rows();\n Size cropSize;\n if ((float)cols / rows > WH_RATIO) {\n cropSize = new Size(rows * WH_RATIO, rows);\n } else {\n cropSize = new Size(cols, cols / WH_RATIO);\n }\n int y1 = (int)(rows - cropSize.height) / 2;\n int y2 = (int)(y1 + cropSize.height);\n int x1 = (int)(cols - cropSize.width) / 2;\n int x2 = (int)(x1 + cropSize.width);\n Mat subFrame = frame.submat(y1, y2, x1, x2);\n cols = subFrame.cols();\n rows = subFrame.rows();\n detections = detections.reshape(1, (int)detections.total() / 7);\n for (int i = 0; i < detections.rows(); ++i) {\n double confidence = detections.get(i, 2)[0];\n if (confidence > THRESHOLD) {\n int classId = (int)detections.get(i, 1)[0];\n int xLeftBottom = (int)(detections.get(i, 3)[0] * cols);\n int yLeftBottom = (int)(detections.get(i, 4)[0] * rows);\n int xRightTop = (int)(detections.get(i, 5)[0] * cols);\n int yRightTop = (int)(detections.get(i, 6)[0] * rows);\n // Draw rectangle around detected object.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom),\n new Point(xRightTop, yRightTop),\n new Scalar(0, 255, 0));\n String label = classNames[classId] + \": \" + confidence;\n int[] baseLine = new int[1];\n Size labelSize = Imgproc.getTextSize(label, Core.FONT_HERSHEY_SIMPLEX, 0.5, 1, baseLine);\n // Draw background for label.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom - labelSize.height),\n new Point(xLeftBottom + labelSize.width, yLeftBottom + baseLine[0]),\n new Scalar(255, 255, 255), Core.FILLED);\n // Write class name and confidence.\n Imgproc.putText(subFrame, label, new Point(xLeftBottom, yLeftBottom),\n Core.FONT_HERSHEY_SIMPLEX, 0.5, new Scalar(0, 0, 0));\n }\n }\n\n return frame;\n }", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public void findCaptured(Mat in)\r\n\t{\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset; // offset for playable board\r\n\t\t\r\n\t\tint capSquares = 12; // number of capture squares\r\n\t\tint rowNum = 1; // starting row number for capture squares\r\n\t\tint rightdx = 48;\r\n\t\tint leftdx = 0;\r\n\t\toffset = hsegment;\r\n\t\tint count = 0;\r\n\t\t// keep track of captured squares\r\n\t\t// left: end user, right: system\r\n\t\tfor (int i = 0; i < capSquares; i++)\r\n\t\t{\t\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\tchar color;\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\t\t\t\r\n\t\t\t// get the color\r\n\t\t\tcolor = identifyColor(roi);\r\n\t\t\t\r\n\t\t\tswitch(color)\r\n\t\t\t{\r\n\t\t\t\tcase COLOR_BLUE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 0, 0), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_ORANGE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 128, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(0, 128, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_WHITE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 255, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_BLACK:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcount++;\r\n\t\t\tif (count == 1)\r\n\t\t\t{\r\n\t\t\t\toffset = hsegment * 10 - rightdx;\r\n\t\t\t}\r\n\t\t\telse if (count == 2)\r\n\t\t\t{\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trightdx -= 6;\r\n\t\t\t\tleftdx += 6;\r\n\t\t\t\toffset = hsegment - leftdx;\r\n\t\t\t\trowNum++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n setAllButtonsEnabledStatus(false);\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }", "public static void main(String[] args) {\n ColorDetector colorDetector = new ColorDetector();\n \n // 2. Read input image\n Mat src = OpenCVUtilsJava.loadAndShowOrExit(new File(\"data/boldt.jpg\"), opencv_imgcodecs.IMREAD_COLOR);\n \n // 3. Set the input parameters\n colorDetector.setColorDistanceThreshold(100);\n // here blue sky\n colorDetector.setTargetColor(new ColorRGB(130, 190, 230));\n \n // 4. Process that input image and display the result\n Mat dest = colorDetector.process(src);\n\n // Display\n OpenCVUtilsJava.show(dest, \"result\");\n\n }", "private AugmentedImage detectMarker(Frame frame) {\n for (AugmentedImage augmentedImage : frame.getUpdatedTrackables(AugmentedImage.class)) {\n if (augmentedImage.getTrackingState() == TrackingState.PAUSED || augmentedImage.getTrackingMethod() == AugmentedImage.TrackingMethod.FULL_TRACKING)\n {\n Log.d(\"SCAN_ACTIVITY_DETECT\", String.valueOf(augmentedImage.getIndex()));\n return augmentedImage;\n }\n }\n return null;\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }", "public native boolean isGrayImage() throws MagickException;", "public void detect(View view) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new MainActivity.DetectionTask().execute(inputStream);\n\n // Prevent button click during detecting.\n setAllButtonsEnabledStatus(false);\n }", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "public native boolean getMatte() throws MagickException;", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public String detectObject(Bitmap bitmap) {\n results = classifierObject.recognizeImage(bitmap);\n\n // Toast.makeText(context, results.toString(), Toast.LENGTH_LONG).show();\n return String.valueOf(results.toString());\n }", "public void process(Mat rgbaImage) {\n rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n isFound = true;\n\n }", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "public boolean calculateFocus(Mat img) {\n\t\tImgproc.cvtColor(img, img, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.blur(img, img, BLUR);\n\t\tImgproc.Canny(img, img, EDGE_LOWER_THRESHOLD, EDGE_LOWER_THRESHOLD * EDGE_THRESHOLD_RATIO);\n\t\tint score = Core.countNonZero(img);\n\t\t\n\t\tSystem.out.println(\"[score=\" + score + \", high=\" + bestScore + \", best=\" + bestNetScore + \", low=\" + lowestNetScore + \", direction=\" + direction);\n\t\t\n\t\tif (score == 0)\n\t\t\treturn false;\n\t\t\n\t\tif (lowestNetScore > score || lowestNetScore == 0) {\n\t\t\tlowestNetScore = score;\n\t\t\tif (lowestNetScore < unfocusedScore || unfocusedScore == 0)\n\t\t\t\tunfocusedScore = lowestNetScore;\n\t\t}\n\t\tif (score > bestScore || bestScore == 0) {\n\t\t\tbestScore = score;\n\t\t\tif (bestNetScore < bestScore)\n\t\t\t\tbestNetScore = bestScore;\n\t\t}\n\t\tif (passedPeak && score < bestScore) {\n\t\t\t//if (stepSize != INITIAL_STEP || stepsTaken == Z_RANGE) {\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t//}\n\t\t}\n\t\telse if (bestScore > lowestNetScore * SCORE_PEAK_SIZE && score >= bestNetScore * STRICTNESS /*&& stepSize != INITIAL_STEP*/) {\n\t\t\tif (strideSize <= MINIMUM_STRIDE && score <= bestScore) {\n\t\t\t\tSystem.out.println(\"quick complete\");\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpassedPeak = true;\n\t\t}\n\t\t//else if (stepSize == INITIAL_STEP && stepsTaken == Z_RANGE)\n\t\t//\tpassedPeak = true;\n\t\t/*else if (stepSize <= MINIMUM_STEP && score < bestScore) {\n\t\t\tSystem.out.println(\"quick complete\");\n\t\t\tcalculationComplete();\n\t\t\treturn true;\n\t\t}*/\n\t\treturn false;\n\t}", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public static BufferedImage contornarFace(BufferedImage pImage) {\n System.out.println(\"\\nRunning DetectFaceDemo\");\n\n // Create a face detector from the cascade file in the resources\n // directory.\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n Mat image = new Mat(rows, cols, type);\n\n // Detect faces in the image.\n // MatOfRect is a special container class for Rect\n CascadeClassifier faceDetector = new CascadeClassifier();\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n Rect[] facesArray = faceDetections.toArray();\n for (int i = 0; i < facesArray.length; i++) {\n Core.rectangle(image, facesArray[i].tl(), facesArray[i].br(), new Scalar(200, 200, 200), 3);\n }\n return matTOImg(image);\n\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public void findPattern(){\n List<MatOfPoint> arrContours = new ArrayList<>();\n Mat hierachy = new Mat();\n MatOfPoint2f contour2f = new MatOfPoint2f();\n MatOfPoint2f approxPoly = new MatOfPoint2f();\n Mat transformMatrix;\n Mat warped = new Mat();\n Mat compareTemplateResult = new Mat(4,1,CvType.CV_32FC1);\n\n Imgproc.Canny(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), mEdges, mCanny1, mCanny2);\n Imgproc.findContours(mEdges,arrContours,hierachy,Imgproc.RETR_LIST,Imgproc.CHAIN_APPROX_SIMPLE);\n for(int i = 0; i<arrContours.size(); i++){\n arrContours.get(i).convertTo(contour2f, CvType.CV_32FC2);\n Imgproc.approxPolyDP(contour2f,approxPoly,mPoly,true);\n if(approxPoly.height()==4){\n transformMatrix = Imgproc.getPerspectiveTransform(approxPoly,mTemplateTargetPoints);\n Imgproc.warpPerspective(mGray.submat(mScanTop, mScanBottom, mScanLeft, mScanRight), warped, transformMatrix, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n Imgproc.matchTemplate(warped, mTemplateGray, compareTemplateResult.rowRange(0, 1), Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate90,compareTemplateResult.rowRange(1, 2),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate180,compareTemplateResult.rowRange(2, 3),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped, mTemplate270, compareTemplateResult.rowRange(3, 4), Imgproc.TM_SQDIFF_NORMED);\n\n Core.MinMaxLocResult mmr = Core.minMaxLoc(compareTemplateResult);\n\n if(Double.compare(mmr.minVal,mTemplateThreshold)<0){\n\n /* used to solvepnp */\n List<Point> approxPolyList = approxPoly.toList();\n switch (mmr.minLoc.toString()){\n case \"{0.0, 0.0}\":\n {\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 1.0}\":\n {\n Collections.rotate(approxPolyList,3);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 2.0}\":\n {\n Collections.rotate(approxPolyList,2);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 3.0}\":\n {\n Collections.rotate(approxPolyList,1);\n mFrameBox.fromList(approxPolyList);\n }break;\n default:{\n Log.i(TAG,\"mmr.minLoc out of bound error.\");\n mFrameBox.fromList(approxPolyList);\n }break;\n }\n /* calculate the average center of the box. used to readjust mscancenter later */\n List<Point> approxPolyPts = approxPoly.toList();\n double totalX = 0,\n totalY = 0,\n count = 0;\n for(int j = 0; j<approxPolyPts.size(); j++){\n count++;\n totalX += approxPolyPts.get(j).x+mScanLeft;\n totalY += approxPolyPts.get(j).y+mScanTop;\n }\n mBoxCenter = new Point(totalX/count,totalY/count);\n\n\n /* check if show fill poly */\n if(staticConfig.showPatternMatch){\n Imgproc.fillConvexPoly(mMixed.submat(mScanTop,mScanBottom,mScanLeft,mScanRight),arrContours.get(i),new Scalar(255,155,155,255));\n }\n\n return;\n }\n }\n }\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "void analyze(ImageProxy image, int rotationDegrees);", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public void hello() {\n Mat m = Mat.zeros(100,400, CvType.CV_8UC3);\n Imgproc.putText(m, \"Hello World!\", new Point(30,80), Core.FONT_HERSHEY_SCRIPT_SIMPLEX, 2.2, new Scalar(200,200,0),2);\n\n // convert to bitmap:\n Bitmap bm = Bitmap.createBitmap(m.cols(), m.rows(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m, bm);\n\n ImageView iv = (ImageView) findViewById(R.id.imageView);\n iv.setImageBitmap(bm);\n }", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public static boolean[][] apply(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n boolean[][] output = new boolean[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = true;\r\n } else {\r\n output[x][y] = false;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "public interface Recognition {\n\n /**\n * Recognition class to implement. Should do the image recognition on the image and return the found classes.\n *\n * @param image image to process.\n * @return List of Result objects.\n */\n public List<Result> recognize(IplImage image);\n\n}", "public boolean generateImageFromText();", "public static void findObjects(Mat inputImage, TrackingObject obj,\n\t\t\tList<TrackingObject> objects) {\n\n\t\t// Temp mat, as to not override the input Mat\n\t\tMat image = new Mat();\n\t\tinputImage.copyTo(image);\n\n\t\tList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\tMat hierarchy = new Mat();\n\n\t\t// Find the contours of the image and save them into contours and\n\t\t// hierarchy Where the hierarchy holds the relationship between the\n\t\t// current contour point and the next\n\t\tImgproc.findContours(image, contours, hierarchy, Imgproc.RETR_CCOMP,\n\t\t\t\tImgproc.CHAIN_APPROX_SIMPLE);\n\n\t\tboolean objectFound = false;\n\t\tdouble refArea = 0;\n\t\t// The number of items in the hierarchy is the number of contours\n\t\tif (hierarchy.total() > 0) {\n\n\t\t\tint numObjects = (int) hierarchy.total();\n\n\t\t\tif (numObjects < MAX_NUM_OBJECTS) {\n\t\t\t\t// Go through each contour the hierarchy is a one dimensional\n\t\t\t\t// matrix 1xN where N is the number of contours. each item is\n\t\t\t\t// array of this format [Next, Previous, First_Child, Parent],\n\t\t\t\t// so we only want the next contour\n\t\t\t\tfor (int index = 0; index >= 0\n\t\t\t\t\t\t&& hierarchy.get(index, 0) != null; index = (int) hierarchy\n\t\t\t\t\t\t.get(index, 0)[0]) {\n\n\t\t\t\t\tMoments moment = Imgproc.moments(contours.get(index));\n\n\t\t\t\t\tdouble area = moment.get_m00();\n\n\t\t\t\t\t// if the area is less than 20 px by 20px then it is\n\t\t\t\t\t// probably just noise if the area is the same as the 3/2 of\n\t\t\t\t\t// the image size, probably just a bad filter we only want\n\t\t\t\t\t// the object with the largest area so we safe a reference\n\t\t\t\t\t// area each iteration and compare it to the area in the\n\t\t\t\t\t// next iteration.\n\t\t\t\t\tif (area > MIN_OBJECT_AREA && area < MAX_OBJECT_AREA\n\t\t\t\t\t\t\t&& area > refArea) {\n\t\t\t\t\t\tobj.setX((float) (moment.get_m10() / area));\n\t\t\t\t\t\tobj.setY((float) (moment.get_m01() / area));\n\n\t\t\t\t\t\tobjects.add(obj);\n\t\t\t\t\t\trefArea = area;\n\t\t\t\t\t\tobjectFound = true;\n\n\t\t\t\t\t\tSystem.out.println(\"Object Found at Coordinate (\"\n\t\t\t\t\t\t\t\t+ obj.getX() + \",\" + obj.getY() + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobjectFound = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "static void head(Mat mat) {\n int startcol = 0;\n int endcol = 0;\n\n int whitecount[] = new int[mat.rows()];//Count the number of whites per column\n whitecount[0] = 0;\n int blackcount = 0;\n\n int whitestart = -1;\n int whiteend = -1;\n double values[];\n\n int columncount[] = new int[mat.cols()];//Count the number of whites per column\n\n for(int i = 0; i < mat.cols(); ++i) {\n whitestart = -1;\n whiteend = -1;\n for(int j = 1; j < mat.rows(); ++j) {\n startcol += 1;\n values = mat.get(j, i);\n if(values[0] == 0) {\n whitecount[j] = whitecount[j - 1] + 1;\n if(whitestart == -1) {\n whitestart = j;\n }\n blackcount = 0;\n } else {\n if(blackcount == 0) {\n whiteend = j;\n }\n blackcount += 1;\n if(blackcount > mat.rows() / 10) {\n whitestart = -1;\n }\n }\n }\n if(whitestart != -1 && whiteend != -1 && whitestart < whiteend) {\n columncount[i] = whitecount[whiteend] - whitecount[whitestart];\n }\n }\n\n boolean seen = false;\n boolean bottom = false;\n //top down\n int headindex = 0;\n for(int i = 0; i < mat.cols(); ++i) {\n if(!seen && columncount[i] > 0) {\n seen = true;\n headindex = i;\n Imgproc.line(mat, new Point(i, 0), new Point(i, mat.rows() - 1), new Scalar(127,0), 2);\n break;\n }\n }\n\n int regions[] = new int[mat.cols()];\n\n for(int i = 0; i < mat.cols(); ++i) {\n regions[i] = Utility.regions(mat, i);\n }\n\n\n //bottom up\n int footindex = 0;\n for(int i = mat.cols() - 1; i >= 0; --i) {\n if(regions[i] > 1) {\n footindex = i;\n //get foot index\n Imgproc.line(mat, new Point(i, 0), new Point(i, mat.rows() - 1), new Scalar(127,0), 2);\n break;\n }\n }\n\n int currentcount = 0;\n\n // in between headindex and footindex\n for(int i = headindex; i < footindex; ++i) {\n int thiscount = regions[i];\n // Log.d(\"CurrentCount\", String.valueOf(thiscount) + \" + \" + String.valueOf(currentcount));\n if(thiscount == 3) {\n Imgproc.line(mat, new Point(i, 0), new Point(i, mat.rows() - 1), new Scalar(191,0), 2);\n currentcount = thiscount;\n Log.d(\"RegionCount\", String.valueOf(currentcount));\n break;\n }\n }\n\n // in between headindex and footindex\n for(int i = footindex; i > headindex; --i) {\n int thiscount = regions[i];\n // Log.d(\"CurrentCount\", String.valueOf(thiscount) + \" + \" + String.valueOf(currentcount));\n if(thiscount == 1) {\n Imgproc.line(mat, new Point(i, 0), new Point(i, mat.rows() - 1), new Scalar(191,0), 2);\n break;\n }\n }\n\n\n for(int i = 0; i < mat.rows(); ++i) {\n // Log.d(\"Counter\", String.valueOf(i) + \" rows \" + String.valueOf(columncount[i]));\n double val[] = {127.0};\n mat.put(i, 0, val);\n\n }\n }", "public static ArrayList<Point> invoke(Image img, Point seed)\r\n/* 105: */ {\r\n/* 106: */ try\r\n/* 107: */ {\r\n/* 108:109 */ return (ArrayList)new ConnectedComponentFromSeed().preprocess(new Object[] { img, seed });\r\n/* 109: */ }\r\n/* 110: */ catch (GlobalException e)\r\n/* 111: */ {\r\n/* 112:111 */ e.printStackTrace();\r\n/* 113: */ }\r\n/* 114:112 */ return null;\r\n/* 115: */ }", "private void findContours(Mat input, boolean externalOnly, List<MatOfPoint> contours) {\n Mat hierarchy = new Mat();\n contours.clear();\n int mode;\n if (externalOnly) {\n mode = Imgproc.RETR_EXTERNAL;\n } else {\n mode = Imgproc.RETR_LIST;\n }\n int method = Imgproc.CHAIN_APPROX_SIMPLE;\n Imgproc.findContours(input, contours, hierarchy, mode, method);\n }", "public native boolean hasFrames() throws MagickException;", "public interface ImageSegmentationResultListner {\n void getSegmentationImage(Bitmap bitmap);\n}", "public void findEdgesAndThreshold() {\n\t\tActiveImageConverter.convertToGray16();\n\t\tContrastEnhancer enhancer = new ContrastEnhancer();\n\t\tenhancer.equalize(ActiveImage);\n\t\tActiveImageProcessor = ActiveImage.getProcessor();\n\t\tActiveImageProcessor.findEdges();\n\t\tActiveImageProcessor.sqr(); // turns the gradient into gradient squared\n\t\tActiveImageProcessor.sqr(); // further enhances the good edges\n\t\tenhancer.equalize(ActiveImage);\n\t\tdouble mean = ActiveImage.getStatistics().mean;\n\t\tdouble max = ActiveImage.getStatistics().max;\n\t\tActiveImageProcessor.setThreshold(mean*8,max,ActiveImageProcessor.OVER_UNDER_LUT);\n\t\tif(userInput)\n\t\t{\n\t\t\tIJ.run(ActiveImage,\"Threshold...\",\"\");\n\t\t\tnew WaitForUserDialog(\"OK\").show();\n\t\t\tif (WindowManager.getWindow(\"Threshold\")!= null){\n\t\t\t\tIJ.selectWindow(\"Threshold\");\n\t\t\t\tIJ.run(\"Close\"); \n\t\t\t}\n\t\t}\n\t\tIJ.run(ActiveImage,\"Convert to Mask\",\"\");\n\t\tIJ.run(ActiveImage,\"Skeletonize\",\"\");\n\t\treturn;\n\t}", "public static void main(String[] args) {\n System.load(\"/usr/local/Cellar/opencv/2.4.12/share/OpenCV/java/libopencv_java2412.dylib\");\n new DetectBuilding().run();\n }", "public static void main( String[] args)\r\n\t{\r\n\t\t\r\n\t\tNetworkTable piVals = NetworkTable.getTable(\"piTable\"); \r\n\t\t\r\n\t\tdouble startPro = 0; \r\n\t\tlong startMills = Instant.now().toEpochMilli(); \r\n\t\t//double start = System.currentTimeMillis();\r\n\t\t\r\n\t//\tString address = \"roboRIO-5822-FRC.local\";\r\n\t\t\r\n\t\t\t\t\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\t\r\n\t\tVideoCapture capture = new VideoCapture();\r\n\t\t\r\n\t\t//this link has changed, check with code on the pi right now \r\n\t\tcapture.open(\"http://10.58.22.72/mjpg/video.mjpg\");\r\n\t\t\r\n\t\tMat bgr = new Mat(); \r\n\t\tMat hsvConvert = new Mat(); \r\n\t\tMat hsv = new Mat();\r\n\t\tMatOfPoint test = new MatOfPoint(); \r\n\t\tArrayList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t\tArrayList<MatOfPoint> finalContours = new ArrayList<MatOfPoint>();\r\n\t\tMatOfPoint biggest = null; \r\n\t\tMat mhierarchy = new Mat(); //have no clue why hierarchy is needed. Still need to figure this one out. \r\n\t\tdouble centerX; \r\n\t\tdouble distance;\r\n\t\tdouble [] nums = new double [4]; \r\n\t\tnums = null; \r\n\t\t//int greta = 0; \r\n\t\t\r\n\t\twhile (true) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tstartPro = piVals.getNumber(\"RioTime\",0); \r\n\t\t\tcontours.clear(); \r\n\t\t\tfinalContours.clear(); \r\n\r\n\t\t\tcapture.read(bgr);\r\n\t\t\t//Imgcodecs.imwrite(\"greenCart.jpg\",bgr);\t\r\n\t\t\tImgproc.cvtColor(bgr, hsvConvert, Imgproc.COLOR_BGR2HSV); //using RGB does not work. MUST use BGR. We are still unsure of the reasons. \r\n\t\t\tCore.inRange(hsvConvert, new Scalar (13, 39, 135), new Scalar (92, 118, 255), hsv); //those two Scalar values are the the max and min HSV values respectively. Those were determined in GRIP. \r\n\t\t\tImgproc.findContours(hsv, contours, mhierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); //first enum lets you control things about hierarchy, I chose option with no hierarchy \r\n\r\n\t\t\tint idex=0; \r\n\t\t\tint size = contours.size();\r\n\t\t\t\r\n\t\t\t//changed to a for loop \r\n\t\t\tfor (idex=0; idex < contours.size(); idex++)\r\n\t\t\t{\r\n\t\t\t\ttest = contours.get(idex); \r\n\t\t\t\tif (Imgproc.contourArea(test)>100)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinalContours.add(test); \r\n\t\t\t\t}\r\n\t\t\t\tidex++; \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (finalContours.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnums = findCenterXDistance(finalContours.get(0).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +0+ \": \" + nums[2]);\r\n\t\t\t\tSystem.out.println(\"DISTANCE TO CONTOUR \" +0+ \": \" + (12*nums[3]));\r\n\t\t\t\tpiVals.putNumber(\"Center\", nums[2]);\r\n\t\t\t\tpiVals.putNumber(\"Distance\", (12*nums[3])); \r\n\t\t\t\tpiVals.putNumber(\"Start Time\", startPro); \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t//for (int count = 0; count < finalContours.size(); count++)\r\n\t\t\t//{ \r\n\t\t\t\t\r\n\t\t\t//\tnums = findCenterXDistance(finalContours.get(count).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +count+ \": \" + nums[2]);\r\n\t\t\t//\tSystem.out.println(\"DISTANCE TO CONTOUR \" +count+ \": \" + (12*nums[3]));\r\n\t\t\t//\trobot.Send(rioMillis, true, nums[2], nums[3]); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//}\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public static native int getEdgeDetection(int pin) throws RuntimeException;", "public boolean test(MyList<Point> pixels, Image img)\r\n/* 19: */ {\r\n/* 20:33 */ int volume = 0;\r\n/* 21:35 */ for (MyListNode<Point> n = pixels.getHead(); n != null; n = n.getNext())\r\n/* 22: */ {\r\n/* 23:36 */ Point p = (Point)n.getDatum();\r\n/* 24: */ \r\n/* 25:38 */ int[] val = img.getVXYByte(p.x, p.y);\r\n/* 26:40 */ for (int c = 0; c < val.length; c++) {\r\n/* 27:41 */ volume += img.getXYCByte(p.x, p.y, c);\r\n/* 28: */ }\r\n/* 29: */ }\r\n/* 30:44 */ if (volume < this.threshold) {\r\n/* 31:44 */ return false;\r\n/* 32: */ }\r\n/* 33:45 */ return true;\r\n/* 34: */ }", "@SuppressLint(\"UnsafeExperimentalUsageError\")\n @Override\n public void analyze(@NonNull ImageProxy image_proxy) {\n ArrayList<Recognition> detections = _detector.DetectImage(image_proxy);\n\n // draw the bounding boxes\n _obj_tracker.ObjectTrackerDraw(detections);\n\n image_proxy.close();\n\n }", "public void drawFlag(Mat img, int flag) {\n\t\tPoint p1 = null;\n\t\tPoint p2 = null;\n\n\t\tdouble HALF_WIDTH = img.cols() * 1.0 / 2;\n\t\tdouble HALF_HEIGHT = img.rows() * 1.0 / 2;\n\t\tint size = 3;\n\t\tdouble MIN_VAL = size * 0.5;\n\t\tdouble WIDTH = img.cols() - MIN_VAL;\n\t\tdouble HEIGHT = img.rows() - MIN_VAL;\n\n\t\tswitch (flag) {\n\t\tcase 0:\n\t\t\tp1 = new Point(MIN_VAL, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, MIN_VAL);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tp1 = new Point(WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, MIN_VAL);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tp1 = new Point(MIN_VAL, MIN_VAL);\n\t\t\tp2 = new Point(MIN_VAL, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tp1 = new Point(MIN_VAL, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tp1 = new Point(HALF_WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tp1 = new Point(WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tp1 = new Point(WIDTH, MIN_VAL);\n\t\t\tp2 = new Point(WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tp1 = new Point(MIN_VAL, HALF_HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tp1 = new Point(WIDTH, HALF_HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tp1 = new Point(MIN_VAL, HEIGHT);\n\t\t\tp2 = new Point(MIN_VAL, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tp1 = new Point(MIN_VAL, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tp1 = new Point(HALF_WIDTH, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tp1 = new Point(WIDTH, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HALF_HEIGHT);\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tp1 = new Point(WIDTH, HALF_HEIGHT);\n\t\t\tp2 = new Point(WIDTH, HEIGHT);\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\tp1 = new Point(MIN_VAL, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HEIGHT);\n\t\t\tbreak;\n\t\tcase 15:\n\t\t\tp1 = new Point(WIDTH, HEIGHT);\n\t\t\tp2 = new Point(HALF_WIDTH, HEIGHT);\n\t\t\tbreak;\n\t\t}\n\n\t\tCore.line(img, p1, p2, new Scalar(0, 255, 0), 3);\n\t}", "@Test\n\tpublic void testMatAndImgArraysAreSameShape() throws IOException {\n\t\tMat mat = imread( input, opencv_imgcodecs.IMREAD_GRAYSCALE );\n\t\tif ( mat.empty() )\n\t\t\tfail( \"Couldn't load image: \" + input );\n\n\t\tDataset dataset = getScifio().datasetIO().open( input );\n\t\tRandomAccessibleInterval< ByteType > image =\n\t\t\t\tRealTypeConverters.convert( ( RandomAccessibleInterval< ? extends RealType< ? > > ) dataset.getImgPlus().getImg(), new ByteType() );\n\t\tcheckData( image, mat );\n\n\t}", "public static boolean[][] getMatrizBool(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n boolean[][] output = new boolean[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = true;\r\n } else {\r\n output[x][y] = false;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }" ]
[ "0.80578333", "0.73217016", "0.7240819", "0.7182272", "0.69489336", "0.672047", "0.6660515", "0.656493", "0.6533299", "0.6459625", "0.64315355", "0.6412141", "0.6341902", "0.62804455", "0.6256785", "0.6250945", "0.62403834", "0.6179053", "0.61784005", "0.5987882", "0.59756047", "0.5923845", "0.5902197", "0.58256555", "0.5819203", "0.57969356", "0.57778776", "0.57560235", "0.5743434", "0.57323545", "0.5731938", "0.57239026", "0.57230854", "0.5718373", "0.5717639", "0.57059133", "0.5695296", "0.5684253", "0.56667507", "0.5666577", "0.56258494", "0.5587839", "0.5567316", "0.5547194", "0.5527574", "0.55162746", "0.55129486", "0.55106854", "0.55089337", "0.54959583", "0.5491102", "0.54742426", "0.5472817", "0.54594105", "0.5457771", "0.5448993", "0.5445621", "0.54437274", "0.5436251", "0.54240423", "0.53977966", "0.53652716", "0.5333299", "0.5331491", "0.5325395", "0.53204536", "0.5302712", "0.528864", "0.52845824", "0.52819026", "0.52691346", "0.52403575", "0.52370805", "0.52325726", "0.52272063", "0.5210004", "0.5198114", "0.5175941", "0.51619136", "0.5159276", "0.5143051", "0.51384854", "0.5137955", "0.5133275", "0.51322544", "0.5122949", "0.5114913", "0.51138973", "0.5106406", "0.51001877", "0.5099165", "0.5096152", "0.5092354", "0.509003", "0.50897044", "0.5082352", "0.50761735", "0.5064335", "0.5048079", "0.50454897" ]
0.6995882
4
C++: string cv::GraphicalCodeDetector::decode(Mat img, Mat points, Mat& straight_code = Mat())
private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public Mat beforeDataEncoded(Mat frame);", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native long imdecode_0(long buf_nativeObj, int flags);", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public Mat convertToEdges(Mat img) {\n\n return img;\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "Bitmap mo27481a(String str);", "private Image mat2Image(Mat frame)\r\n {\n MatOfByte buffer = new MatOfByte();\r\n // encode the frame in the buffer\r\n // HighGui.imencode(\".png\", frame, buffer);\r\n Imgcodecs.imencode(\".png\", frame, buffer);\r\n // build and return an Image created from the image encoded in the buffer\r\n return new Image(new ByteArrayInputStream(buffer.toArray()));\r\n }", "String getMapCode();", "public static Mat imdecode(Mat buf, int flags)\n {\n\n Mat retVal = new Mat(imdecode_0(buf.nativeObj, flags));\n\n return retVal;\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public static byte[] decode(byte[] code) throws CorruptedCodeException {\r\n\tboolean end;\r\n\tbyte[] output;\r\n\tbyte m;\r\n\tbyte a;\r\n\tbyte b;\r\n\tbyte c;\r\n\tbyte d;\r\n\tint i;\r\n\tint j;\r\n\tint k;\r\n\tint l;\r\n\r\n\tl = code.length;\r\n\tend = false;\r\n\r\n\tfor (i = 0, j = 0; i < l; i++) {\r\n\t if ((code[i] < 0) || (code[i] >= REVERSE.length)) {\r\n\t\tthrow new CorruptedCodeException(\"Code was not Base64 encoded\");\r\n\t }\r\n\t m = REVERSE[code[i]];\r\n\r\n\t if (m == PAD) {\r\n\t\tif (end) {\r\n\t\t break;\r\n\t\t}\r\n\t\tend = true;\r\n\t\tcontinue;\r\n\t }\r\n\t if (end) {\r\n\t\tthrow new CorruptedCodeException(\r\n\t\t\t\"Second pad character missing!\");\r\n\t }\r\n\t if (m == F) {\r\n\t\tcontinue;\r\n\t }\r\n\t code[j++] = m;\r\n\t}\r\n\tl = j >> 2;\r\n\ti = l * 3;\r\n\tk = j & 3;\r\n\r\n\tif (k == 1) {\r\n\t throw new CorruptedCodeException(\"One character is missing!\");\r\n\t}\r\n\tif (k > 0) {\r\n\t i = (i + k) - 1;\r\n\t}\r\n\toutput = new byte[i];\r\n\r\n\ti = 0;\r\n\tj = 0;\r\n\tb = 0;\r\n\r\n\twhile (l > 0) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t c = code[i++];\r\n\t d = code[i++];\r\n\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t output[j++] = (byte) (((c & 3) << 6) | d);\r\n\t l--;\r\n\t}\r\n\tif (k >= 2) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t}\r\n\tif (k >= 3) {\r\n\t c = code[i++];\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t}\r\n\treturn output;\r\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "DetectionResult getObjInImage(Mat image);", "public boolean generateImageFromText();", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "private Image mat2Image(Mat frame)\n {\n MatOfByte buffer = new MatOfByte();\n // encode the frame in the buffer, according to the PNG format\n Highgui.imencode(\".png\", frame, buffer);\n // build and return an Image created from the image encoded in the\n // buffer\n return new Image(new ByteArrayInputStream(buffer.toArray()));\n }", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "void mo27482a(String str, Bitmap bitmap);", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public String decode(BufferedImage stegoImage){\n // Setup data to be used for decoding\n setupData(stegoImage);\n\n // Check parameter data will allow for successful decoding\n checkData();\n\n // Decode data from the image\n StringBuilder binary = decodeSecretData();\n\n // Convert the data back to text\n String text = getText(binary);\n\n // Return the retrieved text\n return text;\n }", "@Override public void onQRCodeRead(String text, PointF[] points) {\n resultTextView.setText(text);\n pointsOverlayView.setPoints(points);\n }", "void inputToCb(Mat input){\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "public byte[] code();", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "public native double testyolo(String imgfile);", "public static Bitmap decodeBase64(String input) {\r\n byte[] decodedBytes = Base64.decode(input, 0);\r\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\r\n }", "public List<Result> recognize(IplImage image);", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "public static Bitmap decodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public C6992d mo21844d(String str) {\n InputStream e = mo21851e(str);\n if (e == null) {\n PrintStream printStream = System.err;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not find the image \");\n sb.append(str);\n sb.append(\".\");\n printStream.println(sb.toString());\n return null;\n }\n try {\n Bitmap decodeStream = BitmapFactory.decodeStream(e);\n if (decodeStream == null) {\n System.err.println(\"Could not load the image because the bitmap was empty.\");\n return null;\n }\n C6992d dVar = new C6992d(decodeStream);\n dVar.f24755cj = this;\n return dVar;\n } finally {\n try {\n e.close();\n } catch (IOException unused) {\n }\n }\n }", "public native void annotateImage(DrawInfo info);", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "void process(Mat image);", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "private String asciiImage(final boolean target) {\n \t\tfinal String newLine = System.getProperty(\"line.separator\");\n \t\tfinal StringBuilder sb = new StringBuilder();\n \t\tfinal int step = maxContrib / 4;\n \t\tfor (int y = 0; y < CAL_HEIGHT; y++) {\n \t\t\tfor (int x = 0; x < CAL_WIDTH; x++) {\n \t\t\t\tif (contrib[y][x] == null) {\n \t\t\t\t\tsb.append(\" \");\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tfinal int value =\n \t\t\t\t\ttarget ? contrib[y][x].target : contrib[y][x].current;\n \t\t\t\tfinal int index = (value - 1) / step;\n \t\t\t\tsb.append(CAL_ASCII.charAt(index));\n \t\t\t}\n \t\t\tsb.append(newLine);\n \t\t}\n \t\treturn sb.toString();\n \t}", "public static Bitmap decodeBase64(String input)\n {\n byte[] decodedBytes = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\n }", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public native boolean getMatte() throws MagickException;", "public static Bitmap bitmapDecodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "String getImage();", "public Bitmap mo27481a(String str) {\n return null;\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "void inputToCb(Mat input)\n {\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "void inputToCb(Mat input)\n {\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, ScreenOrientation.LANDSCAPE);\n }", "private void generateQRCode(String data) {\n com.google.zxing.Writer writer = new QRCodeWriter();\n String finaldata = Uri.encode(data, \"ISO-8859-1\");\n try {\n BitMatrix bm = writer.encode(finaldata, BarcodeFormat.QR_CODE, 350, 350);\n qrBitmap = Bitmap.createBitmap(350, 350, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < 350; i++) {\n for (int j = 0; j < 350; j++) {\n qrBitmap.setPixel(i, j, bm.get(i, j) ? Color.BLACK : Color.WHITE);\n }\n }\n } catch (WriterException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (qrBitmap != null) {\n qrCodeImg.setImageBitmap(qrBitmap);\n\n }\n }", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "public static Bitmap decodeToBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "void inputToCb(Mat input) {\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "public String decode(String codedMessage) {\n StringBuilder result = new StringBuilder(); //Create a new stringbuilder\n BinaryTree<HuffData> currentTree = huffTree; //Get the Huffman Tree\n for (int i = 0; i < codedMessage.length(); i++) { //Loop through the coded message\n //If the character is a 1, set currentTree to the right subtree\n if(codedMessage.charAt(i) == '1') { \n currentTree = currentTree.getRightSubtree();\n } else { //If the character is a 0, set currentTree to the left subtree\n currentTree = currentTree.getLeftSubtree();\n }\n if(currentTree.isLeaf()) { //Once you hit a leaf\n HuffData theData = currentTree.getData(); //Get the data of the leaf\n result.append(theData.symbol); //Append the symbol to the stringbuilder\n currentTree = huffTree; //Reset the currentTree to be the entire tree\n }\n }\n //Return the string of the stringbuilder\n return result.toString();\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public String detectObject(Bitmap bitmap) {\n results = classifierObject.recognizeImage(bitmap);\n\n // Toast.makeText(context, results.toString(), Toast.LENGTH_LONG).show();\n return String.valueOf(results.toString());\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }" ]
[ "0.8553245", "0.83861536", "0.77505976", "0.7365282", "0.7249394", "0.72484577", "0.72459465", "0.70683956", "0.6363033", "0.63595647", "0.62607306", "0.61042243", "0.55064714", "0.54190224", "0.5418615", "0.54049647", "0.5244553", "0.52348894", "0.5210852", "0.5182964", "0.51511884", "0.5136687", "0.510919", "0.5087888", "0.50760406", "0.5072379", "0.5071142", "0.5064175", "0.5049193", "0.5048814", "0.5043278", "0.5040896", "0.50298834", "0.50195295", "0.49989945", "0.49915123", "0.49846444", "0.4978216", "0.4977905", "0.49721676", "0.49709103", "0.49642888", "0.49579182", "0.49486706", "0.49338675", "0.49319938", "0.49188632", "0.48845622", "0.48830152", "0.48589772", "0.48460937", "0.48304603", "0.4823072", "0.48139954", "0.48046893", "0.48039103", "0.47827435", "0.4776395", "0.4771236", "0.4763424", "0.47614747", "0.47605675", "0.47569016", "0.47556123", "0.47526196", "0.47517207", "0.47424105", "0.47424105", "0.47424105", "0.47424105", "0.47424105", "0.47335762", "0.47334948", "0.47332832", "0.47315422", "0.47309244", "0.47248328", "0.47245988", "0.47192985", "0.47184923", "0.4711719", "0.47091058", "0.4701505", "0.46951863", "0.46916664", "0.46915972", "0.46886322", "0.46886322", "0.46879938", "0.46826413", "0.46600178", "0.46596974", "0.46577317", "0.46547818", "0.46434972", "0.4643244", "0.46371853", "0.463132", "0.46310908", "0.46305013" ]
0.69954586
8
C++: string cv::GraphicalCodeDetector::detectAndDecode(Mat img, Mat& points = Mat(), Mat& straight_code = Mat())
private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "DetectionResult getObjInImage(Mat image);", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "public List<Result> recognize(IplImage image);", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "private static native long imdecode_0(long buf_nativeObj, int flags);", "public Mat beforeDataEncoded(Mat frame);", "public boolean generateImageFromText();", "public native void annotateImage(DrawInfo info);", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "@Override public void onQRCodeRead(String text, PointF[] points) {\n resultTextView.setText(text);\n pointsOverlayView.setPoints(points);\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "public String detectObject(Bitmap bitmap) {\n results = classifierObject.recognizeImage(bitmap);\n\n // Toast.makeText(context, results.toString(), Toast.LENGTH_LONG).show();\n return String.valueOf(results.toString());\n }", "Bitmap mo27481a(String str);", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "void mo27482a(String str, Bitmap bitmap);", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "public static BufferedImage localizarRetangulo(BufferedImage pImage) {\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n\n Mat image = new Mat(rows, cols, type);\n Mat hierarchy = new Mat();\n Mat gray = null;\n Imgproc.cvtColor(image, gray, Imgproc.COLOR_GRAY2BGR);\n Imgproc.Canny(gray, gray, 100, 200, 3, false);\n List<MatOfPoint> contornos = new ArrayList<>();\n\n Imgproc.findContours(gray, contornos, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n /// Draw contours\n Mat drawing = new Mat();\n\n for (int i = 0; i < contornos.size(); i++) {\n Scalar color = new Scalar(200);\n Imgproc.drawContours(drawing, contornos, i, color, 2, 8, hierarchy, 0, new Point());\n }\n return convert(drawing);\n\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, ScreenOrientation.LANDSCAPE);\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public Mat convertToEdges(Mat img) {\n\n return img;\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "private Image mat2Image(Mat frame)\r\n {\n MatOfByte buffer = new MatOfByte();\r\n // encode the frame in the buffer\r\n // HighGui.imencode(\".png\", frame, buffer);\r\n Imgcodecs.imencode(\".png\", frame, buffer);\r\n // build and return an Image created from the image encoded in the buffer\r\n return new Image(new ByteArrayInputStream(buffer.toArray()));\r\n }", "String getMapCode();", "public void hello() {\n Mat m = Mat.zeros(100,400, CvType.CV_8UC3);\n Imgproc.putText(m, \"Hello World!\", new Point(30,80), Core.FONT_HERSHEY_SCRIPT_SIMPLEX, 2.2, new Scalar(200,200,0),2);\n\n // convert to bitmap:\n Bitmap bm = Bitmap.createBitmap(m.cols(), m.rows(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m, bm);\n\n ImageView iv = (ImageView) findViewById(R.id.imageView);\n iv.setImageBitmap(bm);\n }", "void process(Mat image);", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray, ScreenOrientation orientation) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, orientation);\n }", "public native double testyolo(String imgfile);", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "private void performOCR(){\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "private Image mat2Image(Mat frame)\n {\n MatOfByte buffer = new MatOfByte();\n // encode the frame in the buffer, according to the PNG format\n Highgui.imencode(\".png\", frame, buffer);\n // build and return an Image created from the image encoded in the\n // buffer\n return new Image(new ByteArrayInputStream(buffer.toArray()));\n }", "void readText(final Bitmap imageBitmap){\n\t\tif(imageBitmap != null) {\n\t\t\t\n\t\t\tTextRecognizer textRecognizer = new TextRecognizer.Builder(this).build();\n\t\t\t\n\t\t\tif(!textRecognizer.isOperational()) {\n\t\t\t\t// Note: The first time that an app using a Vision API is installed on a\n\t\t\t\t// device, GMS will download a native libraries to the device in order to do detection.\n\t\t\t\t// Usually this completes before the app is run for the first time. But if that\n\t\t\t\t// download has not yet completed, then the above call will not detect any text,\n\t\t\t\t// barcodes, or faces.\n\t\t\t\t// isOperational() can be used to check if the required native libraries are currently\n\t\t\t\t// available. The detectors will automatically become operational once the library\n\t\t\t\t// downloads complete on device.\n\t\t\t\tLog.w(TAG, \"Detector dependencies are not yet available.\");\n\t\t\t\t\n\t\t\t\t// Check for low storage. If there is low storage, the native library will not be\n\t\t\t\t// downloaded, so detection will not become operational.\n\t\t\t\tIntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n\t\t\t\tboolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\t\t\t\t\n\t\t\t\tif (hasLowStorage) {\n\t\t\t\t\tToast.makeText(this,\"Low Storage\", Toast.LENGTH_LONG).show();\n\t\t\t\t\tLog.w(TAG, \"Low Storage\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFrame imageFrame = new Frame.Builder()\n\t\t\t\t\t.setBitmap(imageBitmap)\n\t\t\t\t\t.build();\n\t\t\t\n\t\t\tSparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame);\n\t\t\tdata.setText(\"\");\n\t\t\tfor (int i = 0; i < textBlocks.size(); i++) {\n\t\t\t\tTextBlock textBlock = textBlocks.get(textBlocks.keyAt(i));\n\t\t\t\tPoint[] points = textBlock.getCornerPoints();\n\t\t\t\tLog.i(TAG, textBlock.getValue());\n\t\t\t\tString corner = \"\";\n\t\t\t\tfor(Point point : points){\n\t\t\t\t\tcorner += point.toString();\n\t\t\t\t}\n\t\t\t\t//data.setText(data.getText() + \"\\n\" + corner);\n\t\t\t\tdata.setText(data.getText()+ \"\\n \"+ textBlock.getValue() + \" \\n\" );\n\t\t\t\t// Do something with value\n /*List<? extends Text> textComponents = textBlock.getComponents();\n for(Text currentText : textComponents) {\n // Do your thing here }\n mImageDetails.setText(mImageDetails.getText() + \"\\n\" + currentText);\n }*/\n\t\t\t}\n\t\t}\n\t}", "private void runTextRecognition(Bitmap bitmap) {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionTextDetector detector = FirebaseVision.getInstance().getVisionTextDetector();\n\n detector.detectInImage(image).addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n processTextRecognitionResult(texts);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n e.printStackTrace();\n }\n });\n }", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "public void findKeyPoints(){\n Mat descriptorFrame = new Mat();\n MatOfKeyPoint keyPointFrame = new MatOfKeyPoint();\n\n mDetector.detect(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame);\n mExtractor.compute(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame, descriptorFrame);\n\n /* matches the keypoints of incoming frame with the key points of template */\n MatOfDMatch matches = new MatOfDMatch();\n\n /* if descriptorFrame.cols()==0, mMatcher.match will cause exception */\n if(descriptorFrame.cols()==0){\n lostTrack();\n return;\n }else{\n mMatcher.match(mDescriptor, descriptorFrame, matches);\n mLostTrackCounter = 0;\n mRectBorder = new Scalar(150,200,150);\n }\n\n /* check if pattern exist by checking the sume of DMatch.distance */\n DMatch dm[] = matches.toArray();\n\n /* pattern found. go through matofdmatch again, find all the key points whose distance is lower than threshold */\n /* which, in theory, should mean that these points belong to the pattern */\n KeyPoint kp[] = keyPointFrame.toArray();\n List<Point> frameKp = new ArrayList<>();\n List<KeyPoint> kpNew = new ArrayList<>();\n List<Point3> kpTemplate = new ArrayList<>();\n\n /* form new points to monitor */\n double xTally = 0,\n yTally = 0,\n counter = 0;\n\n /* find the average point to monitor */\n\n for(int i = 0; i<dm.length;i++){\n if(dm[i].distance<800&&dm[i].distance>200){\n kpNew.add(new KeyPoint((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop, kp[dm[i].trainIdx].size));\n frameKp.add(new Point((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop));\n Point3 newPoint3 = new Point3(mArrayListTemplateKP.get(dm[i].queryIdx).x-90,mArrayListTemplateKP.get(dm[i].queryIdx).y-70,0);\n kpTemplate.add(newPoint3);\n\n xTally += kp[dm[i].trainIdx].pt.x + (double)mScanLeft;\n yTally += kp[dm[i].trainIdx].pt.y + (double)mScanTop;\n counter += 1;\n }\n }\n\n if(counter>2){\n mKpMat.fromList(kpNew);\n mRefCoord.fromList(kpTemplate);\n mFrameKP.fromList(frameKp);\n\n mScanCenter = new Point(xTally/counter,yTally/counter);\n }else{\n lostTrack();\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n tvShutter.setBackground(ContextCompat.getDrawable(getApplicationContext(),R.drawable.shutter_active));\n }\n });\n\n adjustROI(mScanCenter, mDetectionBoxSize);\n }", "private Bitmap encodeToQrCode(String text) throws WriterException {\n BitMatrix bitMatrix;\n try {\n bitMatrix = new MultiFormatWriter().encode(\n text,\n BarcodeFormat.DATA_MATRIX.QR_CODE,\n QR_CODE_WIDTH, QR_CODE_WIDTH, null\n );\n\n } catch (IllegalArgumentException Illegalargumentexception) {\n return null;\n }\n int bitMatrixWidth = bitMatrix.getWidth();\n int bitMatrixHeight = bitMatrix.getHeight();\n int[] pixels = new int[bitMatrixWidth * bitMatrixHeight];\n\n for (int y = 0; y < bitMatrixHeight; y++) {\n int offset = y * bitMatrixWidth;\n for (int x = 0; x < bitMatrixWidth; x++) {\n pixels[offset + x] = bitMatrix.get(x, y) ?\n context.getResources().getColor(R.color.qrCodeBlack):context.getResources().getColor(R.color.qrCodeWhite);\n }\n }\n Bitmap bitmap = Bitmap.createBitmap(bitMatrixWidth, bitMatrixHeight, Bitmap.Config.ARGB_4444);\n bitmap.setPixels(pixels, 0, QR_CODE_WIDTH, 0, 0, bitMatrixWidth, bitMatrixHeight);\n return bitmap;\n }", "boolean detect(Point p, MapLayer layer);", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "private void openCVImage(){\n Imgcodecs codec = new Imgcodecs();\n image = codec.imread(currentPhotoPath, Imgcodecs.IMREAD_COLOR);\n }", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "public native boolean getMatte() throws MagickException;", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "public S<T> camImg(int code){\n\t Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\t activity.startActivityForResult(intent, code);\n\t return this;\n\t }", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "public static void main(String[] args) {\n ColorDetector colorDetector = new ColorDetector();\n \n // 2. Read input image\n Mat src = OpenCVUtilsJava.loadAndShowOrExit(new File(\"data/boldt.jpg\"), opencv_imgcodecs.IMREAD_COLOR);\n \n // 3. Set the input parameters\n colorDetector.setColorDistanceThreshold(100);\n // here blue sky\n colorDetector.setTargetColor(new ColorRGB(130, 190, 230));\n \n // 4. Process that input image and display the result\n Mat dest = colorDetector.process(src);\n\n // Display\n OpenCVUtilsJava.show(dest, \"result\");\n\n }", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "String getImage();", "public void findCaptured(Mat in)\r\n\t{\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset; // offset for playable board\r\n\t\t\r\n\t\tint capSquares = 12; // number of capture squares\r\n\t\tint rowNum = 1; // starting row number for capture squares\r\n\t\tint rightdx = 48;\r\n\t\tint leftdx = 0;\r\n\t\toffset = hsegment;\r\n\t\tint count = 0;\r\n\t\t// keep track of captured squares\r\n\t\t// left: end user, right: system\r\n\t\tfor (int i = 0; i < capSquares; i++)\r\n\t\t{\t\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\tchar color;\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\t\t\t\r\n\t\t\t// get the color\r\n\t\t\tcolor = identifyColor(roi);\r\n\t\t\t\r\n\t\t\tswitch(color)\r\n\t\t\t{\r\n\t\t\t\tcase COLOR_BLUE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 0, 0), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_ORANGE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 128, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(0, 128, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_WHITE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 255, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_BLACK:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcount++;\r\n\t\t\tif (count == 1)\r\n\t\t\t{\r\n\t\t\t\toffset = hsegment * 10 - rightdx;\r\n\t\t\t}\r\n\t\t\telse if (count == 2)\r\n\t\t\t{\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trightdx -= 6;\r\n\t\t\t\tleftdx += 6;\r\n\t\t\t\toffset = hsegment - leftdx;\r\n\t\t\t\trowNum++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract String getCvAccession();", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public static Mat imdecode(Mat buf, int flags)\n {\n\n Mat retVal = new Mat(imdecode_0(buf.nativeObj, flags));\n\n return retVal;\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nSystem.out.println(\"Enter the String:\");\r\nString str=sc.nextLine();\r\nString r=getImage(str);\r\n\r\n}", "private static final byte[] xfuzzy_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, -1,\n\t\t\t\t-1, -1, -82, 69, 12, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77,\n\t\t\t\t97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0,\n\t\t\t\t33, -7, 4, 1, 10, 0, 0, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 2,\n\t\t\t\t36, -124, -113, -87, -101, -31, -33, 32, 120, 97, 57, 68, -93,\n\t\t\t\t-54, -26, 90, -24, 49, 84, -59, 116, -100, 88, -99, -102, 25,\n\t\t\t\t30, -19, 36, -103, -97, -89, -62, 117, -119, 51, 5, 0, 59 };\n\t\treturn data;\n\t}", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "private void convertPathToGCode() {\n this.gCode = new ArrayList();\n int length = millingPath.size();\n BL_Pixel previousPixel = null;\n int lastX = 0;\n int lastY = 0;\n for(int i = 0; i < length; i++) {\n BL_Pixel currentPixel = millingPath.get(i);\n if(i == 0) {\n previousPixel = currentPixel;\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n continue;\n } else if( i == length-1) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z );\n continue;\n }\n BL_Pixel nextPixel = millingPath.get(i+1);\n if(previousPixel.z == currentPixel.z && currentPixel.z == nextPixel.z && !(currentPixel.x == borders[1]) && !(currentPixel.x == borders[3])) {\n continue;\n } else if ((currentPixel.x == borders[1]) || (currentPixel.x == borders[3])) {\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if (previousPixel.z == currentPixel.z && currentPixel.z != nextPixel.z){\n makeGCodeXY(currentPixel.x, currentPixel.y);\n } else if(currentPixel.z > previousPixel.z) {\n //first x/y, then z\n makeGCodeXY(currentPixel.x, currentPixel.y);\n makeGCodeZ(currentPixel.z);\n } else if(currentPixel.z < previousPixel.z) {\n //first z, then x/y\n makeGCodeZ(currentPixel.z);\n makeGCodeXY(currentPixel.x, currentPixel.y);\n }\n previousPixel = currentPixel;\n }\n\t\t\n\t\t//this.io.sendData(this.gCode);\n }", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}" ]
[ "0.877276", "0.8131333", "0.80352193", "0.7492125", "0.74088496", "0.7116635", "0.6930333", "0.6806928", "0.66470605", "0.6643304", "0.62884974", "0.6262088", "0.60977507", "0.5984156", "0.57959044", "0.56862336", "0.5515268", "0.54952437", "0.5428663", "0.54211766", "0.5419217", "0.5372086", "0.53627634", "0.53563267", "0.52900356", "0.5284813", "0.5281181", "0.52761024", "0.52745044", "0.52738553", "0.52530944", "0.5250127", "0.52172345", "0.5209456", "0.52047867", "0.51602674", "0.5152987", "0.5149178", "0.51094025", "0.5109308", "0.5096558", "0.5095837", "0.5091491", "0.5082268", "0.5077713", "0.5076776", "0.5073343", "0.50284153", "0.5012563", "0.49871323", "0.49860606", "0.49791935", "0.49698767", "0.49660692", "0.4944303", "0.4934019", "0.4932651", "0.49312267", "0.4922006", "0.49194506", "0.49108365", "0.49021956", "0.48952773", "0.48932573", "0.48842978", "0.48711857", "0.48404264", "0.48159036", "0.4812512", "0.48116595", "0.4804363", "0.48026583", "0.48015925", "0.47936746", "0.47877094", "0.4780032", "0.47730872", "0.4755936", "0.47541782", "0.4747225", "0.47438118", "0.4742873", "0.4734859", "0.47236085", "0.47108293", "0.47047165", "0.4691331", "0.46909234", "0.4688986", "0.46810713", "0.46772265", "0.46577087", "0.465177", "0.46513027", "0.46429652", "0.4632199", "0.46293837", "0.46252298", "0.46225098", "0.4610969" ]
0.7535334
3
C++: bool cv::GraphicalCodeDetector::detectMulti(Mat img, Mat& points)
private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "private void faceDetection(){\n\n String haarPath = resToFile(R.raw.haarcascade_frontalface_default, \"haarcascade_frontalface_default.xml\");\n String testPicPath = resToFile(R.drawable.test_me, \"test_me.jpg\");\n\n CascadeClassifier faceDetector = new CascadeClassifier();\n Mat image = imread(testPicPath);\n boolean isEmpty = image.empty();\n\n faceDetector = new CascadeClassifier(haarPath);\n if(faceDetector.empty())\n {\n Log.v(\"MyActivity\",\"--(!)Error loading A\\n\");\n return;\n }\n else\n {\n Log.v(\"MyActivity\", \"Loaded cascade classifier from \" + haarPath);\n }\n\n //My Code\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n for (Rect rect : faceDetections.toArray()) {\n Imgproc.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n new Scalar(0, 255, 0));\n// Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n// new Scalar(0, 255, 0));\n }\n\n Bitmap bm = Bitmap.createBitmap(image.cols(), image.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(image, bm);\n\n ImageView imageView = (ImageView) findViewById(R.id.imageView);\n imageView.setImageBitmap(bm);\n }", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "DetectionResult getObjInImage(Mat image);", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public List<Result> recognize(IplImage image);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "void process(Mat image);", "public void process(String fname, String imgpath) {\n\t\tMat img = Highgui.imread(fname, 0);\n\n\t\tMat smallerImg = new Mat();\n\t\tdouble aspect_ratio = img.cols() * 1.0 / img.rows();\n\n\t\tint size = 1024;\n\t\tImgproc.resize(img, smallerImg, new Size(size, size / aspect_ratio), 0,\n\t\t\t\t0, 0);\n\n\t\tMat thresholdImg = new Mat();\n\t\tImgproc.threshold(smallerImg, thresholdImg, 90, 255,\n\t\t\t\tImgproc.THRESH_BINARY_INV);\n\n\t\timshow(thresholdImg, \"Thresholded Image\");\n\n\t\tMat element = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS,\n\t\t\t\tnew Size(3, 3));\n\t\tImgproc.dilate(thresholdImg, thresholdImg, element);\n\n\t\tList<MatOfPoint> contourList = new ArrayList<MatOfPoint>();\n\n\t\tMat hierarchy = new Mat();\n\t\tMat tempImg = new Mat();\n\t\tthresholdImg.copyTo(tempImg);\n\n\t\tMat edges = new Mat();\n\t\tImgproc.Canny(tempImg, edges, 55, 200);\n\n\t\tImgproc.findContours(tempImg, contourList, hierarchy,\n\t\t\t\tImgproc.RETR_CCOMP, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\tSystem.out.println(\"Contours: \" + contourList.size());\n\n\t\tScalar color = new Scalar(255, 0, 255);\n\n\t\tList<List<Integer>> topLevelList = new ArrayList<List<Integer>>();\n\n\t\tfor (int i = 0; i < contourList.size(); i++) {\n\t\t\tdouble vals[] = hierarchy.get(0, i);\n\n\t\t\tif ((int) vals[PARENT] < 0) {\n\t\t\t\tMat c = contourList.get(i);\n\t\t\t\tif (Imgproc.contourArea(c) > 10) {\n\t\t\t\t\tList<Integer> obj = new ArrayList<Integer>();\n\t\t\t\t\tobj.add(i);\n\n\t\t\t\t\tint ptr = (int) vals[CHILD];\n\t\t\t\t\twhile (ptr != -1) {\n\t\t\t\t\t\tobj.add(ptr);\n\t\t\t\t\t\tptr = (int) hierarchy.get(0, ptr)[NEXT];\n\t\t\t\t\t}\n\t\t\t\t\ttopLevelList.add(obj);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMat drawn = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tfor (Integer i : obj) {\n\t\t\t\tImgproc.drawContours(drawn, contourList, i, color);\n\t\t\t}\n\t\t}\n\t\timshow(drawn, \"Contours\");\n\n\t\tList<Rect> rectangles = new ArrayList<Rect>();\n\t\tList<String> keys = new ArrayList<String>();\n\n\t\tMat houghImg = Mat.zeros(thresholdImg.size(), CvType.CV_8UC3);\n\n\t\tfor (List<Integer> obj : topLevelList) {\n\t\t\tMatOfPoint outline = contourList.get(obj.get(0));\n\t\t\tRect r = Imgproc.boundingRect(outline);\n\t\t\tMat raw = Mat.zeros(r.size(), CvType.CV_8UC3);\n\n\t\t\traw = thresholdImg.submat(r);\n\n\t\t\tMat lines = new Mat();\n\t\t\tImgproc.HoughLinesP(raw, lines, 2, Math.PI / 4, 30);\n\n\t\t\tMat hough = houghImg.submat(r);\n\t\t\tList<Double> angles = new ArrayList<Double>();\n\t\t\tList<Double> xintercepts = new ArrayList<Double>();\n\t\t\tList<Double> yintercepts = new ArrayList<Double>();\n\t\t\tList<Double> lengths = new ArrayList<Double>();\n\n\t\t\tfor (int i = 0; i < lines.cols(); i++) {\n\t\t\t\tdouble val[] = lines.get(0, i);\n\n\t\t\t\tint dy = (int) (val[1] - val[3]);\n\t\t\t\tint dx = (int) (val[0] - val[2]);\n\t\t\t\tdouble len = Math.sqrt(dy * dy + dx * dx);\n\n\t\t\t\tdouble percent = 0.0;\n\t\t\t\tdouble divisor = 0;\n\t\t\t\tdouble rad;\n\t\t\t\tdouble yintercept;\n\t\t\t\tdouble xintercept;\n\n\t\t\t\tif (dy == 0) {\n\t\t\t\t\tdivisor = r.width;\n\t\t\t\t\tyintercept = val[1] / r.height; // y-intercept in %\n\t\t\t\t\txintercept = Math.min(val[0], val[2]) / r.width; // x-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\trad = 0;\n\t\t\t\t} else if (dx == 0) {\n\t\t\t\t\tdivisor = r.height;\n\t\t\t\t\tyintercept = Math.min(val[1], val[3]) / r.height; // y-intercept\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lower\n\t\t\t\t\txintercept = val[0] / r.width; // x-intercept in %\n\t\t\t\t\trad = Double.NaN;\n\t\t\t\t} else {\n\t\t\t\t\trad = Math.atan2(dy, dx);\n\t\t\t\t\t// This is going to be a diagonal at n * pi / 4 because of\n\t\t\t\t\t// magic\n\t\t\t\t\tdivisor = Math\n\t\t\t\t\t\t\t.sqrt(r.width * r.width + r.height * r.height);\n\t\t\t\t\tyintercept = (val[1] - dy * val[0] / dx) / r.height;\n\t\t\t\t\txintercept = (val[0] - dx * val[1] / dy) / r.width;\n\t\t\t\t}\n\t\t\t\tpercent = Math.abs(len / divisor);\n\n\t\t\t\tif (percent > 0.333) {\n\t\t\t\t\tangles.add(rad);\n\t\t\t\t\tyintercepts.add(yintercept);\n\t\t\t\t\txintercepts.add(xintercept);\n\t\t\t\t\tlengths.add(percent);\n\t\t\t\t\tCore.line(hough, new Point(val[0], val[1]), new Point(\n\t\t\t\t\t\t\tval[2], val[3]), new Scalar(255, 0, 255), 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean flags[] = setFlags(angles, lengths, yintercepts,\n\t\t\t\t\txintercepts);\n\t\t\tString key = match(flags);\n\t\t\tfor (int i = 0; i < flags.length; i++) {\n\t\t\t\tif (flags[i]) {\n\t\t\t\t\tdrawFlag(hough, i);\n\t\t\t\t}\n\t\t\t}\n\t\t\trectangles.add(r);\n\t\t\tkeys.add(key);\n\n\t\t\timshow(hough, \"Symbol_HOUGH\");\n\t\t\timshow(raw, \"Symbol_RAW\");\n\t\t}\n\n\t\tif (keys.size() > 0) {\n\t\t\tBaselineStructureTree bst = constructFormula(keys, rectangles);\n\t\t\tif (bst != null) {\n\t\t\t\tSystem.out.println(bst.interpretLaTeX());\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Could not recognize image\");\n\t\t}\n\t\timshow(houghImg, \"Hough transformed image\");\n\t\twriteToFile(houghImg, imgpath);\n\t\timshow(thresholdImg, \"post-processed image\");\n\t}", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "public Mat cameraFrame(Mat mat) {\n frame.empty(); hsv.empty(); hsv2.empty(); hierarchy.empty(); contours.clear();\n //Converts the RGB frame to the HSV frame\n Imgproc.cvtColor(mat, hsv, Imgproc.COLOR_BGR2HSV);\n // Blur image\n //Imgproc.medianBlur(frame, frame, 9);\n //Color ranges for in the Workshop\n //Core.inRange(hsv, new Scalar(55, 40, 125), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(45, 100, 100), new Scalar(70, 200, 200), frame);\n //Color ranges for in the PAST Foundation\n if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000 && thresholSet < 5) {\n oldMillis = System.currentTimeMillis();\n thresholSet++;\n } else if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000){\n oldMillis = System.currentTimeMillis();\n thresholSet = 0;\n }\n //Blurs the black and white image to eliminate all noise\n //Imgproc.bilateralFilter(hsv, hsv, 5, 200, 200);\n hsv.copyTo(hsv2);\n Imgproc.bilateralFilter(hsv, hsv2, 3, 10, 10);\n Imgproc.medianBlur(hsv, hsv, 3);\n Mat element = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(5, 5));\n Imgproc.erode(hsv, hsv, element);\n Imgproc.dilate(hsv, hsv, element);\n Core.inRange(hsv, new Scalar(45, 100, 150), new Scalar(70, 255, 255), frame);\n\n //System.out.println(thresholSet);\n //Core.inRange(hsv, new Scalar(48, 152, 122), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(46, 112, 100), new Scalar(70, 255, 255), frame);\n //Bilatersl FIltering\n //mat.copyTo(biMat);\n //Copies the black and white image to a new frame to prevent messing up the original\n frame.copyTo(contourFrame);\n //Finds the contours in the thresholded frame\n Imgproc.findContours(contourFrame, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n //Draws the contours found on the original camera feed\n Imgproc.drawContours(mat, contours, -2, new Scalar(0, 0, 255), 5, 8, hierarchy, Imgproc.INTER_MAX, offset);\n //Draws circle at the center of the feed\n Imgproc.circle(mat, new Point((mat.size().width) / 2, (mat.size().height) / 2), 5, new Scalar(255, 255, 0), 15, Imgproc.LINE_8, 0);\n try {\n //Creates the max variable\n int max = 0;\n //Sets up loop to go through all contuors\n for (int a=0;a<contours.size();a++){\n //Gets the area of all of the contours\n double s2 = Imgproc.contourArea(contours.get(a));\n //Checks the area against the other areas of the contours to find out which is largest\n if (s2 > Imgproc.contourArea(contours.get(max))) {\n //Sets largest contour equal to max variable\n max = a;\n }\n }\n\n try{\n //Gets the minimum area vertical(non titlted) rectangle that outlines the contour\n Rect place = Imgproc.boundingRect(contours.get(max));\n //Creates variable for center point\n Point center = new Point();\n //Sets variale fpr screen center so now we adjust the X and Y axis\n Point screenCenter = new Point();\n //Creates top left point variable\n Point topleft = place.tl();\n //Cerates bottom right point variable\n Point bottomright = place.br();\n //Finds the width of rectangle\n double width = (bottomright.x - topleft.x);\n if (width < 90){\n //Tells Rio to move further away during Targeting modes\n status = 1;\n }\n else if (width > 110){\n // Tells Rio to move robot closer during Targeting modes\n status = -1;\n }\n else{\n //Tell Rio not to move robot during Targeting modes\n status = 0;\n }\n //Finding the middle of the countoured area on the screen\n center.x = (topleft.x+bottomright.x)/2;\n center.y = (topleft.y+bottomright.y)/2;\n //Draws the circle at center of contoured object\n Imgproc.circle(mat, center, 5, new Scalar(255, 0, 255), 5, Imgproc.LINE_8, 0);\n //Draws rectangle around the recognized contour\n Imgproc.rectangle(mat, place.tl(), place.br(), new Scalar(255, 0, 0), 10, Imgproc.LINE_8, 0);\n System.out.println(\"X Away: \" + Math.abs((mat.size().width / 2) - center.x));\n System.out.println(\"Y Away: \" + Math.abs((mat.size().height / 2) - center.y));\n }\n catch(Exception e) {\n //This is\n status = 2;\n }\n }\n catch (Exception e) {\n //In case no contours are found\n }\n //Returns the original image with drawn contours and shape identifiers\n return mat;\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "public void findKeyPoints(){\n Mat descriptorFrame = new Mat();\n MatOfKeyPoint keyPointFrame = new MatOfKeyPoint();\n\n mDetector.detect(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame);\n mExtractor.compute(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame, descriptorFrame);\n\n /* matches the keypoints of incoming frame with the key points of template */\n MatOfDMatch matches = new MatOfDMatch();\n\n /* if descriptorFrame.cols()==0, mMatcher.match will cause exception */\n if(descriptorFrame.cols()==0){\n lostTrack();\n return;\n }else{\n mMatcher.match(mDescriptor, descriptorFrame, matches);\n mLostTrackCounter = 0;\n mRectBorder = new Scalar(150,200,150);\n }\n\n /* check if pattern exist by checking the sume of DMatch.distance */\n DMatch dm[] = matches.toArray();\n\n /* pattern found. go through matofdmatch again, find all the key points whose distance is lower than threshold */\n /* which, in theory, should mean that these points belong to the pattern */\n KeyPoint kp[] = keyPointFrame.toArray();\n List<Point> frameKp = new ArrayList<>();\n List<KeyPoint> kpNew = new ArrayList<>();\n List<Point3> kpTemplate = new ArrayList<>();\n\n /* form new points to monitor */\n double xTally = 0,\n yTally = 0,\n counter = 0;\n\n /* find the average point to monitor */\n\n for(int i = 0; i<dm.length;i++){\n if(dm[i].distance<800&&dm[i].distance>200){\n kpNew.add(new KeyPoint((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop, kp[dm[i].trainIdx].size));\n frameKp.add(new Point((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop));\n Point3 newPoint3 = new Point3(mArrayListTemplateKP.get(dm[i].queryIdx).x-90,mArrayListTemplateKP.get(dm[i].queryIdx).y-70,0);\n kpTemplate.add(newPoint3);\n\n xTally += kp[dm[i].trainIdx].pt.x + (double)mScanLeft;\n yTally += kp[dm[i].trainIdx].pt.y + (double)mScanTop;\n counter += 1;\n }\n }\n\n if(counter>2){\n mKpMat.fromList(kpNew);\n mRefCoord.fromList(kpTemplate);\n mFrameKP.fromList(frameKp);\n\n mScanCenter = new Point(xTally/counter,yTally/counter);\n }else{\n lostTrack();\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n tvShutter.setBackground(ContextCompat.getDrawable(getApplicationContext(),R.drawable.shutter_active));\n }\n });\n\n adjustROI(mScanCenter, mDetectionBoxSize);\n }", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "boolean detect(Point p, MapLayer layer);", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public native boolean getMatte() throws MagickException;", "public void findPattern(){\n List<MatOfPoint> arrContours = new ArrayList<>();\n Mat hierachy = new Mat();\n MatOfPoint2f contour2f = new MatOfPoint2f();\n MatOfPoint2f approxPoly = new MatOfPoint2f();\n Mat transformMatrix;\n Mat warped = new Mat();\n Mat compareTemplateResult = new Mat(4,1,CvType.CV_32FC1);\n\n Imgproc.Canny(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), mEdges, mCanny1, mCanny2);\n Imgproc.findContours(mEdges,arrContours,hierachy,Imgproc.RETR_LIST,Imgproc.CHAIN_APPROX_SIMPLE);\n for(int i = 0; i<arrContours.size(); i++){\n arrContours.get(i).convertTo(contour2f, CvType.CV_32FC2);\n Imgproc.approxPolyDP(contour2f,approxPoly,mPoly,true);\n if(approxPoly.height()==4){\n transformMatrix = Imgproc.getPerspectiveTransform(approxPoly,mTemplateTargetPoints);\n Imgproc.warpPerspective(mGray.submat(mScanTop, mScanBottom, mScanLeft, mScanRight), warped, transformMatrix, new Size(staticConfig.templateSize, staticConfig.templateSize));\n\n Imgproc.matchTemplate(warped, mTemplateGray, compareTemplateResult.rowRange(0, 1), Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate90,compareTemplateResult.rowRange(1, 2),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped,mTemplate180,compareTemplateResult.rowRange(2, 3),Imgproc.TM_SQDIFF_NORMED);\n Imgproc.matchTemplate(warped, mTemplate270, compareTemplateResult.rowRange(3, 4), Imgproc.TM_SQDIFF_NORMED);\n\n Core.MinMaxLocResult mmr = Core.minMaxLoc(compareTemplateResult);\n\n if(Double.compare(mmr.minVal,mTemplateThreshold)<0){\n\n /* used to solvepnp */\n List<Point> approxPolyList = approxPoly.toList();\n switch (mmr.minLoc.toString()){\n case \"{0.0, 0.0}\":\n {\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 1.0}\":\n {\n Collections.rotate(approxPolyList,3);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 2.0}\":\n {\n Collections.rotate(approxPolyList,2);\n mFrameBox.fromList(approxPolyList);\n }break;\n case \"{0.0, 3.0}\":\n {\n Collections.rotate(approxPolyList,1);\n mFrameBox.fromList(approxPolyList);\n }break;\n default:{\n Log.i(TAG,\"mmr.minLoc out of bound error.\");\n mFrameBox.fromList(approxPolyList);\n }break;\n }\n /* calculate the average center of the box. used to readjust mscancenter later */\n List<Point> approxPolyPts = approxPoly.toList();\n double totalX = 0,\n totalY = 0,\n count = 0;\n for(int j = 0; j<approxPolyPts.size(); j++){\n count++;\n totalX += approxPolyPts.get(j).x+mScanLeft;\n totalY += approxPolyPts.get(j).y+mScanTop;\n }\n mBoxCenter = new Point(totalX/count,totalY/count);\n\n\n /* check if show fill poly */\n if(staticConfig.showPatternMatch){\n Imgproc.fillConvexPoly(mMixed.submat(mScanTop,mScanBottom,mScanLeft,mScanRight),arrContours.get(i),new Scalar(255,155,155,255));\n }\n\n return;\n }\n }\n }\n }", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "private void findContours(Mat input, boolean externalOnly, List<MatOfPoint> contours) {\n Mat hierarchy = new Mat();\n contours.clear();\n int mode;\n if (externalOnly) {\n mode = Imgproc.RETR_EXTERNAL;\n } else {\n mode = Imgproc.RETR_LIST;\n }\n int method = Imgproc.CHAIN_APPROX_SIMPLE;\n Imgproc.findContours(input, contours, hierarchy, mode, method);\n }", "@Test\n\tpublic void testMatAndImgArraysAreSameShape() throws IOException {\n\t\tMat mat = imread( input, opencv_imgcodecs.IMREAD_GRAYSCALE );\n\t\tif ( mat.empty() )\n\t\t\tfail( \"Couldn't load image: \" + input );\n\n\t\tDataset dataset = getScifio().datasetIO().open( input );\n\t\tRandomAccessibleInterval< ByteType > image =\n\t\t\t\tRealTypeConverters.convert( ( RandomAccessibleInterval< ? extends RealType< ? > > ) dataset.getImgPlus().getImg(), new ByteType() );\n\t\tcheckData( image, mat );\n\n\t}", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public void findCaptured(Mat in)\r\n\t{\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset; // offset for playable board\r\n\t\t\r\n\t\tint capSquares = 12; // number of capture squares\r\n\t\tint rowNum = 1; // starting row number for capture squares\r\n\t\tint rightdx = 48;\r\n\t\tint leftdx = 0;\r\n\t\toffset = hsegment;\r\n\t\tint count = 0;\r\n\t\t// keep track of captured squares\r\n\t\t// left: end user, right: system\r\n\t\tfor (int i = 0; i < capSquares; i++)\r\n\t\t{\t\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\tchar color;\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\t\t\t\r\n\t\t\t// get the color\r\n\t\t\tcolor = identifyColor(roi);\r\n\t\t\t\r\n\t\t\tswitch(color)\r\n\t\t\t{\r\n\t\t\t\tcase COLOR_BLUE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 0, 0), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_ORANGE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 128, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(0, 128, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_WHITE:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(255, 255, 255), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase COLOR_BLACK:\r\n\t\t\t\t\t//Imgproc.rectangle(in, p1, p2, new Scalar(0, 0, 0), 3);\r\n\t\t\t\t\tCore.rectangle(in, p1, p2, new Scalar(255, 255, 255), 2);\r\n\t\t\t\t\tcaptured[i] = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcount++;\r\n\t\t\tif (count == 1)\r\n\t\t\t{\r\n\t\t\t\toffset = hsegment * 10 - rightdx;\r\n\t\t\t}\r\n\t\t\telse if (count == 2)\r\n\t\t\t{\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trightdx -= 6;\r\n\t\t\t\tleftdx += 6;\r\n\t\t\t\toffset = hsegment - leftdx;\r\n\t\t\t\trowNum++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "public static boolean[][] getMatrizBool(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n boolean[][] output = new boolean[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = true;\r\n } else {\r\n output[x][y] = false;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "public static void findObjects(Mat inputImage, TrackingObject obj,\n\t\t\tList<TrackingObject> objects) {\n\n\t\t// Temp mat, as to not override the input Mat\n\t\tMat image = new Mat();\n\t\tinputImage.copyTo(image);\n\n\t\tList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\tMat hierarchy = new Mat();\n\n\t\t// Find the contours of the image and save them into contours and\n\t\t// hierarchy Where the hierarchy holds the relationship between the\n\t\t// current contour point and the next\n\t\tImgproc.findContours(image, contours, hierarchy, Imgproc.RETR_CCOMP,\n\t\t\t\tImgproc.CHAIN_APPROX_SIMPLE);\n\n\t\tboolean objectFound = false;\n\t\tdouble refArea = 0;\n\t\t// The number of items in the hierarchy is the number of contours\n\t\tif (hierarchy.total() > 0) {\n\n\t\t\tint numObjects = (int) hierarchy.total();\n\n\t\t\tif (numObjects < MAX_NUM_OBJECTS) {\n\t\t\t\t// Go through each contour the hierarchy is a one dimensional\n\t\t\t\t// matrix 1xN where N is the number of contours. each item is\n\t\t\t\t// array of this format [Next, Previous, First_Child, Parent],\n\t\t\t\t// so we only want the next contour\n\t\t\t\tfor (int index = 0; index >= 0\n\t\t\t\t\t\t&& hierarchy.get(index, 0) != null; index = (int) hierarchy\n\t\t\t\t\t\t.get(index, 0)[0]) {\n\n\t\t\t\t\tMoments moment = Imgproc.moments(contours.get(index));\n\n\t\t\t\t\tdouble area = moment.get_m00();\n\n\t\t\t\t\t// if the area is less than 20 px by 20px then it is\n\t\t\t\t\t// probably just noise if the area is the same as the 3/2 of\n\t\t\t\t\t// the image size, probably just a bad filter we only want\n\t\t\t\t\t// the object with the largest area so we safe a reference\n\t\t\t\t\t// area each iteration and compare it to the area in the\n\t\t\t\t\t// next iteration.\n\t\t\t\t\tif (area > MIN_OBJECT_AREA && area < MAX_OBJECT_AREA\n\t\t\t\t\t\t\t&& area > refArea) {\n\t\t\t\t\t\tobj.setX((float) (moment.get_m10() / area));\n\t\t\t\t\t\tobj.setY((float) (moment.get_m01() / area));\n\n\t\t\t\t\t\tobjects.add(obj);\n\t\t\t\t\t\trefArea = area;\n\t\t\t\t\t\tobjectFound = true;\n\n\t\t\t\t\t\tSystem.out.println(\"Object Found at Coordinate (\"\n\t\t\t\t\t\t\t\t+ obj.getX() + \",\" + obj.getY() + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobjectFound = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "int match(ArrayList<ImageCell> images);", "public static void main( String[] args)\r\n\t{\r\n\t\t\r\n\t\tNetworkTable piVals = NetworkTable.getTable(\"piTable\"); \r\n\t\t\r\n\t\tdouble startPro = 0; \r\n\t\tlong startMills = Instant.now().toEpochMilli(); \r\n\t\t//double start = System.currentTimeMillis();\r\n\t\t\r\n\t//\tString address = \"roboRIO-5822-FRC.local\";\r\n\t\t\r\n\t\t\t\t\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\t\r\n\t\tVideoCapture capture = new VideoCapture();\r\n\t\t\r\n\t\t//this link has changed, check with code on the pi right now \r\n\t\tcapture.open(\"http://10.58.22.72/mjpg/video.mjpg\");\r\n\t\t\r\n\t\tMat bgr = new Mat(); \r\n\t\tMat hsvConvert = new Mat(); \r\n\t\tMat hsv = new Mat();\r\n\t\tMatOfPoint test = new MatOfPoint(); \r\n\t\tArrayList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t\tArrayList<MatOfPoint> finalContours = new ArrayList<MatOfPoint>();\r\n\t\tMatOfPoint biggest = null; \r\n\t\tMat mhierarchy = new Mat(); //have no clue why hierarchy is needed. Still need to figure this one out. \r\n\t\tdouble centerX; \r\n\t\tdouble distance;\r\n\t\tdouble [] nums = new double [4]; \r\n\t\tnums = null; \r\n\t\t//int greta = 0; \r\n\t\t\r\n\t\twhile (true) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tstartPro = piVals.getNumber(\"RioTime\",0); \r\n\t\t\tcontours.clear(); \r\n\t\t\tfinalContours.clear(); \r\n\r\n\t\t\tcapture.read(bgr);\r\n\t\t\t//Imgcodecs.imwrite(\"greenCart.jpg\",bgr);\t\r\n\t\t\tImgproc.cvtColor(bgr, hsvConvert, Imgproc.COLOR_BGR2HSV); //using RGB does not work. MUST use BGR. We are still unsure of the reasons. \r\n\t\t\tCore.inRange(hsvConvert, new Scalar (13, 39, 135), new Scalar (92, 118, 255), hsv); //those two Scalar values are the the max and min HSV values respectively. Those were determined in GRIP. \r\n\t\t\tImgproc.findContours(hsv, contours, mhierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); //first enum lets you control things about hierarchy, I chose option with no hierarchy \r\n\r\n\t\t\tint idex=0; \r\n\t\t\tint size = contours.size();\r\n\t\t\t\r\n\t\t\t//changed to a for loop \r\n\t\t\tfor (idex=0; idex < contours.size(); idex++)\r\n\t\t\t{\r\n\t\t\t\ttest = contours.get(idex); \r\n\t\t\t\tif (Imgproc.contourArea(test)>100)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinalContours.add(test); \r\n\t\t\t\t}\r\n\t\t\t\tidex++; \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (finalContours.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnums = findCenterXDistance(finalContours.get(0).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +0+ \": \" + nums[2]);\r\n\t\t\t\tSystem.out.println(\"DISTANCE TO CONTOUR \" +0+ \": \" + (12*nums[3]));\r\n\t\t\t\tpiVals.putNumber(\"Center\", nums[2]);\r\n\t\t\t\tpiVals.putNumber(\"Distance\", (12*nums[3])); \r\n\t\t\t\tpiVals.putNumber(\"Start Time\", startPro); \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t//for (int count = 0; count < finalContours.size(); count++)\r\n\t\t\t//{ \r\n\t\t\t\t\r\n\t\t\t//\tnums = findCenterXDistance(finalContours.get(count).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +count+ \": \" + nums[2]);\r\n\t\t\t//\tSystem.out.println(\"DISTANCE TO CONTOUR \" +count+ \": \" + (12*nums[3]));\r\n\t\t\t//\trobot.Send(rioMillis, true, nums[2], nums[3]); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//}\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n ColorDetector colorDetector = new ColorDetector();\n \n // 2. Read input image\n Mat src = OpenCVUtilsJava.loadAndShowOrExit(new File(\"data/boldt.jpg\"), opencv_imgcodecs.IMREAD_COLOR);\n \n // 3. Set the input parameters\n colorDetector.setColorDistanceThreshold(100);\n // here blue sky\n colorDetector.setTargetColor(new ColorRGB(130, 190, 230));\n \n // 4. Process that input image and display the result\n Mat dest = colorDetector.process(src);\n\n // Display\n OpenCVUtilsJava.show(dest, \"result\");\n\n }", "public static boolean[][] apply(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n boolean[][] output = new boolean[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = true;\r\n } else {\r\n output[x][y] = false;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, ScreenOrientation.LANDSCAPE);\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public void detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)\r\n {\r\n Mat Bbox_mat = Bbox;\r\n Mat confidence_mat = confidence;\r\n detect_0(nativeObj, inputImage.nativeObj, Bbox_mat.nativeObj, confidence_mat.nativeObj);\r\n \r\n return;\r\n }", "public void process(Mat rgbaImage) {\n rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n isFound = true;\n\n }", "private Mat processFrame(Mat frame) {\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n // Forward image through network.\n Mat blob = Dnn.blobFromImage(frame, IN_SCALE_FACTOR,\n new Size(IN_WIDTH, IN_HEIGHT),\n new Scalar(MEAN_VAL, MEAN_VAL, MEAN_VAL), false, false);\n net.setInput(blob);\n Mat detections = net.forward();\n int cols = frame.cols();\n int rows = frame.rows();\n Size cropSize;\n if ((float)cols / rows > WH_RATIO) {\n cropSize = new Size(rows * WH_RATIO, rows);\n } else {\n cropSize = new Size(cols, cols / WH_RATIO);\n }\n int y1 = (int)(rows - cropSize.height) / 2;\n int y2 = (int)(y1 + cropSize.height);\n int x1 = (int)(cols - cropSize.width) / 2;\n int x2 = (int)(x1 + cropSize.width);\n Mat subFrame = frame.submat(y1, y2, x1, x2);\n cols = subFrame.cols();\n rows = subFrame.rows();\n detections = detections.reshape(1, (int)detections.total() / 7);\n for (int i = 0; i < detections.rows(); ++i) {\n double confidence = detections.get(i, 2)[0];\n if (confidence > THRESHOLD) {\n int classId = (int)detections.get(i, 1)[0];\n int xLeftBottom = (int)(detections.get(i, 3)[0] * cols);\n int yLeftBottom = (int)(detections.get(i, 4)[0] * rows);\n int xRightTop = (int)(detections.get(i, 5)[0] * cols);\n int yRightTop = (int)(detections.get(i, 6)[0] * rows);\n // Draw rectangle around detected object.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom),\n new Point(xRightTop, yRightTop),\n new Scalar(0, 255, 0));\n String label = classNames[classId] + \": \" + confidence;\n int[] baseLine = new int[1];\n Size labelSize = Imgproc.getTextSize(label, Core.FONT_HERSHEY_SIMPLEX, 0.5, 1, baseLine);\n // Draw background for label.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom - labelSize.height),\n new Point(xLeftBottom + labelSize.width, yLeftBottom + baseLine[0]),\n new Scalar(255, 255, 255), Core.FILLED);\n // Write class name and confidence.\n Imgproc.putText(subFrame, label, new Point(xLeftBottom, yLeftBottom),\n Core.FONT_HERSHEY_SIMPLEX, 0.5, new Scalar(0, 0, 0));\n }\n }\n\n return frame;\n }", "private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n setAllButtonsEnabledStatus(false);\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }", "public native boolean signatureImage() throws MagickException;", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "private Tuple<PatternCoordinates, Mat> pair(){\n mCamera.takePicture(null, null, jpegCallBack);\n\n Tuple<PatternCoordinates, Mat> patternAndImagePair = null;\n switch(GlobalResources.getInstance().getImageSettings().getBackgroundMode()){\n case ImageSettings.BACKGROUND_MODE_RGB:\n patternAndImagePair = patternDetectorAlgorithm.find(rgba, binary, false);\n break;\n case ImageSettings.BACKGROUND_MODE_GRAYSCALE:\n patternAndImagePair = patternDetectorAlgorithm.find(grey, binary, true);\n break;\n case ImageSettings.BACKGROUND_MODE_BINARY:\n patternAndImagePair = patternDetectorAlgorithm.find(binary, binary, true);\n }\n GlobalResources.getInstance().updateImage(patternAndImagePair.element2);\n return patternAndImagePair;\n }", "public static Mat DetectEdges(Mat grayMat){\n Mat grad_x = new Mat();\n Mat abs_grad_x = new Mat();\n\n Mat grad_y = new Mat();\n Mat abs_grad_y = new Mat();\n //Calculating gradient in horizontal direction\n Imgproc.Sobel(grayMat, grad_x, CvType.CV_16S, 1, 0, 3, 1, 0);\n\n //Calculating gradient in vertical direction\n Imgproc.Sobel(grayMat, grad_y, CvType.CV_16S, 0, 1, 3, 1, 0);\n\n //Calculating absolute value of gradients in both the direction\n Core.convertScaleAbs(grad_x, abs_grad_x);\n Core.convertScaleAbs(grad_y, abs_grad_y);\n\n //Calculating the resultant gradient\n Mat sobel = new Mat(); //Mat to store the final result\n Core.addWeighted(abs_grad_x, 0.5, abs_grad_y, 0.5, 1, sobel);\n\n grad_x.release();\n abs_grad_x.release();\n grad_y.release();\n abs_grad_y.release();\n\n return sobel;\n }", "private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public BeaconAnalysis analyzeFrame(Mat img, Mat gray, ScreenOrientation orientation) {\n return analyzeFrame(this.redDetector, this.blueDetector, img, gray, orientation);\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "public void identify() {\n // Start detection task only if the image to detect is selected.\n if (detected && mPersonGroupId != null) {\n // Start a background task to identify faces in the image.\n List<UUID> faceIds = new ArrayList<>();\n for (Face face: faces) {\n faceIds.add(face.faceId);\n }\n\n new IdentificationTask(mPersonGroupId).execute(\n faceIds.toArray(new UUID[faceIds.size()]));\n } else {\n // Not detected or person group exists.\n Log.e(LOG_TAG1,\"Please select an image and create a person group first.\");\n doneSignal.countDown();\n }\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public static BufferedImage contornarFace(BufferedImage pImage) {\n System.out.println(\"\\nRunning DetectFaceDemo\");\n\n // Create a face detector from the cascade file in the resources\n // directory.\n int rows = pImage.getWidth();\n int cols = pImage.getHeight();\n int type = CvType.CV_16UC1;\n Mat image = new Mat(rows, cols, type);\n\n // Detect faces in the image.\n // MatOfRect is a special container class for Rect\n CascadeClassifier faceDetector = new CascadeClassifier();\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n Rect[] facesArray = faceDetections.toArray();\n for (int i = 0; i < facesArray.length; i++) {\n Core.rectangle(image, facesArray[i].tl(), facesArray[i].br(), new Scalar(200, 200, 200), 3);\n }\n return matTOImg(image);\n\n }", "private boolean importDirectMappedImage(BufferedImage img) {\n \t\tif (format == Format.COLOR256_1x1 || isMono)\n \t\t\treturn false;\n \t\t\n \t\tint numColors = format == Format.COLOR4_1x1 ? 4\n \t\t\t\t: 16;\n \t\t\n \t\t// effective minimum distance for any mode\n \t\tint maxDist = 0xf*0xf * 3;\n \t\tint numPixels = img.getWidth() * img.getHeight();\n \t\t\n \t\tboolean matched = false;\n \t\tHistogram hist = new Histogram(img);\n \t\t\n \t\tList<byte[][]> palettes = new ArrayList<byte[][]>();\n \t\tpalettes.add(thePalette);\n \t\tif (isStandardPalette)\n \t\t\tpalettes.addAll(Arrays.asList(VdpCanvas.palettes()));\n \t\t\n \t\tfor (byte[][] palette : palettes) {\n \t\t\tint matchedC = hist.generate(new FixedPaletteMapColor(palette, firstColor, numColors), maxDist, ~0); \n \t\t\tif (matchedC == numPixels) {\n \t\t\t\tmatched = true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t\n \t\tif (matched) {\n \t\t\tfor (int c = 0; c < numColors; c++) {\n \t\t\t\treplaceColor(img, hist, c, rgb8ToPixel(thePalette[c]), Integer.MAX_VALUE);\n \t\t\t}\n \t\t\t\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\treturn false;\n \t}", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "public native boolean hasFrames() throws MagickException;", "void trackFilteredObject(com.ilos.wiser.ILOSDataCollection.Object theObject, Mat threshold, Mat HSV, Mat cameraFeed, String colour, int counter) {\n ArrayList<com.ilos.wiser.ILOSDataCollection.Object> Objects = new ArrayList<>();\n Mat temp = new Mat();\n threshold.copyTo(temp);\n //Contours track the edges of the binary image\n List<MatOfPoint> contours = new ArrayList<>();\n Mat hierarchy = new Mat();\n boolean redFound = false;\n boolean blueFound = false;\n //Copies contours to the list contours\n Imgproc.findContours(temp,contours,hierarchy,Imgproc.RETR_EXTERNAL,Imgproc.CHAIN_APPROX_SIMPLE);\n boolean objectFound = false;\n if (!hierarchy.empty()) {\n for (int i = 0; i >=0; i = (int)hierarchy.get(i, 0)[1]) {\n MatOfPoint contour = contours.get(i);\n Moments moment = Imgproc.moments(contour);\n double area = moment.m00;\n if(area > MIN_AREA) {\n com.ilos.wiser.ILOSDataCollection.Object object = new com.ilos.wiser.ILOSDataCollection.Object(counter);\n //sets fields for the object based on the moment class\n object.setXPos(moment.m10/area);\n object.setYPos(moment.m01/area);\n object.type = theObject.type;\n object.colour = theObject.colour;\n //Tags if each object has been found to track how long it has been off screen for\n if(object.colour == new Scalar(255,0,0)){\n redFound = true;\n }\n if(object.colour == new Scalar(0,255,0)){\n blueFound = true;\n }\n //Appends a list of the object that are seen on the current frame\n Objects.add(object);\n\n objectFound = true;\n\n }else {objectFound = false;}\n }\n if(!redFound){\n if(redStart==1) {\n redStart = System.currentTimeMillis();\n }\n else{\n redEnd = System.currentTimeMillis();\n }\n if(redStart!=1 && redEnd!=0) {\n redGone = redEnd - redStart;\n if(redGone > 300) {\n System.out.println(\"RED OFF SCREEN: \" + redGone);\n }\n redStart = 1;\n redEnd = 0;\n }\n\n }\n if(!blueFound){\n if(blueStart==1) {\n blueStart = System.currentTimeMillis();\n }\n else{\n blueEnd = System.currentTimeMillis();\n }\n if(blueStart!=1 && blueEnd!=0) {\n blueGone = blueEnd - blueStart;\n if(blueGone > 300) {\n System.out.println(\"BLUE OFF SCREEN\" + blueGone);\n }\n blueStart = 1;\n blueEnd = 0;\n }\n }\n if(objectFound == true && collectData) {\n //This does all of the highlighting of the circles on the scren\n drawObject(Objects, mRgba, temp, contours, hierarchy);\n }\n //If collection is finished\n if(!collectData && redList.size()>0 && blueList.size()>0){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n coordText.setText(\"Press back to select a new path!\");\n }\n });\n }\n }\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "private Marker isMarker(MatOfPoint2f result, Mat texture) {\n boolean[][] pattern = new boolean[4][4];\n \n // reset error allowance\n int errorAllowance = 0;\n // Check border:\n for (int i = 1; i < MARKER_GRID - 1; i++) {\n if (testSample(half + (i * step), half,\n texture) > 0)\n errorAllowance++;\n if (testSample(half, half + (i * step), texture) > 0)\n errorAllowance++;\n if (testSample(half + (i * step), MARKER_SIZE - 1 - half,\n texture) > 0)\n errorAllowance++;\n if (testSample(MARKER_SIZE - 1 - half, half + (i * step),\n texture) > 0)\n errorAllowance++;\n }\n \n // we'll allow 4 incorrect border pieces but no more\n if (errorAllowance > 4) {\n log.debug(TAG, \"Discarding over incomplete border detection!\");\n // Return null if we're not debugging – we're done in that case.\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n // Now read pattern:\n // time: ~3ms\n for (int i = 0; i < 4; i++)\n for (int j = 0; j < 4; j++) {\n pattern[i][j] = (testSample(half + (i + 1) * step,\n half + (j + 1) * step, texture) > 0);\n }\n \n // Check corners, get rotation, and rotate pattern to correct\n // orientation:\n // time: ~0ms\n int angle;\n if (!pattern[0][0] && pattern[0][3] && pattern[3][0] && pattern[3][3]) {\n angle = -90;\n pattern = rotatePattern(3, pattern);\n } else if (pattern[0][0] && !pattern[0][3] &&\n pattern[0][3] && pattern[3][3]) {\n angle = 0;\n } else if (pattern[0][0] && pattern[0][3] &&\n !pattern[3][0] && pattern[3][3]) {\n angle = 180;\n pattern = rotatePattern(2, pattern);\n } else if (pattern[0][0] && pattern[0][3] &&\n pattern[3][0] && !pattern[3][3]) {\n angle = 90;\n pattern = rotatePattern(1, pattern);\n } else {\n // This happens when a black border is found but has no\n // orientation information.\n log.debug(TAG, \"Discarding over missing orientation information!\");\n angle = -1;\n if (!DEBUG_DRAW_MARKER_ID && !DEBUG_DRAW_MARKERS)\n return null;\n }\n \n // Get Hamming code corrected id:\n // time: ~0ms\n int id = MarkerPatternHelper.getID(pattern);\n \n // Check if id is valid.\n if (id < 0) {\n log.debug(TAG, \"Discarding over illegal ID!\");\n return null;\n }\n \n Marker marker = new Marker(result, angle, id);\n \n // For debug, we need to remember the grayTexture, otherwise not.\n if (mainInterface.DEBUG_FRAME && (DEBUG_DRAW_MARKERS || DEBUG_POLY)) {\n // INFO: Debugging with this HALFS the framerate!\n marker.setDebugParameters(pattern, texture);\n return marker;\n }\n \n return marker;\n }", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n for (int i = 1; i<10; i++){\n String image= \"src/main/java/BallImage\";\n image = image + i + \".jpg\";\n Mat input = Imgcodecs.imread(image);\n Mat output = algorithm(input);\n String output_fname = \"Output Image \" + i + \".jpg\";\n Imgcodecs.imwrite(output_fname, output);\n }\n System.out.println(\"Done\");\n }", "public static Mat[] split(Mat m, int size) {\n Mat cArr[] = new Mat[3];\n Mat c1 = new Mat(), c2 = new Mat(), c3 = new Mat();\n Mat c1TempDest = new Mat(),c1TempDest2 = new Mat(), c2TempDest = new Mat();\n Mat max=new Mat(size, size, CvType.CV_8UC1, new Scalar(255));\n List<Mat> lRgb = new ArrayList<Mat>(3);\n\n Core.split(m, lRgb);\n Mat R = lRgb.get(0);\n Mat G = lRgb.get(1);\n Mat B = lRgb.get(2);\n\n //C1\n Core.add(R,G,c1TempDest);\n Core.add(c1TempDest, B, c1TempDest2);\n Core.divide(c1TempDest2,new Scalar(3),c1);\n cArr[0] = c1;\n\n //C2\n Mat maxMinusB = new Mat(), maxMinusBPlusR= new Mat();\n Core.subtract(max,B,maxMinusB);\n Core.add(maxMinusB,R,maxMinusBPlusR);\n Core.divide(maxMinusBPlusR,new Scalar(2),c2);\n cArr[1] = c2;\n\n //C3\n Mat maxMinusG = new Mat() , maxMinusGTimes2 = new Mat(), maxMinusGTimes2PlusR = new Mat(), maxMinusGTimes2PlusRPlusB = new Mat();\n Core.subtract(max,G, maxMinusG);\n Core.multiply(maxMinusG, new Scalar(2), maxMinusGTimes2);\n Core.add(maxMinusGTimes2, R, maxMinusGTimes2PlusR);\n Core.add(maxMinusGTimes2PlusR, B, maxMinusGTimes2PlusRPlusB);\n Core.divide(maxMinusGTimes2PlusRPlusB, new Scalar(4), c3);\n cArr[2] = c3;\n return cArr;\n }", "public void findEdgesAndThreshold() {\n\t\tActiveImageConverter.convertToGray16();\n\t\tContrastEnhancer enhancer = new ContrastEnhancer();\n\t\tenhancer.equalize(ActiveImage);\n\t\tActiveImageProcessor = ActiveImage.getProcessor();\n\t\tActiveImageProcessor.findEdges();\n\t\tActiveImageProcessor.sqr(); // turns the gradient into gradient squared\n\t\tActiveImageProcessor.sqr(); // further enhances the good edges\n\t\tenhancer.equalize(ActiveImage);\n\t\tdouble mean = ActiveImage.getStatistics().mean;\n\t\tdouble max = ActiveImage.getStatistics().max;\n\t\tActiveImageProcessor.setThreshold(mean*8,max,ActiveImageProcessor.OVER_UNDER_LUT);\n\t\tif(userInput)\n\t\t{\n\t\t\tIJ.run(ActiveImage,\"Threshold...\",\"\");\n\t\t\tnew WaitForUserDialog(\"OK\").show();\n\t\t\tif (WindowManager.getWindow(\"Threshold\")!= null){\n\t\t\t\tIJ.selectWindow(\"Threshold\");\n\t\t\t\tIJ.run(\"Close\"); \n\t\t\t}\n\t\t}\n\t\tIJ.run(ActiveImage,\"Convert to Mask\",\"\");\n\t\tIJ.run(ActiveImage,\"Skeletonize\",\"\");\n\t\treturn;\n\t}", "private AugmentedImage detectMarker(Frame frame) {\n for (AugmentedImage augmentedImage : frame.getUpdatedTrackables(AugmentedImage.class)) {\n if (augmentedImage.getTrackingState() == TrackingState.PAUSED || augmentedImage.getTrackingMethod() == AugmentedImage.TrackingMethod.FULL_TRACKING)\n {\n Log.d(\"SCAN_ACTIVITY_DETECT\", String.valueOf(augmentedImage.getIndex()));\n return augmentedImage;\n }\n }\n return null;\n }", "public boolean onTouch(View v, MotionEvent event) {\n mTextView02.setText(\"Touched!!!\");\n\n //Very important! So that the onFrame function won't change the parameters before this section finishes\n mIsColorSelected = false;\n\n int rows = mRgba.rows(); int cols = mRgba.cols();\n\n\n int xOffset = (mSurfaceView_Display.getWidth() - cols) / 2;\n int yOffset = (mSurfaceView_Display.getHeight() - rows) / 2;\n\n int x = (int)event.getX() - xOffset;\n int y = (int)event.getY() - yOffset;\n\n Log.i(TAG, \"Touch image coordinates: (\" + x + \", \" + y + \")\");\n\n if ((x < 0) || (y < 0) || (x > cols) || (y > rows)) return false;\n\n org.opencv.core.Rect touchedRect = new org.opencv.core.Rect();\n\n touchedRect.x = (x>4) ? x-4 : 0;\n touchedRect.y = (y>4) ? y-4 : 0;\n\n touchedRect.width = (x+4 < cols) ? x + 4 - touchedRect.x : cols - touchedRect.x;\n touchedRect.height = (y+4 < rows) ? y + 4 - touchedRect.y : rows - touchedRect.y;\n\n Mat touchedRegionRgba = mRgba.submat(touchedRect);\n\n Mat touchedRegionHsv = new Mat();\n Imgproc.cvtColor(touchedRegionRgba, touchedRegionHsv, Imgproc.COLOR_RGB2HSV_FULL);\n\n // Calculate average color of touched region\n mBlobColorHsv = Core.sumElems(touchedRegionHsv);\n int pointCount = touchedRect.width*touchedRect.height;\n for (int i = 0; i < mBlobColorHsv.val.length; i++)\n mBlobColorHsv.val[i] /= pointCount;\n\n mBlobColorRgba = converScalarHsv2Rgba(mBlobColorHsv);\n\n Log.i(TAG, \"Touched rgba color: (\" + mBlobColorRgba.val[0] + \", \" + mBlobColorRgba.val[1] +\n \", \" + mBlobColorRgba.val[2] + \", \" + mBlobColorRgba.val[3] + \")\");\n\n mDetector.resetStart();\n mDetector.setHsvColor(mBlobColorHsv);\n\n Log.i(TAG, \"mDetector hsv color set: (\" + mBlobColorHsv.val[0] + \", \" + mBlobColorHsv.val[1] +\n \", \" + mBlobColorHsv.val[2] + \", \" + mBlobColorHsv.val[3] + \")\");\n\n Imgproc.resize(mDetector.getSpectrum(), mSpectrum, SPECTRUM_SIZE);\n\n mIsColorSelected = true;\n\n touchedRegionRgba.release();\n touchedRegionHsv.release();\n\n return false;\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public void determineKings(Mat in)\r\n\t{\r\n\t\tint playSquares = 32;\r\n\t\t\r\n\t\tMat dst = new Mat(in.rows(), in.cols(), in.type());\r\n in.copyTo(dst);\r\n\r\n Imgproc.cvtColor(dst, dst, Imgproc.COLOR_BGR2GRAY); // change to single color\r\n \r\n Mat canny = new Mat();\r\n Imgproc.Canny(dst, canny, 100, 200); // make image a canny image that is only edges; 2,4\r\n // lower threshold values find more edges\r\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n Mat hierarchy = new Mat(); // holds nested contour information\r\n Imgproc.findContours(canny, contours, hierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); // Imgproc.RETR_LIST, TREE\r\n \r\n //draw contour image\r\n Mat mask = new Mat();\r\n mask = Mat.zeros(dst.size(), dst.type());\r\n Imgproc.drawContours(mask, contours, -1, new Scalar(255,255,255), 1, 8, hierarchy, 2, new Point());\r\n Highgui.imwrite(\"contours.jpg\", mask);\r\n\r\n\t\t\r\n\t\tArrayList occupied = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < playSquares; i++)\r\n\t\t{\r\n\t\t\tif (board[i] != 0)\r\n\t\t\t\toccupied.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < contours.size(); i++) // assuming only contours are checker pieces\r\n\t\t{\t\r\n\t\t\t// determine if it should be a king\r\n\t\t\t// use Rect r = Imgproc.boundingRect then find height of it by r.height\r\n\t\t\t\r\n // Get bounding rect of contour\r\n Rect bound = Imgproc.boundingRect(contours.get(i));\r\n \r\n if (bound.height > in.rows() / 8)\r\n\t\t\t{\r\n\t\t\t\t//board[(int) occupied.get(0)]++; // make it a king\r\n\t\t\t\t//occupied.remove(0);\r\n\t\t\t}\r\n\t\t}\r\n \r\n \r\n \r\n // or apply to each region of interest\r\n \r\n /*\t\t\r\n\t\t// keep track of starting row square\r\n\t\tint parity = 0; // 0 is even, 1 is odd, tied to row number\r\n\t\tint count = 0; // row square\r\n\t\tint rowNum = 0; // row number, starting at 0\r\n\t\t\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset = hsegment * 2; // offset for playable board\r\n\t\t\r\n\t\t// For angle of camera\r\n\t\tint dx = 48;\r\n\t\thsegment -= 8;\r\n\t\t\r\n\t\t\r\n\t\t// Go through all playable squares\r\n\t\tfor (int i = 0; i < playSquares; i++)\r\n\t\t{\r\n\t\t\t// change offset depending on the row\r\n\t\t\tif (parity == 0) // playable squares start on immediate left\r\n\t\t\t\toffset = hsegment * 3 + dx;\r\n\t\t\telse // playable squares start on 2nd square from left\r\n\t\t\t\toffset = hsegment * 2 + dx;\r\n\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\r\n\t Imgproc.cvtColor(roi, roi, Imgproc.COLOR_BGR2GRAY); // change to single color\r\n\t \r\n\t Mat canny = new Mat();\r\n\t Imgproc.Canny(roi, canny, 2, 4); // make image a canny image that is only edges; 2,4\r\n\t // lower threshold values find more edges\r\n\t List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t Mat hierarchy = new Mat(); // holds nested contour information\r\n\t Imgproc.findContours(canny, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE); // Imgproc.RETR_LIST, TREE\r\n\t\t\t\r\n\t // Get bounding rect of contour\r\n Rect rect = Imgproc.boundingRect(contours.get(0));\r\n \r\n if (rect.height > in.rows() / 8)\r\n\t\t\t{\r\n\t\t\t\tboard[i]++; // make it a king\r\n\t\t\t}\r\n\t \r\n\t\t\tcount += 2;\r\n\t\t\tif (count == 8)\r\n\t\t\t{\r\n\t\t\t\tparity = ++parity % 2; // change odd or even\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trowNum++;\r\n\t\t\t\thsegment += 1;\r\n\t\t\t\tdx -= 6;\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public static void main(String[] args) {\n System.load(\"/usr/local/Cellar/opencv/2.4.12/share/OpenCV/java/libopencv_java2412.dylib\");\n new DetectBuilding().run();\n }", "private native void initMultiImage(MagickImage[] images)\n\t\t\tthrows MagickException;", "public void detect(View view) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new MainActivity.DetectionTask().execute(inputStream);\n\n // Prevent button click during detecting.\n setAllButtonsEnabledStatus(false);\n }", "private void processImage(Mat image) {\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\tif (processingForPeg)\r\n\t\t{\r\n\t\t\tTargetInformation targetInfo;\r\n\t\t\tMat cleanedImage = getHSVThreshold(image);\r\n\t\t\ttargetInfo = findPeg(cleanedImage);\r\n\t\t\tinfoList.add(targetInfo);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tframesToProcess = 100; // So that the processing is continuous until found\r\n\t\t\tlookingAtGear = lookForGear(image);\r\n\t\t}\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t\r\n\t\treturn;\r\n }", "public boolean calculateFocus(Mat img) {\n\t\tImgproc.cvtColor(img, img, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.blur(img, img, BLUR);\n\t\tImgproc.Canny(img, img, EDGE_LOWER_THRESHOLD, EDGE_LOWER_THRESHOLD * EDGE_THRESHOLD_RATIO);\n\t\tint score = Core.countNonZero(img);\n\t\t\n\t\tSystem.out.println(\"[score=\" + score + \", high=\" + bestScore + \", best=\" + bestNetScore + \", low=\" + lowestNetScore + \", direction=\" + direction);\n\t\t\n\t\tif (score == 0)\n\t\t\treturn false;\n\t\t\n\t\tif (lowestNetScore > score || lowestNetScore == 0) {\n\t\t\tlowestNetScore = score;\n\t\t\tif (lowestNetScore < unfocusedScore || unfocusedScore == 0)\n\t\t\t\tunfocusedScore = lowestNetScore;\n\t\t}\n\t\tif (score > bestScore || bestScore == 0) {\n\t\t\tbestScore = score;\n\t\t\tif (bestNetScore < bestScore)\n\t\t\t\tbestNetScore = bestScore;\n\t\t}\n\t\tif (passedPeak && score < bestScore) {\n\t\t\t//if (stepSize != INITIAL_STEP || stepsTaken == Z_RANGE) {\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t//}\n\t\t}\n\t\telse if (bestScore > lowestNetScore * SCORE_PEAK_SIZE && score >= bestNetScore * STRICTNESS /*&& stepSize != INITIAL_STEP*/) {\n\t\t\tif (strideSize <= MINIMUM_STRIDE && score <= bestScore) {\n\t\t\t\tSystem.out.println(\"quick complete\");\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpassedPeak = true;\n\t\t}\n\t\t//else if (stepSize == INITIAL_STEP && stepsTaken == Z_RANGE)\n\t\t//\tpassedPeak = true;\n\t\t/*else if (stepSize <= MINIMUM_STEP && score < bestScore) {\n\t\t\tSystem.out.println(\"quick complete\");\n\t\t\tcalculationComplete();\n\t\t\treturn true;\n\t\t}*/\n\t\treturn false;\n\t}", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}" ]
[ "0.8216133", "0.7749583", "0.75411355", "0.73512036", "0.71035874", "0.6988348", "0.6879054", "0.68270177", "0.67183477", "0.6671456", "0.65470153", "0.63527644", "0.632079", "0.6251177", "0.61651874", "0.61625195", "0.61598605", "0.6038536", "0.60237324", "0.6013216", "0.59734416", "0.5965201", "0.59585524", "0.5916005", "0.5788953", "0.5754249", "0.575303", "0.57470405", "0.5730156", "0.5689844", "0.5671443", "0.5670307", "0.5641186", "0.56269175", "0.55360264", "0.5525699", "0.5498863", "0.54651386", "0.54644346", "0.5431121", "0.5409445", "0.5403005", "0.5373982", "0.53240734", "0.5314352", "0.529531", "0.52904063", "0.5279153", "0.527857", "0.5246762", "0.52435964", "0.52043414", "0.52028143", "0.5195937", "0.5188583", "0.51596206", "0.51571107", "0.5151633", "0.514625", "0.5144239", "0.51384217", "0.5129407", "0.51269805", "0.51214683", "0.5119183", "0.5111169", "0.51062894", "0.5097009", "0.50952435", "0.5062562", "0.5051006", "0.50479525", "0.5039543", "0.5029159", "0.50257325", "0.5018438", "0.5018123", "0.5014607", "0.50130117", "0.5009277", "0.5006619", "0.5005215", "0.49940866", "0.49791464", "0.49645177", "0.49633235", "0.4959671", "0.4958038", "0.4948935", "0.4930763", "0.49230438", "0.49215052", "0.49017864", "0.4901037", "0.48932347", "0.48775893", "0.4874686", "0.48668852", "0.48576513", "0.4849343" ]
0.7728581
2
C++: bool cv::GraphicalCodeDetector::decodeMulti(Mat img, Mat points, vector_string& decoded_info, vector_Mat& straight_code = vector_Mat())
private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "private static native long imdecode_0(long buf_nativeObj, int flags);", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "void process(Mat image);", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "public java.math.BigInteger[] decode(byte[] r1) throws java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.StdDSAEncoder.decode(byte[]):java.math.BigInteger[]\");\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "public Mat beforeDataEncoded(Mat frame);", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public static byte[] decode(byte[] code) throws CorruptedCodeException {\r\n\tboolean end;\r\n\tbyte[] output;\r\n\tbyte m;\r\n\tbyte a;\r\n\tbyte b;\r\n\tbyte c;\r\n\tbyte d;\r\n\tint i;\r\n\tint j;\r\n\tint k;\r\n\tint l;\r\n\r\n\tl = code.length;\r\n\tend = false;\r\n\r\n\tfor (i = 0, j = 0; i < l; i++) {\r\n\t if ((code[i] < 0) || (code[i] >= REVERSE.length)) {\r\n\t\tthrow new CorruptedCodeException(\"Code was not Base64 encoded\");\r\n\t }\r\n\t m = REVERSE[code[i]];\r\n\r\n\t if (m == PAD) {\r\n\t\tif (end) {\r\n\t\t break;\r\n\t\t}\r\n\t\tend = true;\r\n\t\tcontinue;\r\n\t }\r\n\t if (end) {\r\n\t\tthrow new CorruptedCodeException(\r\n\t\t\t\"Second pad character missing!\");\r\n\t }\r\n\t if (m == F) {\r\n\t\tcontinue;\r\n\t }\r\n\t code[j++] = m;\r\n\t}\r\n\tl = j >> 2;\r\n\ti = l * 3;\r\n\tk = j & 3;\r\n\r\n\tif (k == 1) {\r\n\t throw new CorruptedCodeException(\"One character is missing!\");\r\n\t}\r\n\tif (k > 0) {\r\n\t i = (i + k) - 1;\r\n\t}\r\n\toutput = new byte[i];\r\n\r\n\ti = 0;\r\n\tj = 0;\r\n\tb = 0;\r\n\r\n\twhile (l > 0) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t c = code[i++];\r\n\t d = code[i++];\r\n\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t output[j++] = (byte) (((c & 3) << 6) | d);\r\n\t l--;\r\n\t}\r\n\tif (k >= 2) {\r\n\t a = code[i++];\r\n\t b = code[i++];\r\n\t output[j++] = (byte) ((a << 2) | ((b >>> 4) & 3));\r\n\t}\r\n\tif (k >= 3) {\r\n\t c = code[i++];\r\n\t output[j++] = (byte) (((b & 15) << 4) | ((c >>> 2) & 15));\r\n\t}\r\n\treturn output;\r\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "public List<Result> recognize(IplImage image);", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "public static Bitmap decodeBase64(String input) \n\t\t{\n\t\t byte[] decodedByte = Base64.decode(input, 0);\n\t\t return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length); \n\t\t}", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "public native boolean getMatte() throws MagickException;", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "public static Mat imdecode(Mat buf, int flags)\n {\n\n Mat retVal = new Mat(imdecode_0(buf.nativeObj, flags));\n\n return retVal;\n }", "public synchronized Bitmap mo12199k() {\n if (this.f10961p.f10995c <= 0 || this.f10959n < 0) {\n String str = f10944y;\n StringBuilder sb = new StringBuilder();\n sb.append(\"unable to decode frame, frameCount=\");\n sb.append(this.f10961p.f10995c);\n sb.append(\" framePointer=\");\n sb.append(this.f10959n);\n C3111h1.m14931d(str, sb.toString());\n this.f10965t = 1;\n }\n if (this.f10965t != 1) {\n if (this.f10965t != 2) {\n this.f10965t = 0;\n C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n);\n int i = this.f10959n - 1;\n C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null;\n this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a;\n if (this.f10946a == null) {\n String str2 = f10944y;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No Valid Color Table for frame #\");\n sb2.append(this.f10959n);\n C3111h1.m14931d(str2, sb2.toString());\n this.f10965t = 1;\n return null;\n }\n if (b1Var.f10975f) {\n System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length);\n this.f10946a = this.f10947b;\n this.f10946a[b1Var.f10977h] = 0;\n }\n return m14713a(b1Var, b1Var2);\n }\n }\n String str3 = f10944y;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.f10965t);\n C3111h1.m14931d(str3, sb3.toString());\n return null;\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte[npix];\n\n\t\t\tshort[] prefix = getMetadata().getPrefix();\n\t\t\tbyte[] suffix = getMetadata().getSuffix();\n\t\t\tbyte[] pixelStack = getMetadata().getPixelStack();\n\n\t\t\tif (prefix == null) prefix = new short[MAX_STACK_SIZE];\n\t\t\tif (suffix == null) suffix = new byte[MAX_STACK_SIZE];\n\t\t\tif (pixelStack == null) pixelStack = new byte[MAX_STACK_SIZE + 1];\n\n\t\t\tgetMetadata().setPrefix(prefix);\n\t\t\tgetMetadata().setSuffix(suffix);\n\t\t\tgetMetadata().setPixelStack(pixelStack);\n\n\t\t\t// initialize GIF data stream decoder\n\n\t\t\tfinal int read = getSource().read();\n\t\t\tfinal int dataSize = read & 0xff;\n\n\t\t\tfinal int clear = 1 << dataSize;\n\t\t\tfinal int eoi = clear + 1;\n\t\t\tint available = clear + 2;\n\t\t\tint oldCode = nullCode;\n\t\t\tint codeSize = dataSize + 1;\n\t\t\tint codeMask = (1 << codeSize) - 1;\n\t\t\tint code = 0, inCode = 0;\n\t\t\tfor (code = 0; code < clear; code++) {\n\t\t\t\tprefix[code] = 0;\n\t\t\t\tsuffix[code] = (byte) code;\n\t\t\t}\n\n\t\t\t// decode GIF pixel stream\n\n\t\t\tint datum = 0, first = 0, top = 0, pi = 0, bi = 0, bits = 0, count = 0;\n\t\t\tint i = 0;\n\n\t\t\tfor (i = 0; i < npix;) {\n\t\t\t\tif (top == 0) {\n\t\t\t\t\tif (bits < codeSize) {\n\t\t\t\t\t\tif (count == 0) {\n\t\t\t\t\t\t\tcount = readBlock();\n\t\t\t\t\t\t\tif (count <= 0) break;\n\t\t\t\t\t\t\tbi = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdatum += (getMetadata().getdBlock()[bi] & 0xff) << bits;\n\t\t\t\t\t\tbits += 8;\n\t\t\t\t\t\tbi++;\n\t\t\t\t\t\tcount--;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get the next code\n\t\t\t\t\tcode = datum & codeMask;\n\t\t\t\t\tdatum >>= codeSize;\n\t\t\t\t\tbits -= codeSize;\n\n\t\t\t\t\t// interpret the code\n\n\t\t\t\t\tif ((code > available) || (code == eoi)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (code == clear) {\n\t\t\t\t\t\t// reset the decoder\n\t\t\t\t\t\tcodeSize = dataSize + 1;\n\t\t\t\t\t\tcodeMask = (1 << codeSize) - 1;\n\t\t\t\t\t\tavailable = clear + 2;\n\t\t\t\t\t\toldCode = nullCode;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (oldCode == nullCode) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\toldCode = code;\n\t\t\t\t\t\tfirst = code;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tinCode = code;\n\t\t\t\t\tif (code == available) {\n\t\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\t\tcode = oldCode;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (code > clear) {\n\t\t\t\t\t\tpixelStack[top++] = suffix[code];\n\t\t\t\t\t\tcode = prefix[code];\n\t\t\t\t\t}\n\t\t\t\t\tfirst = suffix[code] & 0xff;\n\n\t\t\t\t\tif (available >= MAX_STACK_SIZE) break;\n\t\t\t\t\tpixelStack[top++] = (byte) first;\n\t\t\t\t\tprefix[available] = (short) oldCode;\n\t\t\t\t\tsuffix[available] = (byte) first;\n\t\t\t\t\tavailable++;\n\n\t\t\t\t\tif (((available & codeMask) == 0) && (available < MAX_STACK_SIZE)) {\n\t\t\t\t\t\tcodeSize++;\n\t\t\t\t\t\tcodeMask += available;\n\t\t\t\t\t}\n\t\t\t\t\toldCode = inCode;\n\t\t\t\t}\n\t\t\t\ttop--;\n\t\t\t\tpixels[pi++] = pixelStack[top];\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\tfor (i = pi; i < npix; i++)\n\t\t\t\tpixels[i] = 0;\n\t\t\tgetMetadata().setPixels(pixels);\n\t\t\tsetPixels();\n\t\t}", "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tif (barcode == null) {\n\n\t\t} else {\n\t\t\thandleDecode(rawResult.getText());\n\t\t}\n\n\t}", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "public Decoded decode(String barcode){\n Decoded decoded = new Decoded();\n this.barcode = barcode;\n\n decoded.barcode = barcode;\n\n if(barcode == null || barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n\n // remove leading * and check\n if(barcode.startsWith(\"*\")){\n barcode = barcode.substring(1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // remove trailing * and check\n if(barcode.endsWith(\"*\")){\n barcode = barcode.substring(0, barcode.length() - 1);\n if(barcode.isEmpty()){\n decoded.error = Error.EMPTY_BARCODE;\n return decoded;\n }\n }\n\n // check for + character\n if(barcode.charAt(0) != '+'){\n decoded.error = Error.BARCODE_NOT_HIBC;\n return decoded;\n } else {\n barcode = barcode.substring(1);\n }\n\n // check minimum barcode length\n if(barcode.length() < 4){\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n String potentialCheckAndLinkCharacters = barcode.substring(barcode.length() - 2);\n barcode = barcode.substring(0, barcode.length() - 2);\n\n String[] lines = barcode.split(\"[\\\\/]\");\n\n if(lines.length == 1){\n if(Character.isLetter(lines[0].charAt(0))){\n decoded = processLine1(decoded, Type.LINE_1, lines[0] + potentialCheckAndLinkCharacters);\n } else {\n decoded = processLine2(decoded, Type.LINE_2, lines[0] + potentialCheckAndLinkCharacters);\n }\n return decoded;\n\n }else if(lines.length == 2){\n decoded = processLine1(decoded, Type.CONCATENATED, lines[0]);\n decoded = assign(decoded, processLine2(new Decoded(), Type.CONCATENATED, lines[1] + potentialCheckAndLinkCharacters));\n } else {\n decoded.error = Error.INVALID_BARCODE;\n return decoded;\n }\n\n return decoded;\n\n }", "private Image mat2Image(Mat frame)\r\n {\n MatOfByte buffer = new MatOfByte();\r\n // encode the frame in the buffer\r\n // HighGui.imencode(\".png\", frame, buffer);\r\n Imgcodecs.imencode(\".png\", frame, buffer);\r\n // build and return an Image created from the image encoded in the buffer\r\n return new Image(new ByteArrayInputStream(buffer.toArray()));\r\n }", "private String decoder(String code, Tree iterator) {\n for (int i = 0; i < code.length(); i++) {\n String decodedChar = iterator.decode(code.substring(0, i + 1));\n\n if (decodedChar != null) {\n decode = decode + decodedChar;\n code = code.substring(i + 1);\n i = -1;\n }\n }\n\n return code;\n }", "public void decodeImage(String completeImageData, ImageView imageView) {\n if (completeImageData == null) { return; }\n\n // Incase you're storing into aws or other places where we have extension stored in the starting.\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n imageView.setImageBitmap(bitmap);\n }", "public native void annotateImage(DrawInfo info);", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "@androidx.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static com.inmobi.media.C2336dl m4847a(@androidx.annotation.NonNull java.lang.String r3, @androidx.annotation.Nullable com.inmobi.media.C2600j r4, @androidx.annotation.Nullable java.lang.String r5, boolean r6) {\n /*\n com.iab.omid.library.inmobi.adsession.AdSessionContext r4 = m4846a(r4, r5)\n int r5 = r3.hashCode()\n r0 = -284840886(0xffffffffef05ac4a, float:-4.136979E28)\n r1 = 3\n r2 = 2\n if (r5 == r0) goto L_0x002e\n r0 = 112202875(0x6b0147b, float:6.6233935E-35)\n if (r5 == r0) goto L_0x0024\n r0 = 1425678798(0x54fa21ce, float:8.5944718E12)\n if (r5 == r0) goto L_0x001a\n goto L_0x0038\n L_0x001a:\n java.lang.String r5 = \"nonvideo\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 2\n goto L_0x0039\n L_0x0024:\n java.lang.String r5 = \"video\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 3\n goto L_0x0039\n L_0x002e:\n java.lang.String r5 = \"unknown\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 1\n goto L_0x0039\n L_0x0038:\n r3 = -1\n L_0x0039:\n if (r3 == r2) goto L_0x0047\n if (r3 == r1) goto L_0x003f\n r3 = 0\n goto L_0x004e\n L_0x003f:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_video_ad\"\n r3.<init>(r5, r4, r6)\n goto L_0x004e\n L_0x0047:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_display_ad\"\n r3.<init>(r5, r4)\n L_0x004e:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.inmobi.media.C2341dp.m4847a(java.lang.String, com.inmobi.media.j, java.lang.String, boolean):com.inmobi.media.dl\");\n }", "void inputToCb(Mat input){\n Imgproc.cvtColor(input, YCrCb, Imgproc.COLOR_RGB2YCrCb);\n Core.extractChannel(YCrCb, Cb, 1);\n }", "public interface C0605e {\n Bitmap m4508a(int i, int i2, Config config);\n\n void m4509a();\n\n void m4510a(int i);\n\n boolean m4511a(Bitmap bitmap);\n\n Bitmap m4512b(int i, int i2, Config config);\n}", "protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }", "public Void call() {\n if (C42323i.this.f110090e == null || C42323i.this.f110090e.isEmpty()) {\n return null;\n }\n for (String a : C42323i.this.f110090e) {\n Bitmap a2 = C42341f.m134633a(a, C42319f.f110087a);\n if (a2 != null) {\n String a3 = C42323i.this.f110077c.mo88162a();\n C42341f.m134636a(a2, new File(a3), 70, CompressFormat.JPEG);\n C42323i.this.f110075a.addFrameAtLastSegment(a3);\n }\n }\n return null;\n }", "public void DecodeImage(String encodedString, int id) throws CustomServiceUnavailableException {\r\n\r\n\t\tString filename = String.valueOf(id) + \".jpg\";\r\n\t\tString finalfile = \"\";\r\n\t\tfinalfile = filename;\r\n\t\tBufferedImage image = null;\r\n\t\tbyte[] imageByte;\r\n\r\n\t\ttry {\r\n\t\t\tBASE64Decoder decoder = new BASE64Decoder();\r\n\t\t\timageByte = decoder.decodeBuffer(encodedString);\r\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(imageByte);\r\n\t\t\timage = ImageIO.read(bis);\r\n\t\t\tbis.close();\r\n\t\t\tImageIO.write(image, \"jpg\", new File(finalfile));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CustomServiceUnavailableException(\"Internal error in the application\");\r\n\t\t}\r\n\r\n\t}", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "public void onFinalImageSet(java.lang.String r3, @javax.annotation.Nullable com.facebook.imagepipeline.image.ImageInfo r4, @javax.annotation.Nullable android.graphics.drawable.Animatable r5) {\r\n /*\r\n r2 = this;\r\n r3 = 0;\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x007e }\r\n r4 = r4.dataSource;\t Catch:{ all -> 0x007e }\r\n r4 = r4.getResult();\t Catch:{ all -> 0x007e }\r\n r4 = (com.facebook.common.references.CloseableReference) r4;\t Catch:{ all -> 0x007e }\r\n r3 = 1;\r\n if (r4 == 0) goto L_0x003b;\r\n L_0x0010:\r\n r5 = r4.get();\t Catch:{ all -> 0x0039 }\r\n r5 = (com.facebook.imagepipeline.image.CloseableImage) r5;\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0018:\r\n r0 = r5 instanceof com.facebook.imagepipeline.image.CloseableStaticBitmap;\t Catch:{ all -> 0x0039 }\r\n if (r0 == 0) goto L_0x003b;\r\n L_0x001c:\r\n r5 = (com.facebook.imagepipeline.image.CloseableStaticBitmap) r5;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.getUnderlyingBitmap();\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0024:\r\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.copy(r0, r3);\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmap = r5;\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r5 = com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(r5);\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmapDescriptor = r5;\t Catch:{ all -> 0x0039 }\r\n goto L_0x003b;\r\n L_0x0039:\r\n r3 = move-exception;\r\n goto L_0x0082;\r\n L_0x003b:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0049;\r\n L_0x0046:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0049:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0051:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.imageUri;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0059:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.imageUri;\r\n r4 = r4.getSharedIcon(r5);\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.iconBitmapDescriptor;\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r0 = r0.iconBitmap;\r\n r4.updateIcon(r5, r0);\r\n L_0x0078:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4.update(r3);\r\n return;\r\n L_0x007e:\r\n r4 = move-exception;\r\n r1 = r4;\r\n r4 = r3;\r\n r3 = r1;\r\n L_0x0082:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0090;\r\n L_0x008d:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0090:\r\n throw r3;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.android.react.maps.AirMapMarker.1.onFinalImageSet(java.lang.String, com.facebook.imagepipeline.image.ImageInfo, android.graphics.drawable.Animatable):void\");\r\n }", "private static native long createStructuredEdgeDetection_0(String model, long howToGetFeatures_nativeObj);", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "private void decodeBase64AndSetImage(String completeImageData, ImageView imageView) {\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n\n imageView.setImageBitmap(bitmap);\n }", "private static byte[] decode(char[] base64Data, int numberQuadruple) {\n byte b1 = 0;\n byte b2 = 0;\n byte b3 = 0;\n byte b4 = 0;\n char d1 = 0;\n char d2 = 0;\n char d3 = 0;\n char d4 = 0;\n\n int idx = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n byte[] decodedData = new byte[(numberQuadruple) * 3];\n\n for (; idx < numberQuadruple - 1; idx++) {\n if (!isData((d1 = base64Data[dataIndex++])) || !isData((d2 = base64Data[dataIndex++]))\n || !isData((d3 = base64Data[dataIndex++])) || !isData((d4 = base64Data[dataIndex++]))) {\n return new byte[0];\n } // if found \"no data\" just return null\n\n b1 = BASE64_ALPHABET[d1];\n b2 = BASE64_ALPHABET[d2];\n b3 = BASE64_ALPHABET[d3];\n b4 = BASE64_ALPHABET[d4];\n\n decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);\n decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));\n decodedData[encodedIndex++] = (byte) (b3 << 6 | b4);\n }\n\n if (!isData((d1 = base64Data[dataIndex++])) || !isData((d2 = base64Data[dataIndex++]))) {\n return new byte[0]; // if found \"no data\" just return null\n }\n\n byte[] tmp = checkCharacters(base64Data, d1, d2, idx, encodedIndex, dataIndex, decodedData);\n if (tmp != null) {\n return tmp;\n }\n return decodedData;\n }", "public static Bitmap decodeBase64(String input) {\r\n byte[] decodedBytes = Base64.decode(input, 0);\r\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\r\n }", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}", "public static Bitmap bitmapDecodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "public void setDecodeParms(List<?> decodeParams) {\n/* 385 */ this.stream.setItem(COSName.DECODE_PARMS, \n/* 386 */ (COSBase)COSArrayList.converterToCOSArray(decodeParams));\n/* */ }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "DetectionResult getObjInImage(Mat image);" ]
[ "0.8529453", "0.83757216", "0.7897133", "0.77981263", "0.75454974", "0.7537243", "0.72287273", "0.71766096", "0.71604896", "0.69882655", "0.68327564", "0.64414644", "0.64014995", "0.59532344", "0.5686704", "0.5541245", "0.5524336", "0.5302015", "0.5233631", "0.5202096", "0.51911384", "0.5158035", "0.5103073", "0.50908864", "0.50649726", "0.5056202", "0.5038286", "0.50052667", "0.4969757", "0.4957498", "0.49405754", "0.49391255", "0.49323627", "0.49282622", "0.49248552", "0.4908425", "0.4884857", "0.48716053", "0.48695484", "0.48695308", "0.4866752", "0.48633042", "0.48490137", "0.4816319", "0.48053044", "0.47831348", "0.4782936", "0.4765379", "0.4756946", "0.47560254", "0.47515577", "0.47501647", "0.47301573", "0.47221532", "0.47075468", "0.47022012", "0.469946", "0.4697544", "0.46927372", "0.4685169", "0.46822062", "0.46684617", "0.46660873", "0.4664506", "0.46621013", "0.4638486", "0.46225154", "0.4620613", "0.46181247", "0.46164447", "0.46119547", "0.46112972", "0.4594052", "0.45913732", "0.45912197", "0.45817226", "0.45801967", "0.45755926", "0.45731363", "0.45720834", "0.45661432", "0.45617628", "0.45460963", "0.45274267", "0.45236135", "0.45215702", "0.45203364", "0.45058003", "0.450577", "0.4491511", "0.44888532", "0.44769734", "0.44749236", "0.4473924", "0.4471915", "0.44678578", "0.44677827", "0.44674188", "0.44669172", "0.44669148" ]
0.80035067
2
C++: bool cv::GraphicalCodeDetector::detectAndDecodeMulti(Mat img, vector_string& decoded_info, Mat& points = Mat(), vector_Mat& straight_code = vector_Mat())
private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = detectAndDecodeMulti_0(nativeObj, img.nativeObj, decoded_info, points.nativeObj, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info, List<Mat> straight_code) {\n Mat straight_code_mat = new Mat();\n boolean retVal = decodeMulti_0(nativeObj, img.nativeObj, points.nativeObj, decoded_info, straight_code_mat.nativeObj);\n Converters.Mat_to_vector_Mat(straight_code_mat, straight_code);\n straight_code_mat.release();\n return retVal;\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) {\n return detectAndDecodeMulti_1(nativeObj, img.nativeObj, decoded_info, points.nativeObj);\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public String detectAndDecode(Mat img, Mat points, Mat straight_code) {\n return detectAndDecode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "public boolean decodeMulti(Mat img, Mat points, List<String> decoded_info) {\n return decodeMulti_1(nativeObj, img.nativeObj, points.nativeObj, decoded_info);\n }", "public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info) {\n return detectAndDecodeMulti_2(nativeObj, img.nativeObj, decoded_info);\n }", "private static native String detectAndDecode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img, Mat points) {\n return detectAndDecode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public String decode(Mat img, Mat points, Mat straight_code) {\n return decode_0(nativeObj, img.nativeObj, points.nativeObj, straight_code.nativeObj);\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public String decode(Mat img, Mat points) {\n return decode_1(nativeObj, img.nativeObj, points.nativeObj);\n }", "public boolean detectMulti(Mat img, Mat points) {\n return detectMulti_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "protected Mat detect(Mat gray, Mat rgba) {\n \n if (MainInterface.DEBUG_FRAME_LOGGING)\n log.pushTimer(this, \"frame\");\n contours.clear();\n contoursAll.clear();\n markerCandidates = new ArrayList<Marker>();\n \n if (USE_CANNY) {\n // best\n Imgproc.Canny(gray, out, BINARY_THRESHOLD - 50, BINARY_THRESHOLD + 50);\n } else if (USE_ADAPTIVE) {\n // speed: ~88ms\n Imgproc.adaptiveThreshold(gray, out, 255,\n Imgproc.ADAPTIVE_THRESH_MEAN_C,\n Imgproc.THRESH_BINARY, 7, 7);\n } else {\n // Standard\n // Speed: ~8ms\n Imgproc.threshold(gray, out, BINARY_THRESHOLD, 255, Imgproc.THRESH_BINARY);\n }\n \n if (DEBUG_PREP_FRAME)\n return out;\n \n // Speed: ~22ms\n Imgproc.findContours(out, contoursAll, new Mat(),\n Imgproc.RETR_LIST,\n Imgproc.CHAIN_APPROX_NONE);\n \n // Remove too small contours:\n // Speed: ~0ms\n for (MatOfPoint contour : contoursAll) {\n if (contour.total() <= 300)\n continue;\n contours.add(contour);\n }\n \n compositeFrameOut = rgba;\n \n // DEBUG_LOGGING\n if (DEBUG_CONTOURS) {\n Imgproc.drawContours(compositeFrameOut, contours, -1, new Scalar(255, 0, 0), 2);\n return compositeFrameOut;\n }\n \n // Do candidate processing:\n // Speed: ~100ms for one marker (+- 50ms)\n for (MatOfPoint contour : contours) {\n MatOfPoint2f input = new MatOfPoint2f(contour.toArray());\n // speed: ~2ms\n Imgproc.approxPolyDP(input, result, input.total() * 0.10,\n true);\n // Only take contours with ==4 points\n // speed: ~1ms\n if (result.total() != 4 || !Imgproc.isContourConvex(new\n MatOfPoint(result.toArray()))) {\n continue;\n }\n // Calculate perspective transform\n // speed: ~0ms\n Mat tempPerspective = Imgproc.getPerspectiveTransform(result,\n standardMarker);\n // Apply to get marker texture\n // speed: ~12ms\n Imgproc.warpPerspective(rgba, out, tempPerspective,\n new Size(MARKER_SIZE, MARKER_SIZE));\n // Check if marker\n // speed: ~9ms (range: 5ms to 30ms!)\n Marker mark = isMarker(result, out);\n if (mark == null)\n continue;\n // Save area\n int area = (int) Imgproc.contourArea(contour);\n mark.setArea(area);\n // Save marker candidate\n markerCandidates.add(mark);\n }\n \n // Remove double markers that arise from using Canny or adaptive\n // threshold (inside & outside contour are found,\n // we remove inside to keep only one contour)\n ArrayList<Marker> toRemove = new ArrayList<Marker>();\n for (int i = 0; i < markerCandidates.size(); i++) {\n Marker mark = markerCandidates.get(i);\n for (int j = i + 1; j < markerCandidates.size(); j++) {\n Marker two = markerCandidates.get(j);\n if (!markersClose(mark, two))\n continue;\n if (mark.getArea() > two.getArea())\n toRemove.add(two);\n else\n toRemove.add(mark);\n }\n }\n for (Marker mark : toRemove)\n markerCandidates.remove(mark);\n \n // Now calculate the perspective transform for all markers:\n // Speed: ~2ms per detected marker\n for (Marker marker : markerCandidates) {\n Calib3d.solvePnP(objectPoints, marker.getCorners(), camMatrix,\n distCoeff, Rvec, Tvec);\n // Now to convert from OpenCV to OpenGL coordinates:\n // Convert rotation:\n Rvec.put(0, 1, Rvec.get(1, 0)[0] * -1.0f);\n Rvec.put(0, 2, Rvec.get(2, 0)[0] * -1.0f);\n // Calculate rotation matrix:\n Calib3d.Rodrigues(Rvec, rotMat);\n // Build OpenGL ready matrix:\n float[] translation = new float[]{\n (float) rotMat.get(0, 0)[0], (float) rotMat.get(1, 0)[0],\n (float) rotMat.get(2, 0)[0], 0.0f,\n (float) rotMat.get(0, 1)[0], (float) rotMat.get(1, 1)[0],\n (float) rotMat.get(2, 1)[0], 0.0f,\n (float) rotMat.get(0, 2)[0], (float) rotMat.get(1, 2)[0],\n (float) rotMat.get(2, 2)[0], 0.0f,\n (float) Tvec.get(0, 0)[0], -(float) Tvec.get(1, 0)[0],\n -(float) Tvec.get(2, 0)[0], 1.0f\n };\n \n marker.setRotTranslation(translation);\n }\n \n if (DEBUG_POLY) {\n ArrayList<MatOfPoint> temp = new ArrayList<MatOfPoint>();\n for (Marker mark : markerCandidates) temp.add(mark.getMOPCorners());\n Core.polylines(compositeFrameOut, temp, true, new Scalar(255, 0, 0), 2);\n }\n \n if ((DEBUG_DRAW_MARKERS || DEBUG_DRAW_MARKER_ID) && !markerCandidates\n .isEmpty()) {\n int RENDER_SCALE = 3;\n if (DEBUG_DRAW_MARKERS) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n Mat tempText = mark.grayTexture;\n // Might, but shouldn't be null\n if (tempText == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKERS: Texture NULL!\");\n continue;\n }\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n compositeFrameOut.put(i, xoffset + j,\n tempText.get(i / RENDER_SCALE,\n j / RENDER_SCALE));\n }\n }\n }\n if (DEBUG_DRAW_MARKER_ID) {\n int count = 0;\n for (Marker mark : markerCandidates) {\n boolean[][] tempBool = mark.getPattern();\n // Might, but shouldn't happen\n if (tempBool == null) {\n log.debug(TAG, \"DEBUG_DRAW_MARKER_ID: Pattern NULL!\");\n continue;\n }\n int yoffset = RENDER_SCALE * MARKER_SIZE *\n (DEBUG_DRAW_MARKERS ? 1 : 0);\n int xoffset = RENDER_SCALE * MARKER_SIZE * count;\n count++;\n for (int i = 0; i < RENDER_SCALE * MARKER_SIZE; i++)\n for (int j = 0; j < RENDER_SCALE * MARKER_SIZE; j++) {\n int x = i / MARKER_SQUARE / RENDER_SCALE,\n y = j / MARKER_SQUARE / RENDER_SCALE;\n if (x == 0 || y == 0 || x == MARKER_GRID - 1 || y ==\n MARKER_GRID - 1)\n compositeFrameOut.put(yoffset + i, xoffset + j,\n BLACK);\n else\n compositeFrameOut.put(yoffset + i, xoffset + j,\n tempBool[x - 1][y - 1] ?\n WHITE : BLACK);\n }\n }\n }\n }\n \n if (MainInterface.DEBUG_FRAME_LOGGING) {\n TimerResult timer = log.popTimer(this);\n log.debug(TAG, \"Detected \" + markerCandidates.size() + \" markers \" +\n \"in \" + timer.time + \"ms.\");\n }\n \n // Pass detected markers up\n mainInterface.updateList(markerCandidates);\n \n // Return frame (only used in frame debugging mode)\n return compositeFrameOut;\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public Mat detect(Mat in, Vector<Marker> detectedMarkers, CameraParameters cp, float markerSizeMeters, Mat frameDebug) {\n Vector<Marker> candidateMarkers = new Vector<Marker>();\n Vector<Marker> newMarkers = new Vector<Marker>();\n Imgproc.cvtColor((Mat)in, (Mat)this.grey, (int)11);\n this.thresHold(this.thresMethod, this.grey, this.thres);\n this.thres.copyTo(this.thres2);\n Imgproc.findContours((Mat)this.thres2, this.contours2, (Mat)this.hierarchy2, (int)3, (int)1);\n MatOfPoint2f approxCurve = new MatOfPoint2f();\n int i = 0;\n while (i < this.contours2.size()) {\n MatOfPoint2f contour = new MatOfPoint2f();\n this.contours2.get(i).convertTo((Mat)contour, CvType.CV_32FC2);\n int contourSize = (int)contour.total();\n if (contourSize > in.cols() / 5) {\n Imgproc.approxPolyDP((MatOfPoint2f)contour, (MatOfPoint2f)approxCurve, (double)((double)contourSize * 0.05), (boolean)true);\n if (approxCurve.total() == 4) {\n MatOfPoint mat = new MatOfPoint();\n approxCurve.convertTo((Mat)mat, CvType.CV_32SC2);\n if (Imgproc.isContourConvex((MatOfPoint)mat)) {\n double minDistFound = Double.MAX_VALUE;\n float[] points = new float[8];\n approxCurve.get(0, 0, points);\n int j = 0;\n while (j <= 4) {\n double d = Math.sqrt((points[j] - points[(j + 2) % 4]) * (points[j] - points[(j + 2) % 4]) + (points[j + 1] - points[(j + 3) % 4]) * (points[j + 1] - points[(j + 3) % 4]));\n if (d < minDistFound) {\n minDistFound = d;\n }\n j += 2;\n }\n if (minDistFound > 10.0) {\n Vector<Point> p = new Vector<Point>();\n p.add(new Point((double)points[0], (double)points[1]));\n p.add(new Point((double)points[2], (double)points[3]));\n p.add(new Point((double)points[4], (double)points[5]));\n p.add(new Point((double)points[6], (double)points[7]));\n candidateMarkers.add(new Marker(markerSizeMeters, p));\n }\n }\n }\n }\n ++i;\n }\n int nCandidates = candidateMarkers.size();\n int i2 = 0;\n while (i2 < nCandidates) {\n Marker marker = (Marker)candidateMarkers.get(i2);\n List p = new Vector();\n p = marker.toList();\n double dx1 = ((Point)p.get((int)1)).x - ((Point)p.get((int)0)).x;\n double dy2 = ((Point)p.get((int)2)).y - ((Point)p.get((int)0)).y;\n double dy1 = ((Point)p.get((int)1)).y - ((Point)p.get((int)0)).y;\n double dx2 = ((Point)p.get((int)2)).x - ((Point)p.get((int)0)).x;\n double o = dx1 * dy2 - dy1 * dx2;\n if (o < 0.0) {\n Collections.swap(p, 1, 3);\n marker.setPoints(p);\n }\n ++i2;\n }\n Vector<Integer> tooNearCandidates = new Vector<Integer>();\n int i3 = 0;\n while (i3 < nCandidates) {\n Marker toMarker = (Marker)candidateMarkers.get(i3);\n List toPoints = new Vector();\n toPoints = toMarker.toList();\n int j = i3 + 1;\n while (j < nCandidates) {\n float dist = 0.0f;\n Marker fromMarker = (Marker)candidateMarkers.get(j);\n List fromPoints = new Vector();\n fromPoints = fromMarker.toList();\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) * (((Point)fromPoints.get((int)0)).x - ((Point)toPoints.get((int)0)).x) + (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y) * (((Point)fromPoints.get((int)0)).y - ((Point)toPoints.get((int)0)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) * (((Point)fromPoints.get((int)1)).x - ((Point)toPoints.get((int)1)).x) + (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y) * (((Point)fromPoints.get((int)1)).y - ((Point)toPoints.get((int)1)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) * (((Point)fromPoints.get((int)2)).x - ((Point)toPoints.get((int)2)).x) + (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y) * (((Point)fromPoints.get((int)2)).y - ((Point)toPoints.get((int)2)).y)));\n dist = (float)((double)dist + Math.sqrt((((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) * (((Point)fromPoints.get((int)3)).x - ((Point)toPoints.get((int)3)).x) + (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y) * (((Point)fromPoints.get((int)3)).y - ((Point)toPoints.get((int)3)).y)));\n if ((double)(dist /= 4.0f) < 10.0) {\n tooNearCandidates.add(i3);\n tooNearCandidates.add(j);\n }\n ++j;\n }\n ++i3;\n }\n Vector<Integer> toRemove = new Vector<Integer>();\n int i4 = 0;\n while (i4 < nCandidates) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < tooNearCandidates.size()) {\n Marker first = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4));\n Marker second = (Marker)candidateMarkers.get((Integer)tooNearCandidates.get(i4 + 1));\n if (first.perimeter() < second.perimeter()) {\n toRemove.set((Integer)tooNearCandidates.get(i4), 1);\n } else {\n toRemove.set((Integer)tooNearCandidates.get(i4 + 1), 1);\n }\n i4 += 2;\n }\n i4 = 0;\n while (i4 < nCandidates) {\n if ((Integer)toRemove.get(i4) == 0) {\n int id;\n Marker marker = (Marker)candidateMarkers.get(i4);\n Mat canonicalMarker = new Mat();\n this.warp(in, canonicalMarker, new Size(50.0, 50.0), marker.toList());\n marker.setMat(canonicalMarker);\n marker.extractCode();\n if (marker.checkBorder() && (id = marker.calculateMarkerId()) != -1) {\n newMarkers.add(marker);\n Collections.rotate(marker.toList(), 4 - marker.getRotations());\n }\n }\n ++i4;\n }\n Collections.sort(newMarkers);\n toRemove.clear();\n i4 = 0;\n while (i4 < newMarkers.size()) {\n toRemove.add(0);\n ++i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size() - 1) {\n if (((Marker)newMarkers.get((int)i4)).id == ((Marker)newMarkers.get((int)(i4 + 1))).id) {\n if (((Marker)newMarkers.get(i4)).perimeter() < ((Marker)newMarkers.get(i4 + 1)).perimeter()) {\n toRemove.set(i4, 1);\n } else {\n toRemove.set(i4 + 1, 1);\n }\n }\n ++i4;\n }\n i4 = toRemove.size() - 1;\n while (i4 >= 0) {\n if ((Integer)toRemove.get(i4) == 1) {\n newMarkers.remove(i4);\n }\n --i4;\n }\n i4 = 0;\n while (i4 < newMarkers.size()) {\n if (cp.isValid()) {\n ((Marker)newMarkers.get(i4)).calculateExtrinsics(cp.getCameraMatrix(), cp.getDistCoeff(), markerSizeMeters);\n }\n ++i4;\n }\n detectedMarkers.setSize(newMarkers.size());\n Collections.copy(detectedMarkers, newMarkers);\n\n return this.thres;\n }", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "private static native long imdecode_0(long buf_nativeObj, int flags);", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public static void main(String[] args) {\n System.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n VideoCapture VC = new VideoCapture();\n if(!VC.open(0)) {\n System.out.println(\"Open Video Error\");\n }\n while (true){\n Mat img = new Mat();\n if(!VC.read(img)){\n return;\n }\n Mat rgb = new Mat();\n Mat gray = new Mat();\n Imgproc.cvtColor(img,rgb,Imgproc.COLOR_BGRA2RGB);\n Imgproc.cvtColor(rgb,gray,Imgproc.COLOR_BGR2GRAY);\n CascadeClassifier CC = new CascadeClassifier(\"E:/2020/opencv/opencv/build/etc/haarcascades/haarcascade_frontalface_default.xml\");\n MatOfRect rect = new MatOfRect();\n CC.detectMultiScale(gray,rect);\n for(Rect r : rect.toArray()){\n Imgproc.rectangle(img,new Point(r.x,r.y),new Point(r.x + r.width,r.y + r.height),new Scalar(255,0,0));\n }\n HighGui.imshow(\"imshow\",img);\n HighGui.waitKey(10);\n }\n }", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public List<Result> recognize(IplImage image);", "public static void main(String[] args) {\n\t\tString datasource=trainer();\n\t\tMat testImage2=new Mat();\n\t\t\n\t\t// VideoCapture capture = new VideoCapture(0);\n\t//\topencv_imgproc.cvtColor(testImage2,testImage2,Imgproc.COLOR_GRAY2RGB);\n \n // Mat testImage = imread(\"C:\\\\Users\\\\Nikki singh\\\\Downloads\\\\nikki's_sample\\\\nikki#1_6.png\", IMREAD_GRAYSCALE); //THIS S STATIC FUNCTION\n\n File root = new File(datasource);\n\n FilenameFilter imgFilter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n name = name.toLowerCase();\n return name.endsWith(\".jpg\") || name.endsWith(\".pgm\") || name.endsWith(\".png\");\n }\n };\n\n File[] imageFiles = root.listFiles(imgFilter);\n\n MatVector images = new MatVector(imageFiles.length);\n\n Mat labels = new Mat(imageFiles.length, 1, CV_32SC1);\n IntBuffer labelsBuf = labels.createBuffer();\n //System.out.println(labelsBuf.arrayOffset());\n int counter = 0;\n for (File image : imageFiles) {\n Mat img =imread(image.getAbsolutePath(),IMREAD_GRAYSCALE);\n // Imgproc.resize(img, img, new Size(500,500)); //WE WILL SORT IT OUT LATER\n System.out.println(image.getName().replace(\".png\", \"\"));\n int label = Integer.parseInt(image.getName().replace(\".png\", \"\").split(\"#\")[1].split(\"_\")[0]);\n\n images.put(counter, img);\n \n labelsBuf.put(counter, label);\n\n counter++;\n }\n // System.out.println(labelsBuf.asReadOnlyBuffer().arrayOffset());\n // FaceRecognizer faceRecognizer = FisherFaceRecognizer.create();\n // FaceRecognizer faceRecognizer = EigenFaceRecognizer.create();\n FaceRecognizer faceRecognizer = LBPHFaceRecognizer.create();\n\n faceRecognizer.train(images, labels);\n test(faceRecognizer);\n \n\t}", "@Override\n public void run() {\n try {\n byte[] photoData = IOUtils.toByteArray(inputStream);\n inputStream.close();\n //Mat src = Imgcodecs.imdecode(new MatOfByte(photoData), Imgcodecs.CV_LOAD_IMAGE_UNCHANGED);\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n\n\n\n// //OCR PREPROCESSING FOR FAREHA'S MODULE\n// try{\n//// Mat src = Utils.loadResource(reportAnalysisActivity.this, R.drawable.bloodf, Imgcodecs.CV_LOAD_IMAGE_GRAYSCALE);\n// //boolean ans = src.isContinuous();\n// //1. Resizing\n// double ratio = (double)src.width()/src.height();\n// if(src.width()>768){\n// int newHeight = (int)(768/ratio);\n// Imgproc.resize(src,src,new Size(768,newHeight ));\n// }\n// else if(src.height()>1024){\n// int newWidth = (int)(1024*ratio);\n// Imgproc.resize(src,src,new Size(newWidth,1024));\n// }\n//\n// //2. denoising\n// Photo.fastNlMeansDenoising(src,src,10,7,21);\n// }\n// catch(Exception e){}\n//\n// photoData = new byte[(int) (src.total() * src.channels())];\n// src.get(0, 0, photoData);\n//\n Image inputImage = new Image();\n inputImage.encodeContent(photoData);\n\n Feature desiredFeature = new Feature();\n desiredFeature.setType(\"TEXT_DETECTION\");\n\n BatchAnnotateImagesRequest batchRequest =\n new BatchAnnotateImagesRequest();\n final AnnotateImageRequest request = new AnnotateImageRequest();\n request.setImage(inputImage);\n request.setFeatures(Arrays.asList(desiredFeature));\n batchRequest.setRequests(Arrays.asList(request));\n BatchAnnotateImagesResponse batchResponse = vision.images().annotate(batchRequest).execute();\n text = batchResponse.getResponses().get(0).getFullTextAnnotation();\n\n int block_number = -1;\n int current_block = 0;\n ArrayList<Vertex> block_coords = new ArrayList<Vertex>();\n\n for (Page page : text.getPages()) {\n for (Block block : page.getBlocks()) {\n\n block_number++;\n //Save vertices of all the blocks\n block_coords.add(block.getBoundingBox().getVertices().get(0));\n allBlocks.add(block);\n\n for (Paragraph paragraph : block.getParagraphs()) {\n for (Word word : paragraph.getWords()) {\n String c_word = \"\";\n for (Symbol symbol : word.getSymbols()) {\n c_word += symbol.getText();\n }\n if (c_word.equals(\"WBC\") || c_word.equals(\"RBC\") ||\n c_word.equals(\"HB\") || c_word.equals(\"Hb\") || c_word.contains(\"Hemoglobin\") || c_word.equals(\"Haemoglobin\")\n || c_word.equals(\"Hematocrit\") || c_word.equals(\"HCT\") || c_word.equals(\"MCV\") || c_word.equals(\"MCH\")\n || c_word.equals(\"MCHC\") || c_word.contains(\"Platelet\") || c_word.equals(\"PLT\") || c_word.equals(\"ESR\")\n || c_word.equals(\"LYM\") || c_word.equals(\"LYM#\") || c_word.equals(\"LYM%\") || c_word.contains(\"Lym\")\n || c_word.equals(\"NEUT#\") || c_word.contains(\"NUET%\") || c_word.equals(\"NEUT\") || c_word.contains(\"Neut\")\n || c_word.contains(\"Monocytes\") || c_word.contains(\"Eosinophils\")\n || c_word.equals(\"Mixed Cells\") ||c_word.equals(\"Basophils\") ||c_word.equals(\"Bands\") ||\n c_word.contains(\"Bilirubin\") || c_word.equals(\"ALT\") || c_word.equals(\"SGPT\") || c_word.equals(\"ALK-Phos\") || c_word.contains(\"Alk\")\n || c_word.equals(\"ALK\")) {\n\n //Store the y coords of blocks containing testnames in array if not already saved\n if (testnameBlocks_coords.isEmpty() || !testnameBlocks_coords.contains(block_coords.get(block_number)))\n testnameBlocks_coords.add(block_coords.get(block_number));\n }\n }\n }\n }\n\n }\n\n //Sort the array containing the blocks that contain the test names in an order of largest y coordinates\n Collections.sort(testnameBlocks_coords, new Comparator<Vertex>() {\n @Override\n public int compare(Vertex x1, Vertex x2) {\n int result= Integer.compare(x1.getY(), x2.getY());\n if(result==0){\n //both ys are equal so we compare the x\n result=Integer.compare(x1.getX(), x2.getX());\n }\n return result;\n }\n });\n\n //Save the names of the testnames in order in test_name array\n int blocknum = 0;\n for (int j = 0; j < testnameBlocks_coords.size(); j++) {\n for (int i = 0; i < allBlocks.size(); i++) {\n if (allBlocks.get(i).getBoundingBox().getVertices().get(0) == testnameBlocks_coords.get(j)) {\n blocknum = i; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n for (Paragraph paragraph : allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for (Word word : paragraph.getWords()) {\n String name = \"\";\n for (Symbol symbol : word.getSymbols()) {\n name += symbol.getText();\n //save the testnames in testnames array\n }\n if (name.equals(\"%\") || name.equals(\"#\") || name.equals(\"Count\") || name.equals(\",\")\n || name.equals(\"Level\")) {\n StringBuilder stringBuilder = new StringBuilder(testnames.get(testnames.size() - 1));\n stringBuilder.append(name);\n testnames.add(testnames.size() - 1, stringBuilder.toString());\n testnames.remove(testnames.size() - 1);\n }\n else if (name.equals(\"WBC\") || name.equals(\"RBC\") ||\n name.equals(\"HB\") || name.equals(\"Hb\") || name.contains(\"Hemoglobin\") || name.equals(\"Haemoglobin\")\n || name.equals(\"Hematocrit\") || name.equals(\"HCT\") || name.equals(\"MCV\") || name.equals(\"MCH\")\n || name.equals(\"MCHC\") || name.contains(\"Platelet\") || name.equals(\"PLT\") || name.equals(\"ESR\")\n || name.equals(\"LYM\") || name.equals(\"LYM#\") || name.equals(\"LYM%\") || name.contains(\"Lym\")\n || name.equals(\"NEUT#\") || name.contains(\"NUET%\") || name.equals(\"NEUT\") || name.contains(\"Neut\")\n || name.contains(\"Monocytes\") || name.contains(\"Eosinophils\")\n || name.equals(\"Mixed Cells\") ||name.equals(\"Basophils\") ||name.equals(\"Bands\") ||\n name.contains(\"Bilirubin\") || name.equals(\"ALT\") || name.equals(\"SGPT\") || name.equals(\"ALK-Phos\") || name.contains(\"Alk.\")\n || name.equals(\"ALK\"))\n testnames.add(name);\n\n }\n }\n\n }\n\n //Below is the procedure to find the values of testvalues\n int result_block_index = 0;\n int num_of_values=0;\n int diff=0;\n ArrayList<Integer> ignoreIndex=new ArrayList<Integer>();\n Boolean isFloat=true;\n float value=0;\n\n while(num_of_values<testnames.size()){\n //next block of values\n if(!testvaluesBlocks_coords.isEmpty()){\n int previous_result_block_index = result_block_index; //Index at which the value block lies\n diff = Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX())<diff && previous_result_block_index!=i){\n if(!ignoreIndex.contains(i)){\n diff= Math.abs(block_coords.get(previous_result_block_index).getX()-block_coords.get(i).getX());\n result_block_index=i;\n }\n\n }\n }\n }\n //first block of values\n else{\n //Getting values from te first block\n diff=Integer.MAX_VALUE;\n\n for(int i=0; i<block_coords.size(); i++){\n if(Math.abs(testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY())<diff && block_coords.indexOf(testnameBlocks_coords.get(0))!=i){\n if(!ignoreIndex.contains(i)){\n diff= testnameBlocks_coords.get(0).getY()-block_coords.get(i).getY();\n result_block_index=i;\n }\n\n }\n }\n }\n isFloat=false;\n for(Paragraph paragraph: allBlocks.get(result_block_index).getParagraphs()){\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n\n }\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n if(value_string.contains(\"-\")){\n isFloat=false;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n break;\n }\n try{\n value= Float.parseFloat(value_string);\n num_of_values++;\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n isFloat=true;\n\n }\n catch (NumberFormatException e){\n //ignore indices that have been selected no matter if they had the values or not\n if(!ignoreIndex.contains(result_block_index))\n ignoreIndex.add(result_block_index);\n }\n\n\n\n\n }\n }\n\n if(isFloat){\n //Save y coordinates of value block\n testvaluesBlocks_coords.add(block_coords.get(result_block_index).getY());\n }\n }\n //sort test values coordinates array\n Collections.sort(testvaluesBlocks_coords);\n\n //save the values in an array\n for(int i=0; i<testvaluesBlocks_coords.size();i++){\n for(int j=0; j<allBlocks.size();j++){\n if(allBlocks.get(j).getBoundingBox().getVertices().get(0).getY()==testvaluesBlocks_coords.get(i)){\n blocknum=j; //The index at which the block coordinate is present in the block_cooords array\n break;\n }\n }\n\n //save values in array\n for (Paragraph paragraph: allBlocks.get(blocknum).getParagraphs()) { //Loop on its paragraphs\n for(Word word: paragraph.getWords()){\n String value_string=\"\";\n for(Symbol symbol: word.getSymbols()){\n value_string+=symbol.getText();\n }\n\n while(value_string.contains(\",\")){\n int z = value_string.indexOf(\",\");\n value_string = value_string.substring(0, z) + value_string.substring(z + 1);\n }\n try{\n value= Float.parseFloat(value_string);\n //save the testnames in testnames array\n testValues.add(Float.parseFloat(value_string));\n }\n catch(NumberFormatException n){\n\n }\n }\n\n }\n }\n\n for (int a = 0; a < testnames.size(); a++) {\n Log.e(testnames.get(a), Float.toString(testValues.get(a)));\n }\n\n //Convert the testname and testvalues array to string so they can be passed on\n StringBuilder sb = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for (int i = 0; i < testnames.size(); i++) {\n sb.append(testnames.get(i)).append(\",\");\n sb2.append(testValues.get(i)).append(\",\");\n\n }\n\n //Save the values and testnames so they can be passed on to next activity\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(reportAnalysisActivity.this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"testnames\", sb.toString());\n editor.putString(\"testvalues\", sb2.toString());\n editor.putString(\"gender\", gender);\n editor.apply();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Intent reportresultScreen = new Intent(view.getContext(), reportResult_Activity.class);\n startActivity(reportresultScreen);\n }\n });\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n done=true;\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "private void detectAndFrame(final Bitmap imageBitmap) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);\n ByteArrayInputStream inputStream =\n new ByteArrayInputStream(outputStream.toByteArray());\n\n DetectTask detectTask = new DetectTask();\n\n try{\n ImageView imageView = findViewById(R.id.imageView1);\n Face[] faces = detectTask.execute(inputStream).get();\n if (faces.length == 0){\n Log.d(TAG, \"Detection Failed, nobody is detected\");\n }else{\n imageView.setImageBitmap(\n drawFaceRectanglesOnBitmap(imageBitmap, faces));\n facialID = faces[0].faceId;\n }\n }catch (Exception e){\n Log.d(TAG, e.toString());\n }\n }", "@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }", "public void process5(Mat rgbaImage) {\n\n\n\n Imgproc.cvtColor(rgbaImage,mPyrDownMat,Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.medianBlur(rgbaImage,rgbaImage,9);\n\n //Imgproc.cvtColor(rgbaImage, rgbaImage, Imgproc.COLOR_RGBA2GRAY);\n //Imgproc.blur(mPyrDownMat,mPyrDownMat,temp_size);\n Imgproc.GaussianBlur(mPyrDownMat, mPyrDownMat,new Size(5,5), 0);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,0,maxTreshold,Imgproc.THRESH_OTSU);\n //Imgproc.threshold(mPyrDownMat,mPyrDownMat,minTreshold,maxTreshold,Imgproc.THRESH_BINARY_INV);\n\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,75,10);\n\n //Imgproc.Canny(rgbaImage,rgbaImage,minTreshold,maxTreshold,3,true);\n //Imgproc.dilate(rgbaImage, rgbaImage, new Mat());\n //Imgproc.erode(rgbaImage,rgbaImage,new Mat());\n\n\n\n //Imgproc.Canny(mPyrDownMat,mPyrDownMat,10,100,3,true);\n\n //Imgproc.pyrDown(rgbaImage, mPyrDownMat);\n //Imgproc.pyrDown(mPyrDownMat, mPyrDownMat);\n\n\n //Imgproc.cvtColor(mPyrDownMat, mHsvMat, Imgproc.COLOR_RGB2HSV_FULL);\n\n //Core.inRange(mHsvMat, mLowerBound, mUpperBound, mMask);\n //Imgproc.dilate(mMask, mDilatedMask, new Mat());\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n //Imgproc.findContours(mDilatedMask, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n //Imgproc.findContours(rgbaImage, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n /*\n // Find max contour area\n double maxArea = 0;\n Iterator<MatOfPoint> each = contours.iterator();\n while (each.hasNext()) {\n MatOfPoint wrapper = each.next();\n double area = Imgproc.contourArea(wrapper);\n if (area > maxArea){\n maxArea = area;\n //Log.e(\"Max Area\", \"wtf.. \" + maxArea);\n }\n\n }*/\n/*\n Iterator<MatOfPoint> each = contours.iterator();\n // Filter contours by area and resize to fit the original image size\n mContours.clear();\n each = contours.iterator();\n\n\n //Center Calculation init\n meanCenterX = 0;\n SameCenterContour = 0;\n Point temp_point = new Point(0,0);\n\n int temp_point_y = 0;\n\n\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n\n //Log.e(TAG, \"Sizes: \" + Imgproc.contourArea(contour) + \" Max: \" + mMinContourArea*maxArea);\n if (Imgproc.contourArea(contour) > 0) {\n mContours.add(contour);\n\n\n //Change image view to show what is founded\n Mat m = new Mat();\n\n //Draw bounding rect\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n //Log.e(TAG, \"temprec x: \" + temp_rec.tl().x + \" temrec width: \" + temp_rec.width);\n //Log.e(TAG, \"temprec : \" + temp_rec.tl().y + \" temrec width: \" + temp_rec.height);\n\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint2f approx = new MatOfPoint2f();\n*/\n\n /*contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n\n if (approx.rows() >= 4){\n Point tr = approx.toList().get(0);\n Point br = approx.toList().get(1);\n Point bl = approx.toList().get(2);\n Point tl = approx.toList().get(3);\n\n //temp_rec.tl().x -= temp_rec.width;\n //temp_rec.tl().y -= temp_rec.height;\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,br,1,new Scalar(255,100,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,100,250,255),4);\n Imgproc.circle(rgbaImage,tl,1,new Scalar(255,100,100,255),4);\n\n }*/\n/*\n Point tr = new Point(temp_rec.tl().x+temp_rec.size().width,temp_rec.tl().y);\n Point bl = new Point(temp_rec.br().x-temp_rec.size().width,temp_rec.br().y);\n\n Imgproc.circle(rgbaImage,temp_rec.tl(),1,new Scalar(0,0,255,255),4);\n Imgproc.circle(rgbaImage,tr,1,new Scalar(255,255,0,255),4);\n Imgproc.circle(rgbaImage,temp_rec.br(),1,new Scalar(255,0,0,255),4);\n Imgproc.circle(rgbaImage,bl,1,new Scalar(255,0,255,255),4);\n\n //Draw mid\n\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n int y = (int) (p.get_m01() / p.get_m00());\n\n\n //Check if they are in the same vertical line\n\n meanCenterX += x;\n*/\n /*\n if (contours.size() > 14) {\n if (temp_point.x == x)\n SameCenterContour++;\n\n }*/\n/*\n Imgproc.circle(rgbaImage, new Point(x, y), 1, new Scalar(255,49,0,255),4);\n Imgproc.line(rgbaImage,new Point(x,y), new Point(x,0),new Scalar(255,49,0,255),4);\n centers.add(x);\n /*\n //set preview\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);*//*\n }\n }//end while all contours*/\n\n\n\n\n /*mContours.clear();\n each = contours.iterator();\n MatOfPoint2f approx = new MatOfPoint2f();\n MatOfPoint2f mMOP2f1 = new MatOfPoint2f();\n MatOfPoint mMOP = new MatOfPoint();\n while (each.hasNext()) {\n\n MatOfPoint contour = each.next();\n contour.convertTo(mMOP2f1,CvType.CV_32FC2);\n Imgproc.approxPolyDP(mMOP2f1,approx,Imgproc.arcLength(mMOP2f1,true)*0.02,true);\n approx.convertTo(mMOP, CvType.CV_32S);\n\n if(approx.rows()==4 && Imgproc.isContourConvex(mMOP) ){\n //Log.e(\"contour\", \"Contour area\" + Imgproc.contourArea(contour) + \"Max Area\");\n if (Imgproc.contourArea(contour) > maxArea){\n MatOfPoint temp = new MatOfPoint();\n approx.convertTo(temp,CvType.CV_32S);\n Core.multiply(temp, new Scalar(4,4), temp);\n mContours.add(temp);\n\n\n Rect temp_rec = Imgproc.boundingRect(temp);\n\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n /*Core.multiply(approx,new Scalar(4,4),approx);\n Mat src = new Mat(4,1, CvType.CV_32FC2);\n\n Log.e(TAG,\"\" + (int)approx.toList().get(0).y + (int)approx.toList().get(0).x + \"\\n\" +\n (int)approx.toList().get(1).y +(int)approx.toList().get(1).x + \"\\n\" +\n (int)approx.toList().get(2).y + (int)approx.toList().get(2).x + \"\\n\" +\n (int)approx.toList().get(3).y + (int)approx.toList().get(3).x);\n\n src.put((int)approx.toList().get(0).y, (int)approx.toList().get(0).x,\n (int)approx.toList().get(1).y, (int)approx.toList().get(1).x,\n (int)approx.toList().get(2).y, (int)approx.toList().get(2).x,\n (int)approx.toList().get(3).y, (int)approx.toList().get(3).x\n );\n\n Mat dst = new Mat(4,1,CvType.CV_32FC2);\n dst.put(0,0,0,temp.width(),temp.height(),temp.width(),temp.height(),0);\n\n Mat perspectiveTransform = Imgproc.getPerspectiveTransform(src,dst);\n Imgproc.warpPerspective(temp,temp,perspectiveTransform, new Size(temp.cols(), temp.rows()));\n\n Mat m = new Mat();\n\n temp_rec = Imgproc.boundingRect(temp);\n m = rgbaImage.submat(temp_rec);\n mBitmap = Bitmap.createBitmap(m.width(),m.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(m,mBitmap);\n\n }\n\n }\n\n }*/\n Mat circles = new Mat();\n\n\n Imgproc.HoughCircles(mPyrDownMat,circles,Imgproc.CV_HOUGH_GRADIENT,dp,minDist,param1,param2,minRadius,maxRadius);\n\n //Imgproc.HoughCircles(rgbaImage,circles,Imgproc.CV_HOUGH_GRADIENT,1,20,23,46,0,0);\n Log.e(\"Circles\", \"Total circle count:\" + circles.cols());\n Mat circleBoundRect = new Mat();\n for (int i = 0; i < circles.cols(); i++) {\n double mCircle[] = circles.get(0,i);\n\n int x = (int) Math.round(mCircle[0]);\n int y = (int) Math.round(mCircle[1]);\n int r = (int) Math.round(mCircle[2]);\n\n Point center = new Point(x ,y);\n\n Point tl = new Point(x-r,y-r);\n Point br = new Point(x+r,y+r);\n\n Rect circleBoundRect_temp = new Rect(tl,br);\n Log.e(\"Circles\",\"x: \"+ x + \"y: \"+y + \"r: \"+r);\n\n try {\n circleBoundRect = mPyrDownMat.submat(circleBoundRect_temp);\n }\n catch (Exception e){\n Log.e(\"Circles Exception\",e.toString());\n }\n double percentage = Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height);\n if (percentage> 0.6){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(247,0,255),3);\n }\n\n else if (percentage < 0.6 && percentage>0.3){\n Imgproc.rectangle(rgbaImage,tl,br,new Scalar(0,255,0),3);\n }\n\n //Log.e(\"Circles\",\"\"+Core.countNonZero(circleBoundRect)/(circleBoundRect.size().width*circleBoundRect.size().height));\n //draw circle\n //Imgproc.circle(rgbaImage,center,r,new Scalar(57,58,153),4);\n //draw center\n //Imgproc.circle(rgbaImage,center,3,new Scalar(57,58,153),5);\n\n\n\n }\n\n mBitmap = Bitmap.createBitmap(rgbaImage.width(),rgbaImage.height(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(rgbaImage,mBitmap);\n\n }", "@Override\n public Detections recognize(byte[] yuv, int image_w, int image_h, int rotation, Bitmap b) {\n System.out.println(image_h + \"......ye height hai\");\n System.out.println(image_w + \"......ye width hai\");\n Detections detects = new Detections();\n\n\n Logger.tick(\"d\");\n Logger.tick(\"yuvtoJPG\");\n int isYUV;\n image_bytes.clear();\n if (jpegQuality>0) {\n // we do rotation server-side, android client too slow (takes around 10ms in both java\n // and c on Huawei P9, while jpeg compression takes around 8ms).\n try {\n image_bytes.put(Transform.YUVtoJPEG(yuv, image_w, image_h, jpegQuality));\n isYUV = 0;\n } catch (Exception e) {\n // most likely encoded image is too big for image_bytes buffer\n Logger.addln(\"WARN: Problem encoding jpg: \"+e.getMessage());\n return detects; // bail\n }\n } else {\n // send image uncompressed\n image_bytes.put(yuv);\n isYUV=1;\n }\n detects.addTiming(\"yuvtoJPG\",Logger.tockLong(\"yuvtoJPG\"));\n\n int dst_w=image_w, dst_h=image_h;\n if ((rotation%180 == 90) || (rotation%180 == -90)) {\n dst_w = image_h; dst_h = image_w;\n }\n Matrix frameToViewTransform = Transform.getTransformationMatrix(\n image_w, image_h,\n dst_w, dst_h,\n rotation, false);\n // used to map received response rectangles back to handset view\n Matrix viewToFrameTransform = new Matrix();\n frameToViewTransform.invert(viewToFrameTransform);\n\n if (IP==null) {\n // resolve server name to IP address\n try {\n InetAddress names[] = InetAddress.getAllByName(server);\n StringBuilder n = new StringBuilder();\n for (InetAddress name : names) {\n n.append(name);\n if (name instanceof Inet4Address) {IP = name; break;}\n }\n Logger.addln(\"\\nResolved server to: \"+IP);\n if (IP == null) {\n Logger.addln(\"\\nWARN Problem resolving server: \"+n);\n return detects;\n }\n\n } catch (IOException e) {\n Logger.addln(\"\\nWARNProblem resolving server \"+server+\" :\"+e.getMessage());\n return detects;\n }\n }\n\n String req = \"POST /api/edge_app2?r=\" + rotation\n + \"&isYUV=\" + isYUV + \"&w=\"+ image_w + \"&h=\"+image_h\n + \" HTTP/1.1\\r\\nContent-Length: \" + image_bytes.position() + \"\\r\\n\\r\\n\";\n StringBuilder response = new StringBuilder();\n if (useUDP) {\n try {\n Logger.tick(\"url2\");\n // open connection (if not already open) and send request+image\n if (udpsockfd <0) {\n // put the server IP address into a byte buffer to make it easy to pass to jni C\n IPbuf.position(0);\n IPbuf.put(IP.getAddress());\n udpsockfd=socket(IPbuf,port);\n Debug.println(\"sock_fd=\"+udpsockfd);\n }\n Debug.println(\"data len=(\"+req.length()+\",\"+image_bytes.position()+\")\");\n Logger.tick(\"url2a\");\n // copy request to byte buffer so easy to pass to jni C\n req_buf.clear();\n req_buf.put(req.getBytes(),0,req.length());\n String str = sendmmsg(udpsockfd, req_buf, req.length(), image_bytes, image_bytes.position(), MSS);\n Debug.println(\"s: \"+str);\n //Logger.add(\"s: \"+str);\n detects.addTiming(\"url2a\",Logger.tockLong(\"url2a\"));\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n int count=1+(req.length()+image_bytes.position())/(MSS-2);\n detects.addTiming(\"pkt count\", count*1000);\n\n // read the response ...\n Logger.tick(\"url3\");\n // need to receive on same socket as used for sending or firewall blocks reception\n int resplen = recv(udpsockfd, recvbuf, MSS*LISTSIZE, MSS);\n if (resplen<0) {\n Logger.addln(\"\\nWARN UDP recv error: errno=\"+resplen);\n } else if (resplen==0) {\n Logger.addln(\"\\nWARN UDP timeout\");\n } else {\n response.append(new String(recvbuf.array(), recvbuf.arrayOffset(), resplen));\n }\n if (response.length()<=10) {\n Debug.println(\" received \" + response.length());\n }\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n Logger.addln(detects.client_timings.toString());\n //String pieces[] = response.split(\"\\n\");\n //response = pieces[pieces.length-1]; // ignore all the headers (shouldn't be any !)\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem with UDP on \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n }\n } else { // use TCP\n try {\n // open connection and send request+image\n Logger.tick(\"url2\");\n if (tcpsock == null) {\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n }\n try {\n out.write(req.getBytes());\n out.write(image_bytes.array(),image_bytes.arrayOffset(),image_bytes.position());\n out.flush();\n } catch(IOException ee) {\n // legacy server closes TCP connection after each response, in which case\n // we reopen it here.\n Logger.addln(\"Retrying TCP: \"+ee.getMessage());\n tcpsock.close();\n tcpsock = new Socket(IP, port);\n out = new BufferedOutputStream(tcpsock.getOutputStream());\n in = new BufferedReader(new InputStreamReader(tcpsock.getInputStream()));\n out.write(req.getBytes());\n out.write(image_bytes.array());\n out.flush();\n }\n detects.addTiming(\"url2\",Logger.tockLong(\"url2\"));\n\n Logger.tick(\"url3\");\n // read the response ...\n // read the headers, we ignore them all !\n String line;\n while ((line = in.readLine()) != null) {\n if (line.length() == 0) break; // end of headers, stop\n }\n // now read to end of response\n response.append(in.readLine());\n detects.addTiming(\"url3\",Logger.tockLong(\"url3\"));\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem connecting TCP to \"+IP+\":\"+port+\" (\"+e.getMessage()+\")\");\n try {\n tcpsock.close();\n } catch(Exception ee) {};\n tcpsock = null; // reset connection\n }\n }\n if (response.length()==0 || response.toString().equals(\"null\")) {\n Logger.add(\" empty response\");\n Logger.add(\": \"+Logger.tock(\"d\"));\n return detects; // server has dropped connection\n }\n // now parse the response as json ...\n try {\n // testing\n //response = \"{\"server_timings\":{\"size\":91.2,\"r\":0.4,\"jpg\":8.4,\"rot\":34.1,\"yolo\":48.3,\"tot\":0},\"results\":[{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]}\n // [{\"title\":\"diningtable\",\"confidence\":0.737176,\"x\":343,\"y\":415,\"w\":135,\"h\":296},{\"title\":\"chair\",\"confidence\":0.641756,\"x\":338,\"y\":265,\"w\":75,\"h\":57},{\"title\":\"chair\",\"confidence\":0.565877,\"x\":442,\"y\":420,\"w\":84,\"h\":421}]\n // cam: 39 {\"yuvtoJPG\":8,\"url2\":15,\"url3\":128,\"d\":152}\"\n JSONObject json_resp = new JSONObject(response.toString());\n JSONArray json = json_resp.getJSONArray(\"results\");\n int i; JSONObject obj;\n for (i = 0; i < json.length(); i++) {\n obj = json.getJSONObject(i);\n String title = obj.getString(\"title\");\n Float confidence = (float) obj.getDouble(\"confidence\");\n Float x = (float) obj.getInt(\"x\");\n Float y = (float) obj.getInt(\"y\");\n Float w = (float) obj.getInt(\"w\");\n Float h = (float) obj.getInt(\"h\");\n RectF location = new RectF(\n Math.max(0, x - w / 2), // left\n Math.max(0, y - h / 2), // top\n Math.min(dst_w - 1, x + w / 2), //right\n Math.min(dst_h - 1, y + h / 2)); // bottom\n viewToFrameTransform.mapRect(location); // map boxes back to original image co\n Recognition result = new Recognition(title, confidence, location, new Size(image_w, image_h));\n detects.results.add(result);\n }\n detects.server_timings = json_resp.getJSONObject(\"server_timings\");\n } catch(Exception e) {\n Logger.addln(\"\\nWARN Problem reading JSON: \"+response+\" (\"+e.getMessage()+\")\");\n }\n detects.addTiming(\"d\",Logger.tockLong(\"d\"));\n return detects;\n }", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public static void main(String[] args) \n\t{\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME );\n\t\tMatToBufferedImage M2B = new MatToBufferedImage();\n \tMat mat = Highgui.imread(\"C:\\\\Users\\\\Dell\\\\Desktop\\\\Projects\\\\OpenCV\\\\image6.png\",Highgui.CV_LOAD_IMAGE_COLOR);\n \tMat newMat = new Mat(mat.rows(), mat.cols(), mat.type());\n \tmat.convertTo(mat, CvType.CV_64FC3); //CV_64FC3 it can use double[] instead of byte[] \n \t//Mat newMat = mat.clone();\n \n \t//byte buff[] = new byte[(int) (mat.total() * mat.channels())];\n \tdouble buff[] = new double[(int) (mat.total() * mat.channels())];\n \n\t\tdouble alpha = 2.2;\n \tint beta = 50; \n \n \tSystem.out.println(mat.type());\n \n \tmat.get(0, 0, buff);\n \n \tImageShow imshow = new ImageShow(M2B.getBufferedImage(mat));\n \n \tfor( int i = 0; i<buff.length; i++)\n \t{\n \t\tbuff[i] = (alpha*buff[i]+beta);\n \t}\n \n \tnewMat.put(0, 0, buff);\n \n\t\tImageShow imshow1 = new ImageShow(M2B.getBufferedImage(newMat));\n \n\n\t}", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "static Bitmap detectfaces(Context context, Bitmap bitmap){\n Timber.d(\" timber start building DETECTOR\");\n FaceDetector detector=new FaceDetector.Builder(context)\n .setTrackingEnabled(false)\n .setClassificationType(FaceDetector.ALL_CLASSIFICATIONS)\n .build();\n// detector.setProcessor(\n// new MultiProcessor.Builder<>(new GraphicFaceTrackerFactory())\n// .build());\n Timber.d(\" timber END building DETECTOR\");\n Bitmap resultBitmap = bitmap;\n if(detector.isOperational()) {\n Frame frame = new Frame.Builder().setBitmap(bitmap).build();\n Timber.d(\" timber START DETECTING FACES DETECTOR\");\n SparseArray<Face> faces = detector.detect(frame);\n Timber.d(\" timber END DETECTING FACES DETECTOR\");\n\n\n Timber.d(\"size of faces\" + faces.size());\n // Toast.makeText(context,\"number of faces detected = \"+faces.size(),Toast.LENGTH_LONG).show();\n if (faces.size() == 0) {\n Toast.makeText(context, \"No faces detected\", Toast.LENGTH_SHORT).show();\n } else {\n for (int i = 0; i < faces.size(); i++) {\n Face face = faces.valueAt(i);\n // getProbability(face);\n Emoji emo = whichEmoji(face);\n Bitmap emojibitmap;\n switch (emo) {\n case SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.smile);\n break;\n\n case RIGHT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwink);\n break;\n\n case LEFT_WINK:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwink);\n break;\n\n case CLOSED_EYE_SMILE:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_smile);\n break;\n\n case FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.frown);\n break;\n\n case LEFT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.leftwinkfrown);\n break;\n\n case RIGHT_WINK_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.rightwinkfrown);\n break;\n\n case CLOSED_EYE_FROWN:\n emojibitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.closed_frown);\n break;\n default:\n emojibitmap = null;\n Toast.makeText(context, R.string.no_emoji, Toast.LENGTH_LONG).show();\n }\n\n resultBitmap = addBitmapToFace(resultBitmap, emojibitmap, face);\n }\n }\n }else{\n Toast.makeText(context,\"detector failed\",Toast.LENGTH_SHORT).show();\n }\n detector.release();\n return resultBitmap;\n }", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public static void main(String args[]) {\n System.loadLibrary( Core.NATIVE_LIBRARY_NAME );\n\n //Instantiating the Imagecodecs class\n Imgcodecs imageCodecs = new Imgcodecs();\n\n //Reading the Image from the file\n String file =\"C:\\\\RoboticsCode\\\\UltimateGoal4042\\\\opencv stuff\\\\images\";\n Mat matrix = imageCodecs.imread(file);\n\n System.out.println(\"Image Loaded\");\n }", "@Override\n public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n// steering = (TextView) findViewById(R.id.steering_angle);\n\n\n Mat frame = inputFrame.rgba();\n steering_angle_ = get_steering_prediction(frame.clone());\n Mat displayMat = null;\n// if(counterFrme % 10 == 0 || counterFrme %10 ==1 || counterFrme %10 ==2 || counterFrme %10 ==3 || counterFrme %10 ==4 ) {\n displayMat = draw_LaneLines(frame.clone());\n// displayMat = CarDetect(displayMat);\n// displayMat = PedestrainDet(frame.clone());\n\n// }else{\n// displayMat = frame;\n// }\n\n counterFrme ++;\n if(steering_angle_< 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn left \" + steering_angle_ * -1 + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n if(steering_angle_ > 0 ) {\n Imgproc.putText(\n displayMat, // Matrix obj of the image\n \"turn right \" + steering_angle_ + \"% of the wheel\", // Text to be added\n new Point(10, 50), // point\n Core.FONT_HERSHEY_SIMPLEX, // front face\n 1, // front scale\n new Scalar(255, 0, 0), // Scalar object for color\n 6 // Thickness\n );\n }\n\n return displayMat;\n\n }", "void process(Mat image);", "private static native boolean imencode_0(String ext, long img_nativeObj, long buf_mat_nativeObj, long params_mat_nativeObj);", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "public char identifyColor(Mat in)\r\n\t{\r\n\t\t//Mat blue = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat green = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t//Mat red = new Mat(in.rows(), in.cols(), CvType.CV_8UC1);\r\n\t\t\r\n\t\t//split the channels of the image\r\n\t\tMat blue = new Mat(); // default is CV_8UC3\r\n\t\tMat green = new Mat();\r\n\t\tMat red = new Mat();\r\n\t\tList<Mat> channels = new ArrayList<Mat>(3);\r\n\t\tCore.split(in, channels);\r\n\t\tblue = channels.get(0); // makes all 3 CV_8UC1\r\n\t\tgreen = channels.get(1);\r\n\t\tred = channels.get(2);\r\n\t\t//System.out.println(blue.toString());\r\n\t\t\r\n\t\t// add the intensities\r\n\t\tMat intensity = new Mat(in.rows(), in.cols(), CvType.CV_32F);\r\n\t\t//Mat mask = new Mat();\r\n\t\tCore.add(blue, green, intensity);//, mask, CvType.CV_32F);\r\n\t\tCore.add(intensity, red, intensity);//, mask, CvType.CV_32F);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// not sure if correct from here to ...\r\n\t\t\r\n\t\t\r\n\t\tMat inten = new Mat();\r\n\t\tCore.divide(intensity, Scalar.all(3.0), inten);\r\n\t\t//System.out.println(intensity.toString());\r\n\t\t//Core.divide(3.0, intensity, inten);\r\n\t\t// if intensity = intensity / 3.0; means element-wise division\r\n\t\t// use intensity.muls(Mat m)\r\n\t\t// so make new Mat m of same size that has each element of 1/3\r\n\t\t\r\n\t\t/*\r\n\t\t * or\r\n\t\t * About per-element division you can use Core.divide()\r\n\r\n\t\t\tCore.divide(A,Scalar.all(d), B);\r\n\t\t\t\r\n\t\t\tIt's equivalent to B=A/d\r\n\t\t */\r\n\t\t\r\n\t\t// find normalized values\r\n\t\tMat bnorm = new Mat();\r\n\t\tMat gnorm = new Mat();\r\n\t\tMat rnorm = new Mat();\r\n\t\t//blue.convertTo(blue, CvType.CV_32F);\r\n\t\t//green.convertTo(green, CvType.CV_32F);\r\n\t\t//red.convertTo(red, CvType.CV_32F);\r\n\t\t\r\n\t\tCore.divide(blue, inten, bnorm);\r\n\t\tCore.divide(green, inten, gnorm);\r\n\t\tCore.divide(red, inten, rnorm);\r\n\t\t\r\n\t\t\r\n\t\t// find average norm values\r\n\t\tScalar val = new Scalar(0);\r\n\t\tval = Core.mean(bnorm);\r\n\t\tString value[] = val.toString().split(\",\");\r\n\t\tString s = value[0].substring(1);\r\n\t\tdouble bavg = Double.parseDouble(s);\r\n\t\tval = Core.mean(gnorm);\r\n\t\tString value1[] = val.toString().split(\",\");\r\n\t\tString s1 = value1[0].substring(1);\r\n\t\tdouble gavg = Double.parseDouble(s1);\r\n\t\tval = Core.mean(rnorm);\r\n\t\tString value2[] = val.toString().split(\",\");\r\n\t\tString s2 = value2[0].substring(1);\r\n\t\tdouble ravg = Double.parseDouble(s2);\r\n\t\t\r\n\t\t\r\n\t\t// ... here\r\n\t\t\r\n\t\t\r\n\t\t//original values\r\n\t\t/*\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\t// define the reference color values\r\n\t\t//double RED[] = {0.4, 0.5, 1.8};\r\n\t\t//double GREEN[] = {1.0, 1.2, 1.0};\r\n\t\tdouble BLUE[] = {1.75, 1.0, 0.5};\r\n\t\t//double YELLOW[] = {0.82, 1.7, 1.7};\r\n\t\tdouble ORANGE[] = {0.2, 1.0, 2.0};\r\n\t\tdouble WHITE[] = {2.0, 1.7, 1.7};\r\n\t\t//double BLACK[] = {0.0, 0.3, 0.3};\r\n\t\t\r\n\t\t// compute the square error relative to the reference color values\r\n\t\t//double minError = 3.0;\r\n\t\tdouble minError = 2.0;\r\n\t\tdouble errorSqr;\r\n\t\tchar bestFit = 'x';\r\n\t\t\r\n\t\t\r\n\t\t//test++;\r\n\t\t//System.out.print(\"\\n\\n\" + test + \"\\n\\n\");\r\n\t\t\r\n\t\t\r\n\t\t// check BLUE fitness\r\n\t\terrorSqr = normSqr(BLUE[0], BLUE[1], BLUE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Blue: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLUE;\r\n\t\t}\r\n\t\t// check ORANGE fitness\r\n\t\terrorSqr = normSqr(ORANGE[0], ORANGE[1], ORANGE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Orange: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_ORANGE;\r\n\t\t}\r\n\t\t// check WHITE fitness\r\n\t\terrorSqr = normSqr(WHITE[0], WHITE[1], WHITE[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"White: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_WHITE;\r\n\t\t}\r\n\t\t// check BLACK fitness\r\n\t\t/*errorSqr = normSqr(BLACK[0], BLACK[1], BLACK[2], bavg, gavg, ravg);\r\n\t\tSystem.out.println(\"Black: \" + errorSqr);\r\n\t\tif(errorSqr < minError)\r\n\t\t{\r\n\t\t\tminError = errorSqr;\r\n\t\t\tbestFit = COLOR_BLACK;\r\n\t\t}*/\r\n\t\t\r\n\t\t// return the best fit color label\r\n\t\treturn bestFit;\r\n\t}", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public native void annotateImage(DrawInfo info);", "public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {\n mRgba = inputFrame.rgba();\n Imgproc.resize(mRgba, mRgba, new Size(100,100));\n // Rotate mRgba 90 degrees\n Core.transpose(mRgba, mRgbaT);\n Imgproc.resize(mRgbaT, mRgbaF, mRgbaF.size(), 0,0, 0);\n Core.flip(mRgbaF, mRgba, 1 );\n //Blurs for smoother edgges\n Imgproc.blur(mRgba, mRgba, new Size(8,8));\n\n //Adds the counter to the instantiation of each object as it counts the frame number\n Object blue = new Object(\"blue\", counter);\n Object green = new Object(\"green\", counter);\n Object red = new Object(\"red\", counter);\n\n Mat threshold = new Mat();\n Mat HSV = new Mat();\n //Changes from BGR to HSV as HSV allow much easier colour ranges for creating a binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_RGB2HSV);\n //Creates blue binary mat\n Core.inRange(HSV, blue.HSVMin, blue.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(blue,threshold,HSV,mRgba, blue.type, counter);\n\n //TODO disabled the green markers for now\n /*\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, green.HSVMin, green.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(green,threshold,HSV,mRgba, green.type, counter);\n */\n //creates red binary mat\n Imgproc.cvtColor(mRgba,HSV,Imgproc.COLOR_BGR2HSV);\n Core.inRange(HSV, red.HSVMin, red.HSVMax, threshold);\n morphOps(threshold);\n trackFilteredObject(red,threshold,HSV,mRgba, red.type, counter);\n\n //Colours the line that registers if a step has occured accordingly\n if(redGreenLine || blueGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(0, 255, 0), 2);\n }\n else if(!redGreenLine && !redGreenLine){\n Imgproc.line(mRgba, new Point(0, 150), new Point(500, 150), new Scalar(255, 0, 0), 2);\n }\n //Will write each frame to storage once the reoord button is pressed. This is used for setting ground truth data\n if(enableVideo) {\n Mat output = new Mat();\n Imgproc.cvtColor(mRgba, output, Imgproc.COLOR_RGB2BGR);\n Imgproc.resize(output, output, new Size(100,100));\n Imgcodecs.imwrite(fileName + BUILDING_NAME + FLOOR_NUMBER + \"(\" + startLat + \",\" + startLong + \")\" + \"to\" + \"(\" + endLat + \",\" + endLong + \")\" + Integer.toString(counter) + \".bmp\", output);\n }\n\n counter++;\n\n return mRgba; // This function must return\n }", "@Override\r\n\tpublic BufferedImage transform(BufferedImage image){\n\t\tMat mat = Mat2BufImg.BufImg2Mat(image, BufferedImage.TYPE_3BYTE_BGR, CvType.CV_8UC3);\r\n\t\t//人脸识别\r\n\t\ttry {\r\n\t\t\t//mat --> bufferimage\r\n\t\t\treturn Mat2BufImg.Mat2BufImg(detectFace(mat),\".png\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "DetectionResult getObjInImage(Mat image);", "@Override\n public MatOfRect detectObjects(Mat image, MatOfRect detectedObjects)\n {\n final String funcName = \"detectedObjects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"image=%s,objRects=%s\",\n image.toString(), detectedObjects.toString());\n }\n\n faceDetector.detectMultiScale(image, detectedObjects);\n if (!detectedObjects.empty())\n {\n faceRects = detectedObjects.toArray();\n }\n else\n {\n faceRects = null;\n detectedObjects = null;\n }\n\n if (videoOutEnabled)\n {\n putFrame();\n }\n\n currImage = image;\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.CALLBK, \"=%s\",\n Boolean.toString(detectedObjects != null));\n }\n\n return detectedObjects;\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "private Bitmap decodeBitmapBase64 (String encodedString)\t{\n\t\ttry {\n\n\t\t\tbyte[] decodedString = Base64.decode(encodedString.getBytes(\"UTF-8\"), Base64.DEFAULT);\n\t\t\tBitmap decodedImage = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n\t\t\treturn decodedImage;\n\n\t\t} catch (Exception e) {\n\n\t\t\tToast.makeText(getBaseContext(), \"Catch # 12:19\", Toast.LENGTH_LONG).show();\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "private List<Rect> decode(Mat scores, Mat geometry, List<Float> confidences, float scoreThresh) {\n int W = geometry.cols();\n int H = geometry.rows() / 5;\n //System.out.println(geometry);\n //System.out.println(scores);\n\n List<Rect> detections = new ArrayList<>();\n for (int y = 0; y < H; ++y) {\n Mat scoresData = scores.row(y);\n Mat x0Data = geometry.submat(0, H, 0, W).row(y);\n Mat x1Data = geometry.submat(H, 2 * H, 0, W).row(y);\n Mat x2Data = geometry.submat(2 * H, 3 * H, 0, W).row(y);\n Mat x3Data = geometry.submat(3 * H, 4 * H, 0, W).row(y);\n Mat anglesData = geometry.submat(4 * H, 5 * H, 0, W).row(y);\n\n for (int x = 0; x < W; ++x) {\n double score = scoresData.get(0, x)[0];\n if (score >= scoreThresh) {\n double offsetX = x * 4.0;\n double offsetY = y * 4.0;\n double angle = anglesData.get(0, x)[0];\n double cosA = Math.cos(angle);\n double sinA = Math.sin(angle);\n double x0 = x0Data.get(0, x)[0];\n double x1 = x1Data.get(0, x)[0];\n double x2 = x2Data.get(0, x)[0];\n double x3 = x3Data.get(0, x)[0];\n double h = x0 + x2;\n double w = x1 + x3;\n double endX = offsetX + (cosA*x1) + (sinA*x2);\n double endY = offsetY - (sinA*x1) + (cosA*x2);\n Point p1 = new Point(endX-w, endY-h);\n Point p3 = new Point(offsetX + (cosA*x1) + (sinA*x2), offsetY - (sinA*x1) + (cosA*x2));\n Rect r = new Rect(p1, p3);\n detections.add(r);\n confidences.add((float) score);\n }\n }\n }\n return detections;\n }", "public static void main(String[] args){\n String absolutePath = null;\n try {\n absolutePath = new File(\"./src/main/resources/opencv_contrib/opencv_java420.dll\").getCanonicalPath();\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.load(absolutePath);\n\n FaceRecognitionTests test = new FaceRecognitionTests();\n\n //test.treatAllPhotos();\n //test.train();\n //test.save();\n\n test.load();\n\n System.out.println(\"percentage correct : \" + test.testAll() * 100 + \"%\");\n\n /*\n Mat imageTest = Imgcodecs.imread(\"photo\\\\testing\\\\20\\\\20_P04A+000E+00.pgm\", Imgcodecs.IMREAD_GRAYSCALE);\n RecognitionResult testResult = test.recognize(imageTest);\n\n System.out.println(\"suposed result : 20, actual result : \" + testResult.label[0] + \" with confidence : \" + testResult.confidence[0]);\n */\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "public Mat beforeDataEncoded(Mat frame);", "public native boolean getMatte() throws MagickException;", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "private void faceDetection(){\n\n String haarPath = resToFile(R.raw.haarcascade_frontalface_default, \"haarcascade_frontalface_default.xml\");\n String testPicPath = resToFile(R.drawable.test_me, \"test_me.jpg\");\n\n CascadeClassifier faceDetector = new CascadeClassifier();\n Mat image = imread(testPicPath);\n boolean isEmpty = image.empty();\n\n faceDetector = new CascadeClassifier(haarPath);\n if(faceDetector.empty())\n {\n Log.v(\"MyActivity\",\"--(!)Error loading A\\n\");\n return;\n }\n else\n {\n Log.v(\"MyActivity\", \"Loaded cascade classifier from \" + haarPath);\n }\n\n //My Code\n MatOfRect faceDetections = new MatOfRect();\n faceDetector.detectMultiScale(image, faceDetections);\n\n System.out.println(String.format(\"Detected %s faces\", faceDetections.toArray().length));\n\n for (Rect rect : faceDetections.toArray()) {\n Imgproc.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n new Scalar(0, 255, 0));\n// Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),\n// new Scalar(0, 255, 0));\n }\n\n Bitmap bm = Bitmap.createBitmap(image.cols(), image.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(image, bm);\n\n ImageView imageView = (ImageView) findViewById(R.id.imageView);\n imageView.setImageBitmap(bm);\n }", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "public static void main(String[] args) {\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\tMat I = new Mat();\n\t\tMat I_pre = new Mat();\n\t\t\n\t\tI = Imgcodecs.imread(\"/media/vmc/Data/VMC/Workspace/Toeic-Scanner/Test_images/P1.jpg\", 1);\t\n\t\tToeicScanner scanner = new ToeicScanner();\n\t\tI_pre = scanner.DetectROI(I);\n\t\tImgcodecs.imwrite(\"Hi.png\", I_pre);\n\t\tString x = scanner.AlignProcess();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(scanner.GetAnswers());\n\t}", "private void runTextRecognition(Bitmap bitmap) {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(bitmap);\n FirebaseVisionTextDetector detector = FirebaseVision.getInstance().getVisionTextDetector();\n\n detector.detectInImage(image).addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n processTextRecognitionResult(texts);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n e.printStackTrace();\n }\n });\n }", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "private void detextTextFromImage(Bitmap imageBitmap) {\n\n\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(imageBitmap);\n\n FirebaseVisionTextRecognizer firebaseVisionTextRecognizer = FirebaseVision.getInstance().getCloudTextRecognizer();\n\n firebaseVisionTextRecognizer.processImage(image)\n .addOnSuccessListener(new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText firebaseVisionText) {\n String text = firebaseVisionText.getText();\n\n if (text.isEmpty() || text == null)\n Toast.makeText(ctx, \"Can not identify. Try again!\", Toast.LENGTH_SHORT).show();\n\n else {\n\n startTranslateIntent(text);\n }\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }\n });\n\n\n }", "void identify()\n{\n BytePtr head = new BytePtr(32);\n BytePtr cp = new BytePtr();\n int hlen, fsize, i, c;\n boolean is_canon;\n jhead jh = new jhead();\n /*\n static const struct {\n int fsize;\n char make[12], model[15], withjpeg;\n } \n */\n IdentifyTable table = new IdentifyTable();\n table.addElt( 62464, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 124928, \"Kodak\", \"DC20\" ,0 );\n table.addElt( 1652736, \"Kodak\", \"DCS200\" ,0 );\n table.addElt( 4159302, \"Kodak\", \"C330\" ,0 );\n table.addElt( 4162462, \"Kodak\", \"C330\" ,0 );\n table.addElt( 460800, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 614400, \"Kodak\", \"C603v\" ,0 );\n table.addElt( 6163328, \"Kodak\", \"C603\" ,0 );\n table.addElt( 6166488, \"Kodak\", \"C603\" ,0 );\n table.addElt( 9116448, \"Kodak\", \"C603y\" ,0 );\n table.addElt( 311696, \"ST Micro\", \"STV680 VGA\" ,0 ); /* SPYz */\n table.addElt( 614400, \"Kodak\", \"KAI-0340\" ,0 );\n table.addElt( 787456, \"Creative\", \"PC-CAM 600\" ,0 );\n table.addElt( 1138688, \"Minolta\", \"RD175\" ,0 );\n table.addElt( 3840000, \"Foculus\", \"531C\" ,0 );\n table.addElt( 786432, \"AVT\", \"F-080C\" ,0 );\n table.addElt( 1447680, \"AVT\", \"F-145C\" ,0 );\n table.addElt( 1920000, \"AVT\", \"F-201C\" ,0 );\n table.addElt( 5067304, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 10134608, \"AVT\", \"F-510C\" ,0 );\n table.addElt( 16157136, \"AVT\", \"F-810C\" ,0 );\n table.addElt( 1409024, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 2818048, \"Sony\", \"XCD-SX910CR\",0 );\n table.addElt( 3884928, \"Micron\", \"2010\" ,0 );\n table.addElt( 6624000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 13248000, \"Pixelink\", \"A782\" ,0 );\n table.addElt( 6291456, \"RoverShot\",\"3320AF\" ,0 );\n table.addElt( 6553440, \"Canon\", \"PowerShot A460\",0 );\n table.addElt( 6653280, \"Canon\", \"PowerShot A530\",0 );\n table.addElt( 6573120, \"Canon\", \"PowerShot A610\",0 );\n table.addElt( 9219600, \"Canon\", \"PowerShot A620\",0 );\n table.addElt( 10341600, \"Canon\", \"PowerShot A720\",0 );\n table.addElt( 10383120, \"Canon\", \"PowerShot A630\",0 );\n table.addElt( 12945240, \"Canon\", \"PowerShot A640\",0 );\n table.addElt( 15636240, \"Canon\", \"PowerShot A650\",0 );\n table.addElt( 5298000, \"Canon\", \"PowerShot SD300\" ,0 );\n table.addElt( 7710960, \"Canon\", \"PowerShot S3 IS\",0 ); \n table.addElt( 5939200, \"OLYMPUS\", \"C770UZ\" ,0 );\n table.addElt( 1581060, \"NIKON\", \"E900\" ,1 ); /* or E900s,E910 */\n table.addElt( 2465792, \"NIKON\", \"E950\" ,1 ); /* or E800,E700 */\n table.addElt( 2940928, \"NIKON\", \"E2100\" ,1 ); /* or E2500 */\n table.addElt( 4771840, \"NIKON\", \"E990\" ,1 ); /* or E995, Oly C3030Z */\n table.addElt( 4775936, \"NIKON\", \"E3700\" ,1 ); /* or Optio 33WR */\n table.addElt( 5869568, \"NIKON\", \"E4300\" ,1 ); /* or DiMAGE Z2 */\n table.addElt( 5865472, \"NIKON\", \"E4500\" ,1 );\n table.addElt( 7438336, \"NIKON\", \"E5000\" ,1 ); /* or E5700 */\n table.addElt( 8998912, \"NIKON\", \"COOLPIX S6\" ,1 );\n table.addElt( 1976352, \"CASIO\", \"QV-2000UX\" ,1 );\n table.addElt( 3217760, \"CASIO\", \"QV-3*00EX\" ,1 );\n table.addElt( 6218368, \"CASIO\", \"QV-5700\" ,1 );\n table.addElt( 6054400, \"CASIO\", \"QV-R41\" ,1 );\n table.addElt( 7530816, \"CASIO\", \"QV-R51\" ,1 );\n table.addElt( 7684000, \"CASIO\", \"QV-4000\" ,1 );\n table.addElt( 4948608, \"CASIO\", \"EX-S100\" ,1 );\n table.addElt( 7542528, \"CASIO\", \"EX-Z50\" ,1 );\n table.addElt( 7753344, \"CASIO\", \"EX-Z55\" ,1 );\n table.addElt( 7426656, \"CASIO\", \"EX-P505\" ,1 );\n table.addElt( 9313536, \"CASIO\", \"EX-P600\" ,1 );\n table.addElt( 10979200, \"CASIO\", \"EX-P700\" ,1 );\n table.addElt( 3178560, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 4841984, \"PENTAX\", \"Optio S\" ,1 );\n table.addElt( 6114240, \"PENTAX\", \"Optio S4\" ,1 ); /* or S4i */\n table.addElt( 10702848, \"PENTAX\", \"Optio 750Z\" ,1 );\n table.addElt( 12582980, \"Sinar\", \"\" ,0 );\n table.addElt( 33292868, \"Sinar\", \"\" ,0 );\n table.addElt( 44390468, \"Sinar\", \"\" ,0 );\n \n String[] corp =\n { \"Canon\", \"NIKON\", \"EPSON\", \"KODAK\", \"Kodak\", \"OLYMPUS\", \"PENTAX\",\n \"MINOLTA\", \"Minolta\", \"Konica\", \"CASIO\", \"Sinar\", \"Phase One\",\n \"SAMSUNG\", \"Mamiya\" };\n\n tiff_flip = flip = -1;\t/* 0 is valid, so -1 is unknown */\n filters = CTOJ.toUnsigned(-1);\n cr2_slice.at(0,(short)0);\n raw_height = raw_width = fuji_width = 0;\n maximum = height = width = top_margin = left_margin = 0;\n cdesc.setAt(0,(char) 0);\n desc.setAt(0,(char) 0);\n artist.setAt(0,(char) 0);\n make.setAt(0,(char)0);\n model.setAt(0,(char)0);\n model2.setAt(0,(char)0);\n iso_speed = shutter = aperture = focal_len = unique_id = 0;\n //Uc.memset (white, 0, white.sizeof());\n thumb_offset = thumb_length = thumb_width = thumb_height = 0;\n load_raw = null;\n thumb_load_raw = null;\n //write_thumb = & jpeg_thumb;\n data_offset = meta_length = tiff_bps = tiff_compress = 0;\n kodak_cbpp = zero_after_ff = dng_version = fuji_secondary = 0;\n timestamp = shot_order = tiff_samples = black = is_foveon = 0;\n data_error = false;\n zero_is_bad = false;\n pixel_aspect = is_raw = raw_color = use_gamma = 1;\n tile_length = Integer.MAX_VALUE;\n for (i=0; i < 4; i++) {\n cam_mul[i] = (i == 1 ? 1 : 0);\n pre_mul[i] = (i < 3 ?1:0);\n for (c=0; c < 3; c++) rgb_cam[c][i] = (c == i? 1: 0);\n }\n colors = 3;\n tiff_bps = 12;\n for (i=0; i < 0x4000; i++) curve.at(i, (short)i);\n profile_length = 0;\n\n order = (short)get2();\n hlen = get4();\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n CTOJ.fread (head, 1, 32, ifp);\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_END);\n fsize = CTOJ.ftell(ifp);\n if (( !cp.assign(CTOJ.memmem (head, 32, \"MMMM\", 4)).isNull()) ||\n ( !cp.assign(CTOJ.memmem (head, 32, \"IIII\", 4)).isNull())) {\n //parse_phase_one (cp.minus(head));\n if (cp.minus(head)!=0) parse_tiff(0);\n } else if (order == 0x4949 || order == 0x4d4d) {\n if (CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8) == 0) {\n data_offset = hlen;\n parse_ciff (hlen, fsize - hlen);\n } else {\n parse_tiff(0);\n }\n } else if ( CTOJ.memcmp (head,\"\\u00ff\\u00d8\\u00ff\\u00e1\",4) == 0 &&\n\t CTOJ.memcmp (head.plus(6),\"Exif\",4) == 0) {\n CTOJ.fseek (ifp, 4, CTOJ.SEEK_SET);\n data_offset = 4 + get2();\n CTOJ.fseek (ifp, data_offset, CTOJ.SEEK_SET);\n if (CTOJ.fgetc(ifp) != 0xff)\n parse_tiff(12);\n thumb_offset = 0;\n } else if ( CTOJ.memcmp (head,\"BM\",2)==0 &&\n\thead.at(26) == 1 && head.at(28) == 16 && head.at(30) == 0) {\n data_offset = 0x1000;\n order = 0x4949;\n CTOJ.fseek (ifp, 38, CTOJ.SEEK_SET);\n if (get4() == 2834 && get4() == 2834 && get4() == 0 && get4() == 4096) {\n Uc.strcpy (model, \"BMQ\");\n flip = 3;\n// goto nucore;\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n }\n } else if ( CTOJ.memcmp (head,\"BR\",2) == 0) {\n Uc.strcpy (model, \"RAW\");\nnucore:\n Uc.strcpy (make, \"Nucore\");\n order = 0x4949;\n CTOJ.fseek (ifp, 10, CTOJ.SEEK_SET);\n data_offset += get4();\n get4();\n raw_width = get4();\n raw_height = get4();\n if (model.charAt(0) == 'B' && raw_width == 2597) {\n raw_width++;\n data_offset -= 0x1000;\n }\n } else if ( CTOJ.memcmp (head.plus(25),\"ARECOYK\",7) == 0) {\n Uc.strcpy (make, \"Contax\");\n Uc.strcpy (model,\"N Digital\");\n CTOJ.fseek (ifp, 33, CTOJ.SEEK_SET);\n get_timestamp(1);\n CTOJ.fseek (ifp, 60, CTOJ.SEEK_SET);\n for (c=0; c < 4; c++) cam_mul[c ^ (c >> 1)] = get4();\n } else if ( CTOJ.strcmp (head, \"PXN\") == 0) {\n Uc.strcpy (make, \"Logitech\");\n Uc.strcpy (model,\"Fotoman Pixtura\");\n } else if ( CTOJ.memcmp (head,\"FUJIFILM\",8) == 0) {\n CTOJ.fseek (ifp, 84, CTOJ.SEEK_SET);\n thumb_offset = get4();\n thumb_length = get4();\n CTOJ.fseek (ifp, 92, CTOJ.SEEK_SET);\n parse_fuji (get4());\n if (thumb_offset > 120) {\n CTOJ.fseek (ifp, 120, CTOJ.SEEK_SET);\n fuji_secondary = ((i = get4()) !=0 && true) ? 1:0;\n if (fuji_secondary != 0 && use_secondary != 0)\n\tparse_fuji (i);\n }\n CTOJ.fseek (ifp, 100, CTOJ.SEEK_SET);\n data_offset = get4();\n parse_tiff (thumb_offset+12);\n } else if ( CTOJ.memcmp (head,\"RIFF\",4)==0) {\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n //parse_riff();\n } else if (CTOJ.memcmp (head,\"DSC-Image\",9)==0)\n ;//parse_rollei();\n else if (CTOJ.memcmp (head,\"\\0MRM\",4)==0)\n parse_minolta(0);\n else if (CTOJ.memcmp (head,\"FOVb\",4)==0)\n ;//parse_foveon();\n else\n for (i=0; i < table.size(); i++)\n if (fsize == table.at(i).fsize) {\n\tUc.strcpy (make, table.at(i).make );\n\tUc.strcpy (model, table.at(i).model);\n\tif (table.at(i).withjpeg)\n\t ;//parse_external_jpeg();\n }\n if (make.charAt(0) == 0) ;//parse_smal (0, fsize);\n if (make.charAt(0) == 0) parse_jpeg (is_raw = 0);\n\n for (i=0; i < corp.length; i++)\n if (Uc.strstr (make, corp[i]) != null)\t\t/* Simplify company names */\n\tUc.strcpy (make, corp[i]);\n if ( Uc.strncmp (make,\"KODAK\",5) == 0) {\n make.setAt(16,(char)0); model.setAt(16, (char)0);\n }\n CharPtr cp2;\n cp2 = make.plus(Uc.strlen(make));\t\t/* Remove trailing spaces */\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n cp2 = model.plus(Uc.strlen(model));\n while ( cp2.moinsmoins().etoile() == ' ') cp2.etoile((char)0);\n //while (*--cp == ' ') *cp = 0;\n i = Uc.strlen(make);\t\t\t/* Remove make from model */\n if ( Uc.strncmp (model, make, i)==0 && model.charAt(i++) == ' ')\n Uc.memmove (model, model.plus(i), 64-i);\n if ( Uc.strncmp (model,\"Digital Camera \",15) == 0)\n Uc.strcpy (model, model.plus(15));\n make.setAt(63,(char)0);\n model.setAt(63,(char)0);\n model2.setAt(63,(char)0);\n if ( is_raw == 0) return;\n\n if ((raw_height | raw_width) < 0)\n raw_height = raw_width = 0;\n if ( maximum == 0) maximum = (1 << tiff_bps) - 1;\n if ( height ==0) height = raw_height;\n if ( width == 0) width = raw_width;\n if (fuji_width != 0) {\n width = height + fuji_width;\n height = width - 1;\n pixel_aspect = 1;\n }\n if (height == 2624 && width == 3936)\t/* Pentax K10D and Samsung GX10 */\n { height = 2616; width = 3896; }\n if (height == 3136 && width == 4864)\t/* Pentax K20D */\n { height = 3124; width = 4688; } \n /*\n if (dng_version) {\n strcat (model,\" DNG\");\n if (filters == UINT_MAX) filters = 0;\n if (!filters)\n colors = tiff_samples;\n if (tiff_compress == 1)\n load_raw = & adobe_dng_load_raw_nc;\n if (tiff_compress == 7)\n load_raw = & adobe_dng_load_raw_lj;\n for (c=0; c < 4; c++) cam_mul[c] = pre_mul[c];\n goto dng_skip;\n }\n*/\n/* We'll try to decode anything from Canon or Nikon. */\n\n if ((is_canon = (Uc.strcmp(make,\"Canon\")==0))) {\n load_raw = CTOJ.memcmp (head.plus(6),\"HEAPCCDR\",8)!=0 ?\n\tnew LosslessJpegLoadRaw() : new CanonCompressedLoadRaw();\n //maximum = 0xfff;\n }\n if ( Uc.strcmp(make,\"NIKON\") == 0 && load_raw == null)\n load_raw = new NikonLoadRaw();\n if ( Uc.strncmp (make,\"OLYMPUS\",7) == 0)\n height += height & 1;\n\n/* Set parameters based on camera name (for non-DNG files). */\n\n if (is_foveon != 0) {\n if (height*2 < width) pixel_aspect = 0.5;\n if (height > width) pixel_aspect = 2;\n filters = 0;\n load_raw = new FoveonLoadRaw();\n //simple_coeff(0);\n } else if (is_canon && tiff_samples == 4) {\n filters = 0;\n load_raw = new CanonSrawLoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot 600\")==0) {\n height = 613;\n width = 854;\n raw_width = 896;\n pixel_aspect = 607/628.0;\n colors = 4;\n filters = 0xe1e4e1e4l;\n load_raw = new Canon600LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A5\")==0 ||\n\t Uc.strcmp(model,\"PowerShot A5 Zoom\") == 0) {\n height = 773;\n width = 960;\n raw_width = 992;\n pixel_aspect = 256/235.0;\n colors = 4;\n filters = 0x1e4e1e4el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A50\") == 0) {\n height = 968;\n width = 1290;\n raw_width = 1320;\n colors = 4;\n filters = 0x1b4e4b1el;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro70\") == 0) {\n height = 1024;\n width = 1552;\n colors = 4;\n filters = 0x1e4b4e1bl;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A460\") == 0) {\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2664;\n top_margin = 4;\n left_margin = 4;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A530\") == 0) {\n height = 1984;\n width = 2620;\n raw_height = 1992;\n raw_width = 2672;\n top_margin = 6;\n left_margin = 10;\n load_raw = new CanonA5LoadRaw();\n raw_color = 0;\n } else if ( Uc.strcmp(model,\"PowerShot A610\") == 0) {\n //if (canon_s2is()) Uc.strcpy (model+10, \"S2 IS\"); // TODO\n height = 1960;\n width = 2616;\n raw_height = 1968;\n raw_width = 2672;\n top_margin = 8;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A620\") == 0) {\n height = 2328;\n width = 3112;\n raw_height = 2340;\n raw_width = 3152;\n top_margin = 12;\n left_margin = 36;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A720\") == 0) {\n height = 2472;\n width = 3298;\n raw_height = 2480;\n raw_width = 3336;\n top_margin = 5;\n left_margin = 6;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A630\") == 0) {\n height = 2472;\n width = 3288;\n raw_height = 2484;\n raw_width = 3344;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A640\") == 0) {\n height = 2760;\n width = 3672;\n raw_height = 2772;\n raw_width = 3736;\n top_margin = 6;\n left_margin = 12;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot A650\") == 0) {\n height = 3024;\n width = 4032;\n raw_height = 3048;\n raw_width = 4104;\n top_margin = 12;\n left_margin = 48;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot S3 IS\") == 0) {\n height = 2128;\n width = 2840;\n raw_height = 2136;\n raw_width = 2888;\n top_margin = 8;\n left_margin = 44;\n load_raw = new CanonA5LoadRaw();\n } else if ( Uc.strcmp(model,\"PowerShot Pro90 IS\") == 0) {\n width = 1896;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (is_canon && raw_width == 2144) {\n height = 1550;\n width = 2088;\n top_margin = 8;\n left_margin = 4;\n if ( Uc.strcmp(model,\"PowerShot G1\")==0) {\n colors = 4;\n filters = 0xb4b4b4b4l;\n }\n } else if (is_canon && raw_width == 2224) {\n height = 1448;\n width = 2176;\n top_margin = 6;\n left_margin = 48;\n } else if (is_canon && raw_width == 2376) {\n height = 1720;\n width = 2312;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 2672) {\n height = 1960;\n width = 2616;\n top_margin = 6;\n left_margin = 12;\n } else if (is_canon && raw_width == 3152) {\n height = 2056;\n width = 3088;\n top_margin = 12;\n left_margin = 64;\n if (unique_id == 0x80000170)\n adobe_coeff (\"Canon\",\"EOS 300D\");\n// maximum = 0xfa0;\n } else if (is_canon && raw_width == 3160) {\n height = 2328;\n width = 3112;\n top_margin = 12;\n left_margin = 44;\n } else if (is_canon && raw_width == 3344) {\n height = 2472;\n width = 3288;\n top_margin = 6;\n left_margin = 4;\n } else if ( Uc.strcmp(model,\"EOS D2000C\")==0) {\n filters = 0x61616161l;\n black = curve.at(200);\n } else if (is_canon && raw_width == 3516) {\n top_margin = 14;\n left_margin = 42;\n if (unique_id == 0x80000189)\n adobe_coeff (\"Canon\",\"EOS 350D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3596) {\n top_margin = 12;\n left_margin = 74;\n canon_cr2();\n } else if (is_canon && raw_width == 3944) {\n height = 2602;\n width = 3908;\n top_margin = 18;\n left_margin = 30;\n } else if (is_canon && raw_width == 3948) {\n top_margin = 18;\n left_margin = 42;\n height -= 2;\n if (unique_id == 0x80000236)\n adobe_coeff (\"Canon\",\"EOS 400D\");\n canon_cr2();\n } else if (is_canon && raw_width == 3984) {\n top_margin = 20;\n left_margin = 76;\n height -= 2;\n canon_cr2();\n } else if (is_canon && raw_width == 4104) {\n height = 3024;\n width = 4032;\n top_margin = 12;\n left_margin = 48;\n } else if (is_canon && raw_width == 4312) {\n top_margin = 18;\n left_margin = 22;\n height -= 2;\n if (unique_id == 0x80000176)\n adobe_coeff (\"Canon\",\"EOS 450D\");\n canon_cr2();\n } else if (is_canon && raw_width == 4476) {\n top_margin = 34;\n left_margin = 90;\n //maximum = 0xe6c;\n canon_cr2();\n } else if (is_canon && raw_width == 1208) {\n top_margin = 51;\n left_margin = 62;\n raw_width = width *= 4;\n maximum = 0x3d93;\n canon_cr2();\n } else if (is_canon && raw_width == 5108) {\n top_margin = 13;\n left_margin = 98;\n //maximum = 0xe80;\n canon_cr2();\n } else if (is_canon && raw_width == 5712) {\n height = 3752;\n width = 5640;\n top_margin = 20;\n left_margin = 62;\n } else if (Uc.strcmp(model,\"D1\")==0) {\n cam_mul[0] *= 256/527.0;\n cam_mul[2] *= 256/317.0;\n } else if (Uc.strcmp(model,\"D1X\")==0) {\n width -= 4;\n //ymag = 2;\n pixel_aspect = 0.5;\n } else if ( Uc.strcmp(model,\"D40X\")==0 ||\n\t Uc.strcmp(model,\"D60\")==0 ||\n\t Uc.strcmp(model,\"D80\")==0) {\n height -= 3;\n width -= 4;\n } else if (Uc.strncmp(model,\"D40\",3)==0 ||\n\t Uc.strncmp(model,\"D50\",3)==0 ||\n\t Uc.strncmp(model,\"D70\",3)==0) {\n width--;\n } else if ( Uc.strcmp(model,\"D90\") == 0) {\n width -= 42;\n } else if (Uc.strcmp(model,\"D100\")==0) {\n if (tiff_compress == 34713 && !nikon_is_compressed())\n load_raw = new NikonLoadRaw();\n raw_width = (width += 3) + 3;\n maximum = 0xf44;\n } else if (Uc.strcmp(model,\"D200\")==0) {\n left_margin = 1;\n width -= 4;\n maximum = 0xfbc;\n filters = 0x94949494l;\n } else if (Uc.strncmp(model,\"D2H\",3)==0) {\n left_margin = 6;\n width -= 14;\n } else if (Uc.strcmp(model,\"D2X\")==0) {\n if (width == 3264) width -= 32;\n width -= 8;\n } else if ( Uc.strcmp(model,\"D3\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"D300\")==0) {\n width -= 32;\n } else if (fsize == 1581060) {\n height = 963;\n width = 1287;\n raw_width = 1632;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3f4;\n colors = 4;\n filters = 0x1e1e1e1el;\n //simple_coeff(3);\n pre_mul[0] = 1.2085f;\n pre_mul[1] = 1.0943f;\n pre_mul[3] = 1.1103f;\n } else if (fsize == 2465792) {\n height = 1203;\n width = 1616;\n raw_width = 2048;\n load_raw = new NikonE900LoadRaw();\n maximum = 0x3dd;\n colors = 4;\n filters = 0x4b4b4b4bl;\n adobe_coeff (\"NIKON\",\"E950\");\n } else if (fsize == 4771840) {\n height = 1540;\n width = 2064;\n colors = 4;\n filters = 0xe1e1e1e1l;\n load_raw = new NikonLoadRaw();\n// if (!timestamp && nikon_e995())\n// Uc.strcpy (model, \"E995\");\n if (Uc.strcmp(model,\"E995\") != 0) {\n filters = 0xb4b4b4b4l;\n //simple_coeff(3);\n pre_mul[0] = 1.196f;\n pre_mul[1] = 1.246f;\n pre_mul[2] = 1.018f;\n }\n } else if (Uc.strcmp(model,\"E2100\")==0) {\n /*\n if ( timestamp==0 && !nikon_e2100()) {\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4b;\n\n }\n else {\n height = 1206;\n width = 1616;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.945;\n pre_mul[2] = 1.040;\n }\n */\n } else if ( Uc.strcmp(model,\"E2500\")==0) {\ncp_e2500:\n Uc.strcpy (model, \"E2500\");\n height = 1204;\n width = 1616;\n colors = 4;\n filters = 0x4b4b4b4bl;\n } else if (fsize == 4775936) {\n height = 1542;\n width = 2064;\n load_raw = new NikonE2100LoadRaw();\n pre_mul[0] = 1.818f;\n pre_mul[2] = 1.618f;\n //if (!timestamp) nikon_3700();\n if (model.charAt(0) == 'E' && Uc.atoi(model.plus(1)) < 3700)\n filters = 0x49494949l;\n if (Uc.strcmp(model,\"Optio 33WR\")==0) {\n flip = 1;\n filters = 0x16161616l;\n pre_mul[0] = 1.331f;\n pre_mul[2] = 1.820f;\n }\n } else if (fsize == 5869568) {\n height = 1710;\n width = 2288;\n filters = 0x16161616l;\n if ( timestamp==0 && minolta_z2()!=0) {\n Uc.strcpy (make, \"Minolta\");\n Uc.strcpy (model,\"DiMAGE Z2\");\n }\n if (make.charAt(0) == 'M')\n load_raw = new NikonE2100LoadRaw();\n } else if ( Uc.strcmp(model,\"E4500\") == 0) {\n height = 1708;\n width = 2288;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if (fsize == 7438336) {\n height = 1924;\n width = 2576;\n colors = 4;\n filters = 0xb4b4b4b4l;\n } else if ( Uc.strncmp(model,\"R-D1\",4) == 0) {\n tiff_compress = 34713;\n load_raw = new NikonLoadRaw();\n } else if (Uc.strcmp(model,\"FinePix S5100\")==0 ||\n\t Uc.strcmp(model,\"FinePix S5500\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3e00;\n } else if ( Uc.strcmp(make,\"FUJIFILM\") == 0) {\n if ( Uc.strcmp(model.plus(7),\"S2Pro\") == 0) {\n Uc.strcpy (model.plus(7),\" S2Pro\");\n height = 2144;\n width = 2880;\n flip = 6;\n } else\n maximum = 0x3e00;\n if (is_raw == 2 && shot_select != 0)\n maximum = 0x2f00;\n top_margin = (raw_height - height)/2;\n left_margin = (raw_width - width )/2;\n if (is_raw == 2)\n data_offset += ((shot_select > 0)?1:0) * ( fuji_layout!=0 ?\n\t\t(raw_width *= 2) : raw_height*raw_width*2 );\n fuji_width = width >> (fuji_layout!=0 ? 0 : 1);\n width = (height >> fuji_layout) + fuji_width;\n raw_height = height;\n height = width - 1;\n load_raw = new FujiLoadRaw();\n if ((fuji_width & 1) == 0) filters = 0x49494949l;\n } else if ( Uc.strcmp(model,\"RD175\")==0) {\n height = 986;\n width = 1534;\n data_offset = 513;\n filters = 0x61616161l;\n load_raw = new MinoltaRd175LoadRaw();\n } else if ( Uc.strcmp(model,\"KD-400Z\")==0) {\n height = 1712;\n width = 2312;\n raw_width = 2336;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n } else if ( Uc.strcmp(model,\"KD-510Z\")==0) {\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if ( Uc.strcasecmp(make,\"MINOLTA\")==0) {\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xf7d;\n if ( Uc.strncmp(model,\"DiMAGE A\",8)==0) {\n if (Uc.strcmp(model,\"DiMAGE A200\")==0)\n\tfilters = 0x49494949l;\n load_raw = new Packed12LoadRaw();\n maximum = model.charAt(8) == '1' ? 0xf8b : 0xfff;\n } else if ( Uc.strncmp(model,\"ALPHA\",5)==0 ||\n\t Uc.strncmp(model,\"DYNAX\",5)==0 ||\n\t Uc.strncmp(model,\"MAXXUM\",6)==0) {\n Uc.sprintf (model.plus(20), \"DYNAX %-10s\", model.plus(6+((model.charAt(0)=='M')?1:0)));\n adobe_coeff (make, model.plus(20));\n load_raw = new Packed12LoadRaw();\n maximum = 0xffb;\n } else if (Uc.strncmp(model,\"DiMAGE G\",8)==0) {\n if (model.charAt(8) == '4') {\n\theight = 1716;\n\twidth = 2304;\n } else if (model.charAt(8) == '5') {\nkonica_510z:\n\theight = 1956;\n\twidth = 2607;\n\traw_width = 2624;\n } else if (model.charAt(8) == '6') {\n\theight = 2136;\n\twidth = 2848;\n }\n data_offset += 14;\n filters = 0x61616161l;\nkonica_400z:\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3df;\n order = 0x4d4d;\n }\n } else if ( Uc.strcmp(model,\"*ist DS\")==0) {\n height -= 2;\n } else if ( Uc.strcmp(model,\"Optio S\")==0) {\n if (fsize == 3178560) {\n height = 1540;\n width = 2064;\n load_raw = new EightBitLoadRaw();\n cam_mul[0] *= 4;\n cam_mul[2] *= 4;\n pre_mul[0] = 1.391f;\n pre_mul[2] = 1.188f;\n } else {\n height = 1544;\n width = 2068;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7c;\n pre_mul[0] = 1.137f;\n pre_mul[2] = 1.453f;\n }\n } else if (Uc.strncmp(model,\"Optio S4\",8)==0) {\n height = 1737;\n width = 2324;\n raw_width = 3520;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf7a;\n pre_mul[0] = 1.980f;\n pre_mul[2] = 1.570f;\n } else if (Uc.strcmp(model,\"STV680 VGA\")==0) {\n height = 484;\n width = 644;\n load_raw = new EightBitLoadRaw();\n flip = 2;\n filters = 0x16161616l;\n black = 16;\n pre_mul[0] = 1.097f;\n pre_mul[2] = 1.128f;\n } else if (Uc.strcmp(model,\"KAI-0340\")==0) {\n height = 477;\n width = 640;\n order = 0x4949;\n data_offset = 3840;\n load_raw = new UnpackedLoadRaw() ;\n pre_mul[0] = 1.561f;\n pre_mul[2] = 2.454f;\n } else if ( Uc.strcmp(model,\"531C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new UnpackedLoadRaw() ;\n filters = 0x49494949l;\n pre_mul[1] = 1.218f;\n } else if ( Uc.strcmp(model,\"F-145C\")==0) {\n height = 1040;\n width = 1392;\n load_raw = new EightBitLoadRaw();\n } else if ( Uc.strcmp(model,\"F-201C\")==0) {\n height = 1200;\n width = 1600;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"F-510C\")==0) {\n height = 1958;\n width = 2588;\n load_raw = fsize < 7500000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"F-810C\")==0) {\n height = 2469;\n width = 3272;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xfff0;\n } else if (Uc.strcmp(model,\"XCD-SX910CR\")==0) {\n height = 1024;\n width = 1375;\n raw_width = 1376;\n filters = 0x49494949l;\n maximum = 0x3ff;\n load_raw = fsize < 2000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"2010\")==0) {\n height = 1207;\n width = 1608;\n order = 0x4949;\n filters = 0x16161616l;\n data_offset = 3212;\n maximum = 0x3ff;\n load_raw = new UnpackedLoadRaw() ;\n } else if (Uc.strcmp(model,\"A782\")==0) {\n height = 3000;\n width = 2208;\n filters = 0x61616161l;\n load_raw = fsize < 10000000 ?\n\tnew EightBitLoadRaw() : new UnpackedLoadRaw() ;\n maximum = 0xffc0;\n } else if (Uc.strcmp(model,\"3320AF\")==0) {\n height = 1536;\n raw_width = width = 2048;\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3ff;\n pre_mul[0] = 1.717f;\n pre_mul[2] = 1.138f;\n CTOJ.fseek (ifp, 0x300000, CTOJ.SEEK_SET);\n// if ((order = guess_byte_order(0x10000)) == 0x4d4d) {\n// height -= (top_margin = 16);\n// width -= (left_margin = 28);\n// maximum = 0xf5c0;\n// Uc.strcpy (make, \"ISG\");\n// model[0] = 0;\n// }\n } else if ( Uc.strcmp(make,\"Imacon\")==0) {\n Uc.sprintf (model, \"Ixpress %d-Mp\", height*width/1000000);\n load_raw = new ImaconFullLoadRaw();\n if (filters != 0) {\n if ((left_margin & 1)!= 0) filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n }\n maximum = 0xffff;\n } else if ( Uc.strcmp(make,\"Sinar\")==0) {\n if (CTOJ.memcmp(head,\"8BPS\",4) == 0) {\n CTOJ.fseek (ifp, 14, CTOJ.SEEK_SET);\n height = get4();\n width = get4();\n filters = 0x61616161l;\n data_offset = 68;\n }\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0x3fff;\n } else if (Uc.strcmp(make,\"Leaf\")==0) {\n maximum = 0x3fff;\n if (tiff_samples > 1) filters = 0;\n if (tiff_samples > 1 || tile_length < raw_height)\n load_raw = new LeafHdrLoadRaw();\n if ((width | height) == 2048) {\n if (tiff_samples == 1) {\n\tfilters = 1;\n\tUc.strcpy (cdesc, \"RBTG\");\n\tUc.strcpy (model, \"CatchLight\");\n\ttop_margin = 8; left_margin = 18; height = 2032; width = 2016;\n } else {\n\tUc.strcpy (model, \"DCB2\");\n\ttop_margin = 10; left_margin = 16; height = 2028; width = 2022;\n }\n } else if (width+height == 3144+2060) {\n if ( model.charAt(0) == 0) Uc.strcpy (model, \"Cantare\");\n if (width > height) {\n\t top_margin = 6; left_margin = 32; height = 2048; width = 3072;\n\tfilters = 0x61616161l;\n } else {\n\tleft_margin = 6; top_margin = 32; width = 2048; height = 3072;\n\tfilters = 0x16161616l;\n }\n if ( cam_mul[0] == 0 || model.charAt(0) == 'V') filters = 0;\n } else if (width == 2116) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 30);\n width -= 2 * (left_margin = 55);\n filters = 0x49494949l;\n } else if (width == 3171) {\n Uc.strcpy (model, \"Valeo 6\");\n height -= 2 * (top_margin = 24);\n width -= 2 * (left_margin = 24);\n filters = 0x16161616l;\n }\n } else if ( Uc.strcmp(make,\"LEICA\")==0 || Uc.strcmp(make,\"Panasonic\")==0) {\n maximum = 0xfff0;\n if ((fsize-data_offset) / (width*8/7) == height)\n load_raw = new PanasonicLoadRaw();\n if (load_raw==null) load_raw = new UnpackedLoadRaw() ;\n if (width == 2568)\n adobe_coeff (\"Panasonic\",\"DMC-LC1\");\n else if (width == 3304) {\n maximum = 0xf94c;\n width -= 16;\n adobe_coeff (\"Panasonic\",\"DMC-FZ30\");\n } else if ( width == 3330) {\n width = 3291;\n left_margin = 9;\n maximum = 0xf7f0;\nfz18:\tif (height > 2480)\n\t height = 2480 - (top_margin = 10);\n\tfilters = 0x49494949l;\n\tzero_is_bad = true;\n } else if (width == 3690) {\n maximum = 0xf7f0;\n height -= 3;\n width = 3672;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3770) {\n height = 2760;\n width = 3672;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-FZ50\");\n } else if (width == 3880) {\n maximum = 0xf7f0;\n width -= 22;\n left_margin = 6;\n adobe_coeff (\"Panasonic\",\"DMC-LX1\");\n } else if (width == 4290) {\n height--;\n width = 4248;\n left_margin = 3;\n filters = 0x49494949l;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n } else if (width == 4330) {\n height = 2400;\n width = 4248;\n top_margin = 15;\n left_margin = 17;\n adobe_coeff (\"Panasonic\",\"DMC-LX2\");\n }\n } else if ( Uc.strcmp(model,\"E-1\")==0) {\n filters = 0x61616161l;\n maximum = 0xfff0;\n black = 1024;\n } else if ( Uc.strcmp(model,\"E-10\")==0) {\n maximum = 0xfff0;\n black = 2048;\n } else if (Uc.strncmp(model,\"E-20\",4)==0) {\n maximum = 0xffc0;\n black = 2560;\n } else if ( Uc.strcmp(model,\"E-300\")==0 ||\n\t Uc.strcmp(model,\"E-500\")==0) {\n width -= 20;\n maximum = 0xfc30;\n } else if (Uc.strcmp(model,\"E-330\")==0) {\n width -= 30;\n } else if (Uc.strcmp(model,\"C770UZ\")==0) {\n height = 1718;\n width = 2304;\n filters = 0x16161616l;\n load_raw = new NikonE2100LoadRaw();\n } else if (Uc.strcmp(make,\"OLYMPUS\")==0) {\n load_raw = new OlympusCseriesLoadRaw();\n if ( Uc.strcmp(model,\"C5050Z\")==0 ||\n\tUc.strcmp(model,\"C8080WZ\")==0)\n filters = 0x16161616l;\n if (Uc.strcmp(model,\"SP500UZ\")==0)\n filters = 0x49494949l;\n } else if (Uc.strcmp(model,\"N Digital\")==0) {\n height = 2047;\n width = 3072;\n filters = 0x61616161l;\n data_offset = 0x1a00;\n load_raw = new Packed12LoadRaw();\n maximum = 0xf1e;\n } else if (Uc.strcmp(model,\"DSC-F828\")==0) {\n width = 3288;\n left_margin = 5;\n data_offset = 862144;\n load_raw = new SonyLoadRaw();\n filters = 0x9c9c9c9cl;\n colors = 4;\n Uc.strcpy (cdesc, \"RGBE\");\n } else if (Uc.strcmp(model,\"DSC-V3\")==0) {\n width = 3109;\n left_margin = 59;\n data_offset = 787392;\n load_raw = new SonyLoadRaw();\n } else if (Uc.strcmp(make,\"SONY\")==0 && raw_width == 3984) {\n adobe_coeff (\"SONY\",\"DSC-R1\");\n width = 3925;\n order = 0x4d4d;\n } else if (Uc.strcmp(model,\"DSLR-A100\")==0) {\n height--;\n load_raw = new SonyArwLoadRaw();\n maximum = 0xfeb;\n } else if (Uc.strncmp(model,\"P850\",4)==0) {\n maximum = 0xf7c;\n } else if (Uc.strcasecmp(make,\"KODAK\")==0) {\n if (filters == CTOJ.UINT_MAX) filters = 0x61616161l;\n if (Uc.strncmp(model,\"NC2000\",6)==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS3B\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"EOSDCS1\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS420\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460\")==0) {\n width -= 4;\n left_margin = 2;\n } else if (Uc.strcmp(model,\"DCS460A\")==0) {\n width -= 4;\n left_margin = 2;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS660M\")==0) {\n black = 214;\n colors = 1;\n filters = 0;\n } else if (Uc.strcmp(model,\"DCS760M\")==0) {\n colors = 1;\n filters = 0;\n }\n if (load_raw.getClass().equals( EightBitLoadRaw.class))\n\tload_raw = new KodakEasyLoadRaw();\n if (Uc.strstr(model,\"DC25\") != null) {\n Uc.strcpy (model, \"DC25\");\n data_offset = 15424;\n }\n if (Uc.strncmp(model,\"DC2\",3)==0) {\n height = 242;\n if (fsize < 100000) {\n\traw_width = 256; width = 249;\n } else {\n\traw_width = 512; width = 501;\n }\n data_offset += raw_width + 1;\n colors = 4;\n filters = 0x8d8d8d8dl;\n //simple_coeff(1);\n pre_mul[1] = 1.179f;\n pre_mul[2] = 1.209f;\n pre_mul[3] = 1.036f;\n load_raw = new KodakEasyLoadRaw();\n } else if (Uc.strcmp(model,\"40\")==0) {\n Uc.strcpy (model, \"DC40\");\n height = 512;\n width = 768;\n data_offset = 1152;\n// load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC50\") != null) {\n Uc.strcpy (model, \"DC50\");\n height = 512;\n width = 768;\n data_offset = 19712;\n // load_raw = new KodakRadcLoadRaw();\n } else if (Uc.strstr(model,\"DC120\") != null) {\n Uc.strcpy (model, \"DC120\");\n height = 976;\n width = 848;\n pixel_aspect = height/0.75/width;\n// load_raw = tiff_compress == 7 ?\n//\tnew KodakJpegLoadRaw() : new KodakDc120LoadRaw();\n }\n } else if (Uc.strcmp(model,\"Fotoman Pixtura\")==0) {\n height = 512;\n width = 768;\n data_offset = 3632;\n load_raw = new KodakRadcLoadRaw();\n filters = 0x61616161l;\n //simple_coeff(2);\n } else if (Uc.strcmp(make,\"Rollei\")==0) {\n switch (raw_width) {\n case 1316:\n\theight = 1030;\n\twidth = 1300;\n\ttop_margin = 1;\n\tleft_margin = 6;\n\tbreak;\n case 2568:\n\theight = 1960;\n\twidth = 2560;\n\ttop_margin = 2;\n\tleft_margin = 8;\n }\n filters = 0x16161616l;\n load_raw = new RolleiLoadRaw();\n pre_mul[0] = 1.8f;\n pre_mul[2] = 1.3f;\n } else if ( Uc.strcmp(model,\"PC-CAM 600\")==0) {\n height = 768;\n data_offset = width = 1024;\n filters = 0x49494949l;\n load_raw = new EightBitLoadRaw();\n pre_mul[0] = 1.14f;\n pre_mul[2] = 2.73f;\n } else if ( Uc.strcmp(model,\"QV-2000UX\")==0) {\n height = 1208;\n width = 1632;\n data_offset = width * 2;\n load_raw = new EightBitLoadRaw();\n } else if (fsize == 3217760) {\n height = 1546;\n width = 2070;\n raw_width = 2080;\n load_raw = new EightBitLoadRaw();\n } else if (Uc.strcmp(model,\"QV-4000\")==0) {\n height = 1700;\n width = 2260;\n load_raw = new UnpackedLoadRaw() ;\n maximum = 0xffff;\n } else if (Uc.strcmp(model,\"QV-5700\")==0) {\n height = 1924;\n width = 2576;\n //load_raw = new CasioQv5700LoadRaw();\n } else if (Uc.strcmp(model,\"QV-R51\")==0) {\n height = 1926;\n width = 2576;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.340f;\n pre_mul[2] = 1.672f;\n } else if (Uc.strcmp(model,\"EX-S100\")==0) {\n height = 1544;\n width = 2058;\n raw_width = 3136;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.631f;\n pre_mul[2] = 1.106f;\n } else if (Uc.strcmp(model,\"EX-Z50\")==0) {\n height = 1931;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.529f;\n pre_mul[2] = 1.185f;\n } else if (Uc.strcmp(model,\"EX-Z55\")==0) {\n height = 1960;\n width = 2570;\n raw_width = 3904;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.520f;\n pre_mul[2] = 1.316f;\n } else if (Uc.strcmp(model,\"EX-P505\")==0) {\n height = 1928;\n width = 2568;\n raw_width = 3852;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 2.07f;\n pre_mul[2] = 1.88f;\n } else if (fsize == 9313536) {\t/* EX-P600 or QV-R61 */\n height = 2142;\n width = 2844;\n raw_width = 4288;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.797f;\n pre_mul[2] = 1.219f;\n } else if (Uc.strcmp(model,\"EX-P700\")==0) {\n height = 2318;\n width = 3082;\n raw_width = 4672;\n load_raw = new Packed12LoadRaw();\n pre_mul[0] = 1.758f;\n pre_mul[2] = 1.504f;\n } else if (Uc.strcmp(make,\"Nucore\")==0) {\n filters = 0x61616161l;\n load_raw = new UnpackedLoadRaw() ;\n if (width == 2598) {\n filters = 0x16161616l;\n //load_raw = new NucoreLoadRaw();\n flip = 2;\n }\n }\n if ( model.charAt(0)==0)\n Uc.sprintf (model, \"%dx%d\", width, height);\n if (filters == CTOJ.UINT_MAX) \n filters = 0x94949494l;\n if (raw_color != 0) adobe_coeff (make, model);\n if (thumb_offset!=0 && thumb_height==0) {\n CTOJ.fseek (ifp, thumb_offset, CTOJ.SEEK_SET);\n if (ljpeg_start (jh, 1)!=0) {\n thumb_width = jh.wide;\n thumb_height = jh.high;\n }\n }\ndng_skip:\n if (load_raw==null || height==0) is_raw = 0;\n if (flip == -1) flip = tiff_flip;\n if (flip == -1) flip = 0;\n if (cdesc.charAt(0)==0)\n Uc.strcpy (cdesc, colors == 3 ? \"RGB\":\"GMCY\");\n if ( raw_height == 0) raw_height = height;\n if ( raw_width == 0) raw_width = width;\n if (filters!= 0 && colors == 3)\n for (i=0; i < 32; i+=4) {\n if ((filters >> i & 15) == 9) {\n\tfilters |= 2 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n if ((filters >> i & 15) == 6) {\n\tfilters |= 8 << i;\n filters = CTOJ.toUnsigned((int)filters);\n }\n }\n}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}", "public void processWorking_JustReminders(Mat rgbaImage) {\n\n centerXContour = new TreeMap<>();\n //rgbaImage = rgbaImage.submat(ColorBlobDetectionActivity.scannedRect);\n\n rgbaImage.copyTo(mPyrDownMat);\n Imgproc.cvtColor(mPyrDownMat, mPyrDownMat, Imgproc.COLOR_RGBA2GRAY);\n Imgproc.blur(mPyrDownMat,mPyrDownMat,new Size(25,25));\n Imgproc.adaptiveThreshold(mPyrDownMat,mPyrDownMat,maxTreshold,Imgproc.ADAPTIVE_THRESH_MEAN_C,Imgproc.THRESH_BINARY_INV,501,50);\n\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\n mMask = mPyrDownMat.clone();\n\n Imgproc.findContours(mMask, contours, new Mat(), Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\n\n Iterator<MatOfPoint> each = contours.iterator();\n mContours.clear();\n Log.e(\"Contours\",contours.size()+\"\");\n\n while (each.hasNext()) {\n MatOfPoint contour = each.next();\n Log.e(\"Contours\",Imgproc.boundingRect(contour).size().height +\"\");\n if (Imgproc.boundingRect(contour).size().height > 65 ) {\n mContours.add(contour);\n\n //Draw bounding rect ------------------\n Rect temp_rec = Imgproc.boundingRect(contour);\n Imgproc.rectangle(rgbaImage,temp_rec.tl(),temp_rec.br(),ColorBlobDetectionActivity.CONTOUR_COLOR,6);\n\n\n //Draw mid\n Moments p = Imgproc.moments(contour, false);\n int x = (int) (p.get_m10() / p.get_m00());\n\n centerXContour.put(x,contour);\n\n }\n }//end while all contours\n\n\n }", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "private void callCloudVision(final Bitmap bitmap, final Feature feature) {\n final ArrayList<Feature> featureList = new ArrayList<>();\n featureList.add(feature);\n\n final ArrayList<AnnotateImageRequest> annotateImageRequests = new ArrayList<>();\n\n AnnotateImageRequest annotateImageReq = new AnnotateImageRequest();\n annotateImageReq.setFeatures(featureList);\n annotateImageReq.setImage(bitmap2JPEG(bitmap));\n annotateImageRequests.add(annotateImageReq);\n\n\n new AsyncTask<Object, Void, String>() {\n @Override\n protected String doInBackground(Object... params) {\n runOnUiThread(new Runnable() {\n public void run() {\n dialog = new ProgressDialog(MainActivity.this);\n dialog.setMessage(\"Processing Data...\");\n dialog.show();\n }\n });\n\n try {\n\n\n HttpTransport http = AndroidHttp.newCompatibleTransport();\n JsonFactory json = GsonFactory.getDefaultInstance();\n\n VisionRequestInitializer request = new VisionRequestInitializer(VISION_API_KEY);\n\n Vision.Builder build = new Vision.Builder(http, json, null);\n build.setVisionRequestInitializer(request);\n\n Vision vision = build.build();\n\n BatchAnnotateImagesRequest batchRequest = new BatchAnnotateImagesRequest();\n batchRequest.setRequests(annotateImageRequests);\n\n Vision.Images.Annotate annotateRequest = vision.images().annotate(batchRequest);\n annotateRequest.setDisableGZipContent(true);\n BatchAnnotateImagesResponse response = annotateRequest.execute();\n return convertResponseToString(response);\n } catch (GoogleJsonResponseException e) {\n Toast.makeText(getApplicationContext(), \"failed to reach API: \" + e.getContent(), Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n Toast.makeText(getApplicationContext(), \"failed to reach API: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n return \"Google Vision API request failed. Check logs for details.\";\n }\n\n protected void onPostExecute(String result) {\n\n dialog.dismiss();\n myDia = new Dialog(MainActivity.this);\n\n\n myDia.setContentView(R.layout.returnpopup);\n Button close = myDia.findViewById(R.id.close);\n Button help = myDia.findViewById(R.id.help);\n TextView text = myDia.findViewById(R.id.dataviewr);\n\n text.setText(result);\n\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n myDia.dismiss();\n\n }\n });\n help.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AlertDialog alert = null;\n final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"Help\")\n .setMessage(\"This application is a demo of the Google Vision API for Android. \\n\\nThe default API in the app is \\\"LABEL_DETECTION\\\", which tries to detect objects in the image. You can change this in the app inside the API string. \\n\\nThe source code of this application is available on Github @darshanbhatta. \\n\\nIf you have any questions email me @ [email protected].\");\n\n\n final AlertDialog finalAlert = alert;\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (finalAlert != null)\n finalAlert.dismiss();\n }\n });\n alert = builder.create();\n\n\n alert.show();\n\n\n }\n });\n\n\n myDia.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n myDia.show();\n }\n\n\n }.execute();\n }", "private void m4808d() {\n if (f3853k.m4870e()) {\n if (f3853k.m4846M() == -1) {\n m4807c();\n }\n try {\n Thread.sleep(50);\n return;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n m4810f();\n JniMethod.convert(f3831d, f3852j, Recorder.f3861b, Recorder.f3862c);\n int flag = f3853k.m4852a(f3852j);\n if (flag == -2 && !f3853k.m4843J()) {\n m4807c();\n }\n LogUtil.m4440c(f3850h, \"input2Encoder success flag= \" + flag);\n }", "private String tesseract(Bitmap bitmap) {\n return \"NOT IMPLEMENTED\";\n }", "public interface C0605e {\n Bitmap m4508a(int i, int i2, Config config);\n\n void m4509a();\n\n void m4510a(int i);\n\n boolean m4511a(Bitmap bitmap);\n\n Bitmap m4512b(int i, int i2, Config config);\n}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "public void detect_lines(float[] image,long width, long height, Lines contours, MutableLong num_result, double sigma, double low, double high, long mode, boolean compute_width, boolean correct_pos,boolean extend_lines, Junctions junctions)\r\n\t{\r\n\t byte[] ismax;\r\n\t float[] ev, n1, n2, p1, p2;\r\n\t float[][] k = new float[5][(int) (width*height)];\r\n\t \r\n\t// for (i=0;i<5;i++)\r\n\t// k[i] = xcalloc(width*height,sizeof(float));\r\n\t Convol convol = new Convol();\r\n\t convol.convolve_gauss(image,k[0],width,height,sigma,LinesUtil.DERIV_R);\r\n\t convol.convolve_gauss(image,k[1],width,height,sigma,LinesUtil.DERIV_C);\r\n\t convol.convolve_gauss(image,k[2],width,height,sigma,LinesUtil.DERIV_RR);\r\n\t convol.convolve_gauss(image,k[3],width,height,sigma,LinesUtil.DERIV_RC);\r\n\t \r\n\t convol.convolve_gauss(image,k[4],width,height,sigma,LinesUtil.DERIV_CC);\r\n\t\r\n\t ismax = new byte[(int) (width*height)];\r\n\t ev = new float[(int) (width*height)];\r\n\t n1 = new float[(int) (width*height)];\r\n\t n2 = new float[(int) (width*height)];\r\n\t p1 = new float[(int) (width*height)];\r\n\t p2 = new float[(int) (width*height)];\r\n\t /*\r\n\t * The C library function void *memset(void *str, int c, size_t n) \r\n\t * copies the character c (an unsigned char) to the first n characters \r\n\t * of the string pointed to by the argument str.\r\n\t */\r\n\t // memset(ismax,0,width*height*sizeof(*ismax));\r\n\t // memset(ev,0,width*height*sizeof(*ev));\r\n\t for(int j = 0; j < ismax.length; j++){\r\n\t\t ev[j] = 0;\r\n\t\t ismax[j] = 0;\r\n\t }\r\n\r\n\t compute_line_points(k,ismax,ev,n1,n2,p1,p2,width,height,low,high,mode);\r\n\t \r\n\t Link l = new Link();\r\n\t l.compute_contours(ismax,ev,n1,n2,p1,p2,k[0],k[1],contours,num_result,sigma,\r\n\t extend_lines,(int)mode,low,high,width,height,junctions);\r\n\t Width w = new Width();\r\n\t if (compute_width)\r\n\t w.compute_line_width(k[0],k[1],width,height,sigma,mode,correct_pos,contours,\r\n\t num_result);\r\n\r\n\t}", "public Collection<CV> getCvLookup() throws InvalidFormatException;", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\r\n// /**Any -> TXT **/\r\n//\t\t\r\n//\t\tgetTXTfromAny(\"./images/DJI_0707.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0708.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0709.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0710.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0711.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0712.txt\");\r\n\t\t\r\n\t\t/**Any -> BMP **/\r\n//\t\tgetBMPfromAny(\"./images/DJI_0707.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0708.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0709.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0710.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0711.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0712.JPG\");\r\n\t\t\r\n//\t\t/**Any -> JPG **/\r\n\t\tgetJPGfromAny(\"./images/DJI_0707.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0708.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0709.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0710.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0711.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0712.txt\");\r\n\r\n\t}", "public Bitmap stringToBitMap(String encodedString){\n try {\n byte [] encodeByte= Base64.decode(encodedString,Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);\n return bitmap;\n } catch(Exception e) {\n e.getMessage();\n return null;\n }\n }", "public BeaconAnalysis analyzeFrame(ColorBlobDetector redDetector, ColorBlobDetector blueDetector, Mat img, Mat gray, ScreenOrientation orientation) {\n if (this.bounds == null)\n this.bounds = new Rectangle(img.size());\n switch (method) {\n case REALTIME:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_REALTIME(redDetector.getContours(), blueDetector.getContours(), img, orientation, this.debug);\n case FAST:\n case DEFAULT:\n default:\n return BeaconAnalyzer.analyze_FAST(redDetector, blueDetector, img, gray, orientation, this.bounds, this.debug);\n case COMPLEX:\n blueDetector.process(img);\n redDetector.process(img);\n return BeaconAnalyzer.analyze_COMPLEX(redDetector.getContours(), blueDetector.getContours(), img, gray, orientation, this.bounds, this.debug);\n }\n }", "void mo27482a(String str, Bitmap bitmap);", "public boolean generateImageFromText();", "private static native long createFastLineDetector_0(int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2, int _canny_aperture_size, boolean _do_merge);", "public void findKeyPoints(){\n Mat descriptorFrame = new Mat();\n MatOfKeyPoint keyPointFrame = new MatOfKeyPoint();\n\n mDetector.detect(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame);\n mExtractor.compute(mGray.submat(mScanTop,mScanBottom,mScanLeft,mScanRight), keyPointFrame, descriptorFrame);\n\n /* matches the keypoints of incoming frame with the key points of template */\n MatOfDMatch matches = new MatOfDMatch();\n\n /* if descriptorFrame.cols()==0, mMatcher.match will cause exception */\n if(descriptorFrame.cols()==0){\n lostTrack();\n return;\n }else{\n mMatcher.match(mDescriptor, descriptorFrame, matches);\n mLostTrackCounter = 0;\n mRectBorder = new Scalar(150,200,150);\n }\n\n /* check if pattern exist by checking the sume of DMatch.distance */\n DMatch dm[] = matches.toArray();\n\n /* pattern found. go through matofdmatch again, find all the key points whose distance is lower than threshold */\n /* which, in theory, should mean that these points belong to the pattern */\n KeyPoint kp[] = keyPointFrame.toArray();\n List<Point> frameKp = new ArrayList<>();\n List<KeyPoint> kpNew = new ArrayList<>();\n List<Point3> kpTemplate = new ArrayList<>();\n\n /* form new points to monitor */\n double xTally = 0,\n yTally = 0,\n counter = 0;\n\n /* find the average point to monitor */\n\n for(int i = 0; i<dm.length;i++){\n if(dm[i].distance<800&&dm[i].distance>200){\n kpNew.add(new KeyPoint((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop, kp[dm[i].trainIdx].size));\n frameKp.add(new Point((float) kp[dm[i].trainIdx].pt.x+mScanLeft,(float) kp[dm[i].trainIdx].pt.y+mScanTop));\n Point3 newPoint3 = new Point3(mArrayListTemplateKP.get(dm[i].queryIdx).x-90,mArrayListTemplateKP.get(dm[i].queryIdx).y-70,0);\n kpTemplate.add(newPoint3);\n\n xTally += kp[dm[i].trainIdx].pt.x + (double)mScanLeft;\n yTally += kp[dm[i].trainIdx].pt.y + (double)mScanTop;\n counter += 1;\n }\n }\n\n if(counter>2){\n mKpMat.fromList(kpNew);\n mRefCoord.fromList(kpTemplate);\n mFrameKP.fromList(frameKp);\n\n mScanCenter = new Point(xTally/counter,yTally/counter);\n }else{\n lostTrack();\n return;\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n tvShutter.setBackground(ContextCompat.getDrawable(getApplicationContext(),R.drawable.shutter_active));\n }\n });\n\n adjustROI(mScanCenter, mDetectionBoxSize);\n }", "private void callCloudVision(final Bitmap bitmap) {\n try {\n AsyncTask<Object, Void, String> labelDetectionTask = new LableDetectionTask(this, prepareAnnotationRequest(bitmap));\n labelDetectionTask.execute();\n } catch (IOException e) {\n Log.d(TAG, \"failed to make API request because of other IOException \" +\n e.getMessage());\n }\n }", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}", "public static void main( String[] args)\r\n\t{\r\n\t\t\r\n\t\tNetworkTable piVals = NetworkTable.getTable(\"piTable\"); \r\n\t\t\r\n\t\tdouble startPro = 0; \r\n\t\tlong startMills = Instant.now().toEpochMilli(); \r\n\t\t//double start = System.currentTimeMillis();\r\n\t\t\r\n\t//\tString address = \"roboRIO-5822-FRC.local\";\r\n\t\t\r\n\t\t\t\t\r\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\r\n\t\t\r\n\t\tVideoCapture capture = new VideoCapture();\r\n\t\t\r\n\t\t//this link has changed, check with code on the pi right now \r\n\t\tcapture.open(\"http://10.58.22.72/mjpg/video.mjpg\");\r\n\t\t\r\n\t\tMat bgr = new Mat(); \r\n\t\tMat hsvConvert = new Mat(); \r\n\t\tMat hsv = new Mat();\r\n\t\tMatOfPoint test = new MatOfPoint(); \r\n\t\tArrayList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t\tArrayList<MatOfPoint> finalContours = new ArrayList<MatOfPoint>();\r\n\t\tMatOfPoint biggest = null; \r\n\t\tMat mhierarchy = new Mat(); //have no clue why hierarchy is needed. Still need to figure this one out. \r\n\t\tdouble centerX; \r\n\t\tdouble distance;\r\n\t\tdouble [] nums = new double [4]; \r\n\t\tnums = null; \r\n\t\t//int greta = 0; \r\n\t\t\r\n\t\twhile (true) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tstartPro = piVals.getNumber(\"RioTime\",0); \r\n\t\t\tcontours.clear(); \r\n\t\t\tfinalContours.clear(); \r\n\r\n\t\t\tcapture.read(bgr);\r\n\t\t\t//Imgcodecs.imwrite(\"greenCart.jpg\",bgr);\t\r\n\t\t\tImgproc.cvtColor(bgr, hsvConvert, Imgproc.COLOR_BGR2HSV); //using RGB does not work. MUST use BGR. We are still unsure of the reasons. \r\n\t\t\tCore.inRange(hsvConvert, new Scalar (13, 39, 135), new Scalar (92, 118, 255), hsv); //those two Scalar values are the the max and min HSV values respectively. Those were determined in GRIP. \r\n\t\t\tImgproc.findContours(hsv, contours, mhierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); //first enum lets you control things about hierarchy, I chose option with no hierarchy \r\n\r\n\t\t\tint idex=0; \r\n\t\t\tint size = contours.size();\r\n\t\t\t\r\n\t\t\t//changed to a for loop \r\n\t\t\tfor (idex=0; idex < contours.size(); idex++)\r\n\t\t\t{\r\n\t\t\t\ttest = contours.get(idex); \r\n\t\t\t\tif (Imgproc.contourArea(test)>100)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinalContours.add(test); \r\n\t\t\t\t}\r\n\t\t\t\tidex++; \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (finalContours.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnums = findCenterXDistance(finalContours.get(0).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +0+ \": \" + nums[2]);\r\n\t\t\t\tSystem.out.println(\"DISTANCE TO CONTOUR \" +0+ \": \" + (12*nums[3]));\r\n\t\t\t\tpiVals.putNumber(\"Center\", nums[2]);\r\n\t\t\t\tpiVals.putNumber(\"Distance\", (12*nums[3])); \r\n\t\t\t\tpiVals.putNumber(\"Start Time\", startPro); \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t//for (int count = 0; count < finalContours.size(); count++)\r\n\t\t\t//{ \r\n\t\t\t\t\r\n\t\t\t//\tnums = findCenterXDistance(finalContours.get(count).toList());\r\n\t\t\t\t//System.out.println(\"CENTER X COORIDINATE OF CONTOUR \" +count+ \": \" + nums[2]);\r\n\t\t\t//\tSystem.out.println(\"DISTANCE TO CONTOUR \" +count+ \": \" + (12*nums[3]));\r\n\t\t\t//\trobot.Send(rioMillis, true, nums[2], nums[3]); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//}\t\t\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "private Image mat2Image(Mat frame)\r\n {\n MatOfByte buffer = new MatOfByte();\r\n // encode the frame in the buffer\r\n // HighGui.imencode(\".png\", frame, buffer);\r\n Imgcodecs.imencode(\".png\", frame, buffer);\r\n // build and return an Image created from the image encoded in the buffer\r\n return new Image(new ByteArrayInputStream(buffer.toArray()));\r\n }", "private static native long createStructuredEdgeDetection_0(String model, long howToGetFeatures_nativeObj);", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "public void decodeImage(String completeImageData, ImageView imageView) {\n if (completeImageData == null) { return; }\n\n // Incase you're storing into aws or other places where we have extension stored in the starting.\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n imageView.setImageBitmap(bitmap);\n }", "@androidx.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static com.inmobi.media.C2336dl m4847a(@androidx.annotation.NonNull java.lang.String r3, @androidx.annotation.Nullable com.inmobi.media.C2600j r4, @androidx.annotation.Nullable java.lang.String r5, boolean r6) {\n /*\n com.iab.omid.library.inmobi.adsession.AdSessionContext r4 = m4846a(r4, r5)\n int r5 = r3.hashCode()\n r0 = -284840886(0xffffffffef05ac4a, float:-4.136979E28)\n r1 = 3\n r2 = 2\n if (r5 == r0) goto L_0x002e\n r0 = 112202875(0x6b0147b, float:6.6233935E-35)\n if (r5 == r0) goto L_0x0024\n r0 = 1425678798(0x54fa21ce, float:8.5944718E12)\n if (r5 == r0) goto L_0x001a\n goto L_0x0038\n L_0x001a:\n java.lang.String r5 = \"nonvideo\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 2\n goto L_0x0039\n L_0x0024:\n java.lang.String r5 = \"video\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 3\n goto L_0x0039\n L_0x002e:\n java.lang.String r5 = \"unknown\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 1\n goto L_0x0039\n L_0x0038:\n r3 = -1\n L_0x0039:\n if (r3 == r2) goto L_0x0047\n if (r3 == r1) goto L_0x003f\n r3 = 0\n goto L_0x004e\n L_0x003f:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_video_ad\"\n r3.<init>(r5, r4, r6)\n goto L_0x004e\n L_0x0047:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_display_ad\"\n r3.<init>(r5, r4)\n L_0x004e:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.inmobi.media.C2341dp.m4847a(java.lang.String, com.inmobi.media.j, java.lang.String, boolean):com.inmobi.media.dl\");\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "public Mat cameraFrame(Mat mat) {\n frame.empty(); hsv.empty(); hsv2.empty(); hierarchy.empty(); contours.clear();\n //Converts the RGB frame to the HSV frame\n Imgproc.cvtColor(mat, hsv, Imgproc.COLOR_BGR2HSV);\n // Blur image\n //Imgproc.medianBlur(frame, frame, 9);\n //Color ranges for in the Workshop\n //Core.inRange(hsv, new Scalar(55, 40, 125), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(45, 100, 100), new Scalar(70, 200, 200), frame);\n //Color ranges for in the PAST Foundation\n if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000 && thresholSet < 5) {\n oldMillis = System.currentTimeMillis();\n thresholSet++;\n } else if (Math.abs(System.currentTimeMillis()-oldMillis) > 1000){\n oldMillis = System.currentTimeMillis();\n thresholSet = 0;\n }\n //Blurs the black and white image to eliminate all noise\n //Imgproc.bilateralFilter(hsv, hsv, 5, 200, 200);\n hsv.copyTo(hsv2);\n Imgproc.bilateralFilter(hsv, hsv2, 3, 10, 10);\n Imgproc.medianBlur(hsv, hsv, 3);\n Mat element = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(5, 5));\n Imgproc.erode(hsv, hsv, element);\n Imgproc.dilate(hsv, hsv, element);\n Core.inRange(hsv, new Scalar(45, 100, 150), new Scalar(70, 255, 255), frame);\n\n //System.out.println(thresholSet);\n //Core.inRange(hsv, new Scalar(48, 152, 122), new Scalar(70, 255, 255), frame);\n //Core.inRange(hsv, new Scalar(46, 112, 100), new Scalar(70, 255, 255), frame);\n //Bilatersl FIltering\n //mat.copyTo(biMat);\n //Copies the black and white image to a new frame to prevent messing up the original\n frame.copyTo(contourFrame);\n //Finds the contours in the thresholded frame\n Imgproc.findContours(contourFrame, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n //Draws the contours found on the original camera feed\n Imgproc.drawContours(mat, contours, -2, new Scalar(0, 0, 255), 5, 8, hierarchy, Imgproc.INTER_MAX, offset);\n //Draws circle at the center of the feed\n Imgproc.circle(mat, new Point((mat.size().width) / 2, (mat.size().height) / 2), 5, new Scalar(255, 255, 0), 15, Imgproc.LINE_8, 0);\n try {\n //Creates the max variable\n int max = 0;\n //Sets up loop to go through all contuors\n for (int a=0;a<contours.size();a++){\n //Gets the area of all of the contours\n double s2 = Imgproc.contourArea(contours.get(a));\n //Checks the area against the other areas of the contours to find out which is largest\n if (s2 > Imgproc.contourArea(contours.get(max))) {\n //Sets largest contour equal to max variable\n max = a;\n }\n }\n\n try{\n //Gets the minimum area vertical(non titlted) rectangle that outlines the contour\n Rect place = Imgproc.boundingRect(contours.get(max));\n //Creates variable for center point\n Point center = new Point();\n //Sets variale fpr screen center so now we adjust the X and Y axis\n Point screenCenter = new Point();\n //Creates top left point variable\n Point topleft = place.tl();\n //Cerates bottom right point variable\n Point bottomright = place.br();\n //Finds the width of rectangle\n double width = (bottomright.x - topleft.x);\n if (width < 90){\n //Tells Rio to move further away during Targeting modes\n status = 1;\n }\n else if (width > 110){\n // Tells Rio to move robot closer during Targeting modes\n status = -1;\n }\n else{\n //Tell Rio not to move robot during Targeting modes\n status = 0;\n }\n //Finding the middle of the countoured area on the screen\n center.x = (topleft.x+bottomright.x)/2;\n center.y = (topleft.y+bottomright.y)/2;\n //Draws the circle at center of contoured object\n Imgproc.circle(mat, center, 5, new Scalar(255, 0, 255), 5, Imgproc.LINE_8, 0);\n //Draws rectangle around the recognized contour\n Imgproc.rectangle(mat, place.tl(), place.br(), new Scalar(255, 0, 0), 10, Imgproc.LINE_8, 0);\n System.out.println(\"X Away: \" + Math.abs((mat.size().width / 2) - center.x));\n System.out.println(\"Y Away: \" + Math.abs((mat.size().height / 2) - center.y));\n }\n catch(Exception e) {\n //This is\n status = 2;\n }\n }\n catch (Exception e) {\n //In case no contours are found\n }\n //Returns the original image with drawn contours and shape identifiers\n return mat;\n }", "private void callCloudVision(final Bitmap bitmap) {\n try {\n AsyncTask<Object, Void, String> labelDetectionTask = new LabelDetectionTask(this, prepareAnnotationRequest(bitmap));\n labelDetectionTask.execute();\n } catch (IOException e) {\n Log.d(TAG, \"failed to make API request because of other IOException \" +\n e.getMessage());\n }\n }", "private void performOCR(){\n }" ]
[ "0.8656481", "0.8183857", "0.7971123", "0.77981025", "0.7662217", "0.7393351", "0.7319657", "0.7297633", "0.71529424", "0.68858606", "0.6635588", "0.6541994", "0.6402462", "0.61149096", "0.59806585", "0.57755214", "0.5661906", "0.5655201", "0.56027424", "0.55557376", "0.5418898", "0.53807014", "0.53672886", "0.5341124", "0.533133", "0.5231146", "0.52156585", "0.5203785", "0.51297826", "0.51269007", "0.50550765", "0.5036416", "0.50272274", "0.50124794", "0.49951395", "0.49590772", "0.49536365", "0.49474388", "0.49471897", "0.4938515", "0.49355406", "0.49317658", "0.49170038", "0.48730782", "0.48716483", "0.48707068", "0.48641053", "0.48610434", "0.4854862", "0.48425978", "0.48386362", "0.48275322", "0.4822659", "0.47997946", "0.47807875", "0.47708073", "0.47611094", "0.4759138", "0.47498208", "0.47305197", "0.47268483", "0.4712141", "0.4704964", "0.47002754", "0.4699449", "0.46904463", "0.46785975", "0.46779004", "0.46750653", "0.46724087", "0.46629268", "0.4645686", "0.46286353", "0.46271145", "0.4616585", "0.46164224", "0.45947427", "0.45873263", "0.45730674", "0.45693168", "0.456901", "0.456574", "0.4563246", "0.4562695", "0.45598614", "0.45570883", "0.45528767", "0.45509687", "0.4540186", "0.45387015", "0.45268193", "0.45210654", "0.45198032", "0.45157534", "0.45139265", "0.4512691", "0.4505465", "0.45045322", "0.45023382", "0.4500099" ]
0.7988309
2
native support for java finalize()
private static native void delete(long nativeObj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private native void finalize(long pointer);", "public abstract void finalize();", "public void finalize();", "@Override// opcional\n public void finalize(){\n\n }", "protected final void finalize() {\n if (native_lock != null) {\n synchronized(native_lock) {\n String error = native_finalize(); // may be called more than once\n if (error != null)\n debug(error + \" in native_finalize\");\n }\n }\n }", "private native void nativeFinalize();", "private native String native_finalize();", "public void finalize()\r\n\t{\n\t}", "public abstract void finalizeIt();", "@Override()\r\n protected void finalize() {\r\n destroy();\r\n }", "@Override\n\tpublic void finalize() {\n\t\t\n\t}", "private native void finaliseHandle();", "protected void finalize() throws Throwable {\n/* 479 */ this.delegate.dispose();\n/* */ }", "@Override\n protected void finalize() throws Throwable\n {\n finalize(pointer);\n super.finalize();\n }", "public void finalize() throws Throwable {\n if (this.mObject != 0) {\n nativeDestroy(this.mObject);\n }\n }", "protected void finalize()\n {\n dispose();\n }", "@Override\r\n protected void finalize() throws Throwable {\r\n super.finalize();\r\n RefNative.destroyNativeClassLoader(this);\r\n System.out.println(this + \" finalized\");\r\n }", "public void finalize()\n throws Throwable\n {\n pythonDecRef();\n }", "public void finalize() {\n AppMethodBeat.i(66593);\n if (this.mJitterBuffer != 0) {\n nativeDestoryJitterBuffer(this.mJitterBuffer);\n this.mJitterBuffer = 0;\n }\n AppMethodBeat.o(66593);\n }", "protected void finalize() throws Throwable{ \n //------------------------------------------------------------------------- \n super.finalize(); \n }", "protected void finalize() throws Throwable {\n\t}", "@Override\n public native boolean cleanup();", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tSystem.out.println(\"finalize\");\n\t}", "public final void finalize() throws Throwable {\n super.finalize();\n XXHashJNI.XXH64_free(this.state);\n this.state = 0;\n }", "public void finalize() throws Throwable {\n delete(this.nativeObj);\n }", "public void finalize() throws Throwable {\n delete(this.nativeObj);\n }", "protected void finalize() {\n close();\n }", "@Override\r\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\r\n\t}", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t}", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t}", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t}", "protected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize();\n\t\tfinaliseHandle();\n\t\tfinaliseLoggerReference();\n\t}", "protected void finalize() {\n\t\tclose();\n\t}", "@Override\r\n\tprotected void finalize() throws Exception\r\n\t{\r\n\t\tif(!this.cleanUpDone )\r\n\t\t\tthis.terminate();\r\n\t}", "public void finalize() throws Throwable {\n if (this.mShadow != 0) {\n nativeRelease(this.mShadow);\n this.mShadow = 0;\n }\n super.finalize();\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tclose();\n\t\tsuper.finalize();\n\t}", "protected void finalize() { \n \tstopSelf(); \n }", "@Override\r\n protected void finalize() throws Throwable {\r\n super.finalize();\r\n dispose();\r\n }", "@Override\r\n\tprotected void finalize() throws Throwable {\n\t\tclose();\r\n\t\tsuper.finalize();\r\n\t}", "public void finalize() {\n\n System.out.println( \"This is finalize method\" );\n }", "protected void finalize()throws Throwable{\t\t\n //---------------------------------------------------------------------------\n super.finalize();\n\t}", "protected void finalize()throws Throwable{\t\t\n //---------------------------------------------------------------------------\n super.finalize();\n\t}", "public void finalize() {\r\n super.finalize();\r\n }", "public void finalize() throws Throwable {\n try {\n shutdown();\n } finally {\n super.finalize();\n }\n }", "public void finalize() throws Throwable {\n try {\n shutdown();\n } finally {\n super.finalize();\n }\n }", "protected void finalize() throws Throwable\n {\n super.finalize();\n \n }", "protected void finalize() throws Throwable\n {\n super.finalize();\n \n }", "protected void finalize() throws Throwable\n {\n super.finalize();\n \n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() throws Throwable {\n close();\n }", "public void finalize() throws Throwable {\n finish();\n super.finalize();\n }", "protected void finalize() throws Throwable {\n super.finalize();\n close();\n }", "@Override\n\tpublic void finalize() throws TrippiException {\n close();\n }", "@Override\n protected void finalize() throws Throwable {\n if (_disposed) {\n return;\n }\n\n synchronized (RedisConnector.class) {\n if (_disposed) {\n return;\n }\n\n super.finalize();\n\n if (_redisClient != null) {\n _redisClient.shutdown();\n }\n\n _disposed = true;\n }\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tctx.close();\n\t\tctx=null;\n\t\tsuper.finalize();\n\t}", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t\tclearData();\n\t}", "public final void finalize() throws Throwable {\n try {\n if (!(this.f119471b == null || this.f119482o == 0)) {\n this.f119471b.mo115486a();\n }\n m145766a(true);\n } finally {\n super.finalize();\n }\n }", "public void finalize() throws Throwable {\n close();\n super.finalize();\n }", "@Override\n public void finalize() throws Throwable {\n this.close();\n super.finalize();\n }", "@Override\n\tprotected void finalize() {\n\t\tif(refcount>0){\n\t\t\tprint(\"Error \"+refcount+\"Shared \"+id+\"objects in use\");\n\t\t}\n\t}", "protected void finalize() throws java.lang.Throwable {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.conscrypt.OpenSSLBIOSource.finalize():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.finalize():void\");\n }", "public void finalize(World world) { }", "public final void finalize() {\n AppMethodBeat.i(116587);\n try {\n if (fZk != null) {\n fZk.invoke(this.fZh, new Object[]{this.fZi});\n RemoteControlReceiver.alQ();\n }\n } catch (InvocationTargetException e) {\n InvocationTargetException invocationTargetException = e;\n Throwable cause = invocationTargetException.getCause();\n RuntimeException runtimeException;\n if (cause instanceof RuntimeException) {\n runtimeException = (RuntimeException) cause;\n AppMethodBeat.o(116587);\n throw runtimeException;\n } else if (cause instanceof Error) {\n Error error = (Error) cause;\n AppMethodBeat.o(116587);\n throw error;\n } else {\n runtimeException = new RuntimeException(invocationTargetException);\n AppMethodBeat.o(116587);\n throw runtimeException;\n }\n } catch (IllegalAccessException e2) {\n ab.e(\"MicroMsg.RemoteControlReceiver\", \"unexpected \".concat(String.valueOf(e2)));\n }\n super.finalize();\n AppMethodBeat.o(116587);\n }", "protected void finalize() throws Throwable {\n\t\tcleanup();\n\n\t\t//kill the scsynth\n\t\t_scsynthLauncher.killScsynth();\n\t\t\n\t\t// free the UDP port from JavaOSC\n\t\tif (_receiver != null)\n\t\t\t_receiver.close();\n\n\t}", "protected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize();\n\t\tfinaliseLoggerReference();\n\t}", "public interface Finalizable {\n- public void finalize();\n+ public void finalize() throws Throwable;\n }", "public void close() {\n finalize0();\n }", "@Override //sobre-escritura del destructor.\n protected void finalize() throws Throwable {\n super.finalize(); \n System.err.println(\"Chau objeto.\"); //serr y ...\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tsuper.finalize();\n\t\tSystem.out.println(\"destroyed B\");\n\t}", "@Override\n\t\tprotected void finalize() throws Throwable {\n\t\t\tif (pool != null) {\n\t\t\t\tdone();\n\t\t\t\tpool = null;\n\t\t\t}\n\t\t}", "public void finalize() {\n if (SinkHolder.sink != null || SinkHolder.finalize_count <= 0) {\n SinkHolder.access$008();\n return;\n }\n throw new AssertionError((Object) \"Can't get here\");\n }", "protected void finalize() {\n\t\tdestroyImages();\n\t}", "@Override\n protected void finalize() throws Throwable {\n super.finalize();\n t.stop();\n }", "protected void finalize() throws Throwable\n {\n // your code here\n \tthis.si.getServerConnection().logout();\n \tsuper.finalize();\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tzSampleRecord.recycle();\n\t\tySampleRecord.recycle();\n\t\tsuper.finalize();\n\t}", "protected void finalize() throws Throwable {\n clear();\n }", "public void finalize() throws Throwable {\n OppomodemService.super.finalize();\n }", "protected void finalize() throws Throwable {\n\t\ttry {\n\t\t\tthis.listen_socket.close();\n\t\t} catch (IOException e1) {\n\t\t}\n\t}", "public final void finalize() throws Throwable {\n try {\n synchronized (this) {\n if (!this.f40734p) {\n this.f40728j.mo39791k();\n ala.m46250a((aik) this);\n m46516U();\n m46515T();\n }\n }\n super.finalize();\n } catch (Throwable th) {\n super.finalize();\n throw th;\n }\n }", "public native void close();", "public native void close();", "public void finalize() {\n acquire.release();\n }", "public void finalize() {\n acquire.release();\n }", "protected void finalize() throws Throwable {\n\t\tsuper.finalize();\r\n\t\tthis.globalStaticDataMap.clear();\r\n\t\trowSet = null;\r\n\t}", "public void finalize() {\r\n\r\n mask = null;\r\n newMask = null;\r\n newShortMask = null;\r\n System.gc();\r\n }", "private static native void nativeDestroy(long handle) throws UnicornException;" ]
[ "0.88562703", "0.8464909", "0.8400887", "0.8341032", "0.83311486", "0.8309452", "0.8284691", "0.79973495", "0.7872344", "0.78596044", "0.78572685", "0.7841005", "0.7798943", "0.7796416", "0.7750903", "0.77275574", "0.76885456", "0.7615059", "0.7601743", "0.7555846", "0.75553733", "0.7542906", "0.7489683", "0.7441187", "0.7414684", "0.7414684", "0.7361818", "0.73488754", "0.7341646", "0.7341646", "0.7341646", "0.7331083", "0.7330246", "0.7315134", "0.72916204", "0.7259597", "0.7251059", "0.7239427", "0.7236475", "0.7233861", "0.7213698", "0.7213698", "0.7212137", "0.71940625", "0.71940625", "0.7191724", "0.7191724", "0.7191724", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.71808386", "0.7129696", "0.7116171", "0.7095259", "0.7095242", "0.7089958", "0.7085553", "0.7048089", "0.7025624", "0.70109916", "0.6994563", "0.6994388", "0.6990451", "0.69423133", "0.6931311", "0.6928625", "0.69238114", "0.691373", "0.6892575", "0.68878675", "0.6862979", "0.68470454", "0.6826263", "0.6814966", "0.6811833", "0.68086016", "0.67869794", "0.677393", "0.6767838", "0.67436093", "0.67065877", "0.669314", "0.669314", "0.66915804", "0.66915804", "0.6618322", "0.66181886", "0.6614208" ]
0.0
-1
200 File upload successfully 400 Bad request. Missing some parameters 500 Internal error. Please send me the error. I will fix it
@Multipart @POST("v1/user/avatar/upload") Call<UpdateProfileSuccess> uploadUserAvatar(@Part MultipartBody.Part filePart);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @RequestMapping(\"upload.feep\")\n public void upload(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@Override\n public void uploadFailed() {\n }", "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);", "private String uploadFile() {\n\n int serverResponseCode = 0;\n String serverResponseMessage = null;\n HttpURLConnection connection;\n DataOutputStream dataOutputStream;\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File selectedFile = new File(selectedFilePath);\n double len = selectedFile.length();\n\n String[] parts = selectedFilePath.split(\"/\");\n final String fileName = parts[parts.length - 1];\n\n if (!selectedFile.isFile()) {\n dialog.dismiss();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// tvFileName.setText(\"Source File Doesn't Exist: \" + selectedFilePath);\n }\n });\n return \"\";\n } else {\n try {\n String id = PreferenceStorage.getUserMasterId(getApplicationContext());\n String serviceId = ongoingService.getServiceOrderId();\n\n\n FileInputStream fileInputStream = new FileInputStream(selectedFile);\n String SERVER_URL = SkilExConstants.BUILD_URL + SkilExConstants.UPLOAD_BILL_DOCUMENT + \"\" + id + \"/\" + serviceId + \"/\";\n URI uri = new URI(SERVER_URL.replace(\" \", \"%20\"));\n String baseURL = uri.toString();\n URL url = new URL(baseURL);\n connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);//Allow Inputs\n connection.setDoOutput(true);//Allow Outputs\n connection.setUseCaches(false);//Don't use a cached Copy\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n connection.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n connection.setRequestProperty(\"bill_copy\", selectedFilePath);\n// connection.setRequestProperty(\"user_id\", id);\n// connection.setRequestProperty(\"doc_name\", title);\n// connection.setRequestProperty(\"doc_month_year\", start);\n\n //creating new dataoutputstream\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n\n //writing bytes to data outputstream\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"document_file\\\";filename=\\\"\"\n + selectedFilePath + \"\\\"\" + lineEnd);\n\n dataOutputStream.writeBytes(lineEnd);\n\n //returns no. of bytes present in fileInputStream\n bytesAvailable = fileInputStream.available();\n //selecting the buffer size as minimum of available bytes or 1 MB\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n //setting the buffer as byte array of size of bufferSize\n buffer = new byte[bufferSize];\n\n //reads bytes from FileInputStream(from 0th index of buffer to buffersize)\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputstream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n serverResponseMessage = connection.getResponseMessage();\n\n Log.i(TAG, \"Server Response is: \" + serverResponseMessage + \": \" + serverResponseCode);\n\n //response code of 200 indicates the server status OK\n if (serverResponseCode == 200) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// tvFileName.setText(\"File Upload completed.\\n\\n You can see the uploaded file here: \\n\\n\" + \"http://coderefer.com/extras/uploads/\"+ fileName);\n// tvFileName.setText(\"File Upload completed.\\n\\n\"+ fileName);\n }\n });\n }\n\n //closing the input and output streams\n fileInputStream.close();\n dataOutputStream.flush();\n dataOutputStream.close();\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"File Not Found\", Toast.LENGTH_SHORT).show();\n }\n });\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"URL error!\", Toast.LENGTH_SHORT).show();\n\n } catch (IOException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Cannot Read/Write File!\", Toast.LENGTH_SHORT).show();\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n return serverResponseMessage;\n }\n\n }", "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);", "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);", "public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "private void uploadToServer(String filePath, String title) {\n APIClient apiClient = new APIClient();\n Retrofit retrofit = apiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n File file = new File(filePath);\n\n MultipartBody.Part filePart =\n MultipartBody.Part.createFormData(\"file\", title+\".jpg\", //file.getName(),\n RequestBody.create(MediaType.parse(\"image/*\"), file));\n\n\n Call call = apiInterface.uploadImage(filePart);\n call.enqueue(new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n Toast.makeText(AddPost.this, \"Worked\",Toast.LENGTH_SHORT).show();\n }\n @Override\n public void onFailure(Call call, Throwable t) {\n t.printStackTrace();\n Toast.makeText(AddPost.this, \"Didn't work\",Toast.LENGTH_SHORT).show();\n }\n });\n }", "@View(\"upload\")\n @Post(consumes = MediaType.MULTIPART_FORM_DATA)\n public HttpResponse upload(@Body CompletedFileUpload file) {\n Drive drive = null;\n try {\n drive = googleDriveAccessor.accessGoogleDrive();\n } catch (IOException e) {\n // Catch down below\n }\n\n if(drive == null) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Unable to access Google Drive\"));\n }\n\n if ((file.getFilename() == null || file.getFilename().equals(\"\"))) {\n return HttpResponse.badRequest(CollectionUtils.mapOf(RSP_ERROR_KEY, \"Required file\"));\n }\n\n if(directoryKey == null) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Directory key error, please contact admin\"));\n }\n\n JsonNode dirNode = null;\n try {\n dirNode = new ObjectMapper().readTree(this.getClass().getResourceAsStream(DIRECTORY_FILE_PATH));\n } catch (IOException e) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Configuration error, please contact admin\"));\n }\n\n String parentId = dirNode.get(directoryKey) != null ? dirNode.get(directoryKey).asText() : null;\n if(parentId == null) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Configuration error, please contact admin\"));\n }\n\n File fileMetadata = new File();\n fileMetadata.setName(file.getFilename());\n fileMetadata.setMimeType(file.getContentType().orElse(MediaType.APPLICATION_OCTET_STREAM_TYPE).toString());\n fileMetadata.setParents(List.of(parentId));\n\n InputStreamContent content;\n try {\n content = new InputStreamContent(fileMetadata.getMimeType(), file.getInputStream());\n } catch (IOException e) {\n return HttpResponse.badRequest(CollectionUtils.mapOf(RSP_ERROR_KEY,\n String.format(\"Unexpected error processing %s\", file.getFilename())));\n }\n\n try {\n drive.files().create(fileMetadata, content).setFields(\"parents\").execute();\n } catch (IOException e) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Unable to upload file to Google Drive\"));\n }\n\n return HttpResponse.ok(CollectionUtils.mapOf(RSP_COMPLETE_MESSAGE_KEY,\n String.format(\"The file %s was uploaded\", file.getFilename())));\n }", "private void uploadFile(String fileUri, String filename) {\n progressDialog.show();\n FileUploadService service = MyConfig.getRetrofit(MyConfig.JSON_BASE_URL).create(FileUploadService.class);\n\n // https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java\n // use the FileUtils to get the actual file by uri\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n MultipartBody.Part body = null;\n if (!profile_image_path.equalsIgnoreCase(\"\")) {\n\n File file = new File(fileUri);\n\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n\n // create RequestBody instance from file\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"image/*\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n\n body = MultipartBody.Part.createFormData(\"profile_image\", filename, requestFile);\n }\n\n\n RequestBody user_id = RequestBody.create(MediaType.parse(\"text/plain\"), Shared_Preferences.getPrefs(ProfileActivity.this, IConstant.USER_ID));\n RequestBody full_name = RequestBody.create(MediaType.parse(\"text/plain\"), etName.getText().toString());\n RequestBody height = RequestBody.create(MediaType.parse(\"text/plain\"), etHeight.getText().toString());\n RequestBody email = RequestBody.create(MediaType.parse(\"text/plain\"), etEmail.getText().toString());\n RequestBody weight = RequestBody.create(MediaType.parse(\"text/plain\"), etWeight.getText().toString());\n RequestBody is_blood_pressure = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_diabetes = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_asthama = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_heart_patient = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n\n\n Call<ResponseBody> call;\n\n\n RequestBody file_name = RequestBody.create(MediaType.parse(\"text/plain\"), \"\" + filename);\n call = service.upload(\n user_id,\n full_name,\n height,\n email,\n weight,\n is_blood_pressure,\n is_diabetes,\n is_asthama,\n is_heart_patient,\n body\n );\n\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n String output = \"\";\n try {\n output = response.body().string();\n\n Log.d(\"Response\", \"response=> \" + output);\n JSONObject i = new JSONObject(output);\n boolean res = Boolean.parseBoolean(i.getString(\"result\"));\n String reason = i.getString(\"reason\");\n\n if (res) {\n user_profile_path = i.getString(\"user_profile_path\");\n\n JSONArray jsonArray = i.getJSONArray(\"user_data\");\n\n JSONObject jsonObjectData = jsonArray.getJSONObject(0);\n\n String id = jsonObjectData.getString(\"user_id\");\n String full_name = jsonObjectData.getString(\"full_name\");\n String email = jsonObjectData.getString(\"email\");\n String mobile_no = jsonObjectData.getString(\"mobile_no\");\n String image = jsonObjectData.getString(\"image\");\n String role = jsonObjectData.getString(\"role\");\n String height = jsonObjectData.getString(\"height\");\n String weight = jsonObjectData.getString(\"weight\");\n String is_blood_pressure = jsonObjectData.getString(\"is_blood_pressure\");\n String is_diabetes = jsonObjectData.getString(\"is_diabetes\");\n String is_asthama = jsonObjectData.getString(\"is_asthama\");\n String is_heart_patient = jsonObjectData.getString(\"is_heart_patient\");\n// String member_id = jsonObjectData.getString(\"member_id\");\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ID, id);\n Shared_Preferences.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n Shared_Preferences.setPrefs(_act, IConstant.USER_EMAIL, email);\n Shared_Preferences.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IMAGE, image);\n Shared_Preferences.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n Shared_Preferences.setPrefs(_act, IConstant.USER_HEIGHT, height);\n Shared_Preferences.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n\n\n\n sharedPref.setPrefs(_act, IConstant.USER_ID, id);\n sharedPref.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n sharedPref.setPrefs(_act, IConstant.USER_EMAIL, email);\n sharedPref.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n sharedPref.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n sharedPref.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n sharedPref.setPrefs(_act, IConstant.USER_HEIGHT, height);\n sharedPref.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n sharedPref.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n sharedPref.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n sharedPref.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n sharedPref.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n sharedPref.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n Toast.makeText(ProfileActivity.this, reason, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(ProfileActivity.this, UserDashboardActivity.class);\n startActivity(intent);\n finish();\n } else\n Toast.makeText(ProfileActivity.this, \"\" + reason, Toast.LENGTH_SHORT).show();\n // Log.v(\"Upload\", \"\" + response.body().string());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n progressDialog.dismiss();\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.d(\"Upload error:\", \"\");\n progressDialog.dismiss();\n }\n });\n }", "private String uploadFile() {\n String res = null;\n if(TotalDays.size()!=0) {\n if (TotalDays.size() > 1) {\n commaSeparatedValues = TextUtils.join(\",\", TotalDays);\n } else {\n commaSeparatedValues = TotalDays.get(0);\n }\n }else{\n commaSeparatedValues = \"Not Rated\";\n }\n\n try {\n\n RequestBody requestBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"unique_id\",UNIQUEID)\n .addFormDataPart(\"driver_mobile\",Driver_mobile)\n .addFormDataPart(\"user_mobile\",_PhoneNo)\n .addFormDataPart(\"review\",commaSeparatedValues)\n .addFormDataPart(\"user_rating\",Rate_user)\n .build();\n\n Request request = new Request.Builder()\n .url(Config_URL.STOP_BOOKING)\n .post(requestBody)\n .build();\n OkHttpClient client = new OkHttpClient();\n okhttp3.Response response = client.newCall(request).execute();\n res = response.body().string();\n String[] pars = res.split(\"error\");\n if (pars[1].contains(\"false\")) {\n success = true;\n\n } else {\n success = false;\n }\n Log.e(\"TAG\", \"Response : \" + res);\n\n return res;\n\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n\n\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n\n }\n\n\n return res;\n\n }", "@RequestMapping(value = \"/uploadStatement\", produces = \"application/json\", method = RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity handleFileUpload(@RequestParam(\"file\") MultipartFile multipart) throws Exception {\n\t\tlog.info(\"In handleFileUpload method\");\n\t\tAppResponse appResponse = new AppResponse();\n\t\t// check1 : Empty check\n\t\tif (!multipart.isEmpty()) {\n\t\t\t// check2: type check. Only CSV and XML file\n\t\t\tif (isValidFileTye(multipart)) {\n\t\t\t\tList<Record> duplicateRecords = new ArrayList<Record>();\n\t\t\t\tList<Record> invalidRecords = new ArrayList<Record>();\n\t\t\t\tFile inputFile = convertFileFormat(multipart);\n\t\t\t\tList<Record> extractedRecords = extractorService.extractRecordsFromFile(inputFile,multipart.getContentType());\n\t\t\t\tduplicateRecords.addAll(validatorService.getDuplicateRecords(extractedRecords));\n\t\t\t\tinvalidRecords.addAll(validatorService.getEndBalanceErrorRecords(extractedRecords));\n\t\t\t\t// check3: if processed records have some duplicated transaction reference or invalid end balance\n\t\t\t\tif (!duplicateRecords.isEmpty() || !invalidRecords.isEmpty()) {\n\t\t\t\t\tappResponse.setMessage(AppConstants.VALIDATION_ERROR);\n\t\t\t\t\tappResponse.setStatus(AppConstants.INVALID_STATUS);\n\t\t\t\t\tappResponse.setDuplicateRecords(duplicateRecords);\n\t\t\t\t\tappResponse.setInvalidEndBalanceRecords(invalidRecords);\n\t\t\t\t} else {\n\t\t\t\t\tappResponse.setStatus(AppConstants.VALID_STATUS);\n\t\t\t\t\tappResponse.setMessage(AppConstants.VALIDATION_SUCCESS);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tappResponse.setMessage(AppConstants.UNSUPPORTED_FILE_FORMAT);\n\t\t\t\treturn new ResponseEntity<>(appResponse, HttpStatus.UNSUPPORTED_MEDIA_TYPE);\n\t\t\t}\n\t\t} else {\n\t\t\tappResponse.setMessage(AppConstants.INVALID_INPUT);\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tlog.info(\"end handleFileUpload method\");\n\t\treturn new ResponseEntity<>(appResponse, HttpStatus.OK);\n\t}", "@ApiResponses(value = {@ApiResponse(code = 400, message = \"Invalid file uploaded\")})\n @PostMapping(\"/mcarrington1/portal/1.0.0/upload\")\n public ResponseEntity<?> uploadFile(@RequestParam(\"file\") MultipartFile file) {\n try {\n String imageUrl = amazonS3Service.uploadImageToAmazon(file);\n return ResponseEntity.ok(imageUrl);\n } catch (Exception e) {\n System.out.println(\"Exception occurred :\" + e);\n return new ResponseEntity<>(\"Error Occurred: \" + e, HttpStatus.BAD_REQUEST);\n }\n }", "public void uploadMultipart() {\n String path = getPath(filePath);\n // Toast.makeText(getContext(),path,Toast.LENGTH_LONG).show();\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n\n //Creating a multi part request\n new MultipartUploadRequest(getContext(), uploadId, Const.CompanyProfile)\n .addFileToUpload(path, \"logo\") //Adding file\n .addParameter(\"companyname\", \"BGn\") //Adding text parameter to the request\n .addParameter(\"companyemail\", \"[email protected]\")\n .addParameter(\"description\", desc.getText().toString())\n .addParameter(\"address\", address.getText().toString())\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n // startActivity(new Intent(getContext(), HOME.class));\n Toast.makeText(getContext(), \"Thanks for Submit your Property..\", Toast.LENGTH_LONG).show();\n Fragment fragment = new EmployerHomeFragment();\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.newview, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n\n } catch (Exception exc) {\n Toast.makeText(getContext(), exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n //finish();\n }", "public interface RequeteService {\n @Multipart\n @POST(\"upImportDoc.do\")\n Call<ResponseBody> uploadSingleFile(\n @Header(\"Cookie\") String sessionid,\n @Header(\"User-Agent\") String userAgent,\n @Part MultipartBody.Part file,\n @Part(\"jsessionid\") RequestBody jsessionid,\n @Part(\"ptoken\") RequestBody ptoken,\n @Part(\"ajaupmo\") RequestBody ajaupmo,\n @Part(\"ContributionComment\") RequestBody ContributionComment,\n @Part(\"Document_numbasedoc\") RequestBody Document_numbasedoc,\n @Part(\"contribution\") RequestBody contribution);\n}", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "private void doMultipartFormDataPostRequest(String token, String url, byte[] fileData, String filename) throws Exception {\n\n\n CloseableHttpClient client = HttpClients.createDefault();\n\n try {\n HttpPost httpPost = new HttpPost(getBaseUrl() + url );\n httpPost.setHeader(\"X-Authentication\", token);\n\n\n MultipartEntityBuilder multipartBuilder = MultipartEntityBuilder.create();\n\n if (fileData == null || fileData.length <= 0) {\n throw new MfilesOperationException(\"The byte array must not be null\");\n }\n\n if (StringUtils.isBlank(filename)) {\n throw new MfilesOperationException( \"Filename must not be blank or null...\" );\n }\n\n File tempDir = FileUtils.getTempDirectory();\n String reversedFilename = StringUtils.reverse(filename);\n //get the first '.'\n int dotIndex = reversedFilename.indexOf('.');\n String extension = reversedFilename.substring(0, (dotIndex + 1));\n extension = StringUtils.reverse(extension);\n\n //Generate a random string to append to the name of the file\n //We do this to prevent a situation whereby multiple users\n //upload files that have the same name and extension.\n String tempFileName = filename.substring(0, filename.length() - extension.length()) + \"_\" + System.currentTimeMillis();\n\n tempFileName += extension;\n\n final File fileToUpload = new File(tempDir + File.separator + tempFileName);\n\n try {\n FileUtils.writeByteArrayToFile(fileToUpload, fileData);\n }catch(Exception ex) {\n LOG.error(\"An exception occurred while writing byte array data to the file for upload\", ex);\n throw new MfilesOperationException(ex.getMessage());\n } finally {\n\n }\n\n final FileBody fileBody = new FileBody(fileToUpload);\n\n multipartBuilder.addPart(\"file\", fileBody);\n\n //OR\n //multipartBuilder.addBinaryBody(\"file\", file, ContentType.APPLICATION_OCTET_STREAM, \"file.ext\");\n\n org.apache.http.HttpEntity multipart = multipartBuilder.build();\n httpPost.setEntity(multipart);\n\n System.out.println(\"executing file upload request \" + httpPost.getRequestLine());\n\n CloseableHttpResponse response = client.execute(httpPost);\n try {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"---------Response from server-----------\");\n System.out.println(response.getStatusLine());\n System.out.println(\"----------------------------------------\");\n\n org.apache.http.HttpEntity resEntity = response.getEntity();\n if (resEntity != null) {\n BufferedReader br = new BufferedReader(new InputStreamReader(resEntity.getContent()));\n String output = null;\n\n while ((output = br.readLine()) != null) {\n System.out.println(output);\n }\n }\n\n EntityUtils.consume(resEntity);\n\n } finally {\n response.close();\n }\n } finally {\n client.close();\n }\n }", "private File processMultipartForm() {\n\n File storeDirectory = Configuration\n .getParameterValueAsFile(PENDING_DIR);\n\n int fileSizeLimit = Configuration\n .getParameterValueAsInt(METADATA_MAX_BYTES);\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(fileSizeLimit);\n\n RestletFileUpload upload = new RestletFileUpload(factory);\n\n List<FileItem> items;\n\n try {\n Request request = getRequest();\n items = upload.parseRequest(request);\n } catch (FileUploadException e) {\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, e\n .getMessage(), e);\n }\n\n for (FileItem fi : items) {\n if (fi.getName() != null) {\n String uuid = UUID.randomUUID().toString();\n File file = new File(storeDirectory, uuid);\n try {\n fi.write(file);\n return file;\n } catch (Exception consumed) {\n }\n }\n }\n\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST,\n \"no valid file uploaded\");\n }", "@Override\r\n\t\t\t\tpublic void onFail(String desc) {\n\t\t\t\t Log.e(\"upload\",desc);\t\r\n\t\t\t\t}", "@RequestMapping(value = \"/singleUpload\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody boolean test(HttpServletRequest request,\r\n\t\t\t@RequestParam(\"file\") CommonsMultipartFile singleUploadFile) {\r\n\t\tboolean status = false;\r\n\t\tSystem.out.println(\"////// Inside there\");\r\n\r\n\t\tSystem.out.println(\"////// Inside there reh\" + singleUploadFile.getOriginalFilename());\r\n\r\n\t\tString fileName[] = singleUploadFile.getOriginalFilename().split(\"_\");\r\n\t\tString folderName = fileName[0];\r\n\t\t\r\n\t\t/*\r\n\t\t * try { ServletContext context = request.getServletContext(); String\r\n\t\t * uploadPath = context.getRealPath(\"/\" + folderName); File uploadDir =\r\n\t\t * new File(uploadPath); if (!uploadDir.exists()) { boolean success =\r\n\t\t * uploadDir.mkdir();\r\n\t\t * \r\n\t\t * if (success) { success = (new File(uploadDir + \"/\" +\r\n\t\t * subFolderName)).mkdir(); }\r\n\t\t * \r\n\t\t * } String path = uploadDir + \"/\" + subFolderName + \"/\" +fileName[2];\r\n\t\t * System.out.println(\"Path is\" + path); File serverFile = new\r\n\t\t * File(path); BufferedOutputStream stream = new\r\n\t\t * BufferedOutputStream(new FileOutputStream(serverFile));\r\n\t\t * stream.write(singleUploadFile.getBytes()); stream.close(); url =\r\n\t\t * folderName+\"_\"+subFolderName+\"_\"+fileName[2];\r\n\t\t * \r\n\t\t * }\r\n\t\t */ \r\n\t\ttry {\r\n\t\t\tServletContext context = request.getServletContext();\r\n\t\t\tString uploadPath = context.getRealPath(\"/\" + folderName);\r\n\t\t\tFile uploadDir = new File(uploadPath);\r\n\t\t\tif (!uploadDir.exists()) {\r\n\t\t\t\tboolean success = uploadDir.mkdir();\r\n\t\t\t\tif (success) {\r\n\t\t\t\t\tsuccess = (new File(uploadDir + \"/temp\")).mkdir();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString path = uploadDir + \"/temp/\" + fileName[1];\r\n\t\t\tSystem.out.println(\"Path is\" + path);\r\n\t\t\tFile serverFile = new File(path);\r\n\t\t\tBufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(serverFile));\r\n\t\t\tstream.write(singleUploadFile.getBytes());\r\n\t\t\tstatus = true;\r\n\t\t\tstream.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tAdminResponseClass adminResponseClass = new AdminResponseClass();\r\n\t\tadminResponseClass.setStatus(status);\r\n\t\treturn adminResponseClass.isStatus();\r\n\t}", "UploadInfo advancedUpload(AdvanceFile file);", "UploadInfo simpleUpload(SimpleFile file);", "void whenUploadFile(MultipartFile file, HttpServletRequest request);", "@Test\n public void uploadTest() throws ApiException {\n String path = null;\n Integer devid = null;\n File file = null;\n api.upload(path, devid, file);\n\n // TODO: test validations\n }", "public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;", "private void uploadDocFiles()\n {\n fileCount = imageDragableGridView.getUpdatedImageListWithoutPlus().size() - 1;\n base64String = Helper.convertFileToByteArray(imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath());\n\n String filePath = \"\";\n if (imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath().isEmpty())\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath();\n } else\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath();\n }\n\n if (HelperHttp.isNetworkAvailable(getActivity()))\n\n {\n //Add parameters to request in arraylist\n ArrayList<Parameter> parameterList = new ArrayList<Parameter>();\n parameterList.add(new Parameter(\"userHash\", DataManager.getInstance().user.getUserHash(), String.class));\n parameterList.add(new Parameter(\"bas64Doc\", base64String, String.class));\n parameterList.add(new Parameter(\"fileName\", filePath, String.class));\n parameterList.add(new Parameter(\"planTaskID\", planTaskId, String.class));\n\n //create web service inputs\n DataInObject inObj = new DataInObject();\n inObj.setMethodname(\"NewSupportRequestDoc\");\n inObj.setNamespace(Constants.TEMP_URI_NAMESPACE);\n inObj.setSoapAction(Constants.TEMP_URI_NAMESPACE + \"IPlannerService/NewSupportRequestDoc\");\n inObj.setUrl(Constants.PLANNER_WEBSERVICE_URL);\n inObj.setParameterList(parameterList);\n\n //Network call\n showProgressDialog();\n new WebServiceTask(getActivity(), inObj, false, new TaskListener()\n {\n\n @Override\n public void onTaskComplete(Object result)\n {\n CustomDialogManager.showOkDialog(getActivity(), successMessage, new DialogListener()\n {\n @Override\n public void onButtonClicked(int type)\n {\n hideProgressDialog();\n if (getFragmentManager().getBackStackEntryCount() != 0)\n {\n getFragmentManager().popBackStack();\n } else\n\n {\n getActivity().finish();\n }\n }\n });\n }\n }).execute();\n } else\n {\n CustomDialogManager.showOkDialog(getActivity(), getString(R.string.no_internet_connection));\n }\n }", "public handleFileUpload() {\r\n\t\tsuper();\r\n\t}", "private void uploadFile(Uri fileUri, String firstName, String lastName, String phoneNumber, String email, boolean subscribed) {\n FileUploadInterface service = retrofit.create(FileUploadInterface.class);\n Uri filePath = getFilePathByUri(fileUri);\n File file = new File(filePath.getPath());\n // use the FileUtils to get the actual file by uri\n// File file = FileUtils.getFile(this, fileUri);\n\n // create RequestBody instance from file\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"picture\", file.getName(), requestFile);\n\n // add another part within the multipart request\n String descriptionString = \"hello, this is description speaking\";\n RequestBody description =\n RequestBody.create(\n MediaType.parse(\"multipart/form-data\"), descriptionString);\n\n // finally, execute the request\n Call<ResponseBody> call = service.upload(description, firstName, lastName, phoneNumber, email, body, subscribed);\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call,\n Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"Upload error:\", t.getMessage());\n }\n });\n }", "public void uploadFile() {\n \n InputStream input = null;\n try {\n input = file.getInputStream();\n System.out.println(\"chay qua inpustream\");\n String itemName = file.getSubmittedFileName();\n String filename = itemName.substring(\n itemName.lastIndexOf(\"\\\\\") + 1);\n String dirPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/upload/images\");\n fileNamed = \"/upload/images/\"+filename;\n File f = new File(dirPath + \"\\\\\" + filename);\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream output = new FileOutputStream(f);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n // resize(dirPath + \"\\\\\" + filename, dirPath + \"\\\\\" + filename, 200, 200);\n input.close();\n output.close();\n } catch (IOException ex) {\n System.out.println(\"loi io\");\n Logger.getLogger(ArtistsManagedBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void uploadFile( String selectedFilePath) {\n\n\n int serverResponseCode = 0;\n HttpURLConnection connection;\n DataOutputStream dataOutputStream;\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File selectedFile = new File(selectedFilePath);\n\n\n String[] parts = selectedFilePath.split(\"/\");\n final String fileName = parts[parts.length - 1];\n\n if (!selectedFile.isFile()) {\n //dialog.dismiss();\n //Log.v(TAG,\"gloabal\"+selectedFilePath);\n //showToast(selectedFilePath);\n //showToast(\"file issue\");\n return;\n } else {\n try {\n\n //Log.v(TAG, \"im in try\");\n\n\n FileInputStream fileInputStream = new FileInputStream(selectedFile);\n URL url = new URL(SERVER_URL);\n connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);//Allow Inputs\n connection.setDoOutput(true);//Allow Outputs\n connection.setUseCaches(false);//Don't use a cached Copy\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n connection.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n connection.setRequestProperty(\"uploaded_file\", selectedFilePath);\n //showToast(selectedFilePath);\n //creating new dataoutputstream\n\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n //showToast(\"im after path\");\n //writing bytes to data outputstream\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + selectedFilePath + \"\\\"\" + lineEnd);\n\n dataOutputStream.writeBytes(lineEnd);\n\n\n //returns no. of bytes present in fileInputStream\n bytesAvailable = fileInputStream.available();\n //selecting the buffer size as minimum of available bytes or 1 MB\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n //setting the buffer as byte array of size of bufferSize\n buffer = new byte[bufferSize];\n\n //reads bytes from FileInputStream(from 0th index of buffer to buffersize)\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //Log.v(TAG, \"before while\");\n\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputstream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n //Log.v(TAG, \"after while\");\n\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n String serverResponseMessage = connection.getResponseMessage();\n\n Log.i(TAG, \"Server Response is: \" + serverResponseMessage + \": \" + serverResponseCode);\n\n //response code of 200 indicates the server status OK\n if (serverResponseCode == 200) {\n Log.v(TAG, \"file upload complete\");\n }\n\n Log.v(TAG, \"now close\");\n\n //closing the input and output streams\n fileInputStream.close();\n dataOutputStream.flush();\n dataOutputStream.close();\n\n Log.v(TAG, \"CLosed \");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //showToast(\"FIle not found\");\n }\n });\n } catch (MalformedURLException e) {\n e.printStackTrace();\n //showToast(\"URL error\");\n\n } catch (IOException e) {\n e.printStackTrace();\n //showToast(\"Cannot read/Write file\");\n }\n dialog.dismiss();\n //postData(\"langitudes----\",\"longitues----\");\n\n //return serverResponseCode;\n }\n\n }", "@Test(priority = 1, description = \"podio {uploadFile} integration test positive case.\")\n public void testUploadFile() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:uploadFile\");\n esbRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n \n String multipartProxyUrl = getProxyServiceURL(\"podio_uploadFile\");\n String requestString = multipartProxyUrl + \"?apiUrl=\" + apiUrl;\n MultipartFormdataProcessor multipartProcessor =\n new MultipartFormdataProcessor(requestString, esbRequestHeadersMap);\n \n File file = new File(pathToResourcesDirectory + connectorProperties.getProperty(\"uploadSourcePath\"));\n multipartProcessor.addFileToRequest(\"source\", file);\n multipartProcessor.addFormDataToRequest(\"filename\", connectorProperties.getProperty(\"uploadSourcePath\"));\n RestResponse<JSONObject> esbRestResponse = multipartProcessor.processForJsonResponse();\n \n String fileId = esbRestResponse.getBody().getString(\"file_id\");\n connectorProperties.put(\"fileId\", fileId);\n \n String apiEndPoint = apiUrl + \"/file/\" + fileId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"created_on\"),\n apiRestResponse.getBody().getString(\"created_on\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_via\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_via\").getString(\"name\"));\n esbRequestHeadersMap.remove(\"Authorization\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }", "public static JSONObject userAddtionalDetailsResponse(String token, String supplier_id, String fssaiImagePath, String panImage, String adhaarImage, String dlImage, String bikeRC, String jsonObjectAsString) {\n try {\n MultipartBody.Builder multipartBuilder = new MultipartBody.Builder();\n // FSSAI\n if (fssaiImagePath != null && fssaiImagePath.length() > 0 && !(UtilityClass.checkURL(fssaiImagePath))) {\n File file_fssai = new File(fssaiImagePath);\n Log.d(\"TAG\", \"File Fssai...::::\" + file_fssai.getPath() + \" : \" + new File(file_fssai.getPath()).exists());\n multipartBuilder.addFormDataPart(\"fssai_doc\", \"fssaidoc.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file_fssai));\n } else {\n multipartBuilder.addFormDataPart(\"fssai_doc\", \"\");\n }\n // PAN\n if (panImage != null && panImage.length() > 0 && !(UtilityClass.checkURL(panImage))) {\n File file = new File(panImage);\n Log.d(\"TAG\", \"File Pan...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"pan\", \"pan.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"pan\", \"\");\n }\n //*************\n //Adhaar\n if (adhaarImage != null && adhaarImage.length() > 0 && !(UtilityClass.checkURL(adhaarImage))) {\n File file = new File(adhaarImage);\n Log.d(\"TAG\", \"File Adhaar...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"adhaar\", \"adhaar.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"adhaar\", \"\");\n }\n //***************************\n //DL\n if (dlImage != null && dlImage.length() > 0 && !(UtilityClass.checkURL(dlImage))) {\n File file = new File(dlImage);\n Log.d(\"TAG\", \"File DL...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"driving_license\", \"dl.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"driving_license\", \"\");\n }\n //***************************\n //Bike RC\n if (bikeRC != null && bikeRC.length() > 0 && !(UtilityClass.checkURL(bikeRC))) {\n File file = new File(bikeRC);\n Log.d(\"TAG\", \"File bikeRC...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"bike_rc\", \"bikeRC.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"bike_rc\", \"\");\n }\n //***************************\n multipartBuilder.setType(MultipartBody.FORM).addFormDataPart(\"additional_details\", jsonObjectAsString)\n .addFormDataPart(\"supplier_id\", supplier_id);\n /**\n * OKHTTP3\n */\n RequestBody requestBody = multipartBuilder\n .build();\n Request request = new Request.Builder().addHeader(\"Authorization\", token).addHeader(\"access_token\", RestTags.PUBLIC_KEY).addHeader(\"app_type\", RestTags.S_FLAG)\n .addHeader(\"supplier_id\", supplier_id).url(RestUrls.USER_ADDITIONAL_DETAILS)\n .post(requestBody)\n .build();\n\n // OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n String res = response.body().string();\n Log.e(\"TAG\", \"Error: \" + res);\n return new JSONObject(res);\n\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return null;\n }", "@PostMapping(\"/\")\n public ResponseEntity<?> updloadFile (MultipartFile file) throws IOException {\n \n System.out.println(\"file\"+file.getOriginalFilename());\n List<Producto> productos = productoService.readFile(\"C:\\\\Users\\\\Karen Web\\\\Downloads\\\\\"+file.getOriginalFilename());\n //System.out.println(\"producto\"+ productos.toString());\n productoService.guardarFile(productos);\n return ResponseEntity.ok(new SuccessMessage(\"001\", \"producto\"));\n \n }", "public static void upload(String fpath) {\n String baseurl=\"http://dev.123go.net.cn\";\n File file = new File(fpath);\n\n // please check you mime type, i'm uploading only images\n RequestBody requestBody = RequestBody.create(MediaType.parse(\"image/*\"), file);\n /*RequestBody rbody=new MultipartBody.Builder()\n .addPart(requestBody).build();\n\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"image/jpg\"), file);\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"image\", file.getName(), requestFile);\n */\n\n Retrofit retrofit=new Retrofit.Builder()\n .baseUrl(baseurl)\n .addConverterFactory(GsonConverterFactory.create())\n .client(getOkhttpClient())\n .build();\n // 添加描述\n /*String descriptionString = \"hello, 这是文件描述\";\n RequestBody description =\n RequestBody.create(\n MediaType.parse(\"multipart/form-data\"), descriptionString);*/\n UploadServer server=retrofit.create(UploadServer.class);\n Call<ResponseBody> call = server.uploadImage(requestBody);\n call.enqueue(new Callback<ResponseBody>() {\n\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n ResponseBody jsonObject=response.body();\n System.out.print(jsonObject.toString());\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n\n }\n });\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n uploadFile(request, response);\n\n }", "public interface UploadFileApi {\n @POST\n Flowable<ResponseBody> uploadFile(@Url String url, @Body MultipartBody body);\n}", "public void uploadMultipart(String path, final String name) {\n //getting name for the image\n // String name = editText.getText().toString().trim();\n\n //getting the actual path of the image\n // String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, UPLOAD_URL)\n .addFileToUpload(path, \"image\") //Adding file\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addParameter(\"alert\", mAlertId) //Adding text parameter to the request\n .addParameter(\"device\",\n android.os.Build.MODEL) //Adding text parameter to the request\n .addParameter(\"title\", currentCaptureDirectory.getName())\n .setNotificationConfig(new UploadNotificationConfig()).setMaxRetries(2)\n .setDelegate(new UploadStatusDelegate() {\n @Override\n public void onProgress(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n\n @Override\n public void onError(Context context, UploadInfo uploadInfo,\n Exception exception) {\n // your code here\n }\n\n @Override\n public void onCompleted(Context context, UploadInfo uploadInfo,\n ServerResponse serverResponse) {\n Log.i(\" _ \", \" \");\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.toString());\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.getBodyAsString());\n Log.i(\" _ \", \" \");\n\n File photo = new File(currentCaptureDirectory, name);\n if (photo.exists()) photo.delete();\n\n if (mSendEmail) {\n mSendEmail = false;\n mEmailResetHandler.removeCallbacks(emailResetRunnable);\n mEmailResetHandler.postDelayed(emailResetRunnable, 1000 * 600);\n String link = mServerUrl + \"sendEmail.php?device=\" + mDeviceName +\n \"&name=\" + name + \"&title=\" +\n currentCaptureDirectory.getName();\n new updateData().execute(link);\n\n String link2 = mServerUrl + \"init.php?device=\" + mDeviceName;\n new updateData().execute(link2);\n\n mHandler.postDelayed(runnable, 6000);\n }\n\n // your code here\n // if you have mapped your server response to a POJO, you can easily get it:\n // YourClass obj = new Gson().fromJson(serverResponse.getBodyAsString(), YourClass.class);\n // File photo = new File(Environment.getExternalStorageDirectory(), name + \".jpg\");\n // if (photo.exists()) photo.delete();\n }\n\n @Override\n public void onCancelled(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n }).startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Log.i(TAG, exc.getMessage());\n }\n }", "@PostMapping(\"/upload-files\")\n @Timed\n public ResponseEntity<UploadFilesDTO> createUploadFiles(@Valid @RequestBody UploadFilesDTO uploadFilesDTO) throws URISyntaxException {\n log.debug(\"REST request to save UploadFiles : {}\", uploadFilesDTO);\n if (uploadFilesDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new uploadFiles cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n UploadFilesDTO result = uploadFilesService.save(uploadFilesDTO);\n return ResponseEntity.created(new URI(\"/api/upload-files/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "Path fileToUpload();", "@Override\n public void onFailure(int code, String msg) {\n Log.i(\"Allen\", \"上传文件失败:\" + msg + \" ImgURL=\" + ImgURL);\n mDialog.dismiss();\n ToastUtils.toastFail(RegisterActivity.this, \"上传文件失败\" + msg);\n\n }", "public interface ApiService {\n String BASE_URL = \"http://robika.ir/ultitled/practice/sujeyab/test_multi_upload/\";\n\n @Multipart\n @POST(\"upload.php\")\n Call<ResponseBody> uploadMultiple(\n @Part(\"id_ferestande\") RequestBody id_ferestande,\n @Part(\"onvan\") RequestBody onvan,\n @Part(\"mozo\") RequestBody mozo,\n @Part(\"tozihat\") RequestBody tozihat,\n @Part(\"type\") RequestBody type,\n @Part(\"shenase_rahgiri\") RequestBody shenase_rahgiri,\n @Part(\"id_farakhan\") RequestBody id_farakhan,\n @Part(\"size\") RequestBody size,\n @Part List<MultipartBody.Part> files);\n}", "@POST\n @Path(\"{id}/coverupload\")\n @Consumes(MediaType.MULTIPART_FORM_DATA)\n public Response uploadAttach(@PathParam(\"id\") Integer id, MultipartFormDataInput newcover) {\n Map<String, List<InputPart>> uploadForm = newcover.getFormDataMap();\n // Get file data to save\n List<InputPart> inputParts = uploadForm.get(\"file\");\n String filename = null;\n for (InputPart inputPart : inputParts) {\n // convert the uploaded file to inputstream and write it to disk\n InputStream inputStream = null;\n OutputStream out = null;\n try {\n inputStream = inputPart.getBody(InputStream.class, null);\n List<String> contDisp = inputPart.getHeaders().get(\"Content-Disposition\");\n for (String cd : contDisp) {\n if (cd.contains(\"filename\")) {\n filename = \"cover.jpg\";\n LOGGER.info(\"FILENAME : \" + filename);\n }\n }\n String path = conf.getMovieFS() + id + \"/\";\n File pathtest = new File(path);\n if (!pathtest.exists()) {\n if (!pathtest.mkdirs()) {\n LOGGER.error(\"While saving cover : \"\n + \"unable to create repository tmp dir => \" + path);\n }\n }\n File up = new File(path + filename);\n if (!up.createNewFile()) {\n \tif (up.exists()) {\n \t\tup.delete();\n \t\tif (!up.createNewFile()) {\n LOGGER.error(\"While saving cover : \" + \"unable to overwrite existing file => \"\n + up.getAbsolutePath());\n \t\t}\n \t} else {\n LOGGER.error(\"While saving cover : \" + \"unable to create new file => \"\n + up.getAbsolutePath());\n \t}\n }\n out = new FileOutputStream(up);\n\n int read = 0;\n byte[] bytes = new byte[2048];\n while ((read = inputStream.read(bytes)) != -1) {\n out.write(bytes, 0, read);\n }\n inputStream.close();\n out.flush();\n out.close();\n } catch (IOException e) {\n LOGGER.error(\"While saving cover : \", e);\n return Response.ok(new JsonSimpleResponse(false), MediaType.APPLICATION_JSON).build();\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n LOGGER.error(\"While saving cover - closing inputstream : \", e);\n }\n }\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) {\n LOGGER.error(\"While saving cover - closing outputstream : \", e);\n }\n }\n }\n }\n return Response.ok(new JsonSimpleResponse(true), MediaType.APPLICATION_JSON).build();\n }", "@PreAuthorize(\"hasAuthority('SECRETARY')\")\n @PostMapping(\"/document/upload\")\n public ResponseEntity<Response> uploadSecretaryDocument(@RequestPart(value = \"file\") MultipartFile file,\n @RequestParam(value = \"name\") String name,\n @RequestParam(value = \"description\") String description,\n @RequestParam(value = \"secretaryId\") Long secretaryId,\n @RequestParam(value = \"endDateOfUpload\") String endDateOfUpload,\n @RequestParam(value = \"learningType\") String learningType,\n @RequestParam(value = \"universityStudy\") String universityStudy,\n @RequestParam(value = \"domain\") String domain,\n @RequestParam(value = \"studyProgram\") String studyProgram,\n @RequestParam(value = \"studyYear\") String studyYear) throws FileAlreadyExistsException {\n return ResponseEntity.ok(secretaryService.uploadSecretaryDocument(file, SecretaryDocumentModel.builder()\n .endDateOfUpload(LocalDateTime.parse(endDateOfUpload, DateTimeFormatter.ISO_DATE_TIME))\n .name(name)\n .secretaryId(secretaryId)\n .description(description)\n .learningType(learningType)\n .universityStudy(universityStudy)\n .domain(domain)\n .studyProgram(studyProgram)\n .studyYear(studyYear)\n .build()));\n }", "public int uploadFile(String sourceFileUri) {\n String fileName = sourceFileUri;\n\n HttpURLConnection conn = null;\n DataOutputStream dos = null;\n\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File sourceFile = new File(sourceFileUri);\n\n if (!sourceFile.isFile()) {\n Log.e(\"uploadFile\", \"Source File not exist :\"\n +uploadFilePath);\n return 0;\n }\n else\n {\n try {\n // open a URL connection to the Servlet\n FileInputStream fileInputStream = new FileInputStream(sourceFile);\n URL url = new URL(upLoadServerUri);\n\n ///\n fileName = fileName.substring(fileName.lastIndexOf(\"/\") +1);\n ///\n\n // Open a HTTP connection to the URL\n conn = (HttpURLConnection) url.openConnection();\n conn.setDoInput(true); // Allow Inputs\n conn.setDoOutput(true); // Allow Outputs\n conn.setUseCaches(false); // Don't use a Cached Copy\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n conn.setRequestProperty(\"uploaded_file\", fileName);\n\n dos = new DataOutputStream(conn.getOutputStream());\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + fileName + \"\\\"\" + lineEnd);\n dos.writeBytes(lineEnd);\n\n // create a buffer of maximum size\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n buffer = new byte[bufferSize];\n\n // read file and write it into form...\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n while (bytesRead > 0) {\n dos.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n // send multipart form data necesssary after file data...\n dos.writeBytes(lineEnd);\n dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n // Responses from the server (code and message)\n serverResponseCode = conn.getResponseCode();\n String serverResponseMessage = conn.getResponseMessage();\n\n Log.i(\"uploadFile\", \"HTTP Response is : \"\n + serverResponseMessage + \": \" + serverResponseCode);\n\n if(serverResponseCode == 200){\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"File Upload Complete.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n });\n }\n\n //close the streams //\n fileInputStream.close();\n dos.flush();\n dos.close();\n\n } catch (MalformedURLException ex) {\n ex.printStackTrace();\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"MalformedURLException\",\n Toast.LENGTH_SHORT).show();\n }\n });\n\n Log.e(\"Upload file to server\", \"error: \" + ex.getMessage(), ex);\n } catch (Exception e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"Got Exception : see logcat \", Toast.LENGTH_SHORT).show();\n }\n });\n Log.e(\"Upload file Exception\", \"Exception : \" + e.getMessage(), e);\n }\n return serverResponseCode;\n } // End else block\n }", "@PostMapping(\"/upload\")\n\tpublic ResponseEntity<String> upload(@RequestParam(\"doc\") MultipartFile file){\n\t\tFile storedFile = storageService.store(file);\n\t\tif(storedFile == null) {\n\t\t\treturn new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t\tString filename = storedFile.getName();\n\t\t\t\t\n\t\treturn new ResponseEntity<>(filename, HttpStatus.OK);\n\t}", "@PostMapping(\"/upload-file\")\n\tpublic ResponseEntity<String> uploadFile(@RequestParam(\"image\")MultipartFile file) throws IOException{\n\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif(file.isEmpty()) {\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"file can't be empty\");\n\t\t\t}\n\t\t\tif(!file.getContentType().equals(\"image/png\")) {\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"only PNG type content are alowed\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//now file upload code\n\t\tboolean f = fileUploadHelper.uploadFile(file);\n\t\t\n\t\tif(f) {\n\t\t\treturn ResponseEntity.ok(\"file is successfully uploaded\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"something went worng\");\n\t}", "@Multipart\n @POST()\n Call<Result> uploadImage(@Part MultipartBody.Part file, @Url String medialUploadUrl, @PartMap() Map<String, RequestBody> partMap);", "void uploadingFile(String path);", "private void fileUpload(HttpServletRequest request, HttpServletResponse response) {\n\t \ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * String appPath = request.getServletContext().getRealPath(\"\");\r\n\t\t\t\t\t * System.out.println(appPath); String savePath = appPath + File.separator +\r\n\t\t\t\t\t * SAVE_DIR; System.out.println(savePath);\r\n\t\t\t\t\t */\r\n\t \t\t\r\n\t \t\t//String appPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \t\tSystem.out.println(appPath);\r\n\t \t\t String savePath = appPath + \"//\" +SAVE_DIR; \r\n\t \t\t System.out.println(savePath);\r\n\t\t\t\t\t\tCollection<Part>cp= request.getParts();\r\n\t \t String fileName = up.fileUpload(cp,appPath);\r\n\t \t System.out.println(fileName);\r\n\t \t \r\n\t \t request.setAttribute(\"message\", \"The file \"+fileName+\" has been uploaded successfully!\");\r\n\t \t RequestDispatcher dispatcher = request.getRequestDispatcher(\"success.jsp\");\r\n\t \t dispatcher.forward(request, response);\r\n\t}catch(Exception ex) {\r\n System.out.println(ex);\r\n }\r\n\t }", "@Override\n public void onError(int statuscode, String errormsg) {\n Log.i(\"bmob\", \"文件上传失败:\" + errormsg);\n Toast.makeText(context, \"头像上传失败\" + errormsg, Toast.LENGTH_SHORT).show();\n uploadListener.onError(statuscode,errormsg);\n }", "@Override\n public void onError(int statuscode, String errormsg) {\n Log.i(\"bmob\", \"文件上传失败:\" + errormsg);\n Toast.makeText(context, \"头像上传失败\" + errormsg, Toast.LENGTH_SHORT).show();\n uploadListener.onError(statuscode,errormsg);\n }", "public interface FileService {\n\n //文件上传\n ResJsonTemplate insertFile(MultipartFile file, String path, String username);\n\n}", "public interface IFileService {\n ResponseJson uploadFile(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson uploadFiles(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson fileDownload(HttpServletRequest request, HttpServletResponse response,int fid) throws UnsupportedEncodingException;\n\n ResponseJson fileDelete(FileModel fileModel, HttpServletRequest request);\n\n ResponseJson findFileList(int uid);\n\n ResponseJson excelUpload(MultipartHttpServletRequest request,String type);\n\n ResponseJson findFileListByPage(int uid, PageJson pageJson);\n\n EUditorJson ueditorUploadImage(MultipartHttpServletRequest request) throws IOException;\n}", "public String uploadFile(String filename, InputStream is)\n {\n String url=null;\n try {\n \n FileMetadata metadata = client.files().uploadBuilder(\"/\"+filename).uploadAndFinish(is);\n SharedLinkMetadata sharedLinkMetadata = client.sharing().createSharedLinkWithSettings(\"/\"+filename);\n url=sharedLinkMetadata.getUrl();\n url=url.substring(0, url.length()-1)+\"1\";\n \n }\n// catch (FileNotFoundException fne)\n// {\n// System.out.println(\"96 : FileNotFoundException Caused By \"+fne.getLocalizedMessage());\n// }\n catch (IOException ioe)\n {\n System.out.println(\"100 : IOException Caused By \"+ioe.getLocalizedMessage());\n }\n// catch (DbxException dbxe)\n// {\n// \n// System.out.println(\"105 : DbxException Caused By \"+dbxe.getLocalizedMessage());\n// }\n catch(DbxException e)\n {\n System.out.println(\"--++--------+++++\");\n session = sfobj.openSession();\n tx = session.beginTransaction();\n\n System.out.println(\"line no= \"+e.getStackTrace()[2].getLineNumber());\n System.out.println(\"mathod name= \"+e.getStackTrace()[2].getMethodName());\n System.out.println(\"type= \"+e.toString());\n String nameofCurrMethod = new Throwable() \n .getStackTrace()[2] \n .getMethodName(); \n System.out.println(\"----method\"+nameofCurrMethod);\n // System.out.println(ea.getStackTrace().toString());\n System.out.println(\"class name= \"+e.getStackTrace()[2].getFileName());\n Errors ee=new Errors();\n ee.setGymid(gymid);\n ee.setError_name(\"line no= \"+e.getStackTrace()[2].getLineNumber()+\"type= \"+e.toString());\n ee.setMethod_name(e.getStackTrace()[2].getMethodName());\n session.save(ee);\n tx.commit();\n session.close();\n }\n return url;\n }", "@RequestMapping(value = {\"/edit-user-{id}\"}, method = RequestMethod.POST)\r\n public String updateUser(@Valid FileBucket fileBucket, BindingResult result,\r\n ModelMap model, @PathVariable String id, HttpServletRequest req) {\r\n\r\n MultipartFile[] files = fileBucket.getFiles();\r\n String originalImgPath = \"\";\r\n String resizedImgPath = \"\";\r\n //String serverFileName = \"\";\r\n String photoName = \"\";\r\n String itemViewName = \"\";\r\n String imgLocation = \"\";\r\n int width = 580;\r\n int height = 450;\r\n boolean saved = false;\r\n String serverFileName = \"\";\r\n\r\n FileBucket fb = new FileBucket();\r\n User user = new User();\r\n if (result.hasErrors()) {\r\n return \"registration\";\r\n }\r\n if (files != null && files.length > 0) {\r\n for (int i = 0; i < files.length; i++) {\r\n try {\r\n\r\n byte[] bytes = null;\r\n // Creating the directory to store file\r\n String rootPath = System.getProperty(\"catalina.home\");\r\n File dir = new File(rootPath + File.separator + \"tmpFiles\");\r\n if (!dir.exists()) {\r\n dir.mkdirs();\r\n }\r\n\r\n FilenameUtils fileUTIL = new FilenameUtils();\r\n\r\n String path = req.getServletContext().getRealPath(\"/image\");\r\n //String ext = fileUTIL.getExtension(file.getOriginalFilename());\r\n //String baseName = fileUTIL.getBaseName(file.getOriginalFilename());\r\n\r\n imgLocation = dir + File.separator;\r\n // get files name in the array\r\n if (i == 0) {\r\n photoName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + photoName;\r\n System.out.println(\"photoName:: \" + photoName);\r\n } else if (i == 1) {\r\n itemViewName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + itemViewName;\r\n System.out.println(\"itemViewName:: \" + itemViewName);\r\n }\r\n\r\n System.out.println(\"serverFileName :: \" + serverFileName);\r\n\r\n // resize image\r\n //utility.resize(originalImgPath, resizedImgPath, width, height);\r\n //create the file on server\r\n File serverFile = new File(serverFileName);\r\n BufferedOutputStream stream = new BufferedOutputStream(\r\n new FileOutputStream(serverFile));\r\n stream.write(bytes);\r\n stream.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n System.out.println(\"fileBucket.getPhoneNumber() ::\" + fileBucket.getPhoneNumber());\r\n user.setId(fileBucket.getId());\r\n user.setFirstName(fileBucket.getFirstName());\r\n user.setLastName(fileBucket.getLastName());\r\n user.setPhoneNumber(fileBucket.getPhoneNumber());\r\n user.setItemView(fileBucket.getItemView());\r\n user.setAddress(fileBucket.getAddress());\r\n user.setPassportPhotograph(photoName);\r\n user.setImgLocation(imgLocation);\r\n user.setImgName(photoName);\r\n user.setImgItemName(itemViewName);\r\n\r\n saved = userService.updateUser(user);\r\n\r\n } else {\r\n System.out.println(\"File is empty / No image uploaded\");\r\n }\r\n\r\n //model.addAttribute(\"user\", user);\r\n model.addAttribute(\"user\", fb);\r\n // model.addAttribute(\"success\", \"User \" + user.getFirstName() + \" \" + user.getLastName() + \" saved successfully\");\r\n // model.addAttribute(\"saved\", saved);\r\n\r\n //return \"adduser\";\r\n \r\n return \"redirect:/register\";\r\n }", "@RequestMapping(value = \"/file\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic FileUploadStatusDTO upload(@RequestParam(name = \"file\")MultipartFile file) throws JsonProcessingException, IOException, InterruptedException, ExecutionException {\n\t\treturn fileUploadService.importProductsFromFileInParallelWithButch(file.getInputStream());\r\n\t}", "@PreAuthorize(\"hasAnyRole('ROLE_ADMIN','ROLE_CONTRIBUTOR')\")\r\n\t@CrossOrigin(origins=\"http://localhost:4200\")\r\n\t@RequestMapping(value=\"/image/upload/{idMangas:[0-9]+}\", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Manga upload(@RequestParam(\"file\") MultipartFile file, @PathVariable(\"idMangas\") int idMangas){\n\t\tlog.info(\"File name: \" + file.getOriginalFilename());\r\n\t\tlog.info(\"File name: \" + file.getContentType());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImage img = new Image(0, file.getOriginalFilename(), file.getSize(), file.getContentType(), \"\", \"\");\r\n\t\t\timageDao.saveImageFile(img, file.getInputStream());\r\n\t\t\t// on save ensuite en bdd l image\r\n\t\t\timageDao.save(img);\r\n\t\t\t// puis on lie limage a mongas recup ds lurl\r\n\t\t\tManga m = mangasDao.findOne(idMangas);\r\n\t\t\tm.setImg(img);\r\n\t\t\treturn mangasDao.save(m);\r\n\t\t\t// return m;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new HttpClientErrorException(HttpStatus.INTERNAL_SERVER_ERROR, \"erreur lors de la sauvegarde\");\r\n\t\t}\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // detecta si es una carga multimedia\n if (!ServletFileUpload.isMultipartContent(request)) {\n // detente si no\n PrintWriter writer = response.getWriter();\n writer.println (\"Error: el formulario debe contener enctype = multipart / form-data\");\n writer.flush();\n return;\n }\n\n // Configurar parámetros de carga\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // Establecer los archivos temporales de umbral de memoria se generarán y almacenarán en el directorio temporal\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // Establecer el directorio de almacenamiento temporal\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n\n // Establecer el valor máximo de carga de archivos\n upload.setFileSizeMax(MAX_FILE_SIZE);\n\n // Establecer el valor máximo de solicitud (incluidos los datos de archivo y formulario)\n upload.setSizeMax(MAX_REQUEST_SIZE);\n\n // procesamiento chino\n upload.setHeaderEncoding(\"UTF-8\");\n\n // Construye una ruta temporal para almacenar archivos cargados\n // Esta ruta es relativa al directorio actual de la aplicación\n String uploadPath = request.getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n\n // Crear si el directorio no existe\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n\n try {\n // Analiza el contenido solicitado para extraer los datos del archivo\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n\n if (formItems != null && formItems.size() > 0) {\n // iterar sobre los datos del formulario\n for (FileItem item : formItems) {\n // manejar campos que no están en el formulario\n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n File storeFile = new File(filePath);\n // Salida de la ruta de carga del archivo en la consola\n System.out.println(filePath);\n // guardar archivo en el disco duro\n item.write(storeFile);\n request.setAttribute (\"mensaje\", \"¡Archivo cargado correctamente!\");\n hilo = new HiloCargadeDatos(storeFile);\n hilo.start();\n }\n }\n }\n } catch (Exception ex) {\n request.setAttribute (\"mensaje\", \"Mensaje de error:\" + ex.getMessage ());\n }\n\n // Nos redirigimos a la página para que nos muestre los errores\n request.getServletContext().getRequestDispatcher(\"/subir.jsp\").forward(request, response);\n }", "@RequestMapping(value = {\"/register\"}, method = RequestMethod.POST)\r\n public String registerUser(@Valid FileBucket fileBucket, BindingResult result,\r\n ModelMap model, HttpServletRequest req) {\r\n\r\n MultipartFile[] files = fileBucket.getFiles();\r\n String originalImgPath = \"\";\r\n String resizedImgPath = \"\";\r\n //String serverFileName = \"\";\r\n String photoName = \"\";\r\n String itemViewName = \"\";\r\n String imgLocation = \"\";\r\n int width = 580;\r\n int height = 450;\r\n boolean saved = false;\r\n String serverFileName = \"\";\r\n\r\n FileBucket fb = new FileBucket();\r\n User user = new User();\r\n if (result.hasErrors()) {\r\n return \"registration\";\r\n }\r\n if (files != null && files.length > 0) {\r\n for (int i = 0; i < files.length; i++) {\r\n try {\r\n\r\n byte[] bytes = null;\r\n // Creating the directory to store file\r\n String rootPath = System.getProperty(\"catalina.home\");\r\n File dir = new File(rootPath + File.separator + \"tmpFiles\");\r\n if (!dir.exists()) {\r\n dir.mkdirs();\r\n }\r\n\r\n FilenameUtils fileUTIL = new FilenameUtils();\r\n\r\n String path = req.getServletContext().getRealPath(\"/image\");\r\n //String ext = fileUTIL.getExtension(file.getOriginalFilename());\r\n //String baseName = fileUTIL.getBaseName(file.getOriginalFilename());\r\n\r\n imgLocation = dir + File.separator;\r\n // get files name in the array\r\n if (i == 0) {\r\n photoName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + photoName;\r\n System.out.println(\"photoName:: \" + photoName);\r\n } else if (i == 1) {\r\n itemViewName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + itemViewName;\r\n System.out.println(\"itemViewName:: \" + itemViewName);\r\n }\r\n\r\n System.out.println(\"serverFileName :: \" + serverFileName);\r\n\r\n // resize image\r\n //utility.resize(originalImgPath, resizedImgPath, width, height);\r\n //create the file on server\r\n File serverFile = new File(serverFileName);\r\n BufferedOutputStream stream = new BufferedOutputStream(\r\n new FileOutputStream(serverFile));\r\n stream.write(bytes);\r\n stream.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n //System.out.println(\"bytes ::\" + bytes);\r\n user.setFirstName(fileBucket.getFirstName());\r\n user.setLastName(fileBucket.getLastName());\r\n user.setPhoneNumber(fileBucket.getPhoneNumber());\r\n user.setItemView(fileBucket.getItemView());\r\n user.setAddress(fileBucket.getAddress());\r\n user.setPassportPhotograph(photoName);\r\n user.setImgLocation(imgLocation);\r\n user.setImgName(photoName);\r\n user.setImgItemName(itemViewName);\r\n\r\n saved = userService.saveUser(user);\r\n\r\n } else {\r\n System.out.println(\"File is empty / No image uploaded\");\r\n }\r\n\r\n //model.addAttribute(\"user\", user);\r\n model.addAttribute(\"user\", fb);\r\n //model.addAttribute(\"success\", \"User \" + user.getFirstName() + \" \" + user.getLastName() + \" saved successfully\");\r\n //model.addAttribute(\"saved\", saved);\r\n\r\n //return \"adduser\";\r\n //return \"redirect:/adduser\";\r\n return \"redirect:/register\";\r\n }", "public void upload( Reporte reporte, File file) throws IOException{\n RequestBody formBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"file\", reporte.id+\"_\"+file.getName(), RequestBody.create(MediaType.parse(\"image/jpeg\"), file))\n .build();\n Request request = new Request.Builder()\n .url(BASE_URL+\"/upload\")\n .post(formBody)\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "public static JSONObject userProfileUpdateResponse(String token, ArrayList<File> dineInPics, ArrayList<File> kitchenPics, String profilePic, String jsonObjectAsString, String jsonobjectPicsDeletion) {\n try {\n MultipartBody.Builder multipartBuilder = new MultipartBody.Builder();\n // Kitchen Photos\n if (kitchenPics.size() > 0) {\n for (int i = 0; i < kitchenPics.size(); i++) {\n Log.d(\"TAG\", \"Kitchen File...::::\" + kitchenPics.get(i).getPath() + \" : \" + new File(kitchenPics.get(i).getPath()).exists());\n String filename = UtilityClass.getTimeINMills() + \"\";\n multipartBuilder.addFormDataPart(\"kitchen_pics\", filename + \".jpg\", RequestBody.create(MediaType.parse(\"image/png\"), kitchenPics.get(i)));\n }\n } else {\n multipartBuilder.addFormDataPart(\"kitchen_pics\", \"\");\n }\n // Dine In Photos\n if (dineInPics.size() > 0) {\n for (int i = 0; i < dineInPics.size(); i++) {\n Log.d(\"TAG\", \"Dine_in File...::::\" + dineInPics.get(i).getPath() + \" : \" + new File(dineInPics.get(i).getPath()).exists());\n String filename = UtilityClass.getTimeINMills() + \"\";\n multipartBuilder.addFormDataPart(\"dinein_pics\", filename + \".jpg\", RequestBody.create(MediaType.parse(\"image/png\"), dineInPics.get(i)));\n }\n } else {\n multipartBuilder.addFormDataPart(\"dinein_pics\", \"\");\n }\n\n // Profile Picture\n if (profilePic != null && profilePic.length() > 0) {\n File file_fssai = new File(profilePic);\n Log.d(\"TAG\", \"File profilePic...::::\" + file_fssai.getPath() + \" : \" + new File(file_fssai.getPath()).exists());\n multipartBuilder.addFormDataPart(\"profile_pic\", \"profilePic.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file_fssai));\n } else {\n multipartBuilder.addFormDataPart(\"profile_pic\", \"\");\n }\n multipartBuilder.setType(MultipartBody.FORM).addFormDataPart(\"profile_details\", jsonObjectAsString).addFormDataPart(\"deleted_pics_urls\", jsonobjectPicsDeletion);\n\n /**\n * OKHTTP3\n */\n RequestBody requestBody = multipartBuilder\n .build();\n Request request = new Request.Builder().addHeader(\"Authorization\", token).addHeader(\"access_token\", RestTags.PUBLIC_KEY).addHeader(\"app_type\", RestTags.S_FLAG)\n .url(RestUrls.UPDATE_PROFILE)\n .post(requestBody)\n .build();\n\n // OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n String res = response.body().string();\n Log.e(\"TAG\", \"Error: \" + res);\n return new JSONObject(res);\n\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return null;\n }", "public static HttpResponse uploadFileAliyun(File file, String aliyunAddress, String pathtofile, String contentType)\n {\n // String authorization = generateOSSAuthHeader(ACCESSKEY_ID, accessKeySecret, \"POST\", \"/xeduo?uploads\");\n String date = getDateGMT();\n Auth auth = new Auth();\n HttpRequest request = HttpUtil.createPost(aliyunAddress);\n // String policy;\n String policy = \"{\\\"expiration\\\": \\\"2120-01-01T12:00:00.000Z\\\",\"\n + \"\\\"conditions\\\": [{\\\"bucket\\\":\\\"xeduo\\\"}]}\";\n String encodePolicy = new String(Base64.getEncoder().encode(policy.getBytes()));\n request.header(\"Date\",date);\n //add form\n request.form(\"key\", pathtofile+file.getName());\n request.form(\"OSSAccessKeyId\", auth.getId());\n request.form(\"Policy\", encodePolicy);//needs to be encoded as well.\n request.form(\"Signature\", generateOSSSignature(auth.getSecret(), encodePolicy));\n request.form(\"Content-Disposition\",\"attachment; filename=\"+file.getName());\n request.form(\"file\", file);\n request.form(\"x-oss-meta-uuid\",UUID.fastUUID());\n request.form(\"submit\",\"Upload to OSS\");\n if(!StrUtil.isBlank(contentType))\n {\n request.form(\"Content-Type\",contentType);\n }\n HttpResponse response = request.execute();\n System.out.println(request);\n System.out.println(response);\n return response;\n }", "int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "@CrossOrigin\r\n\t@RequestMapping(value = \"/uploadFile/{username}\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic ResponseEntity<?> uploadFile(@RequestParam(\"uploadfile\") MultipartFile uploadfile,\r\n\t\t\t@PathVariable String username) throws IOException, Exception {\r\n\r\n\t\tInputStream inputStream = uploadfile.getInputStream();\r\n\t\tFile newFile = null;\r\n\t\tFile ipFile = null, pfFile = null, psFile = null, ffFile = null;\r\n\r\n\t\tDate start = new Date();\r\n\t\tSystem.out.println(start);\r\n\t\tlong startTime = System.nanoTime();\r\n\t\tString url = \"jdbc:postgresql://hanno.db.elephantsql.com/vnepifvr\";\r\n\t\tProperties props = new Properties();\r\n\t\tprops.setProperty(\"user\", \"vnepifvr\");\r\n\t\tprops.setProperty(\"password\", \"n5CEh6y0w-zoORD2Hw1X_WpCT2yvy4wR\");\r\n\t\t// props.setProperty(\"ssl\",\"true\");\r\n\t\tConnection conn;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"org.postgresql.Driver\");\r\n\t\t\tconn = DriverManager.getConnection(url, props);\r\n\t\t\tSystem.out.println(\"connected\");\r\n\t\t\tUploadController copy = new UploadController();\r\n\t\t\tPgConnection copyOperationConnection = conn.unwrap(PgConnection.class);\r\n\t\t\t// System.out.println(\"converted\");\r\n\t\t\ttry {\r\n\r\n\t\t\t\tZipInputStream zis = new ZipInputStream(inputStream);\r\n\t\t\t\tZipEntry nextFile = zis.getNextEntry();\r\n\t\t\t\tbyte[] buffer = new byte[1024];\r\n\r\n\t\t\t\twhile (nextFile != null) {\r\n\t\t\t\t\tString fileName = nextFile.getName();\r\n\t\t\t\t\tnewFile = new File(\".\" + File.separator + fileName);\r\n\t\t\t\t\tSystem.out.println(\"Unzipping to \" + newFile.getAbsolutePath());\r\n\t\t\t\t\tif (newFile.getName().contains(\"Inputfile\")) {\r\n\t\t\t\t\t\tipFile = newFile;\r\n\t\t\t\t\t} else if (newFile.getName().contains(\"PastForecast\")) {\r\n\t\t\t\t\t\tpfFile = newFile;\r\n\t\t\t\t\t} else if (newFile.getName().contains(\"PastSales\")) {\r\n\t\t\t\t\t\tpsFile = newFile;\r\n\t\t\t\t\t} else if (newFile.getName().contains(\"FutureForecast\")) {\r\n\t\t\t\t\t\tffFile = newFile;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// create directories for sub directories in zip\r\n\t\t\t\t\t// new File(newFile.getParent()).mkdirs();\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(newFile);\r\n\t\t\t\t\tint len;\r\n\t\t\t\t\twhile ((len = zis.read(buffer)) > 0) {\r\n\t\t\t\t\t\tfos.write(buffer, 0, len);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t\t// close this ZipEntry\r\n\t\t\t\t\tzis.closeEntry();\r\n\t\t\t\t\tnextFile = zis.getNextEntry();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tzis.closeEntry();\r\n\t\t\t\tzis.close();\r\n\t\t\t\tinputStream.close();\r\n\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t// FileInputStream fis2 = new FileInputStream(new File(newFile.ge))\r\n\t\t\tcopy.readFirstSheet(copyOperationConnection, startTime, new FileInputStream(ipFile));\r\n\t\t\tcopy.readSecondSheet(copyOperationConnection, startTime, new FileInputStream(pfFile));\r\n\t\t\tcopy.readThirdSheet(copyOperationConnection, startTime, new FileInputStream(psFile));\r\n\t\t\tcopy.readFourthSheet(copyOperationConnection, startTime, new FileInputStream(ffFile));\r\n\t\t\t/*\r\n\t\t\t * copy.readFirstSheet(copyOperationConnection,startTime, new\r\n\t\t\t * FileInputStream(ipFile));\r\n\t\t\t * copy.readSecondSheet(copyOperationConnection,startTime);\r\n\t\t\t * copy.readThirdSheet(copyOperationConnection,startTime);\r\n\t\t\t * copy.readFourthSheet(copyOperationConnection,startTime);\r\n\t\t\t */\r\n\t\t\tUploadController.calculateData(conn, copyOperationConnection);\r\n\t\t\tlong end = System.nanoTime();\r\n\t\t\tSystem.out.println(\"Overall took \" + (end - startTime) + \" ns\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\r\n\r\n\t}", "@View(\"upload\")\n @Get\n public HttpResponse upload() {\n return HttpResponse.ok();\n }", "int uploadFeature(File file, String project) throws IOException, SQLException;", "@ApiIgnore\n @PostMapping(value = \"/upload\")\n public Object batchUpload(@RequestParam(\"files\") MultipartFile[] files) {\n\n ResultBody resultBody = new ResultBody();\n resultBody.setCode(\"0\");\n\n String uploadedFileName = Arrays.stream(files).map(MultipartFile::getOriginalFilename)\n .filter(x -> !StringUtils.isEmpty(x))\n .collect(Collectors.joining(\"|\"));\n if (StringUtils.isEmpty(uploadedFileName)) {\n resultBody.setMessage(\"上传文件为空!\");\n }\n try {\n saveUploadedFiles(Arrays.asList(files));\n resultBody.setMessage(\"调用成功!\");\n Map<String, Object> map = new HashMap<>();\n map.put(\"filename\", uploadedFileName);\n resultBody.setResult(map);\n\n } catch (IOException e) {\n e.printStackTrace();\n resultBody.setCode(\"500\");\n resultBody.setMessage(e.getMessage());\n }\n return resultBody;\n }", "IbeisImage uploadImage(File image) throws UnsupportedImageFileTypeException, IOException, MalformedHttpRequestException,\n UnsuccessfulHttpRequestException;", "@RequestMapping(value = \"/upload\", method = RequestMethod.POST)\n @ResponseBody\n public int upload(@RequestParam(\"file\") CommonsMultipartFile file,\n @RequestParam(\"pi\") String proId,\n HttpSession session) {\n if (file.getSize() == 0) return 0;\n if (proId.length() != 11) return 0;\n String engId = ((User) session.getAttribute(UserController.USER)).getUserId();\n return engDocService.upload(file, proId, engId);\n }", "int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "@RequestMapping(value = \"/dlFileTypes\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<DlFileType> createDlFileType(@RequestBody DlFileType dlFileType) throws URISyntaxException, Exception {\n log.debug(\"REST request to save DlFileType : {}\", dlFileType);\n if (dlFileType.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new dlFileType cannot already have an ID\").body(null);\n }\n\n String filename = \"dlFileType\";\n\n String extension = \".png\";\n\n String fileContent = dlFileType.getFileImgContentType();\n\n\n if (dlFileType.getFileImgContentType() != null && dlFileType.getFileImgContentType().equals(\"application/pdf\")) {\n dlFileType.setFileImgContentType(dlFileType.getFileImgName() + \".pdf\");\n\n extension = \".pdf\";\n } else {\n extension = \".png\";\n }\n\n\n if (dlFileType.getFileImg() != null) {\n dlFileType.setFileImgName(AttachmentUtil.saveDlAttachment(filepath, null, extension, dlFileType.getFileImg()));\n\n }\n\n\n String userName = SecurityUtils.getCurrentUserLogin();\n\n if (userName == \"anonymousUser\") {\n dlFileType.setFileImg(null);\n\n System.out.println(\"====================================\" + userName);\n\n DlFileType result = dlFileTypeRepository.save(dlFileType);\n dlFileTypeSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/dlFileTypes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"dlFileType\", result.getId().toString()))\n .body(result);\n } else {\n\n dlFileType.setFileImg(null);\n\n DlFileType result = dlFileTypeRepository.save(dlFileType);\n dlFileTypeSearchRepository.save(result);\n\n\n return ResponseEntity.created(new URI(\"/api/dlFileTypes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"dlFileType\", result.getId().toString()))\n .body(result);\n }\n\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String codeLabWorker1 = \"\";\n if (!ServletFileUpload.isMultipartContent(request)) {\n\t\t PrintWriter writer = response.getWriter();\n\t\t writer.println(\"Error: enctype=multipart/form-data\");\n\t\t writer.flush();\n\t\t return;\n\t\t}\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n \n ServletFileUpload upload = new ServletFileUpload(factory); \n upload.setFileSizeMax(MAX_FILE_SIZE);\n upload.setSizeMax(MAX_REQUEST_SIZE);\n String uploadPath = getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n \n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n try {\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n if (formItems != null && formItems.size() > 0) {\n File storeFile = null;\n String codeResult = \"\";\n String codeLabWorker = \"\"; \n String dateToday = getDateToday();\n String time = getTime();\n for (FileItem item : formItems) { \n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n storeFile = new File(filePath);\n System.out.println(filePath);\n item.write(storeFile); \n }else{\n String fieldName = item.getFieldName();\n String fieldValue = item.getString();\n if (fieldName.equals(\"codeLabWorker\")) {\n codeLabWorker = fieldValue;\n codeLabWorker1=codeLabWorker;\n }else if (fieldName.equals(\"codeResult\")) {\n codeResult = fieldValue;\n }\n } \n }\n //Enviar a guardar\n LabWorkerDB labDB = new LabWorkerDB();\n labDB.updateResult(codeLabWorker, storeFile, dateToday, time, codeResult);\n JOptionPane.showMessageDialog(null,\"Se guardo con exito\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null,ex);\n } \n request.setAttribute(\"username\", codeLabWorker1);\n \n request.getRequestDispatcher(\"/labWorkerGUI/principallabWorker.jsp\").forward(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\r\n\t\tSystem.out.println(\"doPost\");\r\n\t\t\r\n\t\tint yourMaxRequestSize = 100 * 1024 * 1024; // 1M\r\n\t\tint yourMaxMemorySize = 100 * 1024;\r\n\t\t\r\n\t\t// form field 의 데이터(String)\r\n\t\tString id = \"\";\r\n\t\tString title = \"\";\r\n\t\tString content = \"\";\r\n\r\n\t\t// file data\r\n\t\tString filename = \"\";\r\n\r\n\t\t\r\n\t\tString path = req.getServletContext().getRealPath(\"/upload\");\r\n\t\t\r\n\t\t\r\n\t\t// String path = \"d:\\\\tmp\";\r\n\t\t/*\r\n\t\tSystem.out.println(path);\r\n\t\tMultipartRequest mreq = new MultipartRequest(req, path);\r\n\t\tEnumeration t = mreq.getParameterNames();\r\n\t\t*/\r\n\t\t/*\r\n\t\twhile(t.hasMoreElements()) {\r\n\t\t\tString name = (String)t.nextElement();\r\n\t\t\tString conver =new String(mreq.getParameter(name).getBytes(\"8859_1\"), \"UTF-8\");\r\n\t\t\tSystem.out.println(name + \" : \" + mreq.getParameter(name) + \" : \" + conver);\r\n\t\t}\r\n\t\t*/\r\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\r\n\t\tSystem.out.println(isMultipart);\r\n\t\tif(isMultipart){\r\n\t\t\r\n\t\t// FileItem 을 생성하는 함수\r\n\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\r\n\t\t \r\n\t\t factory.setSizeThreshold(yourMaxMemorySize);\r\n\t\t factory.setRepository(new File(path));\r\n\t\t \r\n\t\t ServletFileUpload upload = new ServletFileUpload(factory);\r\n\t\t upload.setSizeMax(yourMaxRequestSize);\r\n\t\t \r\n\t\t // list저장\r\n\t\t List<FileItem> items = null;\r\n\t\ttry {\r\n\t\t\titems = upload.parseRequest(req);\r\n\t\t} catch (FileUploadException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t Iterator<FileItem> it = items.iterator();\r\n\t\t \r\n\t\t while(it.hasNext()){\r\n\t\t \r\n\t\t FileItem item = it.next();\r\n\t\t // id, title, content\r\n\t\t if(item.isFormField()){\r\n\t\t if(item.getFieldName().equals(\"id\")){\r\n\t\t \tid = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"title\")){\r\n\t\t title = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"content\")){\r\n\t\t content = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t }\r\n\t\t // file\r\n\t\t else{\r\n\t\t if(item.getFieldName().equals(\"fileload\")){\r\n\t\t filename = processUploadFile(item, path);\r\n\t\t System.out.println(\"path:\" + path);\r\n\t\t } \r\n\t\t } \r\n\t\t }\r\n\t\t \r\n\t}\r\n\t\tiReferRoomDao dao = ReferRoomDao.getInstance();\r\n\r\n\t\tboolean isS = dao.add_ReferR(new ReferRoomDto(id, title, content, filename));\r\n\t\t\r\n\t\tresp.sendRedirect(\"ReferListCtlr\");\r\n\t}", "public void upload() throws ServicioException {\n if (justificacionHelper.getArchivoCargado() != null) {\n if (justificacionHelper.getArchivoCargado().getContentType().equals(\"application/pdf\")) {\n ParametroGlobal buscarParametroGlobalPorNemonico =\n administracionServicio.buscarParametroGlobalPorNemonico(\n ParametroGlobalEnum.TAMANIO_MAXIMO_PDF.getCodigo());\n if (justificacionHelper.getArchivoCargado().getSize()\n > buscarParametroGlobalPorNemonico.getValorNumerico().longValue()) {\n mostrarMensajeEnPantalla(\"El tamaño del archivo supera los \"\n + (buscarParametroGlobalPorNemonico.getValorNumerico().longValue() / 1024) + \" MB\",\n FacesMessage.SEVERITY_WARN);\n justificacionHelper.setArchivoRequerido(Boolean.TRUE);\n justificacionHelper.setArchivoCargado(null);\n } else {\n mostrarMensajeEnPantalla(\"ec.gob.mrl.smp.justificacionReglas.archivoCargadoCorrectamente\",\n FacesMessage.SEVERITY_INFO);\n justificacionHelper.setArchivoRequerido(Boolean.FALSE);\n System.out.println(\"Archivo Cargado \" + justificacionHelper.getArchivoCargado().getFileName());\n }\n } else {\n mostrarMensajeEnPantalla(\"ec.gob.mrl.smp.justificacionReglas.archivoCargadoNoesPDF\",\n FacesMessage.SEVERITY_ERROR);\n justificacionHelper.setArchivoRequerido(Boolean.TRUE);\n justificacionHelper.setArchivoCargado(null);\n }\n\n }\n }", "int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;", "@ResponseBody\n @ExceptionHandler(MaxUploadSizeExceededException.class)\n @RequestMapping(value =\"/upload\",produces = \"text/html;charset=UTF-8\")\n public String upload(@RequestParam(value=\"file\",required = false)MultipartFile file,\n HttpServletRequest request,\n HttpServletResponse response){\n// //初始化返回json字符串\n// String error=\"\";\n// boolean result=false;\n// String content=\"\";\n// String status=\"0\";\n// Map map=new HashMap();\n// ObjectMapper mapper=new ObjectMapper();\n// String name;\n// InputStream in;\n// Workbook workbook;\n try{\n long startTime=new java.util.Date().getTime();\n //检测上传的文件类型以及上传的文件是否为空\n if(file==null||!file.getContentType().equals(\"application/vnd.ms-excel\")||file.getSize()>5E7) {\n error=\"只能操作application/vnd.ms-excel类型文件或者文件过大\";\n status=1;\n throw new Exception(error);\n }\n //文件名\n name = file.getOriginalFilename();\n //文件输入流\n in=file.getInputStream();\n //根据上传的文件类型使用创建不同的工作簿对象\n if(in==null)\n return returnError();\n if(file.getContentType().equals(\"application/vnd.ms-excel\")&&name.endsWith(\".xls\")){\n workbook=new HSSFWorkbook(in);\n }else if(name.endsWith(\".xlsl\")) {\n workbook = new XSSFWorkbook(in);\n }else if(name.endsWith(\".txt\")||name.endsWith(\".csv\")){\n workbook=convertCSVorTXTtoXLS(in,\".xls\");//把txt或者csv文件类型转换成xls\n }else{\n error=\"该文件类型系统暂时还没处理\";\n return returnError();\n }\n //sheet\n sheet=workbook.getSheetAt(0);\n //rows、columns\n rows=sheet.getPhysicalNumberOfRows();\n row=sheet.getRow(0);\n columns=row.getLastCellNum();\n //schema\n schema=new ArrayList<Map>();\n if(row!=null){\n Iterator<Cell> iterator=row.cellIterator();\n while(iterator.hasNext()){\n cell=iterator.next();\n schema.add(getValue(cell));\n }\n\n }\n //data\n data =new ArrayList<List>();\n for(int i=0;i<rows;i++ ){\n List list=new ArrayList();\n row=sheet.getRow(i);\n if(row==null){\n continue;\n }\n for(int j=0;j<columns;j++){\n cell=row.getCell(j);\n list.add(getValue(cell).get(\"value\"));\n }\n data.add(list);\n }\n //封装json字符串再返回前端\n List<Map> listContainer=new ArrayList<Map>();\n Map<String,Object> mapContainer=new HashMap<String,Object>();\n mapContainer.put(\"name\",name);\n mapContainer.put(\"row\",rows);\n mapContainer.put(\"column\",columns);\n mapContainer.put(\"data\",data);\n mapContainer.put(\"schema\",schema);\n listContainer.add(mapContainer);\n status=1;\n map.put(\"result\",listContainer);\n map.put(\"error\",error);\n map.put(\"status\",status);\n content=mapper.writeValueAsString(map);\n //存储到用户临时文件夹\n storageTotemp(workbook,request,username);\n long endTime=new java.util.Date().getTime();\n System.out.println(\"sumTime:\"+(endTime-startTime));\n }catch (Exception io){\n error=\"服务器出错!\";\n io.printStackTrace();\n }\n return content;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "public static String uploadImage(final String pat,String area, String subarea, String cat ,\n String subcat, String userid, String comtext,String url) {\n Log.d(\"all_data\", \"\" + \"\\n\" + comtext + \"\\n\" + \"\\n\" );\n String res = null;\n try {\n StrictPolicy();\n File sourceFile = new File(pat);\n\n// FileBody pic = new FileBody(new File(sourceImageFile));\n if (sourceFile.exists()) {\n Log.d(\"img\", \"present\");\n// DecodeFile(sourceFile);\n } else {\n Log.d(\"img\", \"Not present\");\n }\n Log.d(\"TAG\", \"File...::::\" + sourceFile + \" : \" + sourceFile.exists());\n\n\n final MediaType MEDIA_TYPE_VDO = MediaType.parse(\"video/*\");\n String filename = pat.substring(pat.lastIndexOf(\"/\") + 1);\n\n\n RequestBody requestBody;\n requestBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n\n .addFormDataPart(\"video\", filename, RequestBody.create(MEDIA_TYPE_VDO, sourceFile)).setType(MultipartBody.FORM)\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"area_id\", area)\n .addFormDataPart(\"area_sub_id\", subarea)\n .addFormDataPart(\"cat_id\", cat)\n .addFormDataPart(\"cat_sub_id\", subcat)\n .addFormDataPart(\"user_id\",userid)\n .addFormDataPart(\"com_text\",comtext)\n .addFormDataPart(\"com_type\",\"confidential\")\n .build();\n\n Request request = new Request.Builder()\n .url(url)\n .post(requestBody)\n .build();\n OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n res = response.body().string();\n return res;\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return res;\n }", "@Test\n\tpublic void test_exception_if_request_not_multipart() throws Exception {\n\n\t\tmockMvc.perform(post(\"/api/v1/client/upload-csv\").header(\"userId\", 12)).andExpect(status().isBadRequest())\n\t\t\t\t.andExpect(jsonPath(\"$.message\", is(\"Current request is not a multipart request\")));\n\n\t}", "void fileUploaded(String path);", "int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "private void addFilesInRequestEntity(MultipartEntity reqEntity) {\n if (filePath_image != null && filePath_image.length > 0) {\n\n for (int i = 0; i < filePath_image.length; i++) {\n if (filePath_image[i] != null) {\n File file = new File(filePath_image[i]);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileImage + i, fileBodyVideo);\n System.out.println(keyForUploadFileImage + i + \" RestClient: File \" + file);\n }\n }\n }\n if (filePath_video != null && filePath_video.length() > 0) {\n File file = new File(filePath_video);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileVideo, fileBodyVideo);\n System.out.println(keyForUploadFileVideo + \" RestClient: File \" + file);\n }\n }", "@RequestMapping(value=\"/upload\")\n public String upload (HttpServletRequest request,HttpServletResponse response){\n String registID = \"\";\n int result = galleryService.upload(request, response);\n\n if( result < 0 ){\n request.setAttribute(\"failMsg\", \"上传失败,请重新上传!\");\n //return \"/gongshang/recordUpload\";\n return \"/admin/addGallery\";\n }else{\n //return \"/gongshang/recordReview\";\n return \"/admin/galleryList\";\n }\n }", "@Override\n protected void upload(X x) {\n }", "void uploadFailed(long bytes);", "@RequestMapping(\"/add\")\n @ResponseBody\n public String handleFileUpload(@RequestParam(\"file\") MultipartFile file) {\n String path = \"C:\\\\Users\\\\Administrator\\\\Desktop\\\\lostfound\\\\static\\\\img\";\n String fileName = file.getOriginalFilename();\n Calendar currTime = Calendar.getInstance();\n String time = String.valueOf(currTime.get(Calendar.YEAR))+String.valueOf((currTime.get(Calendar.MONTH)+1));\n String suffix = fileName.substring(file.getOriginalFilename().lastIndexOf(\".\"));\n suffix = suffix.toLowerCase();\n if(suffix.equals(\".jpg\") || suffix.equals(\".jpeg\") || suffix.equals(\".png\")){\n fileName = UUID.randomUUID().toString()+suffix;\n File targetFile = new File(path, fileName);\n if(!targetFile.getParentFile().exists()){\n targetFile.getParentFile().mkdirs();\n }\n long size = 0;\n try {\n file.transferTo(targetFile);\n size = file.getSize();\n } catch (Exception e) {\n e.printStackTrace();\n return\"上传失败\";\n }\n String fileUrl=\"/static\";\n fileUrl = fileUrl + \"/img/\" + fileName;\n return fileUrl;\n }else{\n return \"上传失败\";\n }\n }", "public CompleteMultipartUploadRequest() {}", "@Override\r\n\tpublic void qnaFileUpload(QnAFile qnaFileDto) {\n\t\t\r\n\t}", "public UploadedFile() {\n date = new Date();\n }", "@Override\n\tpublic Result uploadFile(String requestUri, File uploadFile,\n\t\t\tFile uploadPath, HashMap<String, ContentBody> extraParts) {\n\t\treturn super.uploadFile(requestUri, uploadFile, uploadPath, extraParts);\n\t}", "public void upload_alter(){\n\t\tLibMeasure lm=new LibMeasure();\r\n\t\tIntByReference count=new IntByReference();\r\n\t\tint ret=lm.TM_getErrorList(errorfile, count);\r\n\t\tswitch(ret){\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println(\"sucess to get errorlist!\");\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"internal error of libmeasure!\");\r\n\t\t\tbreak;\r\n\t\tcase 101:\r\n\t\t\tSystem.out.println(\"error of calling libmeasure!\");\r\n\t\t\tbreak;\r\n\t\tdefault: \r\n\t\t\tSystem.out.println(\"未知错误\"+ret);\r\n\t\t}\r\n\t\tif(ret==0)\r\n\t\t{\r\n\t\t\tFile efile=new File(errorfile);\r\n\t\t\tpost_len=efile.length();\r\n\t\t\tif(post_len>pre_len)\r\n\t\t\t{\r\n\t\t\t\tif(send()==0) //报警日志bug\r\n\t\t\t\t\tpre_len=post_len;\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"error of uploading alert!\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(post_len<pre_len)\r\n\t\t\t\t\tpre_len=0;\r\n\t\t}\r\n\t\t//loadData();\r\n\t\t\r\n\t}", "@ResponseBody\n @RequestMapping(\"/getFile/{name}\")//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!getmodel\n public String deployUploadedFile(@PathVariable(\"name\") String name, HttpServletRequest request) {\n name=name+\".xml\";\n System.out.println(\"getfilename :\"+name);\n String filename=name;\n String id=new String();\n// File files1 = new File(\"E:/modelXML\");//创建文件对象,url是目标目录\n File files1 = new File(modelXmlPath);\n // File files1 = new File(modelXmlPath);\n File[] files = files1.listFiles();// 读取文件夹下的所有文件}\n for (int i = 0; i < files.length; i++) {\n String modelxmlname=files[i].getName();\n System.out.println(\"modelXML文件夹中:\"+modelxmlname);\n if(!filename.equals(modelxmlname))continue;\n System.out.println(\"开始上传\");\n File file = files[i];\n //转换\n byte[] buffer = null;\n try {\n FileInputStream fis = new FileInputStream(file);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n byte[] b = new byte[1024];\n int n;\n while ((n = fis.read(b)) != -1) {\n bos.write(b, 0, n);\n }\n fis.close();\n bos.close();\n buffer = bos.toByteArray();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n //上传\n InputStreamReader in = null;\n try {\n try {\n boolean validFile = false;\n String fileName = file.getName();\n if (fileName.endsWith(\".bpmn20.xml\") || fileName.endsWith(\".xml\")) {\n validFile = true;\n XMLInputFactory xif = XMLInputFactory.newInstance();\n in = new InputStreamReader(new ByteArrayInputStream(buffer), \"UTF-8\");\n XMLStreamReader xtr = xif.createXMLStreamReader(in);\n BpmnModel bpmnModel = new BpmnXMLConverter().convertToBpmnModel(xtr);\n\n if (bpmnModel.getMainProcess() == null || bpmnModel.getMainProcess().getId() == null) {\n// notificationManager.showErrorNotification(Messages.MODEL_IMPORT_FAILED,\n// i18nManager.getMessage(Messages.MODEL_IMPORT_INVALID_BPMN_EXPLANATION));\n System.out.println(\"err1\");\n } else {\n\n if (bpmnModel.getLocationMap().isEmpty()) {\n// notificationManager.showErrorNotification(Messages.MODEL_IMPORT_INVALID_BPMNDI,\n// i18nManager.getMessage(Messages.MODEL_IMPORT_INVALID_BPMNDI_EXPLANATION));\n System.out.println(\"err2\");\n } else {\n\n String processName = null;\n if (StringUtils.isNotEmpty(bpmnModel.getMainProcess().getName())) {\n processName = bpmnModel.getMainProcess().getName();\n } else {\n processName = bpmnModel.getMainProcess().getId();\n }\n Model modelData;\n modelData = repositoryService.newModel();\n ObjectNode modelObjectNode = new ObjectMapper().createObjectNode();\n String fname = processName + \"_Model\";\n modelObjectNode.put(ModelDataJsonConstants.MODEL_NAME, fname);\n modelObjectNode.put(ModelDataJsonConstants.MODEL_DESCRIPTION, \"Workflow Model\");\n modelObjectNode.put(ModelDataJsonConstants.MODEL_REVISION, 1);\n modelData.setMetaInfo(modelObjectNode.toString());\n modelData.setName(fname);\n repositoryService.saveModel(modelData);\n\n BpmnJsonConverter jsonConverter = new BpmnJsonConverter();\n ObjectNode editorNode = jsonConverter.convertToJson(bpmnModel);\n\n repositoryService.addModelEditorSource(modelData.getId(), editorNode.toString().getBytes(\"utf-8\"));\n // System.out.println(\"modelData id:\"+modelData.getId());\n String email = new String();\n String emailcooki = new String();\n // email=\"[email protected]\";\n /**/\n Cookie[] cookies = request.getCookies();\n for (Cookie cookie : cookies) {\n if (cookie.getName().equals(\"email\")) emailcooki = cookie.getValue();\n // else if(cookie.getName().equals(\"password\"))password=cookie.getValue();\n // System.out.println(\"xxxxxxxxxx\");\n }\n System.out.println(\"getmodel_email:\" + emailcooki);\n email = emailcooki.replace(\"%40\", \"@\");\n email = email.replace(\"%20\", \"\");\n /*获取当前用户的email和password\n String idd=\"test_1024\";//更新当前用户表\n String sql = \"SELECT * FROM current_user_tabler WHERE Identi = ?;\";//通过id查找一条数据库信息\n Map<String, Object> map = jdbcTemplate.queryForMap(sql,idd);\n String email= (java.lang.String) map.get(\"email\");\n String password= (java.lang.String) map.get(\"password\"); 获取当前用户的email和password*/\n //System.out.println(\"生产的工作流\" +id);\n id = modelData.getId();\n\n String sql1 = \"update ACT_RE_MODEL set email = ? where ID_ = ?\";\n String sql2 = \"update ACT_RE_MODEL set password = ? where ID_ = ?\";\n int temp1 = jdbcTemplate.update(sql1, email, id);\n if (temp1 > 0) {\n // System.out.println(\"ACT_RE_MODEL表中账户密码增加成功\");\n logger.info(\"ACT_RE_MODEL表中上传模板文件账户增加成功\");\n } else\n // System.out.println(\"ACT_RE_MODEL表中账户密码增加失败\");\n logger.info(\"ACT_RE_MODEL表中上传模板文件账户增加失败\");\n }\n }\n } else {\n// notificationManager.showErrorNotification(Messages.MODEL_IMPORT_INVALID_FILE,\n// i18nManager.getMessage(Messages.MODEL_IMPORT_INVALID_FILE_EXPLANATION));\n System.out.println(\"err3\");\n }\n } catch (Exception e) {\n //String errorMsg = e.getMessage().replace(System.getProperty(\"line.separator\"), \"<br/>\");\n //notificationManager.showErrorNotification(Messages.MODEL_IMPORT_FAILED, errorMsg);\n System.out.println(\"err4\");\n }\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException e) {\n// notificationManager.showErrorNotification(\"Server-side error\", e.getMessage());\n System.out.println(\"err5\");\n }\n }\n }//上传\n\n\n }//for\n\n return id;//http://127.0.0.1:8089/editor?modelId=160001\n }", "public interface FastDfsService {\n String fileUpload(MultipartFile file) throws Exception;\n}", "@RequestMapping(\"member/member_make_ok.hr\")\r\n\tpublic String member_join_ok(HttpServletRequest request,HttpServletResponse response) throws ParseException {\r\n\r\n\t\tMemberVO vo = new MemberVO();\r\n\t\tPouchVO pvo = new PouchVO();\r\n\t\t// 요청값 받기\r\n\t\ttry { // 한글 변환\r\n\t\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\r\n\t\t// 업로드\r\n\t\tString path = \"C:\\\\Hwarang\\\\git\\\\Hwarang_Project\\\\Hwarang_Project\\\\WebContent\\\\profile_img_upload\";\r\n\t\tint size = 1024 * 1024 * 100;\r\n\t\tString enctype = \"UTF-8\";\r\n\r\n\t\tMultipartRequest mr;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tmr = new MultipartRequest(request, path, size, enctype, new DefaultFileRenamePolicy());\r\n\t\t\tString profile_img = mr.getOriginalFileName(\"logo\");\r\n\t\t\tString pouch_img = mr.getOriginalFileName(\"logo\");\r\n\t\t\tSystem.out.println(\"이미지파일:\" + profile_img);\r\n\t\t\tvo.setProfile_img(profile_img);\r\n\t\t\tpvo.setPouch_img(pouch_img);\r\n\t\t\tif (profile_img == null) {\r\n\t\t\t\tvo.setProfile_img(\"profile_defalut.jpg\");\r\n\t\t\t\tpvo.setPouch_img(\"pouch_img.jpg\");\r\n\t\t\r\n\t\t\t} else {\r\n\t\t\t\t//File file = new File(path + \"\\\\\" + profile_img);\r\n\t\t\t\tvo.setProfile_img(profile_img);\r\n\t\t\t\tpvo.setPouch_img(pouch_img);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString id = mr.getParameter(\"id\");\r\n\t\t\tString pw = mr.getParameter(\"password\");\r\n\t\t\tString email = mr.getParameter(\"email\");\r\n\t\t\tString name = mr.getParameter(\"name\");\r\n\t\t\tString nickname = mr.getParameter(\"nickname\");\r\n\t\t\tString y = mr.getParameter(\"yyyy\");\r\n\t\t\tString m = mr.getParameter(\"mm\");\r\n\t\t\tString d = mr.getParameter(\"dd\");\r\n\t\t\tString skin_type = mr.getParameter(\"skin_type\");\r\n\t\t\tString brand_like = mr.getParameter(\"brand_like\");\r\n\t\t\tString addr = mr.getParameter(\"address\");\r\n\t\t\tString sex = mr.getParameter(\"gender\");\r\n\r\n\t\t\tDate date = java.sql.Date.valueOf(y + \"-\" + m + \"-\" + d);\r\n\r\n\t\t\tSystem.out.println(id);\r\n\t\t\tSystem.out.println(date);\r\n\t\t\tint age_group;\r\n\t\t\tint temp_yy = Integer.parseInt(y.substring(2));\r\n\t\t\tif (temp_yy >= 60 && temp_yy < 70)\r\n\t\t\t\tage_group = 50;\r\n\t\t\telse if (temp_yy >= 70 && temp_yy < 80)\r\n\t\t\t\tage_group = 40;\r\n\t\t\telse if (temp_yy >= 80 && temp_yy < 90)\r\n\t\t\t\tage_group = 30;\r\n\t\t\telse if (temp_yy >= 90 && temp_yy <= 99)\r\n\t\t\t\tage_group = 20;\r\n\t\t\telse\r\n\t\t\t\tage_group = 10;\r\n\t\t\tString addr2 = mr.getParameter(\"addr2\");\r\n\t\t\tString postcode = mr.getParameter(\"postcode\");\r\n\r\n\t\t\tvo.setId(id);\r\n\t\t\tvo.setPw(pw);\r\n\t\t\tvo.setEmail(email);\r\n\t\t\tvo.setName(name);\r\n\t\t\tvo.setPw(pw);\r\n\t\t\tvo.setNickname(nickname);\r\n\t\t\tvo.setBday(date);\r\n\t\t\tvo.setSkin_type(skin_type);\r\n\t\t\tvo.setBrand_like(brand_like);\r\n\t\t\tvo.setAddr(addr);\r\n\t\t\tvo.setSex(sex);\r\n\t\t\t// vo.setProfile_img(profile_img);\r\n\t\t\tvo.setAge_group(age_group);\r\n\t\t\tvo.setAddr2(addr2);\r\n\t\t\tvo.setPostcode(postcode);\r\n\t\t\t// DAO연결\r\n\t\t\tMemberDAO.memberInsert(vo);\r\n\t\t\t\r\n//\t\t\tString pouch_content=mr.getParameter(\"id\")+\"파우치\";\r\n//\t\t\tString pouch_name=mr.getParameter(\"id\");\r\n//\t\t\t\r\n//\t\t\tpvo.setPouch_content(pouch_content);\r\n//\t\t\tpvo.setPouch_name(pouch_name);\r\n//\t\t\t\r\n//\t\t\tMemberDAO.pouchInsert(pvo);\r\n\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn \"redirect:../main/main.hr\";\r\n\t}", "@RequestMapping(\"/updateResume\")\n\tpublic void updateResume(@RequestParam(\"file\")MultipartFile fileaot, Resume resume, Social social, Aducational aducational, HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tint uid = (Integer)request.getSession().getAttribute(\"uid\");\n\t\tList<Social> social3 = (List<Social>) request.getSession().getAttribute(\"socials\");\n\t\tList<Aducational> aducational3 = (List<Aducational>) request.getSession().getAttribute(\"aducationals\");\n\t\tSystem.out.println(\"resume=\" + resume);\n\t\tSystem.out.println(\"social=\" + social + \"aducational=\" + aducational);\n\t\tSystem.out.println(social.getCompany().split(\",\")[0]);\n\t\tSystem.out.println(aducational.getSname().split(\",\")[0]);\n\t\tif (fileaot.getOriginalFilename() != null && !\"\".equals(fileaot.getOriginalFilename().trim()))\n\t\t{\n\t\t\tString filename = null;\n\t\t\t// 设置上传图片的保存路径\n\t\t\tString savePath = request.getServletContext().getRealPath(\"/images/\");\n\t\t\tFile file = new File(savePath);\n\t\t\t// 判断上传文件的保存目录是否存在\n\t\t\tif (!file.exists() && !file.isDirectory())\n\t\t\t{\n\t\t\t\tSystem.out.println(savePath + \"目录不存在,需要创建\");\n\t\t\t\t// 创建目录\n\t\t\t\tfile.mkdir();\n\t\t\t}\n\t\t\tDiskFileItemFactory factory = new DiskFileItemFactory();\n\t\t\t// 2、创建一个文件上传解析器\n\t\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\tupload.setHeaderEncoding(\"UTF-8\");\n\t\t\t// 3、判断提交上来的数据是否是上传表单的数据\n\t\t\tif (!ServletFileUpload.isMultipartContent(request))\n\t\t\t{\n\t\t\t\t// 按照传统方式获取数据\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// 報錯 需要過濾文件名稱 java.io.FileNotFoundException:\n\t\t\t\t// G:\\测试02\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\wtpwebapps\\FaceUp\\WEB-INF\\images\\C:\\Users\\Ray\\Pictures\\2.jpeg\n\t\t\t\t// (文件名、目录名或卷标语法不正确。)\n\n\t\t\t\tfilename = fileaot.getOriginalFilename();\n\t\t\t\t//\t\t\t\tSystem.out.print(filename);\n\t\t\t\tif (fileaot.getOriginalFilename().split(\"\\\\.\")[1].equals(\"png\") || fileaot.getOriginalFilename().split(\"\\\\.\")[1].equals(\"jpg\") || fileaot.getOriginalFilename().split(\"\\\\.\")[1].equals(\"jpeg\"))\n\t\t\t\t{\n\t\t\t\t\tresume.setRepic(\"images/\" + fileaot.getOriginalFilename());\n\t\t\t\t\tInputStream in = fileaot.getInputStream();// 獲得上傳的輸入流\n\t\t\t\t\tFileOutputStream out = new FileOutputStream(savePath + filename);// 指定web-inf目錄下的images文件\n\t\t\t\t\trequest.setAttribute(\"path\", \"images\" + \"/\" + filename);\n\t\t\t\t\tint len = 0;\n\t\t\t\t\tbyte buffer[] = new byte[1024];\n\t\t\t\t\twhile ((len = in.read(buffer)) > 0)// 每次讀取\n\t\t\t\t\t{\n\t\t\t\t\t\tout.write(buffer, 0, len);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t} else\n\t\t\t\t{ //必须是图片才能上传否则失败\n\t\t\t\t\tResponseUtils.outJson(response, \"上传必须是图片\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t} catch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (social3.size() != 0)\n\t\t{\n\t\t\t//社会关系更新\n\t\t\tsocial1.setCompany(social.getCompany().split(\",\")[0]);\n\t\t\tsocial1.setContent(social.getContent().split(\",\")[0]);\n\t\t\tsocial1.setSocialtime(social.getSocialtime().split(\",\")[0]);\n\t\t\tString s = (social.getSocialid() + \"\").split(\",\")[0];\n\t\t\tint socialid1 = Integer.valueOf(s);\n\t\t\tsocial1.setUid(uid);\n\t\t\tsocial1.setSocialid(socialid1);\n\t\t\tschoolService.updateSocial(social1);\n\t\t\tif (social3.size() > 1)\n\t\t\t{\n\t\t\t\tsocial2.setCompany(social.getCompany().split(\",\")[1]);\n\t\t\t\tsocial2.setContent(social.getContent().split(\",\")[1]);\n\t\t\t\tsocial2.setSocialtime(social.getSocialtime().split(\",\")[1]);\n\t\t\t\tsocial2.setUid(uid);\n\t\t\t\tString s1 = (social.getSocialid() + \"\").split(\",\")[1];\n\t\t\t\tint socialid2 = Integer.valueOf(s);\n\t\t\t\tsocial1.setSocialid(socialid2);\n\t\t\t\tschoolService.updateSocial(social2);\n\t\t\t}\n\t\t\tif (social3.size() == 1 && social.getCompany().split(\",\").length > 1)\n\t\t\t{\n\t\t\t\tsocial2.setCompany(social.getCompany().split(\",\")[1]);\n\t\t\t\tsocial2.setContent(social.getContent().split(\",\")[1]);\n\t\t\t\tsocial2.setSocialtime(social.getSocialtime().split(\",\")[1]);\n\t\t\t\tsocial2.setUid(uid);\n\t\t\t\tschoolService.insertSocial(social2);\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t//插入\n\t\t\tsocial1.setCompany(social.getCompany().split(\",\")[0]);\n\t\t\tsocial1.setContent(social.getContent().split(\",\")[0]);\n\t\t\tsocial1.setSocialtime(social.getSocialtime().split(\",\")[0]);\n\t\t\tsocial1.setUid(uid);\n\t\t\tschoolService.insertSocial(social1);\n\t\t\tif (social3.size() == 1 && social.getCompany().split(\",\")[1].length() > 1)\n\t\t\t{\n\t\t\t\tsocial2.setCompany(social.getCompany().split(\",\")[1]);\n\t\t\t\tsocial2.setContent(social.getContent().split(\",\")[1]);\n\t\t\t\tsocial2.setSocialtime(social.getSocialtime().split(\",\")[1]);\n\t\t\t\tsocial2.setUid(uid);\n\t\t\t\tschoolService.insertSocial(social2);\n\t\t\t}\n\t\t}\n\t\tif (aducational3.size() != 0)\n\t\t{\n\t\t\t//学校更新\n\t\t\taducational1.setAdtime(aducational.getAdtime().split(\",\")[0]);\n\t\t\taducational1.setSname(aducational.getSname().split(\",\")[0]);\n\t\t\taducational1.setProfession(aducational.getProfession().split(\",\")[0]);\n\t\t\taducational1.setUid(uid);\n\t\t\tString s = (aducational.getAducationid() + \"\").split(\",\")[0];\n\t\t\tint aducationid1 = Integer.valueOf(s);\n\t\t\taducational1.setAducationid(aducationid1);\n\t\t\tschoolService.updateAducation(aducational1);\n\t\t\tif (aducational3.size() > 1)\n\t\t\t{\n\t\t\t\taducational2.setAdtime(aducational.getAdtime().split(\",\")[1]);\n\t\t\t\taducational2.setSname(aducational.getSname().split(\",\")[1]);\n\t\t\t\taducational2.setProfession(aducational.getProfession().split(\",\")[1]);\n\t\t\t\taducational2.setUid(uid);\n\t\t\t\tString s1 = (aducational.getAducationid() + \"\").split(\",\")[1];\n\t\t\t\tint aducationid2 = Integer.valueOf(s1);\n\t\t\t\taducational1.setAducationid(aducationid2);\n\t\t\t\tschoolService.updateAducation(aducational2);\n\t\t\t}\n\t\t\tif (aducational3.size() == 1 && aducational.getAdtime().split(\",\").length > 1)\n\t\t\t{\n\t\t\t\taducational2.setAdtime(aducational.getAdtime().split(\",\")[1]);\n\t\t\t\taducational2.setSname(aducational.getSname().split(\",\")[1]);\n\t\t\t\taducational2.setProfession(aducational.getProfession().split(\",\")[1]);\n\t\t\t\taducational2.setUid(uid);\n\t\t\t\tschoolService.insertAducation(aducational2);\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t//插入\n\t\t\taducational1.setAdtime(aducational.getAdtime().split(\",\")[0]);\n\t\t\taducational1.setSname(aducational.getSname().split(\",\")[0]);\n\t\t\taducational1.setProfession(aducational.getProfession().split(\",\")[0]);\n\t\t\taducational1.setUid(uid);\n\t\t\tschoolService.insertAducation(aducational1);\n\t\t\tif (aducational3.size() == 1 && aducational.getAdtime().split(\",\")[1].length() > 1)\n\t\t\t{\n\t\t\t\taducational2.setAdtime(aducational.getAdtime().split(\",\")[1]);\n\t\t\t\taducational2.setSname(aducational.getSname().split(\",\")[1]);\n\t\t\t\taducational2.setProfession(aducational.getProfession().split(\",\")[1]);\n\t\t\t\taducational2.setUid(uid);\n\t\t\t\tschoolService.insertAducation(aducational2);\n\t\t\t}\n\t\t}\n\t\tResume resume1=schoolService.findResumeByUid(uid);\n\t\tif(resume1==null){\n\t\t\t//插入简历表\n\t\t\t//简历就更新就行\n\t\t\tDegree degreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\tif(degreeid==null){\n\t\t\t\tschoolService.insertDegreeName(resume);\n\t\t\t\tdegreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\t}\n\t\t\tProfession professid = schoolService.findProfessidByProfessName(resume);\n\t\t\tif(professid==null){\n\t\t\t\t//先插入专业表再查\n\t\t\t\tschoolService.insertProfessname(resume);\n\t\t\t\tprofessid = schoolService.findProfessidByProfessName(resume);\n\t\t\t}\n\t\t\tint sid = schoolService.findSidBySchoolName(resume);\n\t\t\tresume.setDegreeid(degreeid.getDegreeid());\n\t\t\tresume.setSid(sid);\n\t\t\tresume.setProfessid(professid.getProfessid());\n\t\t\tresume.setUid(uid);\n\t\t\tschoolService.insertUserResume(resume);\n\t\t}else{\n\t\t\t//简历就更新就行\n\t\t\tDegree degreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\tProfession professid = schoolService.findProfessidByProfessName(resume);\n\t\t\tif(degreeid==null){\n\t\t\t\tschoolService.insertDegreeName(resume);\n\t\t\t\tdegreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\t}\n\t\t\tif(professid==null){\n\t\t\t\t//先插入专业表再查\n\t\t\t\tschoolService.insertProfessname(resume);\n\t\t\t\tprofessid = schoolService.findProfessidByProfessName(resume);\n\t\t\t}\n\t\t\tint sid = schoolService.findSidBySchoolName(resume);\n\t\t\tresume.setDegreeid(degreeid.getDegreeid());\n\t\t\tresume.setSid(sid);\n\t\t\tresume.setProfessid(professid.getProfessid());\n\t\t\tresume.setUid(uid);\n\t\t\tschoolService.updateUserresume(resume);\n\t\t}\n\n\t\tResponseUtils.outJson(response, \"保存成功\");\n\t}", "UploadDocumentResponseModel saveFile(MultipartFile multipartFile, String userId,\n String category) throws IOException, UploadDocumentException;", "int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "@Override\n public void onStreamError(Throwable throwable)\n {\n if (throwable instanceof MultiPartIllegalFormatException)\n {\n //If its an illegally formed request, then we send back 400.\n _streamResponseCallback.onError(Messages.toStreamException(RestException.forError(400, \"Illegally formed multipart payload\")));\n return;\n }\n //Otherwise this is an internal server error. R2 will convert this to a 500 for us. As mentioned this should never happen.\n _streamResponseCallback.onError(throwable);\n }", "public FileUpload getFileUploadById(Long id) throws AppException;", "private Result uploadFile(StoryModel storyModel) {\n if (isStopped())\n return Result.failure();\n\n\n String storyId = storyModel.get_id();\n if (storyModel.getType() != null && storyModel.getType().equals(\"image\")) {\n\n sendStartStatus(\"image\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadImageFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"image\", storyId);\n }\n return Result.retry();\n }\n } else if (storyModel.getType() != null && storyModel.getType().equals(\"video\")) {\n\n sendStartStatus(\"video\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadVideoFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"video\", storyId);\n }\n return Result.retry();\n }\n } else {\n return Result.failure();\n }\n }", "private void uploadToServer(String filePath) {\n myProgressBar.setVisibility(View.VISIBLE);\n File file = new File(filePath);\n RequestBody filename = RequestBody.create(MediaType.parse(\"text/plain\"), file.getName());\n RequestBody requestFile = RequestBody.create(MediaType.parse(getActivity().getContentResolver().getType(imageUri)), file);\n MultipartBody.Part multipartBody = MultipartBody.Part.createFormData(\"file\", file.getName(), requestFile);\n\n Call<Prediction> responseBodyCall = uploadAPIs.uploadImage(\"127.0.0.1\", 12, Build.SERIAL, filename,multipartBody);\n\n responseBodyCall.enqueue(new Callback<Prediction>() {\n @Override\n public void onResponse(Call<Prediction> call, Response<Prediction> response) {\n myProgressBar.setVisibility(View.GONE);\n btn_predict.setVisibility(View.VISIBLE);\n btn_photo.setVisibility(View.VISIBLE);\n if(tv_res.getAnimation()!=null)\n tv_res.getAnimation().cancel();\n float pred = Float.parseFloat(response.body().getPred()) * 100;\n float positive = 100-pred;\n String pos = \"0\";\n String resume=\"\";\n if(pred<50.0){\n tv_res.setTextColor(Color.GREEN);\n tv_res.setText(getString(R.string.allwell));\n tv_resume.setText(getString(R.string.nothingbad));\n resume=getString(R.string.resume_allwell);\n }else{\n pos = \"1\";\n tv_res.setTextColor(Color.RED);\n tv_res.setText(getString(R.string.result_cancer));\n tv_resume.setText(getString(R.string.cancerdetected));\n resume=getString(R.string.resume_allbad);\n }\n tv_pred.setText(rootView.getResources().getString(R.string.cancerdetection) + \" \"+ pred + \"%\");\n tv_total.setText(rootView.getResources().getString(R.string.negativecancer) + \" \"+ positive + \"%\");\n tv_policy.setText(getString(R.string.policy));\n btn_chart.setVisibility(View.VISIBLE);\n String timeStamp =\n new SimpleDateFormat(\"yyyy MM dd - HH:mm:ss\",\n Locale.getDefault()).format(new Date());\n if(newAlbum)\n idalbum = dbPreds.insertAlbum(getString(R.string.newalbum),bodyPart,getRealPathFromURI(getContext(),imageUri));\n else\n dbPreds.UpdateAlbumImage(String.valueOf(idalbum),getRealPathFromURI(getContext(),imageUri));\n\n dbPreds.insertPrediction(pos,String.valueOf(pred),getRealPathFromURI(getContext(),imageUri),timeStamp,resume,String.valueOf(idalbum));\n\n\n\n }\n\n @Override\n public void onFailure(Call<Prediction> call, Throwable t) {\n btn_predict.setVisibility(View.VISIBLE);\n btn_photo.setVisibility(View.VISIBLE);\n Log.d(\"failure\", \"message = \" + t.getMessage());\n Log.d(\"failure\", \"cause = \" + t.getCause());\n\n fails++;\n Toast.makeText(getContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n tv_res.setText(t.getMessage());\n\n tv_res.setText(getString(R.string.analyzing) + fails + \"...\");\n\n\n if(fails<4)\n uploadToServer(getRealPathFromURI(getContext(), imageUri));\n else {\n if(tv_res.getAnimation()!=null)\n tv_res.getAnimation().cancel();\n tv_res.setText(getString(R.string.connection));\n tv_policy.setText(getString(R.string.conn_error_server));\n myProgressBar.setVisibility(View.GONE);\n Snackbar.make(rootView, getString(R.string.connerror), Snackbar.LENGTH_LONG).show();\n }\n }\n });\n }" ]
[ "0.7327673", "0.69530785", "0.6850741", "0.6850106", "0.67710817", "0.6735076", "0.67294633", "0.67097974", "0.668954", "0.6682956", "0.6657675", "0.65901583", "0.6573692", "0.6571939", "0.65625054", "0.6464359", "0.6442356", "0.6420294", "0.6415523", "0.63947904", "0.6390038", "0.63806194", "0.6378359", "0.6359892", "0.6345148", "0.6343852", "0.633918", "0.63202375", "0.63187057", "0.630507", "0.62812704", "0.627846", "0.6264511", "0.62547904", "0.6243478", "0.62248665", "0.622266", "0.62150025", "0.6208275", "0.6197902", "0.61943144", "0.6160406", "0.6159127", "0.6157867", "0.61527234", "0.61190957", "0.6106446", "0.6086453", "0.6079438", "0.6078063", "0.6078063", "0.607771", "0.60745186", "0.6069127", "0.6068013", "0.60672176", "0.60461307", "0.60398686", "0.6037466", "0.60298616", "0.6011299", "0.6010714", "0.6004076", "0.59950334", "0.5983707", "0.5962778", "0.5956006", "0.5950465", "0.5942114", "0.5940741", "0.5933423", "0.59323394", "0.59219176", "0.59218687", "0.5916694", "0.59143335", "0.5894456", "0.5893838", "0.58865076", "0.5883449", "0.5879891", "0.5878286", "0.58748895", "0.5873736", "0.58634967", "0.58631414", "0.58452797", "0.58370167", "0.58367723", "0.5819333", "0.5796931", "0.57947654", "0.5788776", "0.5787217", "0.5781448", "0.5781317", "0.577903", "0.57778805", "0.5775676", "0.5772592", "0.5772012" ]
0.0
-1
200 File upload successfully 400 Bad request. Missing some parameters 500 Internal error. Please send me the error. I will fix it
@Multipart @POST("v1/user/avatar/uploadKid") Call<UpdateKidRepEntity> uploadKidAvatar( @PartMap() Map<String, RequestBody> pramPart, @Part MultipartBody.Part filePart);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @RequestMapping(\"upload.feep\")\n public void upload(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "@Override\n public void uploadFailed() {\n }", "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);", "private String uploadFile() {\n\n int serverResponseCode = 0;\n String serverResponseMessage = null;\n HttpURLConnection connection;\n DataOutputStream dataOutputStream;\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File selectedFile = new File(selectedFilePath);\n double len = selectedFile.length();\n\n String[] parts = selectedFilePath.split(\"/\");\n final String fileName = parts[parts.length - 1];\n\n if (!selectedFile.isFile()) {\n dialog.dismiss();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// tvFileName.setText(\"Source File Doesn't Exist: \" + selectedFilePath);\n }\n });\n return \"\";\n } else {\n try {\n String id = PreferenceStorage.getUserMasterId(getApplicationContext());\n String serviceId = ongoingService.getServiceOrderId();\n\n\n FileInputStream fileInputStream = new FileInputStream(selectedFile);\n String SERVER_URL = SkilExConstants.BUILD_URL + SkilExConstants.UPLOAD_BILL_DOCUMENT + \"\" + id + \"/\" + serviceId + \"/\";\n URI uri = new URI(SERVER_URL.replace(\" \", \"%20\"));\n String baseURL = uri.toString();\n URL url = new URL(baseURL);\n connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);//Allow Inputs\n connection.setDoOutput(true);//Allow Outputs\n connection.setUseCaches(false);//Don't use a cached Copy\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n connection.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n connection.setRequestProperty(\"bill_copy\", selectedFilePath);\n// connection.setRequestProperty(\"user_id\", id);\n// connection.setRequestProperty(\"doc_name\", title);\n// connection.setRequestProperty(\"doc_month_year\", start);\n\n //creating new dataoutputstream\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n\n //writing bytes to data outputstream\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"document_file\\\";filename=\\\"\"\n + selectedFilePath + \"\\\"\" + lineEnd);\n\n dataOutputStream.writeBytes(lineEnd);\n\n //returns no. of bytes present in fileInputStream\n bytesAvailable = fileInputStream.available();\n //selecting the buffer size as minimum of available bytes or 1 MB\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n //setting the buffer as byte array of size of bufferSize\n buffer = new byte[bufferSize];\n\n //reads bytes from FileInputStream(from 0th index of buffer to buffersize)\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputstream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n serverResponseMessage = connection.getResponseMessage();\n\n Log.i(TAG, \"Server Response is: \" + serverResponseMessage + \": \" + serverResponseCode);\n\n //response code of 200 indicates the server status OK\n if (serverResponseCode == 200) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// tvFileName.setText(\"File Upload completed.\\n\\n You can see the uploaded file here: \\n\\n\" + \"http://coderefer.com/extras/uploads/\"+ fileName);\n// tvFileName.setText(\"File Upload completed.\\n\\n\"+ fileName);\n }\n });\n }\n\n //closing the input and output streams\n fileInputStream.close();\n dataOutputStream.flush();\n dataOutputStream.close();\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"File Not Found\", Toast.LENGTH_SHORT).show();\n }\n });\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"URL error!\", Toast.LENGTH_SHORT).show();\n\n } catch (IOException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Cannot Read/Write File!\", Toast.LENGTH_SHORT).show();\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n return serverResponseMessage;\n }\n\n }", "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);", "@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);", "public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "private void uploadToServer(String filePath, String title) {\n APIClient apiClient = new APIClient();\n Retrofit retrofit = apiClient.getApiClient();\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n File file = new File(filePath);\n\n MultipartBody.Part filePart =\n MultipartBody.Part.createFormData(\"file\", title+\".jpg\", //file.getName(),\n RequestBody.create(MediaType.parse(\"image/*\"), file));\n\n\n Call call = apiInterface.uploadImage(filePart);\n call.enqueue(new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n Toast.makeText(AddPost.this, \"Worked\",Toast.LENGTH_SHORT).show();\n }\n @Override\n public void onFailure(Call call, Throwable t) {\n t.printStackTrace();\n Toast.makeText(AddPost.this, \"Didn't work\",Toast.LENGTH_SHORT).show();\n }\n });\n }", "@View(\"upload\")\n @Post(consumes = MediaType.MULTIPART_FORM_DATA)\n public HttpResponse upload(@Body CompletedFileUpload file) {\n Drive drive = null;\n try {\n drive = googleDriveAccessor.accessGoogleDrive();\n } catch (IOException e) {\n // Catch down below\n }\n\n if(drive == null) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Unable to access Google Drive\"));\n }\n\n if ((file.getFilename() == null || file.getFilename().equals(\"\"))) {\n return HttpResponse.badRequest(CollectionUtils.mapOf(RSP_ERROR_KEY, \"Required file\"));\n }\n\n if(directoryKey == null) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Directory key error, please contact admin\"));\n }\n\n JsonNode dirNode = null;\n try {\n dirNode = new ObjectMapper().readTree(this.getClass().getResourceAsStream(DIRECTORY_FILE_PATH));\n } catch (IOException e) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Configuration error, please contact admin\"));\n }\n\n String parentId = dirNode.get(directoryKey) != null ? dirNode.get(directoryKey).asText() : null;\n if(parentId == null) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Configuration error, please contact admin\"));\n }\n\n File fileMetadata = new File();\n fileMetadata.setName(file.getFilename());\n fileMetadata.setMimeType(file.getContentType().orElse(MediaType.APPLICATION_OCTET_STREAM_TYPE).toString());\n fileMetadata.setParents(List.of(parentId));\n\n InputStreamContent content;\n try {\n content = new InputStreamContent(fileMetadata.getMimeType(), file.getInputStream());\n } catch (IOException e) {\n return HttpResponse.badRequest(CollectionUtils.mapOf(RSP_ERROR_KEY,\n String.format(\"Unexpected error processing %s\", file.getFilename())));\n }\n\n try {\n drive.files().create(fileMetadata, content).setFields(\"parents\").execute();\n } catch (IOException e) {\n return HttpResponse.serverError(CollectionUtils.mapOf(RSP_SERVER_ERROR_KEY,\n \"Unable to upload file to Google Drive\"));\n }\n\n return HttpResponse.ok(CollectionUtils.mapOf(RSP_COMPLETE_MESSAGE_KEY,\n String.format(\"The file %s was uploaded\", file.getFilename())));\n }", "private void uploadFile(String fileUri, String filename) {\n progressDialog.show();\n FileUploadService service = MyConfig.getRetrofit(MyConfig.JSON_BASE_URL).create(FileUploadService.class);\n\n // https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java\n // use the FileUtils to get the actual file by uri\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n MultipartBody.Part body = null;\n if (!profile_image_path.equalsIgnoreCase(\"\")) {\n\n File file = new File(fileUri);\n\n\n // String mimeType= URLConnection.guessContentTypeFromName(file.getName());\n\n // create RequestBody instance from file\n RequestBody requestFile = RequestBody.create(MediaType.parse(\"image/*\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n\n body = MultipartBody.Part.createFormData(\"profile_image\", filename, requestFile);\n }\n\n\n RequestBody user_id = RequestBody.create(MediaType.parse(\"text/plain\"), Shared_Preferences.getPrefs(ProfileActivity.this, IConstant.USER_ID));\n RequestBody full_name = RequestBody.create(MediaType.parse(\"text/plain\"), etName.getText().toString());\n RequestBody height = RequestBody.create(MediaType.parse(\"text/plain\"), etHeight.getText().toString());\n RequestBody email = RequestBody.create(MediaType.parse(\"text/plain\"), etEmail.getText().toString());\n RequestBody weight = RequestBody.create(MediaType.parse(\"text/plain\"), etWeight.getText().toString());\n RequestBody is_blood_pressure = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_diabetes = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_asthama = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n RequestBody is_heart_patient = RequestBody.create(MediaType.parse(\"text/plain\"), \"0\");\n\n\n Call<ResponseBody> call;\n\n\n RequestBody file_name = RequestBody.create(MediaType.parse(\"text/plain\"), \"\" + filename);\n call = service.upload(\n user_id,\n full_name,\n height,\n email,\n weight,\n is_blood_pressure,\n is_diabetes,\n is_asthama,\n is_heart_patient,\n body\n );\n\n\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n String output = \"\";\n try {\n output = response.body().string();\n\n Log.d(\"Response\", \"response=> \" + output);\n JSONObject i = new JSONObject(output);\n boolean res = Boolean.parseBoolean(i.getString(\"result\"));\n String reason = i.getString(\"reason\");\n\n if (res) {\n user_profile_path = i.getString(\"user_profile_path\");\n\n JSONArray jsonArray = i.getJSONArray(\"user_data\");\n\n JSONObject jsonObjectData = jsonArray.getJSONObject(0);\n\n String id = jsonObjectData.getString(\"user_id\");\n String full_name = jsonObjectData.getString(\"full_name\");\n String email = jsonObjectData.getString(\"email\");\n String mobile_no = jsonObjectData.getString(\"mobile_no\");\n String image = jsonObjectData.getString(\"image\");\n String role = jsonObjectData.getString(\"role\");\n String height = jsonObjectData.getString(\"height\");\n String weight = jsonObjectData.getString(\"weight\");\n String is_blood_pressure = jsonObjectData.getString(\"is_blood_pressure\");\n String is_diabetes = jsonObjectData.getString(\"is_diabetes\");\n String is_asthama = jsonObjectData.getString(\"is_asthama\");\n String is_heart_patient = jsonObjectData.getString(\"is_heart_patient\");\n// String member_id = jsonObjectData.getString(\"member_id\");\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ID, id);\n Shared_Preferences.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n Shared_Preferences.setPrefs(_act, IConstant.USER_EMAIL, email);\n Shared_Preferences.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IMAGE, image);\n Shared_Preferences.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n\n Shared_Preferences.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n Shared_Preferences.setPrefs(_act, IConstant.USER_HEIGHT, height);\n Shared_Preferences.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n Shared_Preferences.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n\n\n\n sharedPref.setPrefs(_act, IConstant.USER_ID, id);\n sharedPref.setPrefs(_act, IConstant.USER_FIRST_NAME, full_name);\n sharedPref.setPrefs(_act, IConstant.USER_EMAIL, email);\n sharedPref.setPrefs(_act, IConstant.USER_MOBILE, mobile_no);\n sharedPref.setPrefs(_act, IConstant.USER_PHOTO, user_profile_path + image);\n sharedPref.setPrefs(_act, IConstant.USER_ROLE_ID, role);\n sharedPref.setPrefs(_act, IConstant.USER_HEIGHT, height);\n sharedPref.setPrefs(_act, IConstant.USER_WEIGHT, weight);\n sharedPref.setPrefs(_act, IConstant.USER_IS_BLOOD_PRESSURE, is_blood_pressure);\n sharedPref.setPrefs(_act, IConstant.USER_IS_DIABETIC, is_diabetes);\n sharedPref.setPrefs(_act, IConstant.USER_IS_ASTHAMATIC, is_asthama);\n sharedPref.setPrefs(_act, IConstant.USER_IS_HEART_PATIENT, is_heart_patient);\n sharedPref.setPrefs(_act, IConstant.USER_IS_LOGIN, \"true\");\n Toast.makeText(ProfileActivity.this, reason, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(ProfileActivity.this, UserDashboardActivity.class);\n startActivity(intent);\n finish();\n } else\n Toast.makeText(ProfileActivity.this, \"\" + reason, Toast.LENGTH_SHORT).show();\n // Log.v(\"Upload\", \"\" + response.body().string());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n progressDialog.dismiss();\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.d(\"Upload error:\", \"\");\n progressDialog.dismiss();\n }\n });\n }", "private String uploadFile() {\n String res = null;\n if(TotalDays.size()!=0) {\n if (TotalDays.size() > 1) {\n commaSeparatedValues = TextUtils.join(\",\", TotalDays);\n } else {\n commaSeparatedValues = TotalDays.get(0);\n }\n }else{\n commaSeparatedValues = \"Not Rated\";\n }\n\n try {\n\n RequestBody requestBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"unique_id\",UNIQUEID)\n .addFormDataPart(\"driver_mobile\",Driver_mobile)\n .addFormDataPart(\"user_mobile\",_PhoneNo)\n .addFormDataPart(\"review\",commaSeparatedValues)\n .addFormDataPart(\"user_rating\",Rate_user)\n .build();\n\n Request request = new Request.Builder()\n .url(Config_URL.STOP_BOOKING)\n .post(requestBody)\n .build();\n OkHttpClient client = new OkHttpClient();\n okhttp3.Response response = client.newCall(request).execute();\n res = response.body().string();\n String[] pars = res.split(\"error\");\n if (pars[1].contains(\"false\")) {\n success = true;\n\n } else {\n success = false;\n }\n Log.e(\"TAG\", \"Response : \" + res);\n\n return res;\n\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n\n\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n\n }\n\n\n return res;\n\n }", "@RequestMapping(value = \"/uploadStatement\", produces = \"application/json\", method = RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity handleFileUpload(@RequestParam(\"file\") MultipartFile multipart) throws Exception {\n\t\tlog.info(\"In handleFileUpload method\");\n\t\tAppResponse appResponse = new AppResponse();\n\t\t// check1 : Empty check\n\t\tif (!multipart.isEmpty()) {\n\t\t\t// check2: type check. Only CSV and XML file\n\t\t\tif (isValidFileTye(multipart)) {\n\t\t\t\tList<Record> duplicateRecords = new ArrayList<Record>();\n\t\t\t\tList<Record> invalidRecords = new ArrayList<Record>();\n\t\t\t\tFile inputFile = convertFileFormat(multipart);\n\t\t\t\tList<Record> extractedRecords = extractorService.extractRecordsFromFile(inputFile,multipart.getContentType());\n\t\t\t\tduplicateRecords.addAll(validatorService.getDuplicateRecords(extractedRecords));\n\t\t\t\tinvalidRecords.addAll(validatorService.getEndBalanceErrorRecords(extractedRecords));\n\t\t\t\t// check3: if processed records have some duplicated transaction reference or invalid end balance\n\t\t\t\tif (!duplicateRecords.isEmpty() || !invalidRecords.isEmpty()) {\n\t\t\t\t\tappResponse.setMessage(AppConstants.VALIDATION_ERROR);\n\t\t\t\t\tappResponse.setStatus(AppConstants.INVALID_STATUS);\n\t\t\t\t\tappResponse.setDuplicateRecords(duplicateRecords);\n\t\t\t\t\tappResponse.setInvalidEndBalanceRecords(invalidRecords);\n\t\t\t\t} else {\n\t\t\t\t\tappResponse.setStatus(AppConstants.VALID_STATUS);\n\t\t\t\t\tappResponse.setMessage(AppConstants.VALIDATION_SUCCESS);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tappResponse.setMessage(AppConstants.UNSUPPORTED_FILE_FORMAT);\n\t\t\t\treturn new ResponseEntity<>(appResponse, HttpStatus.UNSUPPORTED_MEDIA_TYPE);\n\t\t\t}\n\t\t} else {\n\t\t\tappResponse.setMessage(AppConstants.INVALID_INPUT);\n\t\t\treturn new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tlog.info(\"end handleFileUpload method\");\n\t\treturn new ResponseEntity<>(appResponse, HttpStatus.OK);\n\t}", "@ApiResponses(value = {@ApiResponse(code = 400, message = \"Invalid file uploaded\")})\n @PostMapping(\"/mcarrington1/portal/1.0.0/upload\")\n public ResponseEntity<?> uploadFile(@RequestParam(\"file\") MultipartFile file) {\n try {\n String imageUrl = amazonS3Service.uploadImageToAmazon(file);\n return ResponseEntity.ok(imageUrl);\n } catch (Exception e) {\n System.out.println(\"Exception occurred :\" + e);\n return new ResponseEntity<>(\"Error Occurred: \" + e, HttpStatus.BAD_REQUEST);\n }\n }", "public void uploadMultipart() {\n String path = getPath(filePath);\n // Toast.makeText(getContext(),path,Toast.LENGTH_LONG).show();\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n\n //Creating a multi part request\n new MultipartUploadRequest(getContext(), uploadId, Const.CompanyProfile)\n .addFileToUpload(path, \"logo\") //Adding file\n .addParameter(\"companyname\", \"BGn\") //Adding text parameter to the request\n .addParameter(\"companyemail\", \"[email protected]\")\n .addParameter(\"description\", desc.getText().toString())\n .addParameter(\"address\", address.getText().toString())\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n // startActivity(new Intent(getContext(), HOME.class));\n Toast.makeText(getContext(), \"Thanks for Submit your Property..\", Toast.LENGTH_LONG).show();\n Fragment fragment = new EmployerHomeFragment();\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.newview, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n\n } catch (Exception exc) {\n Toast.makeText(getContext(), exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n //finish();\n }", "public interface RequeteService {\n @Multipart\n @POST(\"upImportDoc.do\")\n Call<ResponseBody> uploadSingleFile(\n @Header(\"Cookie\") String sessionid,\n @Header(\"User-Agent\") String userAgent,\n @Part MultipartBody.Part file,\n @Part(\"jsessionid\") RequestBody jsessionid,\n @Part(\"ptoken\") RequestBody ptoken,\n @Part(\"ajaupmo\") RequestBody ajaupmo,\n @Part(\"ContributionComment\") RequestBody ContributionComment,\n @Part(\"Document_numbasedoc\") RequestBody Document_numbasedoc,\n @Part(\"contribution\") RequestBody contribution);\n}", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "private void doMultipartFormDataPostRequest(String token, String url, byte[] fileData, String filename) throws Exception {\n\n\n CloseableHttpClient client = HttpClients.createDefault();\n\n try {\n HttpPost httpPost = new HttpPost(getBaseUrl() + url );\n httpPost.setHeader(\"X-Authentication\", token);\n\n\n MultipartEntityBuilder multipartBuilder = MultipartEntityBuilder.create();\n\n if (fileData == null || fileData.length <= 0) {\n throw new MfilesOperationException(\"The byte array must not be null\");\n }\n\n if (StringUtils.isBlank(filename)) {\n throw new MfilesOperationException( \"Filename must not be blank or null...\" );\n }\n\n File tempDir = FileUtils.getTempDirectory();\n String reversedFilename = StringUtils.reverse(filename);\n //get the first '.'\n int dotIndex = reversedFilename.indexOf('.');\n String extension = reversedFilename.substring(0, (dotIndex + 1));\n extension = StringUtils.reverse(extension);\n\n //Generate a random string to append to the name of the file\n //We do this to prevent a situation whereby multiple users\n //upload files that have the same name and extension.\n String tempFileName = filename.substring(0, filename.length() - extension.length()) + \"_\" + System.currentTimeMillis();\n\n tempFileName += extension;\n\n final File fileToUpload = new File(tempDir + File.separator + tempFileName);\n\n try {\n FileUtils.writeByteArrayToFile(fileToUpload, fileData);\n }catch(Exception ex) {\n LOG.error(\"An exception occurred while writing byte array data to the file for upload\", ex);\n throw new MfilesOperationException(ex.getMessage());\n } finally {\n\n }\n\n final FileBody fileBody = new FileBody(fileToUpload);\n\n multipartBuilder.addPart(\"file\", fileBody);\n\n //OR\n //multipartBuilder.addBinaryBody(\"file\", file, ContentType.APPLICATION_OCTET_STREAM, \"file.ext\");\n\n org.apache.http.HttpEntity multipart = multipartBuilder.build();\n httpPost.setEntity(multipart);\n\n System.out.println(\"executing file upload request \" + httpPost.getRequestLine());\n\n CloseableHttpResponse response = client.execute(httpPost);\n try {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"---------Response from server-----------\");\n System.out.println(response.getStatusLine());\n System.out.println(\"----------------------------------------\");\n\n org.apache.http.HttpEntity resEntity = response.getEntity();\n if (resEntity != null) {\n BufferedReader br = new BufferedReader(new InputStreamReader(resEntity.getContent()));\n String output = null;\n\n while ((output = br.readLine()) != null) {\n System.out.println(output);\n }\n }\n\n EntityUtils.consume(resEntity);\n\n } finally {\n response.close();\n }\n } finally {\n client.close();\n }\n }", "private File processMultipartForm() {\n\n File storeDirectory = Configuration\n .getParameterValueAsFile(PENDING_DIR);\n\n int fileSizeLimit = Configuration\n .getParameterValueAsInt(METADATA_MAX_BYTES);\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(fileSizeLimit);\n\n RestletFileUpload upload = new RestletFileUpload(factory);\n\n List<FileItem> items;\n\n try {\n Request request = getRequest();\n items = upload.parseRequest(request);\n } catch (FileUploadException e) {\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, e\n .getMessage(), e);\n }\n\n for (FileItem fi : items) {\n if (fi.getName() != null) {\n String uuid = UUID.randomUUID().toString();\n File file = new File(storeDirectory, uuid);\n try {\n fi.write(file);\n return file;\n } catch (Exception consumed) {\n }\n }\n }\n\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST,\n \"no valid file uploaded\");\n }", "@Override\r\n\t\t\t\tpublic void onFail(String desc) {\n\t\t\t\t Log.e(\"upload\",desc);\t\r\n\t\t\t\t}", "@RequestMapping(value = \"/singleUpload\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody boolean test(HttpServletRequest request,\r\n\t\t\t@RequestParam(\"file\") CommonsMultipartFile singleUploadFile) {\r\n\t\tboolean status = false;\r\n\t\tSystem.out.println(\"////// Inside there\");\r\n\r\n\t\tSystem.out.println(\"////// Inside there reh\" + singleUploadFile.getOriginalFilename());\r\n\r\n\t\tString fileName[] = singleUploadFile.getOriginalFilename().split(\"_\");\r\n\t\tString folderName = fileName[0];\r\n\t\t\r\n\t\t/*\r\n\t\t * try { ServletContext context = request.getServletContext(); String\r\n\t\t * uploadPath = context.getRealPath(\"/\" + folderName); File uploadDir =\r\n\t\t * new File(uploadPath); if (!uploadDir.exists()) { boolean success =\r\n\t\t * uploadDir.mkdir();\r\n\t\t * \r\n\t\t * if (success) { success = (new File(uploadDir + \"/\" +\r\n\t\t * subFolderName)).mkdir(); }\r\n\t\t * \r\n\t\t * } String path = uploadDir + \"/\" + subFolderName + \"/\" +fileName[2];\r\n\t\t * System.out.println(\"Path is\" + path); File serverFile = new\r\n\t\t * File(path); BufferedOutputStream stream = new\r\n\t\t * BufferedOutputStream(new FileOutputStream(serverFile));\r\n\t\t * stream.write(singleUploadFile.getBytes()); stream.close(); url =\r\n\t\t * folderName+\"_\"+subFolderName+\"_\"+fileName[2];\r\n\t\t * \r\n\t\t * }\r\n\t\t */ \r\n\t\ttry {\r\n\t\t\tServletContext context = request.getServletContext();\r\n\t\t\tString uploadPath = context.getRealPath(\"/\" + folderName);\r\n\t\t\tFile uploadDir = new File(uploadPath);\r\n\t\t\tif (!uploadDir.exists()) {\r\n\t\t\t\tboolean success = uploadDir.mkdir();\r\n\t\t\t\tif (success) {\r\n\t\t\t\t\tsuccess = (new File(uploadDir + \"/temp\")).mkdir();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString path = uploadDir + \"/temp/\" + fileName[1];\r\n\t\t\tSystem.out.println(\"Path is\" + path);\r\n\t\t\tFile serverFile = new File(path);\r\n\t\t\tBufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(serverFile));\r\n\t\t\tstream.write(singleUploadFile.getBytes());\r\n\t\t\tstatus = true;\r\n\t\t\tstream.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tAdminResponseClass adminResponseClass = new AdminResponseClass();\r\n\t\tadminResponseClass.setStatus(status);\r\n\t\treturn adminResponseClass.isStatus();\r\n\t}", "UploadInfo advancedUpload(AdvanceFile file);", "UploadInfo simpleUpload(SimpleFile file);", "void whenUploadFile(MultipartFile file, HttpServletRequest request);", "@Test\n public void uploadTest() throws ApiException {\n String path = null;\n Integer devid = null;\n File file = null;\n api.upload(path, devid, file);\n\n // TODO: test validations\n }", "public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;", "private void uploadDocFiles()\n {\n fileCount = imageDragableGridView.getUpdatedImageListWithoutPlus().size() - 1;\n base64String = Helper.convertFileToByteArray(imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath());\n\n String filePath = \"\";\n if (imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath().isEmpty())\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getPath();\n } else\n {\n filePath = imageDragableGridView.getUpdatedImageListWithoutPlus().get(fileCount).getDocPath();\n }\n\n if (HelperHttp.isNetworkAvailable(getActivity()))\n\n {\n //Add parameters to request in arraylist\n ArrayList<Parameter> parameterList = new ArrayList<Parameter>();\n parameterList.add(new Parameter(\"userHash\", DataManager.getInstance().user.getUserHash(), String.class));\n parameterList.add(new Parameter(\"bas64Doc\", base64String, String.class));\n parameterList.add(new Parameter(\"fileName\", filePath, String.class));\n parameterList.add(new Parameter(\"planTaskID\", planTaskId, String.class));\n\n //create web service inputs\n DataInObject inObj = new DataInObject();\n inObj.setMethodname(\"NewSupportRequestDoc\");\n inObj.setNamespace(Constants.TEMP_URI_NAMESPACE);\n inObj.setSoapAction(Constants.TEMP_URI_NAMESPACE + \"IPlannerService/NewSupportRequestDoc\");\n inObj.setUrl(Constants.PLANNER_WEBSERVICE_URL);\n inObj.setParameterList(parameterList);\n\n //Network call\n showProgressDialog();\n new WebServiceTask(getActivity(), inObj, false, new TaskListener()\n {\n\n @Override\n public void onTaskComplete(Object result)\n {\n CustomDialogManager.showOkDialog(getActivity(), successMessage, new DialogListener()\n {\n @Override\n public void onButtonClicked(int type)\n {\n hideProgressDialog();\n if (getFragmentManager().getBackStackEntryCount() != 0)\n {\n getFragmentManager().popBackStack();\n } else\n\n {\n getActivity().finish();\n }\n }\n });\n }\n }).execute();\n } else\n {\n CustomDialogManager.showOkDialog(getActivity(), getString(R.string.no_internet_connection));\n }\n }", "public handleFileUpload() {\r\n\t\tsuper();\r\n\t}", "private void uploadFile(Uri fileUri, String firstName, String lastName, String phoneNumber, String email, boolean subscribed) {\n FileUploadInterface service = retrofit.create(FileUploadInterface.class);\n Uri filePath = getFilePathByUri(fileUri);\n File file = new File(filePath.getPath());\n // use the FileUtils to get the actual file by uri\n// File file = FileUtils.getFile(this, fileUri);\n\n // create RequestBody instance from file\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n\n // MultipartBody.Part is used to send also the actual file name\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"picture\", file.getName(), requestFile);\n\n // add another part within the multipart request\n String descriptionString = \"hello, this is description speaking\";\n RequestBody description =\n RequestBody.create(\n MediaType.parse(\"multipart/form-data\"), descriptionString);\n\n // finally, execute the request\n Call<ResponseBody> call = service.upload(description, firstName, lastName, phoneNumber, email, body, subscribed);\n call.enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call,\n Response<ResponseBody> response) {\n Log.v(\"Upload\", \"success\");\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"Upload error:\", t.getMessage());\n }\n });\n }", "public void uploadFile() {\n \n InputStream input = null;\n try {\n input = file.getInputStream();\n System.out.println(\"chay qua inpustream\");\n String itemName = file.getSubmittedFileName();\n String filename = itemName.substring(\n itemName.lastIndexOf(\"\\\\\") + 1);\n String dirPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/upload/images\");\n fileNamed = \"/upload/images/\"+filename;\n File f = new File(dirPath + \"\\\\\" + filename);\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream output = new FileOutputStream(f);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n // resize(dirPath + \"\\\\\" + filename, dirPath + \"\\\\\" + filename, 200, 200);\n input.close();\n output.close();\n } catch (IOException ex) {\n System.out.println(\"loi io\");\n Logger.getLogger(ArtistsManagedBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void uploadFile( String selectedFilePath) {\n\n\n int serverResponseCode = 0;\n HttpURLConnection connection;\n DataOutputStream dataOutputStream;\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File selectedFile = new File(selectedFilePath);\n\n\n String[] parts = selectedFilePath.split(\"/\");\n final String fileName = parts[parts.length - 1];\n\n if (!selectedFile.isFile()) {\n //dialog.dismiss();\n //Log.v(TAG,\"gloabal\"+selectedFilePath);\n //showToast(selectedFilePath);\n //showToast(\"file issue\");\n return;\n } else {\n try {\n\n //Log.v(TAG, \"im in try\");\n\n\n FileInputStream fileInputStream = new FileInputStream(selectedFile);\n URL url = new URL(SERVER_URL);\n connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);//Allow Inputs\n connection.setDoOutput(true);//Allow Outputs\n connection.setUseCaches(false);//Don't use a cached Copy\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n connection.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n connection.setRequestProperty(\"uploaded_file\", selectedFilePath);\n //showToast(selectedFilePath);\n //creating new dataoutputstream\n\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n //showToast(\"im after path\");\n //writing bytes to data outputstream\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + selectedFilePath + \"\\\"\" + lineEnd);\n\n dataOutputStream.writeBytes(lineEnd);\n\n\n //returns no. of bytes present in fileInputStream\n bytesAvailable = fileInputStream.available();\n //selecting the buffer size as minimum of available bytes or 1 MB\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n //setting the buffer as byte array of size of bufferSize\n buffer = new byte[bufferSize];\n\n //reads bytes from FileInputStream(from 0th index of buffer to buffersize)\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //Log.v(TAG, \"before while\");\n\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputstream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n //Log.v(TAG, \"after while\");\n\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n String serverResponseMessage = connection.getResponseMessage();\n\n Log.i(TAG, \"Server Response is: \" + serverResponseMessage + \": \" + serverResponseCode);\n\n //response code of 200 indicates the server status OK\n if (serverResponseCode == 200) {\n Log.v(TAG, \"file upload complete\");\n }\n\n Log.v(TAG, \"now close\");\n\n //closing the input and output streams\n fileInputStream.close();\n dataOutputStream.flush();\n dataOutputStream.close();\n\n Log.v(TAG, \"CLosed \");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //showToast(\"FIle not found\");\n }\n });\n } catch (MalformedURLException e) {\n e.printStackTrace();\n //showToast(\"URL error\");\n\n } catch (IOException e) {\n e.printStackTrace();\n //showToast(\"Cannot read/Write file\");\n }\n dialog.dismiss();\n //postData(\"langitudes----\",\"longitues----\");\n\n //return serverResponseCode;\n }\n\n }", "@Test(priority = 1, description = \"podio {uploadFile} integration test positive case.\")\n public void testUploadFile() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:uploadFile\");\n esbRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n \n String multipartProxyUrl = getProxyServiceURL(\"podio_uploadFile\");\n String requestString = multipartProxyUrl + \"?apiUrl=\" + apiUrl;\n MultipartFormdataProcessor multipartProcessor =\n new MultipartFormdataProcessor(requestString, esbRequestHeadersMap);\n \n File file = new File(pathToResourcesDirectory + connectorProperties.getProperty(\"uploadSourcePath\"));\n multipartProcessor.addFileToRequest(\"source\", file);\n multipartProcessor.addFormDataToRequest(\"filename\", connectorProperties.getProperty(\"uploadSourcePath\"));\n RestResponse<JSONObject> esbRestResponse = multipartProcessor.processForJsonResponse();\n \n String fileId = esbRestResponse.getBody().getString(\"file_id\");\n connectorProperties.put(\"fileId\", fileId);\n \n String apiEndPoint = apiUrl + \"/file/\" + fileId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"created_on\"),\n apiRestResponse.getBody().getString(\"created_on\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_via\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_via\").getString(\"name\"));\n esbRequestHeadersMap.remove(\"Authorization\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }", "public static JSONObject userAddtionalDetailsResponse(String token, String supplier_id, String fssaiImagePath, String panImage, String adhaarImage, String dlImage, String bikeRC, String jsonObjectAsString) {\n try {\n MultipartBody.Builder multipartBuilder = new MultipartBody.Builder();\n // FSSAI\n if (fssaiImagePath != null && fssaiImagePath.length() > 0 && !(UtilityClass.checkURL(fssaiImagePath))) {\n File file_fssai = new File(fssaiImagePath);\n Log.d(\"TAG\", \"File Fssai...::::\" + file_fssai.getPath() + \" : \" + new File(file_fssai.getPath()).exists());\n multipartBuilder.addFormDataPart(\"fssai_doc\", \"fssaidoc.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file_fssai));\n } else {\n multipartBuilder.addFormDataPart(\"fssai_doc\", \"\");\n }\n // PAN\n if (panImage != null && panImage.length() > 0 && !(UtilityClass.checkURL(panImage))) {\n File file = new File(panImage);\n Log.d(\"TAG\", \"File Pan...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"pan\", \"pan.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"pan\", \"\");\n }\n //*************\n //Adhaar\n if (adhaarImage != null && adhaarImage.length() > 0 && !(UtilityClass.checkURL(adhaarImage))) {\n File file = new File(adhaarImage);\n Log.d(\"TAG\", \"File Adhaar...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"adhaar\", \"adhaar.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"adhaar\", \"\");\n }\n //***************************\n //DL\n if (dlImage != null && dlImage.length() > 0 && !(UtilityClass.checkURL(dlImage))) {\n File file = new File(dlImage);\n Log.d(\"TAG\", \"File DL...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"driving_license\", \"dl.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"driving_license\", \"\");\n }\n //***************************\n //Bike RC\n if (bikeRC != null && bikeRC.length() > 0 && !(UtilityClass.checkURL(bikeRC))) {\n File file = new File(bikeRC);\n Log.d(\"TAG\", \"File bikeRC...::::\" + file.getPath() + \" : \" + new File(file.getPath()).exists());\n multipartBuilder.addFormDataPart(\"bike_rc\", \"bikeRC.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file));\n } else {\n multipartBuilder.addFormDataPart(\"bike_rc\", \"\");\n }\n //***************************\n multipartBuilder.setType(MultipartBody.FORM).addFormDataPart(\"additional_details\", jsonObjectAsString)\n .addFormDataPart(\"supplier_id\", supplier_id);\n /**\n * OKHTTP3\n */\n RequestBody requestBody = multipartBuilder\n .build();\n Request request = new Request.Builder().addHeader(\"Authorization\", token).addHeader(\"access_token\", RestTags.PUBLIC_KEY).addHeader(\"app_type\", RestTags.S_FLAG)\n .addHeader(\"supplier_id\", supplier_id).url(RestUrls.USER_ADDITIONAL_DETAILS)\n .post(requestBody)\n .build();\n\n // OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n String res = response.body().string();\n Log.e(\"TAG\", \"Error: \" + res);\n return new JSONObject(res);\n\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return null;\n }", "@PostMapping(\"/\")\n public ResponseEntity<?> updloadFile (MultipartFile file) throws IOException {\n \n System.out.println(\"file\"+file.getOriginalFilename());\n List<Producto> productos = productoService.readFile(\"C:\\\\Users\\\\Karen Web\\\\Downloads\\\\\"+file.getOriginalFilename());\n //System.out.println(\"producto\"+ productos.toString());\n productoService.guardarFile(productos);\n return ResponseEntity.ok(new SuccessMessage(\"001\", \"producto\"));\n \n }", "public static void upload(String fpath) {\n String baseurl=\"http://dev.123go.net.cn\";\n File file = new File(fpath);\n\n // please check you mime type, i'm uploading only images\n RequestBody requestBody = RequestBody.create(MediaType.parse(\"image/*\"), file);\n /*RequestBody rbody=new MultipartBody.Builder()\n .addPart(requestBody).build();\n\n RequestBody requestFile =\n RequestBody.create(MediaType.parse(\"image/jpg\"), file);\n MultipartBody.Part body =\n MultipartBody.Part.createFormData(\"image\", file.getName(), requestFile);\n */\n\n Retrofit retrofit=new Retrofit.Builder()\n .baseUrl(baseurl)\n .addConverterFactory(GsonConverterFactory.create())\n .client(getOkhttpClient())\n .build();\n // 添加描述\n /*String descriptionString = \"hello, 这是文件描述\";\n RequestBody description =\n RequestBody.create(\n MediaType.parse(\"multipart/form-data\"), descriptionString);*/\n UploadServer server=retrofit.create(UploadServer.class);\n Call<ResponseBody> call = server.uploadImage(requestBody);\n call.enqueue(new Callback<ResponseBody>() {\n\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n ResponseBody jsonObject=response.body();\n System.out.print(jsonObject.toString());\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n\n }\n });\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n uploadFile(request, response);\n\n }", "public interface UploadFileApi {\n @POST\n Flowable<ResponseBody> uploadFile(@Url String url, @Body MultipartBody body);\n}", "public void uploadMultipart(String path, final String name) {\n //getting name for the image\n // String name = editText.getText().toString().trim();\n\n //getting the actual path of the image\n // String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, UPLOAD_URL)\n .addFileToUpload(path, \"image\") //Adding file\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addParameter(\"alert\", mAlertId) //Adding text parameter to the request\n .addParameter(\"device\",\n android.os.Build.MODEL) //Adding text parameter to the request\n .addParameter(\"title\", currentCaptureDirectory.getName())\n .setNotificationConfig(new UploadNotificationConfig()).setMaxRetries(2)\n .setDelegate(new UploadStatusDelegate() {\n @Override\n public void onProgress(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n\n @Override\n public void onError(Context context, UploadInfo uploadInfo,\n Exception exception) {\n // your code here\n }\n\n @Override\n public void onCompleted(Context context, UploadInfo uploadInfo,\n ServerResponse serverResponse) {\n Log.i(\" _ \", \" \");\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.toString());\n Log.d(TAG, \"JSON RESPONSE::: \" + serverResponse.getBodyAsString());\n Log.i(\" _ \", \" \");\n\n File photo = new File(currentCaptureDirectory, name);\n if (photo.exists()) photo.delete();\n\n if (mSendEmail) {\n mSendEmail = false;\n mEmailResetHandler.removeCallbacks(emailResetRunnable);\n mEmailResetHandler.postDelayed(emailResetRunnable, 1000 * 600);\n String link = mServerUrl + \"sendEmail.php?device=\" + mDeviceName +\n \"&name=\" + name + \"&title=\" +\n currentCaptureDirectory.getName();\n new updateData().execute(link);\n\n String link2 = mServerUrl + \"init.php?device=\" + mDeviceName;\n new updateData().execute(link2);\n\n mHandler.postDelayed(runnable, 6000);\n }\n\n // your code here\n // if you have mapped your server response to a POJO, you can easily get it:\n // YourClass obj = new Gson().fromJson(serverResponse.getBodyAsString(), YourClass.class);\n // File photo = new File(Environment.getExternalStorageDirectory(), name + \".jpg\");\n // if (photo.exists()) photo.delete();\n }\n\n @Override\n public void onCancelled(Context context, UploadInfo uploadInfo) {\n // your code here\n }\n }).startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Log.i(TAG, exc.getMessage());\n }\n }", "@PostMapping(\"/upload-files\")\n @Timed\n public ResponseEntity<UploadFilesDTO> createUploadFiles(@Valid @RequestBody UploadFilesDTO uploadFilesDTO) throws URISyntaxException {\n log.debug(\"REST request to save UploadFiles : {}\", uploadFilesDTO);\n if (uploadFilesDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new uploadFiles cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n UploadFilesDTO result = uploadFilesService.save(uploadFilesDTO);\n return ResponseEntity.created(new URI(\"/api/upload-files/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "Path fileToUpload();", "@Override\n public void onFailure(int code, String msg) {\n Log.i(\"Allen\", \"上传文件失败:\" + msg + \" ImgURL=\" + ImgURL);\n mDialog.dismiss();\n ToastUtils.toastFail(RegisterActivity.this, \"上传文件失败\" + msg);\n\n }", "public interface ApiService {\n String BASE_URL = \"http://robika.ir/ultitled/practice/sujeyab/test_multi_upload/\";\n\n @Multipart\n @POST(\"upload.php\")\n Call<ResponseBody> uploadMultiple(\n @Part(\"id_ferestande\") RequestBody id_ferestande,\n @Part(\"onvan\") RequestBody onvan,\n @Part(\"mozo\") RequestBody mozo,\n @Part(\"tozihat\") RequestBody tozihat,\n @Part(\"type\") RequestBody type,\n @Part(\"shenase_rahgiri\") RequestBody shenase_rahgiri,\n @Part(\"id_farakhan\") RequestBody id_farakhan,\n @Part(\"size\") RequestBody size,\n @Part List<MultipartBody.Part> files);\n}", "@PreAuthorize(\"hasAuthority('SECRETARY')\")\n @PostMapping(\"/document/upload\")\n public ResponseEntity<Response> uploadSecretaryDocument(@RequestPart(value = \"file\") MultipartFile file,\n @RequestParam(value = \"name\") String name,\n @RequestParam(value = \"description\") String description,\n @RequestParam(value = \"secretaryId\") Long secretaryId,\n @RequestParam(value = \"endDateOfUpload\") String endDateOfUpload,\n @RequestParam(value = \"learningType\") String learningType,\n @RequestParam(value = \"universityStudy\") String universityStudy,\n @RequestParam(value = \"domain\") String domain,\n @RequestParam(value = \"studyProgram\") String studyProgram,\n @RequestParam(value = \"studyYear\") String studyYear) throws FileAlreadyExistsException {\n return ResponseEntity.ok(secretaryService.uploadSecretaryDocument(file, SecretaryDocumentModel.builder()\n .endDateOfUpload(LocalDateTime.parse(endDateOfUpload, DateTimeFormatter.ISO_DATE_TIME))\n .name(name)\n .secretaryId(secretaryId)\n .description(description)\n .learningType(learningType)\n .universityStudy(universityStudy)\n .domain(domain)\n .studyProgram(studyProgram)\n .studyYear(studyYear)\n .build()));\n }", "@POST\n @Path(\"{id}/coverupload\")\n @Consumes(MediaType.MULTIPART_FORM_DATA)\n public Response uploadAttach(@PathParam(\"id\") Integer id, MultipartFormDataInput newcover) {\n Map<String, List<InputPart>> uploadForm = newcover.getFormDataMap();\n // Get file data to save\n List<InputPart> inputParts = uploadForm.get(\"file\");\n String filename = null;\n for (InputPart inputPart : inputParts) {\n // convert the uploaded file to inputstream and write it to disk\n InputStream inputStream = null;\n OutputStream out = null;\n try {\n inputStream = inputPart.getBody(InputStream.class, null);\n List<String> contDisp = inputPart.getHeaders().get(\"Content-Disposition\");\n for (String cd : contDisp) {\n if (cd.contains(\"filename\")) {\n filename = \"cover.jpg\";\n LOGGER.info(\"FILENAME : \" + filename);\n }\n }\n String path = conf.getMovieFS() + id + \"/\";\n File pathtest = new File(path);\n if (!pathtest.exists()) {\n if (!pathtest.mkdirs()) {\n LOGGER.error(\"While saving cover : \"\n + \"unable to create repository tmp dir => \" + path);\n }\n }\n File up = new File(path + filename);\n if (!up.createNewFile()) {\n \tif (up.exists()) {\n \t\tup.delete();\n \t\tif (!up.createNewFile()) {\n LOGGER.error(\"While saving cover : \" + \"unable to overwrite existing file => \"\n + up.getAbsolutePath());\n \t\t}\n \t} else {\n LOGGER.error(\"While saving cover : \" + \"unable to create new file => \"\n + up.getAbsolutePath());\n \t}\n }\n out = new FileOutputStream(up);\n\n int read = 0;\n byte[] bytes = new byte[2048];\n while ((read = inputStream.read(bytes)) != -1) {\n out.write(bytes, 0, read);\n }\n inputStream.close();\n out.flush();\n out.close();\n } catch (IOException e) {\n LOGGER.error(\"While saving cover : \", e);\n return Response.ok(new JsonSimpleResponse(false), MediaType.APPLICATION_JSON).build();\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n LOGGER.error(\"While saving cover - closing inputstream : \", e);\n }\n }\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) {\n LOGGER.error(\"While saving cover - closing outputstream : \", e);\n }\n }\n }\n }\n return Response.ok(new JsonSimpleResponse(true), MediaType.APPLICATION_JSON).build();\n }", "public int uploadFile(String sourceFileUri) {\n String fileName = sourceFileUri;\n\n HttpURLConnection conn = null;\n DataOutputStream dos = null;\n\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File sourceFile = new File(sourceFileUri);\n\n if (!sourceFile.isFile()) {\n Log.e(\"uploadFile\", \"Source File not exist :\"\n +uploadFilePath);\n return 0;\n }\n else\n {\n try {\n // open a URL connection to the Servlet\n FileInputStream fileInputStream = new FileInputStream(sourceFile);\n URL url = new URL(upLoadServerUri);\n\n ///\n fileName = fileName.substring(fileName.lastIndexOf(\"/\") +1);\n ///\n\n // Open a HTTP connection to the URL\n conn = (HttpURLConnection) url.openConnection();\n conn.setDoInput(true); // Allow Inputs\n conn.setDoOutput(true); // Allow Outputs\n conn.setUseCaches(false); // Don't use a Cached Copy\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n conn.setRequestProperty(\"uploaded_file\", fileName);\n\n dos = new DataOutputStream(conn.getOutputStream());\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + fileName + \"\\\"\" + lineEnd);\n dos.writeBytes(lineEnd);\n\n // create a buffer of maximum size\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n buffer = new byte[bufferSize];\n\n // read file and write it into form...\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n while (bytesRead > 0) {\n dos.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n // send multipart form data necesssary after file data...\n dos.writeBytes(lineEnd);\n dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n // Responses from the server (code and message)\n serverResponseCode = conn.getResponseCode();\n String serverResponseMessage = conn.getResponseMessage();\n\n Log.i(\"uploadFile\", \"HTTP Response is : \"\n + serverResponseMessage + \": \" + serverResponseCode);\n\n if(serverResponseCode == 200){\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"File Upload Complete.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n });\n }\n\n //close the streams //\n fileInputStream.close();\n dos.flush();\n dos.close();\n\n } catch (MalformedURLException ex) {\n ex.printStackTrace();\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"MalformedURLException\",\n Toast.LENGTH_SHORT).show();\n }\n });\n\n Log.e(\"Upload file to server\", \"error: \" + ex.getMessage(), ex);\n } catch (Exception e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"Got Exception : see logcat \", Toast.LENGTH_SHORT).show();\n }\n });\n Log.e(\"Upload file Exception\", \"Exception : \" + e.getMessage(), e);\n }\n return serverResponseCode;\n } // End else block\n }", "@PostMapping(\"/upload\")\n\tpublic ResponseEntity<String> upload(@RequestParam(\"doc\") MultipartFile file){\n\t\tFile storedFile = storageService.store(file);\n\t\tif(storedFile == null) {\n\t\t\treturn new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t\tString filename = storedFile.getName();\n\t\t\t\t\n\t\treturn new ResponseEntity<>(filename, HttpStatus.OK);\n\t}", "@PostMapping(\"/upload-file\")\n\tpublic ResponseEntity<String> uploadFile(@RequestParam(\"image\")MultipartFile file) throws IOException{\n\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif(file.isEmpty()) {\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"file can't be empty\");\n\t\t\t}\n\t\t\tif(!file.getContentType().equals(\"image/png\")) {\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"only PNG type content are alowed\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//now file upload code\n\t\tboolean f = fileUploadHelper.uploadFile(file);\n\t\t\n\t\tif(f) {\n\t\t\treturn ResponseEntity.ok(\"file is successfully uploaded\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(\"something went worng\");\n\t}", "@Multipart\n @POST()\n Call<Result> uploadImage(@Part MultipartBody.Part file, @Url String medialUploadUrl, @PartMap() Map<String, RequestBody> partMap);", "void uploadingFile(String path);", "private void fileUpload(HttpServletRequest request, HttpServletResponse response) {\n\t \ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * String appPath = request.getServletContext().getRealPath(\"\");\r\n\t\t\t\t\t * System.out.println(appPath); String savePath = appPath + File.separator +\r\n\t\t\t\t\t * SAVE_DIR; System.out.println(savePath);\r\n\t\t\t\t\t */\r\n\t \t\t\r\n\t \t\t//String appPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \t\tSystem.out.println(appPath);\r\n\t \t\t String savePath = appPath + \"//\" +SAVE_DIR; \r\n\t \t\t System.out.println(savePath);\r\n\t\t\t\t\t\tCollection<Part>cp= request.getParts();\r\n\t \t String fileName = up.fileUpload(cp,appPath);\r\n\t \t System.out.println(fileName);\r\n\t \t \r\n\t \t request.setAttribute(\"message\", \"The file \"+fileName+\" has been uploaded successfully!\");\r\n\t \t RequestDispatcher dispatcher = request.getRequestDispatcher(\"success.jsp\");\r\n\t \t dispatcher.forward(request, response);\r\n\t}catch(Exception ex) {\r\n System.out.println(ex);\r\n }\r\n\t }", "public interface FileService {\n\n //文件上传\n ResJsonTemplate insertFile(MultipartFile file, String path, String username);\n\n}", "@Override\n public void onError(int statuscode, String errormsg) {\n Log.i(\"bmob\", \"文件上传失败:\" + errormsg);\n Toast.makeText(context, \"头像上传失败\" + errormsg, Toast.LENGTH_SHORT).show();\n uploadListener.onError(statuscode,errormsg);\n }", "@Override\n public void onError(int statuscode, String errormsg) {\n Log.i(\"bmob\", \"文件上传失败:\" + errormsg);\n Toast.makeText(context, \"头像上传失败\" + errormsg, Toast.LENGTH_SHORT).show();\n uploadListener.onError(statuscode,errormsg);\n }", "public interface IFileService {\n ResponseJson uploadFile(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson uploadFiles(MultipartHttpServletRequest request) throws IOException;\n\n ResponseJson fileDownload(HttpServletRequest request, HttpServletResponse response,int fid) throws UnsupportedEncodingException;\n\n ResponseJson fileDelete(FileModel fileModel, HttpServletRequest request);\n\n ResponseJson findFileList(int uid);\n\n ResponseJson excelUpload(MultipartHttpServletRequest request,String type);\n\n ResponseJson findFileListByPage(int uid, PageJson pageJson);\n\n EUditorJson ueditorUploadImage(MultipartHttpServletRequest request) throws IOException;\n}", "public String uploadFile(String filename, InputStream is)\n {\n String url=null;\n try {\n \n FileMetadata metadata = client.files().uploadBuilder(\"/\"+filename).uploadAndFinish(is);\n SharedLinkMetadata sharedLinkMetadata = client.sharing().createSharedLinkWithSettings(\"/\"+filename);\n url=sharedLinkMetadata.getUrl();\n url=url.substring(0, url.length()-1)+\"1\";\n \n }\n// catch (FileNotFoundException fne)\n// {\n// System.out.println(\"96 : FileNotFoundException Caused By \"+fne.getLocalizedMessage());\n// }\n catch (IOException ioe)\n {\n System.out.println(\"100 : IOException Caused By \"+ioe.getLocalizedMessage());\n }\n// catch (DbxException dbxe)\n// {\n// \n// System.out.println(\"105 : DbxException Caused By \"+dbxe.getLocalizedMessage());\n// }\n catch(DbxException e)\n {\n System.out.println(\"--++--------+++++\");\n session = sfobj.openSession();\n tx = session.beginTransaction();\n\n System.out.println(\"line no= \"+e.getStackTrace()[2].getLineNumber());\n System.out.println(\"mathod name= \"+e.getStackTrace()[2].getMethodName());\n System.out.println(\"type= \"+e.toString());\n String nameofCurrMethod = new Throwable() \n .getStackTrace()[2] \n .getMethodName(); \n System.out.println(\"----method\"+nameofCurrMethod);\n // System.out.println(ea.getStackTrace().toString());\n System.out.println(\"class name= \"+e.getStackTrace()[2].getFileName());\n Errors ee=new Errors();\n ee.setGymid(gymid);\n ee.setError_name(\"line no= \"+e.getStackTrace()[2].getLineNumber()+\"type= \"+e.toString());\n ee.setMethod_name(e.getStackTrace()[2].getMethodName());\n session.save(ee);\n tx.commit();\n session.close();\n }\n return url;\n }", "@RequestMapping(value = {\"/edit-user-{id}\"}, method = RequestMethod.POST)\r\n public String updateUser(@Valid FileBucket fileBucket, BindingResult result,\r\n ModelMap model, @PathVariable String id, HttpServletRequest req) {\r\n\r\n MultipartFile[] files = fileBucket.getFiles();\r\n String originalImgPath = \"\";\r\n String resizedImgPath = \"\";\r\n //String serverFileName = \"\";\r\n String photoName = \"\";\r\n String itemViewName = \"\";\r\n String imgLocation = \"\";\r\n int width = 580;\r\n int height = 450;\r\n boolean saved = false;\r\n String serverFileName = \"\";\r\n\r\n FileBucket fb = new FileBucket();\r\n User user = new User();\r\n if (result.hasErrors()) {\r\n return \"registration\";\r\n }\r\n if (files != null && files.length > 0) {\r\n for (int i = 0; i < files.length; i++) {\r\n try {\r\n\r\n byte[] bytes = null;\r\n // Creating the directory to store file\r\n String rootPath = System.getProperty(\"catalina.home\");\r\n File dir = new File(rootPath + File.separator + \"tmpFiles\");\r\n if (!dir.exists()) {\r\n dir.mkdirs();\r\n }\r\n\r\n FilenameUtils fileUTIL = new FilenameUtils();\r\n\r\n String path = req.getServletContext().getRealPath(\"/image\");\r\n //String ext = fileUTIL.getExtension(file.getOriginalFilename());\r\n //String baseName = fileUTIL.getBaseName(file.getOriginalFilename());\r\n\r\n imgLocation = dir + File.separator;\r\n // get files name in the array\r\n if (i == 0) {\r\n photoName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + photoName;\r\n System.out.println(\"photoName:: \" + photoName);\r\n } else if (i == 1) {\r\n itemViewName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + itemViewName;\r\n System.out.println(\"itemViewName:: \" + itemViewName);\r\n }\r\n\r\n System.out.println(\"serverFileName :: \" + serverFileName);\r\n\r\n // resize image\r\n //utility.resize(originalImgPath, resizedImgPath, width, height);\r\n //create the file on server\r\n File serverFile = new File(serverFileName);\r\n BufferedOutputStream stream = new BufferedOutputStream(\r\n new FileOutputStream(serverFile));\r\n stream.write(bytes);\r\n stream.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n System.out.println(\"fileBucket.getPhoneNumber() ::\" + fileBucket.getPhoneNumber());\r\n user.setId(fileBucket.getId());\r\n user.setFirstName(fileBucket.getFirstName());\r\n user.setLastName(fileBucket.getLastName());\r\n user.setPhoneNumber(fileBucket.getPhoneNumber());\r\n user.setItemView(fileBucket.getItemView());\r\n user.setAddress(fileBucket.getAddress());\r\n user.setPassportPhotograph(photoName);\r\n user.setImgLocation(imgLocation);\r\n user.setImgName(photoName);\r\n user.setImgItemName(itemViewName);\r\n\r\n saved = userService.updateUser(user);\r\n\r\n } else {\r\n System.out.println(\"File is empty / No image uploaded\");\r\n }\r\n\r\n //model.addAttribute(\"user\", user);\r\n model.addAttribute(\"user\", fb);\r\n // model.addAttribute(\"success\", \"User \" + user.getFirstName() + \" \" + user.getLastName() + \" saved successfully\");\r\n // model.addAttribute(\"saved\", saved);\r\n\r\n //return \"adduser\";\r\n \r\n return \"redirect:/register\";\r\n }", "@RequestMapping(value = \"/file\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic FileUploadStatusDTO upload(@RequestParam(name = \"file\")MultipartFile file) throws JsonProcessingException, IOException, InterruptedException, ExecutionException {\n\t\treturn fileUploadService.importProductsFromFileInParallelWithButch(file.getInputStream());\r\n\t}", "@PreAuthorize(\"hasAnyRole('ROLE_ADMIN','ROLE_CONTRIBUTOR')\")\r\n\t@CrossOrigin(origins=\"http://localhost:4200\")\r\n\t@RequestMapping(value=\"/image/upload/{idMangas:[0-9]+}\", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\r\n\t@ResponseBody\r\n\tpublic Manga upload(@RequestParam(\"file\") MultipartFile file, @PathVariable(\"idMangas\") int idMangas){\n\t\tlog.info(\"File name: \" + file.getOriginalFilename());\r\n\t\tlog.info(\"File name: \" + file.getContentType());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tImage img = new Image(0, file.getOriginalFilename(), file.getSize(), file.getContentType(), \"\", \"\");\r\n\t\t\timageDao.saveImageFile(img, file.getInputStream());\r\n\t\t\t// on save ensuite en bdd l image\r\n\t\t\timageDao.save(img);\r\n\t\t\t// puis on lie limage a mongas recup ds lurl\r\n\t\t\tManga m = mangasDao.findOne(idMangas);\r\n\t\t\tm.setImg(img);\r\n\t\t\treturn mangasDao.save(m);\r\n\t\t\t// return m;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new HttpClientErrorException(HttpStatus.INTERNAL_SERVER_ERROR, \"erreur lors de la sauvegarde\");\r\n\t\t}\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // detecta si es una carga multimedia\n if (!ServletFileUpload.isMultipartContent(request)) {\n // detente si no\n PrintWriter writer = response.getWriter();\n writer.println (\"Error: el formulario debe contener enctype = multipart / form-data\");\n writer.flush();\n return;\n }\n\n // Configurar parámetros de carga\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // Establecer los archivos temporales de umbral de memoria se generarán y almacenarán en el directorio temporal\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // Establecer el directorio de almacenamiento temporal\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n\n // Establecer el valor máximo de carga de archivos\n upload.setFileSizeMax(MAX_FILE_SIZE);\n\n // Establecer el valor máximo de solicitud (incluidos los datos de archivo y formulario)\n upload.setSizeMax(MAX_REQUEST_SIZE);\n\n // procesamiento chino\n upload.setHeaderEncoding(\"UTF-8\");\n\n // Construye una ruta temporal para almacenar archivos cargados\n // Esta ruta es relativa al directorio actual de la aplicación\n String uploadPath = request.getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n\n // Crear si el directorio no existe\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n\n try {\n // Analiza el contenido solicitado para extraer los datos del archivo\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n\n if (formItems != null && formItems.size() > 0) {\n // iterar sobre los datos del formulario\n for (FileItem item : formItems) {\n // manejar campos que no están en el formulario\n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n File storeFile = new File(filePath);\n // Salida de la ruta de carga del archivo en la consola\n System.out.println(filePath);\n // guardar archivo en el disco duro\n item.write(storeFile);\n request.setAttribute (\"mensaje\", \"¡Archivo cargado correctamente!\");\n hilo = new HiloCargadeDatos(storeFile);\n hilo.start();\n }\n }\n }\n } catch (Exception ex) {\n request.setAttribute (\"mensaje\", \"Mensaje de error:\" + ex.getMessage ());\n }\n\n // Nos redirigimos a la página para que nos muestre los errores\n request.getServletContext().getRequestDispatcher(\"/subir.jsp\").forward(request, response);\n }", "@RequestMapping(value = {\"/register\"}, method = RequestMethod.POST)\r\n public String registerUser(@Valid FileBucket fileBucket, BindingResult result,\r\n ModelMap model, HttpServletRequest req) {\r\n\r\n MultipartFile[] files = fileBucket.getFiles();\r\n String originalImgPath = \"\";\r\n String resizedImgPath = \"\";\r\n //String serverFileName = \"\";\r\n String photoName = \"\";\r\n String itemViewName = \"\";\r\n String imgLocation = \"\";\r\n int width = 580;\r\n int height = 450;\r\n boolean saved = false;\r\n String serverFileName = \"\";\r\n\r\n FileBucket fb = new FileBucket();\r\n User user = new User();\r\n if (result.hasErrors()) {\r\n return \"registration\";\r\n }\r\n if (files != null && files.length > 0) {\r\n for (int i = 0; i < files.length; i++) {\r\n try {\r\n\r\n byte[] bytes = null;\r\n // Creating the directory to store file\r\n String rootPath = System.getProperty(\"catalina.home\");\r\n File dir = new File(rootPath + File.separator + \"tmpFiles\");\r\n if (!dir.exists()) {\r\n dir.mkdirs();\r\n }\r\n\r\n FilenameUtils fileUTIL = new FilenameUtils();\r\n\r\n String path = req.getServletContext().getRealPath(\"/image\");\r\n //String ext = fileUTIL.getExtension(file.getOriginalFilename());\r\n //String baseName = fileUTIL.getBaseName(file.getOriginalFilename());\r\n\r\n imgLocation = dir + File.separator;\r\n // get files name in the array\r\n if (i == 0) {\r\n photoName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + photoName;\r\n System.out.println(\"photoName:: \" + photoName);\r\n } else if (i == 1) {\r\n itemViewName = files[i].getOriginalFilename();\r\n bytes = files[i].getBytes();\r\n serverFileName = imgLocation + itemViewName;\r\n System.out.println(\"itemViewName:: \" + itemViewName);\r\n }\r\n\r\n System.out.println(\"serverFileName :: \" + serverFileName);\r\n\r\n // resize image\r\n //utility.resize(originalImgPath, resizedImgPath, width, height);\r\n //create the file on server\r\n File serverFile = new File(serverFileName);\r\n BufferedOutputStream stream = new BufferedOutputStream(\r\n new FileOutputStream(serverFile));\r\n stream.write(bytes);\r\n stream.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n //System.out.println(\"bytes ::\" + bytes);\r\n user.setFirstName(fileBucket.getFirstName());\r\n user.setLastName(fileBucket.getLastName());\r\n user.setPhoneNumber(fileBucket.getPhoneNumber());\r\n user.setItemView(fileBucket.getItemView());\r\n user.setAddress(fileBucket.getAddress());\r\n user.setPassportPhotograph(photoName);\r\n user.setImgLocation(imgLocation);\r\n user.setImgName(photoName);\r\n user.setImgItemName(itemViewName);\r\n\r\n saved = userService.saveUser(user);\r\n\r\n } else {\r\n System.out.println(\"File is empty / No image uploaded\");\r\n }\r\n\r\n //model.addAttribute(\"user\", user);\r\n model.addAttribute(\"user\", fb);\r\n //model.addAttribute(\"success\", \"User \" + user.getFirstName() + \" \" + user.getLastName() + \" saved successfully\");\r\n //model.addAttribute(\"saved\", saved);\r\n\r\n //return \"adduser\";\r\n //return \"redirect:/adduser\";\r\n return \"redirect:/register\";\r\n }", "public void upload( Reporte reporte, File file) throws IOException{\n RequestBody formBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"file\", reporte.id+\"_\"+file.getName(), RequestBody.create(MediaType.parse(\"image/jpeg\"), file))\n .build();\n Request request = new Request.Builder()\n .url(BASE_URL+\"/upload\")\n .post(formBody)\n .build();\n\n client.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e) {\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n System.out.println(response.body().string());\n }\n });\n }", "public static JSONObject userProfileUpdateResponse(String token, ArrayList<File> dineInPics, ArrayList<File> kitchenPics, String profilePic, String jsonObjectAsString, String jsonobjectPicsDeletion) {\n try {\n MultipartBody.Builder multipartBuilder = new MultipartBody.Builder();\n // Kitchen Photos\n if (kitchenPics.size() > 0) {\n for (int i = 0; i < kitchenPics.size(); i++) {\n Log.d(\"TAG\", \"Kitchen File...::::\" + kitchenPics.get(i).getPath() + \" : \" + new File(kitchenPics.get(i).getPath()).exists());\n String filename = UtilityClass.getTimeINMills() + \"\";\n multipartBuilder.addFormDataPart(\"kitchen_pics\", filename + \".jpg\", RequestBody.create(MediaType.parse(\"image/png\"), kitchenPics.get(i)));\n }\n } else {\n multipartBuilder.addFormDataPart(\"kitchen_pics\", \"\");\n }\n // Dine In Photos\n if (dineInPics.size() > 0) {\n for (int i = 0; i < dineInPics.size(); i++) {\n Log.d(\"TAG\", \"Dine_in File...::::\" + dineInPics.get(i).getPath() + \" : \" + new File(dineInPics.get(i).getPath()).exists());\n String filename = UtilityClass.getTimeINMills() + \"\";\n multipartBuilder.addFormDataPart(\"dinein_pics\", filename + \".jpg\", RequestBody.create(MediaType.parse(\"image/png\"), dineInPics.get(i)));\n }\n } else {\n multipartBuilder.addFormDataPart(\"dinein_pics\", \"\");\n }\n\n // Profile Picture\n if (profilePic != null && profilePic.length() > 0) {\n File file_fssai = new File(profilePic);\n Log.d(\"TAG\", \"File profilePic...::::\" + file_fssai.getPath() + \" : \" + new File(file_fssai.getPath()).exists());\n multipartBuilder.addFormDataPart(\"profile_pic\", \"profilePic.jpg\", RequestBody.create(MediaType.parse(\"image/png\"), file_fssai));\n } else {\n multipartBuilder.addFormDataPart(\"profile_pic\", \"\");\n }\n multipartBuilder.setType(MultipartBody.FORM).addFormDataPart(\"profile_details\", jsonObjectAsString).addFormDataPart(\"deleted_pics_urls\", jsonobjectPicsDeletion);\n\n /**\n * OKHTTP3\n */\n RequestBody requestBody = multipartBuilder\n .build();\n Request request = new Request.Builder().addHeader(\"Authorization\", token).addHeader(\"access_token\", RestTags.PUBLIC_KEY).addHeader(\"app_type\", RestTags.S_FLAG)\n .url(RestUrls.UPDATE_PROFILE)\n .post(requestBody)\n .build();\n\n // OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n String res = response.body().string();\n Log.e(\"TAG\", \"Error: \" + res);\n return new JSONObject(res);\n\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return null;\n }", "public static HttpResponse uploadFileAliyun(File file, String aliyunAddress, String pathtofile, String contentType)\n {\n // String authorization = generateOSSAuthHeader(ACCESSKEY_ID, accessKeySecret, \"POST\", \"/xeduo?uploads\");\n String date = getDateGMT();\n Auth auth = new Auth();\n HttpRequest request = HttpUtil.createPost(aliyunAddress);\n // String policy;\n String policy = \"{\\\"expiration\\\": \\\"2120-01-01T12:00:00.000Z\\\",\"\n + \"\\\"conditions\\\": [{\\\"bucket\\\":\\\"xeduo\\\"}]}\";\n String encodePolicy = new String(Base64.getEncoder().encode(policy.getBytes()));\n request.header(\"Date\",date);\n //add form\n request.form(\"key\", pathtofile+file.getName());\n request.form(\"OSSAccessKeyId\", auth.getId());\n request.form(\"Policy\", encodePolicy);//needs to be encoded as well.\n request.form(\"Signature\", generateOSSSignature(auth.getSecret(), encodePolicy));\n request.form(\"Content-Disposition\",\"attachment; filename=\"+file.getName());\n request.form(\"file\", file);\n request.form(\"x-oss-meta-uuid\",UUID.fastUUID());\n request.form(\"submit\",\"Upload to OSS\");\n if(!StrUtil.isBlank(contentType))\n {\n request.form(\"Content-Type\",contentType);\n }\n HttpResponse response = request.execute();\n System.out.println(request);\n System.out.println(response);\n return response;\n }", "int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "@CrossOrigin\r\n\t@RequestMapping(value = \"/uploadFile/{username}\", method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\tpublic ResponseEntity<?> uploadFile(@RequestParam(\"uploadfile\") MultipartFile uploadfile,\r\n\t\t\t@PathVariable String username) throws IOException, Exception {\r\n\r\n\t\tInputStream inputStream = uploadfile.getInputStream();\r\n\t\tFile newFile = null;\r\n\t\tFile ipFile = null, pfFile = null, psFile = null, ffFile = null;\r\n\r\n\t\tDate start = new Date();\r\n\t\tSystem.out.println(start);\r\n\t\tlong startTime = System.nanoTime();\r\n\t\tString url = \"jdbc:postgresql://hanno.db.elephantsql.com/vnepifvr\";\r\n\t\tProperties props = new Properties();\r\n\t\tprops.setProperty(\"user\", \"vnepifvr\");\r\n\t\tprops.setProperty(\"password\", \"n5CEh6y0w-zoORD2Hw1X_WpCT2yvy4wR\");\r\n\t\t// props.setProperty(\"ssl\",\"true\");\r\n\t\tConnection conn;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"org.postgresql.Driver\");\r\n\t\t\tconn = DriverManager.getConnection(url, props);\r\n\t\t\tSystem.out.println(\"connected\");\r\n\t\t\tUploadController copy = new UploadController();\r\n\t\t\tPgConnection copyOperationConnection = conn.unwrap(PgConnection.class);\r\n\t\t\t// System.out.println(\"converted\");\r\n\t\t\ttry {\r\n\r\n\t\t\t\tZipInputStream zis = new ZipInputStream(inputStream);\r\n\t\t\t\tZipEntry nextFile = zis.getNextEntry();\r\n\t\t\t\tbyte[] buffer = new byte[1024];\r\n\r\n\t\t\t\twhile (nextFile != null) {\r\n\t\t\t\t\tString fileName = nextFile.getName();\r\n\t\t\t\t\tnewFile = new File(\".\" + File.separator + fileName);\r\n\t\t\t\t\tSystem.out.println(\"Unzipping to \" + newFile.getAbsolutePath());\r\n\t\t\t\t\tif (newFile.getName().contains(\"Inputfile\")) {\r\n\t\t\t\t\t\tipFile = newFile;\r\n\t\t\t\t\t} else if (newFile.getName().contains(\"PastForecast\")) {\r\n\t\t\t\t\t\tpfFile = newFile;\r\n\t\t\t\t\t} else if (newFile.getName().contains(\"PastSales\")) {\r\n\t\t\t\t\t\tpsFile = newFile;\r\n\t\t\t\t\t} else if (newFile.getName().contains(\"FutureForecast\")) {\r\n\t\t\t\t\t\tffFile = newFile;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// create directories for sub directories in zip\r\n\t\t\t\t\t// new File(newFile.getParent()).mkdirs();\r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(newFile);\r\n\t\t\t\t\tint len;\r\n\t\t\t\t\twhile ((len = zis.read(buffer)) > 0) {\r\n\t\t\t\t\t\tfos.write(buffer, 0, len);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t\t// close this ZipEntry\r\n\t\t\t\t\tzis.closeEntry();\r\n\t\t\t\t\tnextFile = zis.getNextEntry();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tzis.closeEntry();\r\n\t\t\t\tzis.close();\r\n\t\t\t\tinputStream.close();\r\n\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t// FileInputStream fis2 = new FileInputStream(new File(newFile.ge))\r\n\t\t\tcopy.readFirstSheet(copyOperationConnection, startTime, new FileInputStream(ipFile));\r\n\t\t\tcopy.readSecondSheet(copyOperationConnection, startTime, new FileInputStream(pfFile));\r\n\t\t\tcopy.readThirdSheet(copyOperationConnection, startTime, new FileInputStream(psFile));\r\n\t\t\tcopy.readFourthSheet(copyOperationConnection, startTime, new FileInputStream(ffFile));\r\n\t\t\t/*\r\n\t\t\t * copy.readFirstSheet(copyOperationConnection,startTime, new\r\n\t\t\t * FileInputStream(ipFile));\r\n\t\t\t * copy.readSecondSheet(copyOperationConnection,startTime);\r\n\t\t\t * copy.readThirdSheet(copyOperationConnection,startTime);\r\n\t\t\t * copy.readFourthSheet(copyOperationConnection,startTime);\r\n\t\t\t */\r\n\t\t\tUploadController.calculateData(conn, copyOperationConnection);\r\n\t\t\tlong end = System.nanoTime();\r\n\t\t\tSystem.out.println(\"Overall took \" + (end - startTime) + \" ns\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\r\n\r\n\t}", "@View(\"upload\")\n @Get\n public HttpResponse upload() {\n return HttpResponse.ok();\n }", "int uploadFeature(File file, String project) throws IOException, SQLException;", "@ApiIgnore\n @PostMapping(value = \"/upload\")\n public Object batchUpload(@RequestParam(\"files\") MultipartFile[] files) {\n\n ResultBody resultBody = new ResultBody();\n resultBody.setCode(\"0\");\n\n String uploadedFileName = Arrays.stream(files).map(MultipartFile::getOriginalFilename)\n .filter(x -> !StringUtils.isEmpty(x))\n .collect(Collectors.joining(\"|\"));\n if (StringUtils.isEmpty(uploadedFileName)) {\n resultBody.setMessage(\"上传文件为空!\");\n }\n try {\n saveUploadedFiles(Arrays.asList(files));\n resultBody.setMessage(\"调用成功!\");\n Map<String, Object> map = new HashMap<>();\n map.put(\"filename\", uploadedFileName);\n resultBody.setResult(map);\n\n } catch (IOException e) {\n e.printStackTrace();\n resultBody.setCode(\"500\");\n resultBody.setMessage(e.getMessage());\n }\n return resultBody;\n }", "IbeisImage uploadImage(File image) throws UnsupportedImageFileTypeException, IOException, MalformedHttpRequestException,\n UnsuccessfulHttpRequestException;", "@RequestMapping(value = \"/upload\", method = RequestMethod.POST)\n @ResponseBody\n public int upload(@RequestParam(\"file\") CommonsMultipartFile file,\n @RequestParam(\"pi\") String proId,\n HttpSession session) {\n if (file.getSize() == 0) return 0;\n if (proId.length() != 11) return 0;\n String engId = ((User) session.getAttribute(UserController.USER)).getUserId();\n return engDocService.upload(file, proId, engId);\n }", "int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "@RequestMapping(value = \"/dlFileTypes\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<DlFileType> createDlFileType(@RequestBody DlFileType dlFileType) throws URISyntaxException, Exception {\n log.debug(\"REST request to save DlFileType : {}\", dlFileType);\n if (dlFileType.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new dlFileType cannot already have an ID\").body(null);\n }\n\n String filename = \"dlFileType\";\n\n String extension = \".png\";\n\n String fileContent = dlFileType.getFileImgContentType();\n\n\n if (dlFileType.getFileImgContentType() != null && dlFileType.getFileImgContentType().equals(\"application/pdf\")) {\n dlFileType.setFileImgContentType(dlFileType.getFileImgName() + \".pdf\");\n\n extension = \".pdf\";\n } else {\n extension = \".png\";\n }\n\n\n if (dlFileType.getFileImg() != null) {\n dlFileType.setFileImgName(AttachmentUtil.saveDlAttachment(filepath, null, extension, dlFileType.getFileImg()));\n\n }\n\n\n String userName = SecurityUtils.getCurrentUserLogin();\n\n if (userName == \"anonymousUser\") {\n dlFileType.setFileImg(null);\n\n System.out.println(\"====================================\" + userName);\n\n DlFileType result = dlFileTypeRepository.save(dlFileType);\n dlFileTypeSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/dlFileTypes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"dlFileType\", result.getId().toString()))\n .body(result);\n } else {\n\n dlFileType.setFileImg(null);\n\n DlFileType result = dlFileTypeRepository.save(dlFileType);\n dlFileTypeSearchRepository.save(result);\n\n\n return ResponseEntity.created(new URI(\"/api/dlFileTypes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"dlFileType\", result.getId().toString()))\n .body(result);\n }\n\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String codeLabWorker1 = \"\";\n if (!ServletFileUpload.isMultipartContent(request)) {\n\t\t PrintWriter writer = response.getWriter();\n\t\t writer.println(\"Error: enctype=multipart/form-data\");\n\t\t writer.flush();\n\t\t return;\n\t\t}\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n \n ServletFileUpload upload = new ServletFileUpload(factory); \n upload.setFileSizeMax(MAX_FILE_SIZE);\n upload.setSizeMax(MAX_REQUEST_SIZE);\n String uploadPath = getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n \n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n try {\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n if (formItems != null && formItems.size() > 0) {\n File storeFile = null;\n String codeResult = \"\";\n String codeLabWorker = \"\"; \n String dateToday = getDateToday();\n String time = getTime();\n for (FileItem item : formItems) { \n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n storeFile = new File(filePath);\n System.out.println(filePath);\n item.write(storeFile); \n }else{\n String fieldName = item.getFieldName();\n String fieldValue = item.getString();\n if (fieldName.equals(\"codeLabWorker\")) {\n codeLabWorker = fieldValue;\n codeLabWorker1=codeLabWorker;\n }else if (fieldName.equals(\"codeResult\")) {\n codeResult = fieldValue;\n }\n } \n }\n //Enviar a guardar\n LabWorkerDB labDB = new LabWorkerDB();\n labDB.updateResult(codeLabWorker, storeFile, dateToday, time, codeResult);\n JOptionPane.showMessageDialog(null,\"Se guardo con exito\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null,ex);\n } \n request.setAttribute(\"username\", codeLabWorker1);\n \n request.getRequestDispatcher(\"/labWorkerGUI/principallabWorker.jsp\").forward(request, response);\n }", "public void upload() throws ServicioException {\n if (justificacionHelper.getArchivoCargado() != null) {\n if (justificacionHelper.getArchivoCargado().getContentType().equals(\"application/pdf\")) {\n ParametroGlobal buscarParametroGlobalPorNemonico =\n administracionServicio.buscarParametroGlobalPorNemonico(\n ParametroGlobalEnum.TAMANIO_MAXIMO_PDF.getCodigo());\n if (justificacionHelper.getArchivoCargado().getSize()\n > buscarParametroGlobalPorNemonico.getValorNumerico().longValue()) {\n mostrarMensajeEnPantalla(\"El tamaño del archivo supera los \"\n + (buscarParametroGlobalPorNemonico.getValorNumerico().longValue() / 1024) + \" MB\",\n FacesMessage.SEVERITY_WARN);\n justificacionHelper.setArchivoRequerido(Boolean.TRUE);\n justificacionHelper.setArchivoCargado(null);\n } else {\n mostrarMensajeEnPantalla(\"ec.gob.mrl.smp.justificacionReglas.archivoCargadoCorrectamente\",\n FacesMessage.SEVERITY_INFO);\n justificacionHelper.setArchivoRequerido(Boolean.FALSE);\n System.out.println(\"Archivo Cargado \" + justificacionHelper.getArchivoCargado().getFileName());\n }\n } else {\n mostrarMensajeEnPantalla(\"ec.gob.mrl.smp.justificacionReglas.archivoCargadoNoesPDF\",\n FacesMessage.SEVERITY_ERROR);\n justificacionHelper.setArchivoRequerido(Boolean.TRUE);\n justificacionHelper.setArchivoCargado(null);\n }\n\n }\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\r\n\t\tSystem.out.println(\"doPost\");\r\n\t\t\r\n\t\tint yourMaxRequestSize = 100 * 1024 * 1024; // 1M\r\n\t\tint yourMaxMemorySize = 100 * 1024;\r\n\t\t\r\n\t\t// form field 의 데이터(String)\r\n\t\tString id = \"\";\r\n\t\tString title = \"\";\r\n\t\tString content = \"\";\r\n\r\n\t\t// file data\r\n\t\tString filename = \"\";\r\n\r\n\t\t\r\n\t\tString path = req.getServletContext().getRealPath(\"/upload\");\r\n\t\t\r\n\t\t\r\n\t\t// String path = \"d:\\\\tmp\";\r\n\t\t/*\r\n\t\tSystem.out.println(path);\r\n\t\tMultipartRequest mreq = new MultipartRequest(req, path);\r\n\t\tEnumeration t = mreq.getParameterNames();\r\n\t\t*/\r\n\t\t/*\r\n\t\twhile(t.hasMoreElements()) {\r\n\t\t\tString name = (String)t.nextElement();\r\n\t\t\tString conver =new String(mreq.getParameter(name).getBytes(\"8859_1\"), \"UTF-8\");\r\n\t\t\tSystem.out.println(name + \" : \" + mreq.getParameter(name) + \" : \" + conver);\r\n\t\t}\r\n\t\t*/\r\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\r\n\t\tSystem.out.println(isMultipart);\r\n\t\tif(isMultipart){\r\n\t\t\r\n\t\t// FileItem 을 생성하는 함수\r\n\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\r\n\t\t \r\n\t\t factory.setSizeThreshold(yourMaxMemorySize);\r\n\t\t factory.setRepository(new File(path));\r\n\t\t \r\n\t\t ServletFileUpload upload = new ServletFileUpload(factory);\r\n\t\t upload.setSizeMax(yourMaxRequestSize);\r\n\t\t \r\n\t\t // list저장\r\n\t\t List<FileItem> items = null;\r\n\t\ttry {\r\n\t\t\titems = upload.parseRequest(req);\r\n\t\t} catch (FileUploadException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t Iterator<FileItem> it = items.iterator();\r\n\t\t \r\n\t\t while(it.hasNext()){\r\n\t\t \r\n\t\t FileItem item = it.next();\r\n\t\t // id, title, content\r\n\t\t if(item.isFormField()){\r\n\t\t if(item.getFieldName().equals(\"id\")){\r\n\t\t \tid = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"title\")){\r\n\t\t title = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"content\")){\r\n\t\t content = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t }\r\n\t\t // file\r\n\t\t else{\r\n\t\t if(item.getFieldName().equals(\"fileload\")){\r\n\t\t filename = processUploadFile(item, path);\r\n\t\t System.out.println(\"path:\" + path);\r\n\t\t } \r\n\t\t } \r\n\t\t }\r\n\t\t \r\n\t}\r\n\t\tiReferRoomDao dao = ReferRoomDao.getInstance();\r\n\r\n\t\tboolean isS = dao.add_ReferR(new ReferRoomDto(id, title, content, filename));\r\n\t\t\r\n\t\tresp.sendRedirect(\"ReferListCtlr\");\r\n\t}", "int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;", "@ResponseBody\n @ExceptionHandler(MaxUploadSizeExceededException.class)\n @RequestMapping(value =\"/upload\",produces = \"text/html;charset=UTF-8\")\n public String upload(@RequestParam(value=\"file\",required = false)MultipartFile file,\n HttpServletRequest request,\n HttpServletResponse response){\n// //初始化返回json字符串\n// String error=\"\";\n// boolean result=false;\n// String content=\"\";\n// String status=\"0\";\n// Map map=new HashMap();\n// ObjectMapper mapper=new ObjectMapper();\n// String name;\n// InputStream in;\n// Workbook workbook;\n try{\n long startTime=new java.util.Date().getTime();\n //检测上传的文件类型以及上传的文件是否为空\n if(file==null||!file.getContentType().equals(\"application/vnd.ms-excel\")||file.getSize()>5E7) {\n error=\"只能操作application/vnd.ms-excel类型文件或者文件过大\";\n status=1;\n throw new Exception(error);\n }\n //文件名\n name = file.getOriginalFilename();\n //文件输入流\n in=file.getInputStream();\n //根据上传的文件类型使用创建不同的工作簿对象\n if(in==null)\n return returnError();\n if(file.getContentType().equals(\"application/vnd.ms-excel\")&&name.endsWith(\".xls\")){\n workbook=new HSSFWorkbook(in);\n }else if(name.endsWith(\".xlsl\")) {\n workbook = new XSSFWorkbook(in);\n }else if(name.endsWith(\".txt\")||name.endsWith(\".csv\")){\n workbook=convertCSVorTXTtoXLS(in,\".xls\");//把txt或者csv文件类型转换成xls\n }else{\n error=\"该文件类型系统暂时还没处理\";\n return returnError();\n }\n //sheet\n sheet=workbook.getSheetAt(0);\n //rows、columns\n rows=sheet.getPhysicalNumberOfRows();\n row=sheet.getRow(0);\n columns=row.getLastCellNum();\n //schema\n schema=new ArrayList<Map>();\n if(row!=null){\n Iterator<Cell> iterator=row.cellIterator();\n while(iterator.hasNext()){\n cell=iterator.next();\n schema.add(getValue(cell));\n }\n\n }\n //data\n data =new ArrayList<List>();\n for(int i=0;i<rows;i++ ){\n List list=new ArrayList();\n row=sheet.getRow(i);\n if(row==null){\n continue;\n }\n for(int j=0;j<columns;j++){\n cell=row.getCell(j);\n list.add(getValue(cell).get(\"value\"));\n }\n data.add(list);\n }\n //封装json字符串再返回前端\n List<Map> listContainer=new ArrayList<Map>();\n Map<String,Object> mapContainer=new HashMap<String,Object>();\n mapContainer.put(\"name\",name);\n mapContainer.put(\"row\",rows);\n mapContainer.put(\"column\",columns);\n mapContainer.put(\"data\",data);\n mapContainer.put(\"schema\",schema);\n listContainer.add(mapContainer);\n status=1;\n map.put(\"result\",listContainer);\n map.put(\"error\",error);\n map.put(\"status\",status);\n content=mapper.writeValueAsString(map);\n //存储到用户临时文件夹\n storageTotemp(workbook,request,username);\n long endTime=new java.util.Date().getTime();\n System.out.println(\"sumTime:\"+(endTime-startTime));\n }catch (Exception io){\n error=\"服务器出错!\";\n io.printStackTrace();\n }\n return content;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "public static String uploadImage(final String pat,String area, String subarea, String cat ,\n String subcat, String userid, String comtext,String url) {\n Log.d(\"all_data\", \"\" + \"\\n\" + comtext + \"\\n\" + \"\\n\" );\n String res = null;\n try {\n StrictPolicy();\n File sourceFile = new File(pat);\n\n// FileBody pic = new FileBody(new File(sourceImageFile));\n if (sourceFile.exists()) {\n Log.d(\"img\", \"present\");\n// DecodeFile(sourceFile);\n } else {\n Log.d(\"img\", \"Not present\");\n }\n Log.d(\"TAG\", \"File...::::\" + sourceFile + \" : \" + sourceFile.exists());\n\n\n final MediaType MEDIA_TYPE_VDO = MediaType.parse(\"video/*\");\n String filename = pat.substring(pat.lastIndexOf(\"/\") + 1);\n\n\n RequestBody requestBody;\n requestBody = new MultipartBody.Builder()\n .setType(MultipartBody.FORM)\n\n .addFormDataPart(\"video\", filename, RequestBody.create(MEDIA_TYPE_VDO, sourceFile)).setType(MultipartBody.FORM)\n .setType(MultipartBody.FORM)\n .addFormDataPart(\"area_id\", area)\n .addFormDataPart(\"area_sub_id\", subarea)\n .addFormDataPart(\"cat_id\", cat)\n .addFormDataPart(\"cat_sub_id\", subcat)\n .addFormDataPart(\"user_id\",userid)\n .addFormDataPart(\"com_text\",comtext)\n .addFormDataPart(\"com_type\",\"confidential\")\n .build();\n\n Request request = new Request.Builder()\n .url(url)\n .post(requestBody)\n .build();\n OkHttpClient client = new OkHttpClient();\n Response response = client.newCall(request).execute();\n res = response.body().string();\n return res;\n } catch (UnknownHostException | UnsupportedEncodingException e) {\n Log.e(\"TAG\", \"Error: \" + e.getLocalizedMessage());\n } catch (Exception e) {\n Log.e(\"TAG\", \"Other Error: \" + e.getLocalizedMessage());\n }\n return res;\n }", "@Test\n\tpublic void test_exception_if_request_not_multipart() throws Exception {\n\n\t\tmockMvc.perform(post(\"/api/v1/client/upload-csv\").header(\"userId\", 12)).andExpect(status().isBadRequest())\n\t\t\t\t.andExpect(jsonPath(\"$.message\", is(\"Current request is not a multipart request\")));\n\n\t}", "void fileUploaded(String path);", "int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "private void addFilesInRequestEntity(MultipartEntity reqEntity) {\n if (filePath_image != null && filePath_image.length > 0) {\n\n for (int i = 0; i < filePath_image.length; i++) {\n if (filePath_image[i] != null) {\n File file = new File(filePath_image[i]);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileImage + i, fileBodyVideo);\n System.out.println(keyForUploadFileImage + i + \" RestClient: File \" + file);\n }\n }\n }\n if (filePath_video != null && filePath_video.length() > 0) {\n File file = new File(filePath_video);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileVideo, fileBodyVideo);\n System.out.println(keyForUploadFileVideo + \" RestClient: File \" + file);\n }\n }", "@RequestMapping(value=\"/upload\")\n public String upload (HttpServletRequest request,HttpServletResponse response){\n String registID = \"\";\n int result = galleryService.upload(request, response);\n\n if( result < 0 ){\n request.setAttribute(\"failMsg\", \"上传失败,请重新上传!\");\n //return \"/gongshang/recordUpload\";\n return \"/admin/addGallery\";\n }else{\n //return \"/gongshang/recordReview\";\n return \"/admin/galleryList\";\n }\n }", "@Override\n protected void upload(X x) {\n }", "void uploadFailed(long bytes);", "@RequestMapping(\"/add\")\n @ResponseBody\n public String handleFileUpload(@RequestParam(\"file\") MultipartFile file) {\n String path = \"C:\\\\Users\\\\Administrator\\\\Desktop\\\\lostfound\\\\static\\\\img\";\n String fileName = file.getOriginalFilename();\n Calendar currTime = Calendar.getInstance();\n String time = String.valueOf(currTime.get(Calendar.YEAR))+String.valueOf((currTime.get(Calendar.MONTH)+1));\n String suffix = fileName.substring(file.getOriginalFilename().lastIndexOf(\".\"));\n suffix = suffix.toLowerCase();\n if(suffix.equals(\".jpg\") || suffix.equals(\".jpeg\") || suffix.equals(\".png\")){\n fileName = UUID.randomUUID().toString()+suffix;\n File targetFile = new File(path, fileName);\n if(!targetFile.getParentFile().exists()){\n targetFile.getParentFile().mkdirs();\n }\n long size = 0;\n try {\n file.transferTo(targetFile);\n size = file.getSize();\n } catch (Exception e) {\n e.printStackTrace();\n return\"上传失败\";\n }\n String fileUrl=\"/static\";\n fileUrl = fileUrl + \"/img/\" + fileName;\n return fileUrl;\n }else{\n return \"上传失败\";\n }\n }", "public CompleteMultipartUploadRequest() {}", "@Override\r\n\tpublic void qnaFileUpload(QnAFile qnaFileDto) {\n\t\t\r\n\t}", "public UploadedFile() {\n date = new Date();\n }", "@Override\n\tpublic Result uploadFile(String requestUri, File uploadFile,\n\t\t\tFile uploadPath, HashMap<String, ContentBody> extraParts) {\n\t\treturn super.uploadFile(requestUri, uploadFile, uploadPath, extraParts);\n\t}", "public void upload_alter(){\n\t\tLibMeasure lm=new LibMeasure();\r\n\t\tIntByReference count=new IntByReference();\r\n\t\tint ret=lm.TM_getErrorList(errorfile, count);\r\n\t\tswitch(ret){\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println(\"sucess to get errorlist!\");\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"internal error of libmeasure!\");\r\n\t\t\tbreak;\r\n\t\tcase 101:\r\n\t\t\tSystem.out.println(\"error of calling libmeasure!\");\r\n\t\t\tbreak;\r\n\t\tdefault: \r\n\t\t\tSystem.out.println(\"未知错误\"+ret);\r\n\t\t}\r\n\t\tif(ret==0)\r\n\t\t{\r\n\t\t\tFile efile=new File(errorfile);\r\n\t\t\tpost_len=efile.length();\r\n\t\t\tif(post_len>pre_len)\r\n\t\t\t{\r\n\t\t\t\tif(send()==0) //报警日志bug\r\n\t\t\t\t\tpre_len=post_len;\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"error of uploading alert!\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(post_len<pre_len)\r\n\t\t\t\t\tpre_len=0;\r\n\t\t}\r\n\t\t//loadData();\r\n\t\t\r\n\t}", "@ResponseBody\n @RequestMapping(\"/getFile/{name}\")//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!getmodel\n public String deployUploadedFile(@PathVariable(\"name\") String name, HttpServletRequest request) {\n name=name+\".xml\";\n System.out.println(\"getfilename :\"+name);\n String filename=name;\n String id=new String();\n// File files1 = new File(\"E:/modelXML\");//创建文件对象,url是目标目录\n File files1 = new File(modelXmlPath);\n // File files1 = new File(modelXmlPath);\n File[] files = files1.listFiles();// 读取文件夹下的所有文件}\n for (int i = 0; i < files.length; i++) {\n String modelxmlname=files[i].getName();\n System.out.println(\"modelXML文件夹中:\"+modelxmlname);\n if(!filename.equals(modelxmlname))continue;\n System.out.println(\"开始上传\");\n File file = files[i];\n //转换\n byte[] buffer = null;\n try {\n FileInputStream fis = new FileInputStream(file);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n byte[] b = new byte[1024];\n int n;\n while ((n = fis.read(b)) != -1) {\n bos.write(b, 0, n);\n }\n fis.close();\n bos.close();\n buffer = bos.toByteArray();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n //上传\n InputStreamReader in = null;\n try {\n try {\n boolean validFile = false;\n String fileName = file.getName();\n if (fileName.endsWith(\".bpmn20.xml\") || fileName.endsWith(\".xml\")) {\n validFile = true;\n XMLInputFactory xif = XMLInputFactory.newInstance();\n in = new InputStreamReader(new ByteArrayInputStream(buffer), \"UTF-8\");\n XMLStreamReader xtr = xif.createXMLStreamReader(in);\n BpmnModel bpmnModel = new BpmnXMLConverter().convertToBpmnModel(xtr);\n\n if (bpmnModel.getMainProcess() == null || bpmnModel.getMainProcess().getId() == null) {\n// notificationManager.showErrorNotification(Messages.MODEL_IMPORT_FAILED,\n// i18nManager.getMessage(Messages.MODEL_IMPORT_INVALID_BPMN_EXPLANATION));\n System.out.println(\"err1\");\n } else {\n\n if (bpmnModel.getLocationMap().isEmpty()) {\n// notificationManager.showErrorNotification(Messages.MODEL_IMPORT_INVALID_BPMNDI,\n// i18nManager.getMessage(Messages.MODEL_IMPORT_INVALID_BPMNDI_EXPLANATION));\n System.out.println(\"err2\");\n } else {\n\n String processName = null;\n if (StringUtils.isNotEmpty(bpmnModel.getMainProcess().getName())) {\n processName = bpmnModel.getMainProcess().getName();\n } else {\n processName = bpmnModel.getMainProcess().getId();\n }\n Model modelData;\n modelData = repositoryService.newModel();\n ObjectNode modelObjectNode = new ObjectMapper().createObjectNode();\n String fname = processName + \"_Model\";\n modelObjectNode.put(ModelDataJsonConstants.MODEL_NAME, fname);\n modelObjectNode.put(ModelDataJsonConstants.MODEL_DESCRIPTION, \"Workflow Model\");\n modelObjectNode.put(ModelDataJsonConstants.MODEL_REVISION, 1);\n modelData.setMetaInfo(modelObjectNode.toString());\n modelData.setName(fname);\n repositoryService.saveModel(modelData);\n\n BpmnJsonConverter jsonConverter = new BpmnJsonConverter();\n ObjectNode editorNode = jsonConverter.convertToJson(bpmnModel);\n\n repositoryService.addModelEditorSource(modelData.getId(), editorNode.toString().getBytes(\"utf-8\"));\n // System.out.println(\"modelData id:\"+modelData.getId());\n String email = new String();\n String emailcooki = new String();\n // email=\"[email protected]\";\n /**/\n Cookie[] cookies = request.getCookies();\n for (Cookie cookie : cookies) {\n if (cookie.getName().equals(\"email\")) emailcooki = cookie.getValue();\n // else if(cookie.getName().equals(\"password\"))password=cookie.getValue();\n // System.out.println(\"xxxxxxxxxx\");\n }\n System.out.println(\"getmodel_email:\" + emailcooki);\n email = emailcooki.replace(\"%40\", \"@\");\n email = email.replace(\"%20\", \"\");\n /*获取当前用户的email和password\n String idd=\"test_1024\";//更新当前用户表\n String sql = \"SELECT * FROM current_user_tabler WHERE Identi = ?;\";//通过id查找一条数据库信息\n Map<String, Object> map = jdbcTemplate.queryForMap(sql,idd);\n String email= (java.lang.String) map.get(\"email\");\n String password= (java.lang.String) map.get(\"password\"); 获取当前用户的email和password*/\n //System.out.println(\"生产的工作流\" +id);\n id = modelData.getId();\n\n String sql1 = \"update ACT_RE_MODEL set email = ? where ID_ = ?\";\n String sql2 = \"update ACT_RE_MODEL set password = ? where ID_ = ?\";\n int temp1 = jdbcTemplate.update(sql1, email, id);\n if (temp1 > 0) {\n // System.out.println(\"ACT_RE_MODEL表中账户密码增加成功\");\n logger.info(\"ACT_RE_MODEL表中上传模板文件账户增加成功\");\n } else\n // System.out.println(\"ACT_RE_MODEL表中账户密码增加失败\");\n logger.info(\"ACT_RE_MODEL表中上传模板文件账户增加失败\");\n }\n }\n } else {\n// notificationManager.showErrorNotification(Messages.MODEL_IMPORT_INVALID_FILE,\n// i18nManager.getMessage(Messages.MODEL_IMPORT_INVALID_FILE_EXPLANATION));\n System.out.println(\"err3\");\n }\n } catch (Exception e) {\n //String errorMsg = e.getMessage().replace(System.getProperty(\"line.separator\"), \"<br/>\");\n //notificationManager.showErrorNotification(Messages.MODEL_IMPORT_FAILED, errorMsg);\n System.out.println(\"err4\");\n }\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException e) {\n// notificationManager.showErrorNotification(\"Server-side error\", e.getMessage());\n System.out.println(\"err5\");\n }\n }\n }//上传\n\n\n }//for\n\n return id;//http://127.0.0.1:8089/editor?modelId=160001\n }", "@RequestMapping(\"member/member_make_ok.hr\")\r\n\tpublic String member_join_ok(HttpServletRequest request,HttpServletResponse response) throws ParseException {\r\n\r\n\t\tMemberVO vo = new MemberVO();\r\n\t\tPouchVO pvo = new PouchVO();\r\n\t\t// 요청값 받기\r\n\t\ttry { // 한글 변환\r\n\t\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\r\n\t\t// 업로드\r\n\t\tString path = \"C:\\\\Hwarang\\\\git\\\\Hwarang_Project\\\\Hwarang_Project\\\\WebContent\\\\profile_img_upload\";\r\n\t\tint size = 1024 * 1024 * 100;\r\n\t\tString enctype = \"UTF-8\";\r\n\r\n\t\tMultipartRequest mr;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tmr = new MultipartRequest(request, path, size, enctype, new DefaultFileRenamePolicy());\r\n\t\t\tString profile_img = mr.getOriginalFileName(\"logo\");\r\n\t\t\tString pouch_img = mr.getOriginalFileName(\"logo\");\r\n\t\t\tSystem.out.println(\"이미지파일:\" + profile_img);\r\n\t\t\tvo.setProfile_img(profile_img);\r\n\t\t\tpvo.setPouch_img(pouch_img);\r\n\t\t\tif (profile_img == null) {\r\n\t\t\t\tvo.setProfile_img(\"profile_defalut.jpg\");\r\n\t\t\t\tpvo.setPouch_img(\"pouch_img.jpg\");\r\n\t\t\r\n\t\t\t} else {\r\n\t\t\t\t//File file = new File(path + \"\\\\\" + profile_img);\r\n\t\t\t\tvo.setProfile_img(profile_img);\r\n\t\t\t\tpvo.setPouch_img(pouch_img);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString id = mr.getParameter(\"id\");\r\n\t\t\tString pw = mr.getParameter(\"password\");\r\n\t\t\tString email = mr.getParameter(\"email\");\r\n\t\t\tString name = mr.getParameter(\"name\");\r\n\t\t\tString nickname = mr.getParameter(\"nickname\");\r\n\t\t\tString y = mr.getParameter(\"yyyy\");\r\n\t\t\tString m = mr.getParameter(\"mm\");\r\n\t\t\tString d = mr.getParameter(\"dd\");\r\n\t\t\tString skin_type = mr.getParameter(\"skin_type\");\r\n\t\t\tString brand_like = mr.getParameter(\"brand_like\");\r\n\t\t\tString addr = mr.getParameter(\"address\");\r\n\t\t\tString sex = mr.getParameter(\"gender\");\r\n\r\n\t\t\tDate date = java.sql.Date.valueOf(y + \"-\" + m + \"-\" + d);\r\n\r\n\t\t\tSystem.out.println(id);\r\n\t\t\tSystem.out.println(date);\r\n\t\t\tint age_group;\r\n\t\t\tint temp_yy = Integer.parseInt(y.substring(2));\r\n\t\t\tif (temp_yy >= 60 && temp_yy < 70)\r\n\t\t\t\tage_group = 50;\r\n\t\t\telse if (temp_yy >= 70 && temp_yy < 80)\r\n\t\t\t\tage_group = 40;\r\n\t\t\telse if (temp_yy >= 80 && temp_yy < 90)\r\n\t\t\t\tage_group = 30;\r\n\t\t\telse if (temp_yy >= 90 && temp_yy <= 99)\r\n\t\t\t\tage_group = 20;\r\n\t\t\telse\r\n\t\t\t\tage_group = 10;\r\n\t\t\tString addr2 = mr.getParameter(\"addr2\");\r\n\t\t\tString postcode = mr.getParameter(\"postcode\");\r\n\r\n\t\t\tvo.setId(id);\r\n\t\t\tvo.setPw(pw);\r\n\t\t\tvo.setEmail(email);\r\n\t\t\tvo.setName(name);\r\n\t\t\tvo.setPw(pw);\r\n\t\t\tvo.setNickname(nickname);\r\n\t\t\tvo.setBday(date);\r\n\t\t\tvo.setSkin_type(skin_type);\r\n\t\t\tvo.setBrand_like(brand_like);\r\n\t\t\tvo.setAddr(addr);\r\n\t\t\tvo.setSex(sex);\r\n\t\t\t// vo.setProfile_img(profile_img);\r\n\t\t\tvo.setAge_group(age_group);\r\n\t\t\tvo.setAddr2(addr2);\r\n\t\t\tvo.setPostcode(postcode);\r\n\t\t\t// DAO연결\r\n\t\t\tMemberDAO.memberInsert(vo);\r\n\t\t\t\r\n//\t\t\tString pouch_content=mr.getParameter(\"id\")+\"파우치\";\r\n//\t\t\tString pouch_name=mr.getParameter(\"id\");\r\n//\t\t\t\r\n//\t\t\tpvo.setPouch_content(pouch_content);\r\n//\t\t\tpvo.setPouch_name(pouch_name);\r\n//\t\t\t\r\n//\t\t\tMemberDAO.pouchInsert(pvo);\r\n\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn \"redirect:../main/main.hr\";\r\n\t}", "public interface FastDfsService {\n String fileUpload(MultipartFile file) throws Exception;\n}", "UploadDocumentResponseModel saveFile(MultipartFile multipartFile, String userId,\n String category) throws IOException, UploadDocumentException;", "@RequestMapping(\"/updateResume\")\n\tpublic void updateResume(@RequestParam(\"file\")MultipartFile fileaot, Resume resume, Social social, Aducational aducational, HttpServletRequest request, HttpServletResponse response)\n\t{\n\t\tint uid = (Integer)request.getSession().getAttribute(\"uid\");\n\t\tList<Social> social3 = (List<Social>) request.getSession().getAttribute(\"socials\");\n\t\tList<Aducational> aducational3 = (List<Aducational>) request.getSession().getAttribute(\"aducationals\");\n\t\tSystem.out.println(\"resume=\" + resume);\n\t\tSystem.out.println(\"social=\" + social + \"aducational=\" + aducational);\n\t\tSystem.out.println(social.getCompany().split(\",\")[0]);\n\t\tSystem.out.println(aducational.getSname().split(\",\")[0]);\n\t\tif (fileaot.getOriginalFilename() != null && !\"\".equals(fileaot.getOriginalFilename().trim()))\n\t\t{\n\t\t\tString filename = null;\n\t\t\t// 设置上传图片的保存路径\n\t\t\tString savePath = request.getServletContext().getRealPath(\"/images/\");\n\t\t\tFile file = new File(savePath);\n\t\t\t// 判断上传文件的保存目录是否存在\n\t\t\tif (!file.exists() && !file.isDirectory())\n\t\t\t{\n\t\t\t\tSystem.out.println(savePath + \"目录不存在,需要创建\");\n\t\t\t\t// 创建目录\n\t\t\t\tfile.mkdir();\n\t\t\t}\n\t\t\tDiskFileItemFactory factory = new DiskFileItemFactory();\n\t\t\t// 2、创建一个文件上传解析器\n\t\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\tupload.setHeaderEncoding(\"UTF-8\");\n\t\t\t// 3、判断提交上来的数据是否是上传表单的数据\n\t\t\tif (!ServletFileUpload.isMultipartContent(request))\n\t\t\t{\n\t\t\t\t// 按照传统方式获取数据\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// 報錯 需要過濾文件名稱 java.io.FileNotFoundException:\n\t\t\t\t// G:\\测试02\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\wtpwebapps\\FaceUp\\WEB-INF\\images\\C:\\Users\\Ray\\Pictures\\2.jpeg\n\t\t\t\t// (文件名、目录名或卷标语法不正确。)\n\n\t\t\t\tfilename = fileaot.getOriginalFilename();\n\t\t\t\t//\t\t\t\tSystem.out.print(filename);\n\t\t\t\tif (fileaot.getOriginalFilename().split(\"\\\\.\")[1].equals(\"png\") || fileaot.getOriginalFilename().split(\"\\\\.\")[1].equals(\"jpg\") || fileaot.getOriginalFilename().split(\"\\\\.\")[1].equals(\"jpeg\"))\n\t\t\t\t{\n\t\t\t\t\tresume.setRepic(\"images/\" + fileaot.getOriginalFilename());\n\t\t\t\t\tInputStream in = fileaot.getInputStream();// 獲得上傳的輸入流\n\t\t\t\t\tFileOutputStream out = new FileOutputStream(savePath + filename);// 指定web-inf目錄下的images文件\n\t\t\t\t\trequest.setAttribute(\"path\", \"images\" + \"/\" + filename);\n\t\t\t\t\tint len = 0;\n\t\t\t\t\tbyte buffer[] = new byte[1024];\n\t\t\t\t\twhile ((len = in.read(buffer)) > 0)// 每次讀取\n\t\t\t\t\t{\n\t\t\t\t\t\tout.write(buffer, 0, len);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t} else\n\t\t\t\t{ //必须是图片才能上传否则失败\n\t\t\t\t\tResponseUtils.outJson(response, \"上传必须是图片\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t} catch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (social3.size() != 0)\n\t\t{\n\t\t\t//社会关系更新\n\t\t\tsocial1.setCompany(social.getCompany().split(\",\")[0]);\n\t\t\tsocial1.setContent(social.getContent().split(\",\")[0]);\n\t\t\tsocial1.setSocialtime(social.getSocialtime().split(\",\")[0]);\n\t\t\tString s = (social.getSocialid() + \"\").split(\",\")[0];\n\t\t\tint socialid1 = Integer.valueOf(s);\n\t\t\tsocial1.setUid(uid);\n\t\t\tsocial1.setSocialid(socialid1);\n\t\t\tschoolService.updateSocial(social1);\n\t\t\tif (social3.size() > 1)\n\t\t\t{\n\t\t\t\tsocial2.setCompany(social.getCompany().split(\",\")[1]);\n\t\t\t\tsocial2.setContent(social.getContent().split(\",\")[1]);\n\t\t\t\tsocial2.setSocialtime(social.getSocialtime().split(\",\")[1]);\n\t\t\t\tsocial2.setUid(uid);\n\t\t\t\tString s1 = (social.getSocialid() + \"\").split(\",\")[1];\n\t\t\t\tint socialid2 = Integer.valueOf(s);\n\t\t\t\tsocial1.setSocialid(socialid2);\n\t\t\t\tschoolService.updateSocial(social2);\n\t\t\t}\n\t\t\tif (social3.size() == 1 && social.getCompany().split(\",\").length > 1)\n\t\t\t{\n\t\t\t\tsocial2.setCompany(social.getCompany().split(\",\")[1]);\n\t\t\t\tsocial2.setContent(social.getContent().split(\",\")[1]);\n\t\t\t\tsocial2.setSocialtime(social.getSocialtime().split(\",\")[1]);\n\t\t\t\tsocial2.setUid(uid);\n\t\t\t\tschoolService.insertSocial(social2);\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t//插入\n\t\t\tsocial1.setCompany(social.getCompany().split(\",\")[0]);\n\t\t\tsocial1.setContent(social.getContent().split(\",\")[0]);\n\t\t\tsocial1.setSocialtime(social.getSocialtime().split(\",\")[0]);\n\t\t\tsocial1.setUid(uid);\n\t\t\tschoolService.insertSocial(social1);\n\t\t\tif (social3.size() == 1 && social.getCompany().split(\",\")[1].length() > 1)\n\t\t\t{\n\t\t\t\tsocial2.setCompany(social.getCompany().split(\",\")[1]);\n\t\t\t\tsocial2.setContent(social.getContent().split(\",\")[1]);\n\t\t\t\tsocial2.setSocialtime(social.getSocialtime().split(\",\")[1]);\n\t\t\t\tsocial2.setUid(uid);\n\t\t\t\tschoolService.insertSocial(social2);\n\t\t\t}\n\t\t}\n\t\tif (aducational3.size() != 0)\n\t\t{\n\t\t\t//学校更新\n\t\t\taducational1.setAdtime(aducational.getAdtime().split(\",\")[0]);\n\t\t\taducational1.setSname(aducational.getSname().split(\",\")[0]);\n\t\t\taducational1.setProfession(aducational.getProfession().split(\",\")[0]);\n\t\t\taducational1.setUid(uid);\n\t\t\tString s = (aducational.getAducationid() + \"\").split(\",\")[0];\n\t\t\tint aducationid1 = Integer.valueOf(s);\n\t\t\taducational1.setAducationid(aducationid1);\n\t\t\tschoolService.updateAducation(aducational1);\n\t\t\tif (aducational3.size() > 1)\n\t\t\t{\n\t\t\t\taducational2.setAdtime(aducational.getAdtime().split(\",\")[1]);\n\t\t\t\taducational2.setSname(aducational.getSname().split(\",\")[1]);\n\t\t\t\taducational2.setProfession(aducational.getProfession().split(\",\")[1]);\n\t\t\t\taducational2.setUid(uid);\n\t\t\t\tString s1 = (aducational.getAducationid() + \"\").split(\",\")[1];\n\t\t\t\tint aducationid2 = Integer.valueOf(s1);\n\t\t\t\taducational1.setAducationid(aducationid2);\n\t\t\t\tschoolService.updateAducation(aducational2);\n\t\t\t}\n\t\t\tif (aducational3.size() == 1 && aducational.getAdtime().split(\",\").length > 1)\n\t\t\t{\n\t\t\t\taducational2.setAdtime(aducational.getAdtime().split(\",\")[1]);\n\t\t\t\taducational2.setSname(aducational.getSname().split(\",\")[1]);\n\t\t\t\taducational2.setProfession(aducational.getProfession().split(\",\")[1]);\n\t\t\t\taducational2.setUid(uid);\n\t\t\t\tschoolService.insertAducation(aducational2);\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t//插入\n\t\t\taducational1.setAdtime(aducational.getAdtime().split(\",\")[0]);\n\t\t\taducational1.setSname(aducational.getSname().split(\",\")[0]);\n\t\t\taducational1.setProfession(aducational.getProfession().split(\",\")[0]);\n\t\t\taducational1.setUid(uid);\n\t\t\tschoolService.insertAducation(aducational1);\n\t\t\tif (aducational3.size() == 1 && aducational.getAdtime().split(\",\")[1].length() > 1)\n\t\t\t{\n\t\t\t\taducational2.setAdtime(aducational.getAdtime().split(\",\")[1]);\n\t\t\t\taducational2.setSname(aducational.getSname().split(\",\")[1]);\n\t\t\t\taducational2.setProfession(aducational.getProfession().split(\",\")[1]);\n\t\t\t\taducational2.setUid(uid);\n\t\t\t\tschoolService.insertAducation(aducational2);\n\t\t\t}\n\t\t}\n\t\tResume resume1=schoolService.findResumeByUid(uid);\n\t\tif(resume1==null){\n\t\t\t//插入简历表\n\t\t\t//简历就更新就行\n\t\t\tDegree degreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\tif(degreeid==null){\n\t\t\t\tschoolService.insertDegreeName(resume);\n\t\t\t\tdegreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\t}\n\t\t\tProfession professid = schoolService.findProfessidByProfessName(resume);\n\t\t\tif(professid==null){\n\t\t\t\t//先插入专业表再查\n\t\t\t\tschoolService.insertProfessname(resume);\n\t\t\t\tprofessid = schoolService.findProfessidByProfessName(resume);\n\t\t\t}\n\t\t\tint sid = schoolService.findSidBySchoolName(resume);\n\t\t\tresume.setDegreeid(degreeid.getDegreeid());\n\t\t\tresume.setSid(sid);\n\t\t\tresume.setProfessid(professid.getProfessid());\n\t\t\tresume.setUid(uid);\n\t\t\tschoolService.insertUserResume(resume);\n\t\t}else{\n\t\t\t//简历就更新就行\n\t\t\tDegree degreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\tProfession professid = schoolService.findProfessidByProfessName(resume);\n\t\t\tif(degreeid==null){\n\t\t\t\tschoolService.insertDegreeName(resume);\n\t\t\t\tdegreeid = schoolService.findDegreeidByDegreeName(resume);\n\t\t\t}\n\t\t\tif(professid==null){\n\t\t\t\t//先插入专业表再查\n\t\t\t\tschoolService.insertProfessname(resume);\n\t\t\t\tprofessid = schoolService.findProfessidByProfessName(resume);\n\t\t\t}\n\t\t\tint sid = schoolService.findSidBySchoolName(resume);\n\t\t\tresume.setDegreeid(degreeid.getDegreeid());\n\t\t\tresume.setSid(sid);\n\t\t\tresume.setProfessid(professid.getProfessid());\n\t\t\tresume.setUid(uid);\n\t\t\tschoolService.updateUserresume(resume);\n\t\t}\n\n\t\tResponseUtils.outJson(response, \"保存成功\");\n\t}", "int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "@Override\n public void onStreamError(Throwable throwable)\n {\n if (throwable instanceof MultiPartIllegalFormatException)\n {\n //If its an illegally formed request, then we send back 400.\n _streamResponseCallback.onError(Messages.toStreamException(RestException.forError(400, \"Illegally formed multipart payload\")));\n return;\n }\n //Otherwise this is an internal server error. R2 will convert this to a 500 for us. As mentioned this should never happen.\n _streamResponseCallback.onError(throwable);\n }", "public FileUpload getFileUploadById(Long id) throws AppException;", "private Result uploadFile(StoryModel storyModel) {\n if (isStopped())\n return Result.failure();\n\n\n String storyId = storyModel.get_id();\n if (storyModel.getType() != null && storyModel.getType().equals(\"image\")) {\n\n sendStartStatus(\"image\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadImageFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"image\", storyId);\n }\n return Result.retry();\n }\n } else if (storyModel.getType() != null && storyModel.getType().equals(\"video\")) {\n\n sendStartStatus(\"video\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadVideoFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"video\", storyId);\n }\n return Result.retry();\n }\n } else {\n return Result.failure();\n }\n }", "@Test(priority = 1)\n\tpublic void validePathWithValideData() {\n\n\t\t\n\t\tSystem.out.println(\"file \"+currentDirectory);\n\t\tSystem.out.println( new File(\"./src/test/resources/Sovdata.xlsx\"));\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"SOV data uploaded successfully.\"));\n\t\ttest.log(LogStatus.PASS, \"SOV data uploaded successfully.\");\n\t\tAssert.assertEquals(resp.getStatusCode(),201);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 201 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}" ]
[ "0.73275465", "0.6951791", "0.68514025", "0.6849851", "0.67721087", "0.67361164", "0.67272097", "0.67086965", "0.6689596", "0.66820925", "0.6657762", "0.6591813", "0.65734535", "0.65707093", "0.656305", "0.6464577", "0.6442121", "0.6421047", "0.64130735", "0.6395595", "0.6389531", "0.6380217", "0.63773483", "0.6359689", "0.6344103", "0.6343002", "0.6337592", "0.6319909", "0.6316692", "0.6304584", "0.62808865", "0.6278993", "0.62643415", "0.62531036", "0.62432516", "0.6224983", "0.6220868", "0.6216116", "0.62069124", "0.6196191", "0.61940527", "0.61612487", "0.61609054", "0.6156718", "0.61538255", "0.6119051", "0.6105542", "0.6085254", "0.6078182", "0.6076896", "0.60762155", "0.60762155", "0.6073905", "0.6067861", "0.6067732", "0.6066972", "0.60464215", "0.6039157", "0.6037461", "0.6029302", "0.601132", "0.601061", "0.60028565", "0.5994907", "0.5984198", "0.59624857", "0.5954996", "0.5949099", "0.5942504", "0.5939706", "0.59356266", "0.5932295", "0.59223104", "0.59214795", "0.59154", "0.59144264", "0.5893504", "0.58932894", "0.5886553", "0.58824325", "0.5878716", "0.58776736", "0.58744866", "0.58733225", "0.5862789", "0.58623886", "0.58446974", "0.5837475", "0.58349115", "0.5818955", "0.5795909", "0.57936263", "0.57877", "0.5787656", "0.57823014", "0.5781373", "0.57782286", "0.57772505", "0.57746464", "0.5771422", "0.5771412" ]
0.0
-1
Returns whether a key which uses animation system is being held. Used to restore key input after calling offset.set()
private static boolean isHoldingAnimationKey(){ return KeyState.isHeld(GuiHelper.keyHome) || KeyState.isHeld(GuiHelper.keyEnd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean handleMovementByKey() {\n\t\tboolean moved = false;\n\t\tif (keyCode != 0) {\n\t\t\tmoved = true;\n\t\t\tdouble moveRate = 10.0 / 1000;\t// degrees per second\n\t\t\t\n\t\t\tif ((keyStateMask & SWT.SHIFT) != 0) {\n\t\t\t\tmoveRate = moveRate * 10.0;\n\t\t\t}\n\t\t\telse if ((keyStateMask & SWT.ALT) != 0) {\n\t\t\t\tmoveRate = moveRate / 5.0;\n\t\t\t}\n\t\t\t\n\t\t\tlong moveTime = 0;\n\t\t\tif (keyStopTime != 0) {\n\t\t\t\tmoveTime = keyStopTime - keyStartTime;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlong currentTime = System.currentTimeMillis();\n\t\t\t\tmoveTime = currentTime - keyStartTime;\n\t\t\t\tkeyStartTime = currentTime;\n\t\t\t}\n\t\t\t\n\t\t\tfloat move = (float)(moveRate * moveTime);\n\t\t\t\n\t\t\tswitch (keyCode) {\n\t\t\tcase 16777219:\n\t\t\t\t// left\n\t\t\t\tviewAzimuth = fixAzimuth(viewAzimuth - move);\n\t\t\t\tbreak;\n\t\t\tcase 16777220:\n\t\t\t\t// right\n\t\t\t\tviewAzimuth = fixAzimuth(viewAzimuth + move);\n\t\t\t\tbreak;\n\t\t\tcase 16777217:\n\t\t\t\t// up\n\t\t\t\tviewElevation = fixElevation(viewElevation + move);\n\t\t\t\tbreak;\n\t\t\tcase 16777218:\n\t\t\t\t// down\n\t\t\t\tviewElevation = fixElevation(viewElevation - move);\n\t\t\t\tbreak;\n\t\t\tcase 97:\n\t\t\t\t// a\n\t\t\t\tviewVFOV = fixFOV(viewVFOV - (move * fovAdjFactor));\n\t\t\t\tbreak;\n\t\t\tcase 122:\n\t\t\t\t// z\n\t\t\t\tviewVFOV = fixFOV(viewVFOV + (move * fovAdjFactor));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif (keyStopTime != 0) {\n\t\t\t\tkeyCode = 0;\n\t\t\t\tkeyStartTime = 0;\n\t\t\t}\n\t\t}\n\t\treturn moved;\n\t}", "private boolean isPressed(KeyCode key) {\n \t\n return keys.getOrDefault(key, false);\n }", "private boolean isPressed(KeyCode key) {\n\t\treturn keys.getOrDefault(key, false);\n\t}", "boolean getKeyWheel();", "public boolean isKey(int dir) {\n return (dir == UPKEY || dir == DOWNKEY || dir == RIGHTKEY || dir == LEFTKEY);\n }", "public boolean isKeyDown(int keyCode){\n return keys[keyCode];\n }", "public boolean isKeyDown(String key) {\n\t\treturn input.isKeyDown(keyFromString(key));\n\t}", "public static boolean isKeyDown(int k) {\n switch (k) {\n case KeyEvent.VK_UP:\n case KeyEvent.VK_W:\n return keyUp;\n case KeyEvent.VK_DOWN:\n case KeyEvent.VK_S:\n return keyDown;\n case KeyEvent.VK_LEFT:\n case KeyEvent.VK_A:\n return keyLeft;\n case KeyEvent.VK_RIGHT:\n case KeyEvent.VK_D:\n return keyRight;\n case KeyEvent.VK_SPACE:\n return keyShoot;\n default:\n return false;\n }\n }", "public boolean isHotkeySet ()\n {\n return keyCode != null;\n }", "public boolean isOnKeyguard() {\n return this.mBarState == 1;\n }", "public boolean isWakeKey() {\n switch (this) {\n case BACK:\n case MENU:\n case WAKEUP:\n case PAIRING:\n case STEM_1:\n case STEM_2:\n case STEM_3:\n return true;\n default:\n return false;\n }\n }", "public static boolean isKeyPressed(int key) {\r\n\t\treturn keysDown.containsKey(key);\r\n\t}", "public boolean getKeyState(InputKey key) {\n Boolean state = keyStates.get(key);\n return state != null && state;\n }", "public boolean keyPressed(KeyEvent e);", "protected boolean isStayingOnGroundSurface() {\n/* 342 */ return isShiftKeyDown();\n/* */ }", "public boolean getKeyJustPressed(InputKey key) {\n return justPressedKeys.contains(key);\n }", "@OnlyIn(Dist.CLIENT)\n\tprivate boolean isPressing(int key){\n\t\tlong window = Minecraft.getInstance().getMainWindow().getHandle();\n\t\treturn GLFW.glfwGetKey(window, key) == GLFW.GLFW_PRESS;\n\t}", "public boolean getKeyJustReleased(InputKey key) {\n return justReleasedKeys.contains(key);\n }", "public boolean isDown() {\n return pm.pen.hasPressedButtons();\n }", "public static boolean isDown(char key) {\n\t\treturn keyNames.contains(key);\n\t}", "public Boolean isKey() {\n return this.key;\n }", "public boolean isKeyDown(int keyCode) {\n\t\treturn input.isKeyDown(keyCode);\n\t}", "boolean isCtrlKeyDown();", "boolean onKeyPressed(KeyEvent event);", "boolean isShutterPressed();", "boolean isSetKeyWheel();", "public void keyReleased() {\n if (key == 'z' || key == 'Z') shoot = false;\n if (keyCode == UP) up = false;\n if (keyCode == DOWN) down = false;\n if (keyCode == LEFT) left = false;\n if (keyCode == RIGHT) right = false;\n}", "public boolean wasJustPressed() {\n\t\treturn (mNow && (!mLast));\n\t}", "public boolean pressed() {\n return pressed;\n }", "boolean isFocused() {\n\t\tif (state != State.ROTATE)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public final boolean isControlDown() {\n return controlDown;\n }", "public boolean isPressed() {\n\t\treturn get();\n\t}", "public int checkLastKeyPressed()\n {\n int key = lastKeyPressed;\n lastKeyPressed = -1;\n return key;\n }", "public Boolean isHeld() { return held; }", "public static boolean isDownOnce(int keyCode) {\n\t\tif(keyCodes[keyCode]) {\n\t\t\tkeyCodes[keyCode] = false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSystemKey() {\n switch (this) {\n case MENU:\n case SOFT_RIGHT:\n case HOME:\n case BACK:\n case CALL:\n case ENDCALL:\n case VOLUME_UP:\n case VOLUME_DOWN:\n case VOLUME_MUTE:\n case MUTE:\n case POWER:\n case HEADSETHOOK:\n case MEDIA_PLAY:\n case MEDIA_PAUSE:\n case MEDIA_PLAY_PAUSE:\n case MEDIA_STOP:\n case MEDIA_NEXT:\n case MEDIA_PREVIOUS:\n case MEDIA_REWIND:\n case MEDIA_RECORD:\n case MEDIA_FAST_FORWARD:\n case CAMERA:\n case FOCUS:\n case SEARCH:\n case BRIGHTNESS_DOWN:\n case BRIGHTNESS_UP:\n case MEDIA_AUDIO_TRACK:\n return true;\n default:\n return false;\n }\n }", "public Boolean isInputOver() {\n if (this.currentState == states.INPUT) {\n return true;\n }\n return false;\n }", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tint key = e.getKeyCode();\r\n\t\t\t\tif(key == KeyEvent.VK_UP)\r\n\t\t\t\t\tisPress01 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tisPress02 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tisPress03 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tisPress04 = false;\r\n\t\t\t}", "private void checkKeys() \n {\n ignite(Greenfoot.isKeyDown(\"up\"));\n\n if(Greenfoot.isKeyDown(\"left\")) {\n setRotation(getRotation() - 5);\n } \n if(Greenfoot.isKeyDown(\"right\")) {\n setRotation(getRotation() + 5);\n }\n if(Greenfoot.isKeyDown(\"space\")) {\n fire(\"GreenLaser\", getGunReloadTime());\n \n } \n }", "public static boolean isDown(int keyCode) {\n\t\treturn keyCodes[keyCode];\n\t}", "@Override\n public boolean keyDown(int key) {\n if (!keyCodes.containsKey(key)) {\n return false;\n }\n pressed.put(key, keyCodes.get(key));\n return true;\n }", "protected boolean dealWithKeyPressed(KeyEvent ke)\n {\n setUpMouseState(KEY_PRESSED);\n return true;\n }", "void keyPressed() {\n if (key == 'w') {\n up = true;\n }\n if (key == 's') {\n down = true;\n }\n if (key == 'a') {\n left = true;\n\n }\n if (key == 'd') {\n right = true;\n\n }\n \n if (key == 27) {\n pause = !pause;\n }\n\n // player.turnToDir(0);\n}", "public final boolean isShiftDown() {\n return shiftDown;\n }", "public static boolean shiftIsDown()\n\t{\n\t\treturn shiftDown;\n\t}", "@Override\r\n\tpublic boolean keyEvent(KeyEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean keyUp(int key) {\n if (!pressed.containsKey(key)) {\n return false;\n }\n pressed.remove(key);\n return true;\n }", "public boolean isMovement() {\n return isMovementEvent;\n }", "boolean updateFrame() {\n counter++; // update the counter every time this method is called\n switch (currAnimation) {\n case STANDING:\n case CROUCHING:\n if (currFrame == 1) {\n if (counter > BLINK_TIME) {\n currFrame = 0; // open Kirby's eyes\n counter = 0;\n return true;\n } else {\n return false;\n }\n } else if (currFrame == 0 && counter > noBlinkPeriod) {\n currFrame = 1; // change to a blinking state (eyes closed)\n noBlinkPeriod = (int) (Math.random() * 750) + 50;\n counter = 0;\n return true;\n } else {\n currFrame = 0;\n return true;\n }\n case WALKING:\n case RUNNING:\n return nextFrame();\n case FLOATING:\n if (inAir) {\n return nextFrame();\n } else {\n dy = 0;\n if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n setAnimation(Animation.STANDING);\n }\n return true;\n }\n case FALLING:\n if (inAir) {\n if (currFrame < 6) { \n // 6 is the last frame of the falling animation\n return nextFrame(); \n } else { return false; }\n } else {\n dy = 0;\n if (downKeyPressed) {\n setAnimation(Animation.CROUCHING);\n currFrame = 0;\n } else if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n dx = 0;\n setAnimation(Animation.STANDING);\n }\n return true;\n }\n case SLIDING:\n if (counter > SLIDING_TIME) {\n dx = 0;\n if (downKeyPressed) {\n setAnimation(Animation.CROUCHING);\n } else if (rightKeyPressed || leftKeyPressed) {\n setAnimation(Animation.WALKING);\n } else {\n setAnimation(Animation.STANDING);\n }\n \n return true;\n } else { return false; }\n case ENTERING:\n if (currFrame < 3) {\n // 3 being the final frame of the ENTERING animation\n return nextFrame();\n } else if (currFrame == 3) {\n entered = true; // signal that Kirby has entered the door\n return false; // then return false, since the animation didn't change\n } else { return false; }\n default:\n return false;\n }\n }", "public void hasKey() {\n\t\tif (checkKey(Integer.parseInt(getCurrentPositionX()),Integer.parseInt(getCurrentPositionY()))) {\n\t\t\tDisplay.setKey(\"Yes\");\n\t\t\tDisplay.setMessage(\"You have found a key! Try to go through a house!\");\n\t\t}\n\t}", "public static boolean escapeIsDown()\n\t{\n\t\treturn escapeDown;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\treturn false;\n\t}", "boolean mo1311a(KeyEvent keyEvent);", "@Override\n\tpublic boolean keyUp(int keycode) {\n\t\tif(keycode == Input.Keys.RIGHT){\n\t\t\tgoRight = false;\n\t\t}\n\t\tif(keycode == Input.Keys.LEFT){\n\t\t\tgoLeft = false;\n\t\t}\n\t\tif(keycode == Input.Keys.UP){\n\t\t\tturnUp = false;\n\t\t}\n\t\tif(keycode == Input.Keys.DOWN){\n\t\t\tturnDown = false;\n\t\t}\n\t\tif(keycode == Input.Keys.SPACE){\n\t\t\tballShoot = false;\n\t\t}\n\t\treturn false;\n\t}", "boolean getKeyBox();", "public static boolean ctrlIsDown()\n\t{\n\t\treturn ctrlDown;\n\t}", "public boolean isKeyPressed (int keycode) {\n\t\treturn glfwGetKey(window, keycode) == GLFW_PRESS;\n\t}", "public boolean isPlaying()\n {\n return (state == AnimationState.FORWARD\n || state == AnimationState.BACKWARD);\n }", "@Override\n public boolean keyUp(int keycode) {\n return false;\n }", "public void setKeyDown() {\r\n keys[KeyEvent.VK_P] = false;\r\n }", "@Override\n\tpublic boolean takeControl() {\n\t\treturn (touch_r.isPressed() || touch_l.isPressed());\n\t}", "@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint key = e.getKeyCode();\r\n\t\t\t\tif(key == KeyEvent.VK_UP)\r\n\t\t\t\t\tisPress01 = true;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tisPress02 = true;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tisPress03 = true;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tisPress04 = true;\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic boolean keyUp(int keycode) {\n\t\t\t\treturn false;\n\t\t\t}", "public static boolean ctrlOrCmdIsDown()\n\t{\n\t\treturn ctrl_cmd_Down;\n\t}", "public static boolean isDownOnce(char key) {\n\t\tif(keyNames.contains(key)) {\n\t\t\tkeyNames.remove(key);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyDown(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyDown(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyDown(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyDown(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyDown(int keycode) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyDown(int keycode) {\n\t\treturn false;\n\t}", "public boolean isMoveDown() {\n return moveDown;\n }", "public boolean isKeyAvailable(String key) {\n return guiButtons.containsKey(key);\n }", "public boolean keyDown(int keycode)\n {\n if ( keycode == Keys.SPACE )\n spaceship.shoot();\n\n if ( keycode == Keys.X )\n spaceship.warp();\n \n return false; \n }", "public boolean isScreenLocked() {\n return mKeyguardManager.inKeyguardRestrictedInputMode();\n }", "@Override\n\t\t\tpublic boolean onKeyDown (int keycode) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\t\tpublic boolean keyDown(int keycode) {\n\t\t\t\treturn false;\n\t\t\t}", "public void keyPressed() { \n\t\twantsFrameBreak = true;\n\t\t//key = e.getKeyChar();\n\t\tkeyPressed = true;\n\t\tif (System.nanoTime() - acted > .033e9f) {\n\t\t\t_keyPressed();\n\t\t}\n\t}", "public boolean checkModifiers () {\r\n\t\tKeyboard keyboard = Keyboard.instance;\r\n\t\tif (noModifiers) {\r\n\t\t\tif (keyboard.isCtrlDown()) return false;\r\n\t\t\tif (keyboard.isAltDown()) return false;\r\n\t\t\tif (keyboard.isShiftDown()) return false;\r\n\t\t} else {\r\n\t\t\tif (ctrl && !keyboard.isCtrlDown()) return false;\r\n\t\t\tif (alt && !keyboard.isAltDown()) return false;\r\n\t\t\tif (shift && !keyboard.isShiftDown()) return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isAnimating() {\n return (mState != 0);\n }", "private void checkKey(){\n if(Greenfoot.isKeyDown(\"z\") && getJumping() == false){\n jump();\n }\n if(getCanMove()){\n if(Greenfoot.isKeyDown(\"right\")){\n moveRight();\n facingRight = true;\n }\n if(Greenfoot.isKeyDown(\"left\")){\n moveLeft();\n facingRight = false;\n }\n }\n if(Greenfoot.isKeyDown(\"x\") && getThrowing() == false){\n throwKnife(facingRight);\n changeThrowing(true);\n }\n }", "public boolean isSetKey() {\n return this.key != null;\n }", "public static boolean altIsDown()\n\t{\n\t\treturn altDown;\n\t}", "protected boolean dealWithKeyReleased(KeyEvent ke)\n {\n setUpMouseState(KEY_RELEASED);\n return true;\n }", "public boolean isShift ()\n {\n return isShift;\n }", "public boolean isSetKey() {\n return this.key != null;\n }", "public boolean isSetKey() {\n return this.key != null;\n }", "public boolean isSetKey() {\n return this.key != null;\n }", "public boolean isSwitchPressed() {\n\t\treturn !lightSwitch.get();\n\t}", "public boolean isBackScreenLocked() {\n return isBSLock;\n }", "public boolean onTouchEvent(MotionEvent event) {\n // React only to some actions, ignoring the others\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n if (!(\n actionCode == MotionEvent.ACTION_DOWN ||\n actionCode == MotionEvent.ACTION_POINTER_DOWN ||\n actionCode == MotionEvent.ACTION_UP ||\n actionCode == MotionEvent.ACTION_POINTER_UP ||\n actionCode == MotionEvent.ACTION_MOVE)) {\n return false;\n }\n // Use of maps to keep track of:\n // all affected keys: pressed_map\n // pressed keys: new_pressed\n Set<Integer> new_pressed = new HashSet<Integer>();\n HashMap<Integer, Float> pressed_map = new HashMap<Integer, Float>();\n // For every pointer, see which key the point belongs to\n for (int pointerIndex = 0; pointerIndex < event.getPointerCount(); pointerIndex++) {\n // Get coordinates of the point for the current pointer\n int x = (int) event.getX(pointerIndex);\n int y = (int) event.getY(pointerIndex);\n int keyWasFound = 0; // flag to do something with a key\n int noteFound = 0; // variable to store the note number of the affected key\n // Check black keys first, because white keys' bounding rectangles overlap with\n // black keys\n int blackKeyFound = 0; // flag to skip white keys check\n // Check black keys\n for (int i = 0; i < numberOfBlackKeys; i++) {\n RectF bounds = new RectF();\n keys.get(blackKeyNoteNumbers.get(i)).computeBounds(bounds, true);\n if (bounds.contains((float) x, (float) y)) {\n blackKeyFound = 1;\n keyWasFound = 1;\n noteFound = blackKeyNoteNumbers.get(i);\n }\n }\n // Check white keys, if necessary\n for (int i = 0; (i < numberOfNotes) && (blackKeyFound == 0); i++) {\n if (blackKeyNoteNumbers.contains(i)) {\n continue; // skip black keys -already checked\n }\n RectF bounds = new RectF();\n keys.get(i).computeBounds(bounds, true);\n if (bounds.contains((float) x, (float) y)) {\n keyWasFound = 1;\n noteFound = i;\n }\n }\n // Save found key\n if (keyWasFound == 1) {\n // save note number and pressure in all affected keys map\n if (pressed_map.containsKey(noteFound)) {\n pressed_map.put(noteFound,\n Math.max(event.getPressure(pointerIndex),\n pressed_map.get(noteFound)));\n } else {\n pressed_map.put(noteFound, event.getPressure(pointerIndex));\n }\n // if appropriate, save note number in pressed keys map\n if ((pointerIndex != event.getActionIndex() || (\n actionCode != MotionEvent.ACTION_UP &&\n actionCode != MotionEvent.ACTION_POINTER_UP))) {\n new_pressed.add(noteFound);\n }\n }\n }\n // Map of newly pressed keys (pressed keys that weren't already pressed)\n Set<Integer> just_pressed = new HashSet<Integer>(new_pressed);\n just_pressed.removeAll(old_pressed);\n // Play the sound of each newly pressed key\n Iterator<Integer> it = just_pressed.iterator();\n justPressedKeys.clear(); // empty the list of just pressed keys (used to draw them)\n while (it.hasNext()) {\n int i = it.next();\n justPressedKeys.add(i); // add the key (note number) to the list so that it can be shown as pressed\n try {\n playIds.set(i, pianoSounds.play(soundIds.get(i), 1.0f, 1.0f, 1, 0, 1.0f));\n } catch (Exception e) {\n Log.e(\"onTouchEvent\", \"Key \" + i + \" not playable!\");\n }\n }\n // Stop the sound of released keys\n if (damper.equals(\n getContext().getString(R.string.pref_damper_dampen_value))) {\n Set<Integer> just_released = new HashSet<Integer>(old_pressed);\n just_released.removeAll(new_pressed);\n it = just_released.iterator();\n while (it.hasNext()) {\n int i = it.next();\n pianoSounds.stop(playIds.get(i));\n }\n }\n // Update map of pressed keys\n old_pressed = new_pressed;\n // Force a call to onDraw() to give visual feedback to the user\n this.invalidate();\n return true;\n }", "public boolean isInputEnabled() {\r\n return inputEnabled;\r\n }", "public boolean isKeyTriggered ( @NotNull final KeyEvent event )\n {\n return keyCode != null && event.getKeyCode () == keyCode;\n }" ]
[ "0.71552134", "0.70388734", "0.70176697", "0.68610334", "0.68601567", "0.68028724", "0.6800973", "0.67908585", "0.6771806", "0.6596513", "0.65344125", "0.651043", "0.6505691", "0.65040284", "0.6481783", "0.6461887", "0.6456911", "0.64399654", "0.6428687", "0.6397269", "0.63926303", "0.6361353", "0.63572526", "0.63205045", "0.63181376", "0.63153714", "0.62815577", "0.6254991", "0.62298346", "0.6220337", "0.6208546", "0.6201302", "0.618477", "0.613184", "0.6107514", "0.61063814", "0.6095382", "0.60730636", "0.6066067", "0.6057473", "0.60376716", "0.60261124", "0.60155994", "0.5997908", "0.5997368", "0.59624577", "0.5959601", "0.5957101", "0.593373", "0.59297043", "0.5920872", "0.5917419", "0.5917419", "0.5917419", "0.5917419", "0.5917419", "0.5917419", "0.5917419", "0.5917419", "0.59090877", "0.5902325", "0.5895888", "0.5894884", "0.58944684", "0.58731866", "0.5861983", "0.5857613", "0.5843969", "0.5842174", "0.5834491", "0.58260185", "0.58151174", "0.5813074", "0.5813074", "0.5813074", "0.5813074", "0.5813074", "0.5813074", "0.5803351", "0.5800626", "0.57957864", "0.57926124", "0.5791512", "0.57854813", "0.57814157", "0.57805425", "0.5775799", "0.57695174", "0.5757862", "0.5754068", "0.57497275", "0.5733593", "0.5726666", "0.5726666", "0.5726666", "0.57223016", "0.57172704", "0.5710079", "0.57077205", "0.5701993" ]
0.77911526
0
examples using the factory methods of Optional
public static void createOptionals() { String nullString = null; String emptyString = ""; Optional.ofNullable(nullString); Optional.of(emptyString); try { Optional.of(nullString); } catch (NullPointerException e) { } Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tOptional<Object> empty = Optional.empty();\r\n\t\tSystem.out.println(empty.isPresent()); // returns false, since Object is null\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// Using the of(value) method for a String that is Not null\r\n\t\tOptional<String> helloString = Optional.of(\"Hello!\");\r\n\t\tSystem.out.println(helloString.isPresent()); // returns true, since String = \"Hello and is Not null. \r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// orElse(other value) - returns the value if present, otherwise returns the other value\r\n\t\tString orElse = helloString.orElse(\"Howdy!\");\r\n\t\tSystem.out.println(orElse);\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Using the ofNullable(value) method for a null String\r\n\t\tOptional<String> hello = Optional.ofNullable(null);\r\n\t\thello\r\n\t\t\t.map(String::toUpperCase)\r\n\t\t\t.orElse(\"Howdy!\"); // orElse() returns the other value: String 'Howdy!'\r\n\t\tSystem.out.println(hello); \r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t// Using chain methods on helloString with map() and orElseGet() methods\r\n\t\torElse = helloString\r\n\t\t\t\t.map(String::toUpperCase)\r\n\t\t\t\t.orElseGet(() -> {\r\n\t\t\t\t\t// ..some extra computations to get the value\r\n\t\t\t\t\treturn \"world\"; // helloString is Not null, since not getting 'world'.\r\n\t\t\t\t});\r\n\t\tSystem.out.println(orElse);\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t}", "private static void optinalOfNullableBasic() {\n String answer1 = \"Yes\";\n String answer2 = null;\n System.out.println(\"\" + Optional.ofNullable(answer1));\n \n // we cn pass null value in ofNullable method. In this case it will return empty optional\n // rather then Null Pointer Exception\n System.out.println(\"\" + Optional.ofNullable(answer2));\n }", "private Optional() {\r\n\t\tthis.value = null;\r\n\t}", "private Optional(T value) {\r\n\t\tthis.value = Objects.requireNonNull(value);\r\n\t}", "public void optional() {\n\n // .stream\n Stream<Optional<Employee>> emp = getEmployeeStream(\"Some employee ID\");\n Stream<Employee> empStream = emp.flatMap(Optional::stream);\n\n // .or\n Optional<Employee> or = getEmployee(\"123\").or(() -> Optional.of(new Employee(\"123\")));\n\n // .ifPresentOrElse\n or.ifPresentOrElse(employee -> {\n System.out.println(\"Present\");\n }, () -> {\n System.out.println(\"Else\");\n });\n\n }", "private static void optionalOrElseBasic() {\n \n System.out.println(\"name remains = \"+Optional.ofNullable(\"Yassir\").orElse(\"Arafat\"));\n System.out.println(\"name changed = \"+Optional.ofNullable(null).orElse(\"Arafat\"));\n }", "boolean optional();", "private static void optionalIfPresent() {\n Optional<String> optionalOb = Optional.of(\"Yassir\");\n optionalOb.ifPresent(name -> {System.out.println(\"Name = \"+name);});\n }", "private static void alloptional() {\n AllOptional op1 = ImmutableAllOptional.builder().build();\n System.out.println(op1);\n \n AllOptional op2 = ImmutableAllOptional.builder()\n //.v1(1)\n .v2(2)\n .i1(1)\n .l1(1L)\n .d1(1.0)\n .build();\n System.out.println(op2);\n System.out.println();\n }", "boolean isOptional();", "Optional<T> show();", "public static void main(String[] args) {\n\t\t\n\t\tOptional<List<String>> opt = Optional.of(List.of(\"one\",\"two\",\"three\"));\n\t\t\n\t\topt.stream().forEach(l -> l.stream().filter(s -> !s.contains(\"w\")).forEach(System.out::println));\n\t\t\n\t\tSystem.out.println(\"=====================================\");\n\t\t\n\t\t/*\n\t\t * IfPresentOrElse() : If a value is present, performs the given action with the value, otherwise performs the given empty-based action. \n\t\t */\n\t\t Optional.of(4).ifPresentOrElse( x -> System.out.println(\"Result found: \" + x), () -> System.out.println(\"Not Found.\")); // Result found: 4\n\t\t \n\t\t Optional.empty().ifPresentOrElse( x -> System.out.println(\"Result found: \" + x), () -> System.out.println(\"Not Found.\")); // Not found.\n\t\t \n\t\t System.out.println(\"=====================================\");\n\t\t \n\t\t /*\n\t\t * or() : if a value is present in the optional, returns an Optional describing the value, otherwise returns an Optional produced by the \n\t\t * supplier passed as parameter.\n\t\t */\n\t\t System.out.println(Optional.of(\"Rams\").or(() -> Optional.of(\"No Name\"))); // Optional[Rams]\n\n\t\t System.out.println(Optional.empty().or(() -> Optional.of(\"No Name\"))); // Optional[No Name]\n\t}", "private static void optionalMapBasic() {\n Optional<String> nonEmptyGender = Optional.of(\"male\");\n Optional<String> emptyGender = Optional.empty();\n \n // optional.map here mapping the value of obj \"male\" temporarily and executing the method toUppercase \n // \"MALE\" \n System.out.println(\"Non-Empty Optional:: \"+nonEmptyGender.map((t) -> {\n return t.toUpperCase();\n }));\n // object's main value won't affected for operation during in lamda's\n System.out.println(\"\"+nonEmptyGender);\n \n // for empty object value nothing will map or creates exception. will return empty result\n System.out.println(\"Empty Optional :: \" + emptyGender.map(String::toUpperCase));\n }", "public static <T> Optional <T> of(T value) {\r\n\t\treturn new Optional<>(value);\r\n\t}", "public void test6(){\n User user = null;\n\n String name = Optional.ofNullable(user).map(User :: getName).orElse(\"taotao\");\n\n System.out.println(name);\n }", "public static void main(String[] arg) {\n\n Car car = new Car();\n\n OptionalTestTwo two = new OptionalTestTwo(Optional.ofNullable(car));\n\n int number = Optional.ofNullable(two)\n .flatMap(OptionalTestTwo::getCar)\n .map(x -> x.getCarNumber())\n .orElse(12);\n System.out.println(number);\n\n\n }", "public static void main(String[] args) {\n Object value = Optional.ofNullable(null)\n .orElseGet(() -> \"default value\");\n\n System.out.println(value);\n\n // this returns an exception when the right value is not entered\n Object newValue = Optional.ofNullable(45)\n .orElseThrow(() -> new IllegalStateException(\"exception\"));\n\n System.out.println(newValue);\n\n // checks if a value is present and then runs an operation\n Optional.ofNullable(\"[email protected]\")\n .ifPresentOrElse(email -> System.out.println(\"Sending email to \" + email),\n () -> System.out.println(\"Cannot send email\"));\n }", "protected boolean isOptional()\n {\n return false;\n }", "Argument<T> optional(boolean optional);", "private OptionalValue(final Value value) {\n this.value = value;\n }", "boolean hasOptionalValue();", "@Test\n public void testByName() {\n Optional<User> user1 = userRepository.findById(11L);\n //assertEquals(user, user1);\n }", "public interface STipoOptional extends AgroludosService{\n\t/**\n\t * \n\t * @param topto\n\t * @return il tipo di optional inserito\n\t * @throws DatabaseException\n\t * @throws ValidationException\n\t */\n\tTipoOptionalTO inserisciTipoOptional(TipoOptionalTO topto) throws DatabaseException, ValidationException;\n}", "private Optional optionalToOptional(ElementOptional optional) throws SemQAException {\n\t\tElement elm = optional.getOptionalElement();\r\n\t\tGraphPattern gp;\r\n\t\tValueConstraint vc;\r\n\t\tif (elm instanceof ElementGroup) {\r\n\t\t\tList<Element> children = ((ElementGroup) elm).getElements();\r\n\t\t\tSet<GraphPattern> childSemQA = new LinkedHashSet<GraphPattern>();\r\n\t\t\tSet<Optional> optionals = new LinkedHashSet<Optional>();\r\n\t\t\tSet<ElementFilter> filters = new LinkedHashSet<ElementFilter>();\r\n\t\t\tfor (Element child : children) {\r\n\t\t\t\tif (child instanceof ElementFilter) {\r\n\t\t\t\t\tfilters.add((ElementFilter) child);\r\n\t\t\t\t}\r\n\t\t\t\telse if (child instanceof ElementOptional) {\r\n\t\t\t\t\t// if child is an optional, need to get the graph pattern for the optional\r\n\t\t\t\t\t// and add it to the list of optional graph patterns\r\n\t\t\t\t\toptionals.add(optionalToOptional((ElementOptional) child));\r\n//\t\t\t\t\tchildSemQA.add(optionalToOptional((ElementOptional) child));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tchildSemQA.add(sparqlToSemQA(child));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGraphPattern baseGp = convertSetToJoin(childSemQA);\r\n\t\t\tif (childSemQA.size() == 0) {\r\n\t\t\t\tthrow new SemQAException(\"semQA: OPTIONAL without non-optional side not supported.\");\r\n\t\t\t}\r\n\t\t\tif (optionals.size() > 0) {\r\n\t\t\t\t// if there are optional elements, create a left join\r\n\t\t\t\t// convert the non-filter non-optional graph patterns to a Join if necessary\r\n\t\t\t\t// then, each optional element is part of a left join\r\n\t\t\t\tgp = new LeftJoin(baseGp, optionals);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// no optionals, just return the join of the graph patterns\r\n\t\t\t\tgp = baseGp;\r\n\t\t\t}\r\n\t\t\tif (filters.size() > 0) {\r\n\t\t\t\tvc = getConstraintFromFilters(filters);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvc = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgp = sparqlToSemQA(elm); // if it is not a group\r\n\t\t\tvc = null;\r\n\t\t}\r\n\t\treturn new Optional(gp, vc);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Optional<Integer> integer = Optional.of(1111);\n integer.map(x -> \"\" + x)\n .filter(x -> x.length() == 3)\n .ifPresent(System.out::println);\n\n //map into another type of optional\n Optional\n .of(\"qwerty\")\n .map(String::length)\n .ifPresent(System.out::println);\n\n Optional<String> optional = Optional.of(\"qwerty\");\n\n //map vs flatmap\n //Chaining calls to flatMap() is useful when you want to transform one\n //Optional type to another.\n Optional<Optional<Integer>> integer1 = optional.map(OptionalChaining::calculator);\n Optional<Integer> integer2 = optional.map(OptionalChaining::calculatorInt);\n\n Optional<Integer> integer3 = optional.flatMap(OptionalChaining::calculator);\n }", "Optional<T> toOptional();", "java.lang.String getOptionalValue();", "public abstract Optional<A> val();", "private static void optionalFlatMapBasic() {\n \n Optional<Optional<String>> nonEmptyOptionalGender = Optional.of(Optional.of(\"male\"));\n System.out.println(\"Optional value :: \" + nonEmptyOptionalGender);\n System.out.println(\"Optional.map :: \" + nonEmptyOptionalGender.map(gender -> gender.map(String::toUpperCase)));\n System.out.println(\"Optional.flatMap :: \" + nonEmptyOptionalGender.flatMap(gender -> gender.map(String::toUpperCase)));\n \n Optional<Optional<Optional<String>>> nonEmptyOptionalGenderAgain = Optional.of(Optional.of(Optional.of(\"male\")));\n \n // this 2 process below won't work\n /* \n System.out.println(\"Optional.map :: \" + nonEmptyOptionalGenderAgain.map(gender -> gender.map(String::toUpperCase)));\n System.out.println(\"Optional.flatMap :: \" + nonEmptyOptionalGenderAgain.flatMap(gender -> gender.map(String::toUpperCase)));\n */\n \n // this 2 will work\n System.out.println(\"Optional.map :: \" + nonEmptyOptionalGenderAgain.map(\n gender -> gender.map(\n gen -> gen.map(String::toUpperCase))));\n\n System.out.println(\"Optional.flatMap :: \" + nonEmptyOptionalGenderAgain.flatMap(\n gender -> gender.map(\n gen -> gen.map(String::toUpperCase))));\n \n }", "private static void optionalWithGenericTypeAndLamdaExpressions() {\n Optional opUserAccountWithoutGeneric = Optional.of(new UserAccount());\n // in this case optional will return object which we need to cast\n opUserAccountWithoutGeneric.ifPresent((t) -> {System.out.println(\"\" + ((UserAccount) t).doSomething());});// using lamda's\n // In this case method reference will not work cause it can't understand which object's method it is\n // as no generic type defined\n /**opUserAccountWithoutGeneric.ifPresent(UserAccount::doSomething);**/// using method reference\n\n // TYPE 2: With Generic \n Optional<UserAccount> opUserAccount = Optional.of(new UserAccount());\n // in this case we don't need to cast\n opUserAccount.ifPresent((t) -> {System.out.println(\"\" + t.doSomething());});// using lamda's\n opUserAccount.ifPresent(UserAccount::doSomething);// using method reference\n }", "protected abstract Optional<T> getSingleSelection();", "Or createOr();", "Or createOr();", "public interface SolutionQuery {\n\n Optional<String> getUser();\n\n Optional<String> getTask();\n\n Optional<SolutionStatus> getStatus();\n\n boolean isTest();\n}", "public Option() {\n }", "@Test\n\tpublic void testGetLabel() {\n\t\tList<Label> label1 = null;\n\t\tString emailId = \"[email protected]\";\n\t\tOptional<Label> already = Optional.of(label);\n\t\twhen(labelRepository.findByEmailId(emailId)).thenReturn(label1);\n\t\tassertEquals(label.getEmailId(), already.get().getEmailId());\n\t}", "@Test\n void shouldReturnEmptyOptionalIfUserNotFound() {\n //given\n String id = \"xyz-abc\";\n //Lambda matcher\n given(userRepo.findById(argLambda(e -> Objects.equals(id, \"xyz-abc\")))).willReturn(Optional.empty());\n //when\n Optional<User> optionalUser = userService.getUser(id);\n //then\n assertThat(optionalUser).isNotNull();\n assertThat(optionalUser.isPresent()).isFalse();\n //Argument Captor\n verify(userRepo).findById(assertArg(e -> assertThat(e).isEqualTo(id)));\n verify(userRepo, times(1)).findById(assertArg(e -> assertThat(e).isEqualTo(id)));\n }", "public static void main(String[] args) {\n\n\t\tint a = 5;\n\t\tString b = \"ig\";\n\t\tMyTestOptional<String> name = MyTestOptional.of(\"Igor\");\n\t\t\tif(name.isPresent()) {\n\t\t\t\tSystem.out.println(name);\n\t\t\t}\n\n\t\tMyTestOptional<String> nameNext = MyTestOptional.of(\"Nastia\");\n\t\tassert nameNext.hashCode() == nameNext.hashCode();\n\t\tSystem.out.println(nameNext.hashCode());\n\t}", "static <V> Value<V> of(Optional<V> value) {\n return new ImmutableValue<>(value.orElse(null));\n }", "@Test\n public void testLoadOptionalBuilderForceCreate()\n throws ConfigurationException\n {\n CombinedConfiguration config = prepareOptionalTest(\"configuration\",\n true);\n assertEquals(\"Wrong number of configurations\", 1, config\n .getNumberOfConfigurations());\n assertTrue(\n \"Wrong optional configuration type\",\n config.getConfiguration(OPTIONAL_NAME) instanceof CombinedConfiguration);\n }", "default Optional<V> toOptional() {\n V item = orElseNull();\n return item == null ? Optional.empty() : Optional.of( item );\n }", "@Test\n public void testLoadOptionalForceCreateWithException()\n throws ConfigurationException\n {\n factory.addConfigurationProvider(\"test\",\n new DefaultConfigurationBuilder.ConfigurationBuilderProvider()\n {\n // Throw an exception here, too\n @Override\n public AbstractConfiguration getEmptyConfiguration(\n DefaultConfigurationBuilder.ConfigurationDeclaration decl) throws Exception\n {\n throw new Exception(\"Unable to create configuration!\");\n }\n });\n CombinedConfiguration config = prepareOptionalTest(\"test\", true);\n assertEquals(\"Optional configuration could be created\", 0, config\n .getNumberOfConfigurations());\n }", "default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }", "static Object missingValue(Class type) {\n if (!OptionalParameter.class.isAssignableFrom(type)) {\n return null;\n } else if (type == OptString.class) {\n return OptString.theMissingValue;\n } else if (type == OptBoolean.class) {\n return OptBoolean.theMissingValue;\n } else if (type == OptInteger.class) {\n return OptInteger.theMissingValue;\n } else if (type == OptDouble.class) {\n return OptDouble.theMissingValue;\n } else {\n return null;\n }\n }", "public NullableResponse() {\n\t}", "@Test\n void getByIdFail () {\n Api2 instance = new Api2();\n Optional<TestEntity> optionalEntity = instance.getById(TestEntity.class, 1000000L);\n assertFalse(optionalEntity.isPresent());\n }", "NullValue createNullValue();", "NullValue createNullValue();", "public None()\n {\n \n }", "Optional<String> getExtractor();", "Optional<X> elem();", "public static Acceptor optional(Acceptor a) {\n\t\treturn new Optional(a);\n\t}", "public Result(Optional<T> value) {\n this.status = Status.SUCCESS;\n this.message = \"\";\n this.value = value;\n }", "private ParseTree maybeParseOptionalExpression(ParseTree operand) {\n // The optional chain's source info should cover the lhs operand also\n SourcePosition start = operand.location.start;\n\n while (peek(TokenType.QUESTION_DOT)) {\n eat(TokenType.QUESTION_DOT);\n switch (peekType()) {\n case OPEN_PAREN:\n ArgumentListTree arguments = parseArguments();\n operand =\n new OptChainCallExpressionTree(\n getTreeLocation(start),\n operand,\n arguments,\n /* isStartOfOptionalChain = */ true,\n arguments.hasTrailingComma);\n break;\n case OPEN_SQUARE:\n eat(TokenType.OPEN_SQUARE);\n ParseTree member = parseExpression();\n eat(TokenType.CLOSE_SQUARE);\n operand =\n new OptionalMemberLookupExpressionTree(\n getTreeLocation(start), operand, member, /* isStartOfOptionalChain = */ true);\n break;\n case NO_SUBSTITUTION_TEMPLATE:\n case TEMPLATE_HEAD:\n reportError(\"template literal cannot be used within optional chaining\");\n break;\n default:\n if (peekIdOrKeyword()) {\n IdentifierToken id = eatIdOrKeywordAsId();\n operand =\n new OptionalMemberExpressionTree(\n getTreeLocation(start), operand, id, /* isStartOfOptionalChain = */ true);\n } else {\n reportError(\"syntax error: %s not allowed in optional chain\", peekType());\n }\n }\n operand = parseRemainingOptionalChainSegment(operand);\n }\n return operand;\n }", "OptionalInt getAge();", "protected abstract S createDefault();", "public static Optional<Cuenta> crearCuenta001() {\n return Optional.of(new Cuenta(1L, \"Cristian\", new BigDecimal(\"1000\")));\n }", "ParameterableElement getDefault();", "Optional<User> create(UserDto dto);", "Optional<Media> getRandomDog();", "Simple createSimple();", "public void testOrNPE1() {\r\n try {\r\n validator.or(null);\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "@Test\n public void testGetOrDefault() {\n System.out.println(\"getOrDefault\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n Object defaultValue = \"defaultValue\";\n Object result = instance.getOrDefault(key, defaultValue);\n \n // THEN must return default value\n assertEquals(defaultValue, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.getOrDefault(key, defaultValue);\n \n // THEN must return put value\n assertEquals(putValue, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.getOrDefault(key, defaultValue);\n // THEN must return default value\n assertEquals(defaultValue, result);\n }", "public Object getDefaultValue();", "public Object getDefaultValue();", "T getDefaultValue();", "String getDescriptionIfNotMet();", "protected void applyOptionalAnnotation(Logger logger, GetterSpec result, AnnotationMirror mirror) {\n\t\tresult.optional = true;\n\t}", "public void setOptional(boolean optional) {\n\t\tthis.optional = optional;\n\t}", "interface Optionage {\n\n /**\n * Gets the set of supported options.\n * @return the set of supported options\n * @see Doclet#getSupportedOptions()\n */\n Set<? extends Doclet.Option> getSupportedOptions();\n\n /**\n * Gets a single parameter value for the given option or returns a default value. Use this\n * method only for options that take exactly one parameter value, because only the first\n * value will be returned for options accepting multiple parameter values. For options\n * that do not accept parameter values, this method will always return the default value,\n * whether or not the option is present. To check whether an option that does not accept\n * parameter values is present, use {@link #isPresent(String)}.\n *\n * @param name the option name\n * @param defaultValue the default value; if null, this method may return null\n * @return the parameter value for the given option, or\n */\n default String getOptionString(String name, String defaultValue) {\n List<String> paramValues = getOptionStrings(name);\n if (paramValues != null && !paramValues.isEmpty()) {\n return paramValues.get(0);\n }\n return defaultValue;\n }\n\n /**\n * Gets the list of parameter values specified for the given option if it is present.\n * @param name the option name\n * @return the list of parameter values specified for the given option, or null if the option was not present\n */\n @Nullable\n List<String> getOptionStrings(String name);\n\n /**\n * Checks whether this option is present, meaning it was present on the command line that was parsed.\n * @param name the option name\n * @return true iff option is present\n */\n default boolean isPresent(String name) {\n return getOptionStrings(name) != null;\n }\n\n /**\n * Creates a composite instance that implements this interface by querying multiple other instances.\n * @param priority the first instance to query\n * @param lessers the other instances to query, in order of priority\n * @return a new instance representing a composite\n */\n static Optionage compose(Optionage priority, Optionage...lessers) {\n requireNonNull(priority, \"priority\");\n List<Optionage> optionages = Stream.concat(Stream.of(priority), Stream.of(lessers)).collect(Collectors.toList());\n return new Optionage() {\n @Override\n public Set<? extends Doclet.Option> getSupportedOptions() {\n return optionages.stream()\n .flatMap(optionage -> optionage.getSupportedOptions().stream())\n .collect(Collectors.toSet());\n }\n\n @Nullable\n @Override\n public List<String> getOptionStrings(String name) {\n for (Optionage optionage : optionages) {\n @Nullable List<String> paramValues = optionage.getOptionStrings(name);\n if (paramValues != null) {\n return paramValues;\n }\n }\n return null;\n }\n\n @Override\n public String getOptionString(String name, String defaultValue) {\n for (Optionage optionage : optionages) {\n String value = optionage.getOptionString(name, null);\n if (value != null) {\n return value;\n }\n }\n return defaultValue;\n }\n\n @Override\n public boolean isPresent(String name) {\n return optionages.stream().anyMatch(optionage -> optionage.isPresent(name));\n }\n };\n }\n}", "@Test\r\n public void testMake() throws Exception\r\n {\n ProductType myPT = ProductType.OPAD;\r\n SerialNumber mySN = new SerialNumber(new BigInteger(\"8\"));\r\n Product myOpad = AbstractProduct.make(myPT, mySN, Optional.empty());\r\n Product myOpadTest = new Opad(mySN, Optional.empty());\r\n assertEquals(myOpadTest, myOpad);\r\n\r\n // Test 2: Shows invalid product type exception thrown\r\n try\r\n {\r\n Product myOpod = AbstractProduct.make(null, mySN, Optional.empty());\r\n }catch(ProductException productException){\r\n assertEquals(ProductException.ErrorCode.INVALID_PRODUCT_TYPE, productException.getErrorCode());\r\n }\r\n\r\n // Test 3: Shows invalid serial number exception thrown\r\n mySN = new SerialNumber(new BigInteger(\"4\"));\r\n myPT = ProductType.OPAD;\r\n try\r\n {\r\n myOpad = AbstractProduct.make(myPT, mySN, Optional.empty());\r\n }catch(ProductException productException){\r\n assertEquals(ProductException.ErrorCode.INVALID_SERIAL_NUMBER, productException.getErrorCode());\r\n }\r\n }", "@SuppressWarnings(\"OptionalUsedAsFieldOrParameterType\")\npublic interface Value<V> extends Supplier<V> {\n /** Creates an empty instance of Value */\n static <V> Value<V> empty() {\n return new ImmutableValue<>((V) null);\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(V value) {\n return new ImmutableValue<>(value);\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(Optional<V> value) {\n return new ImmutableValue<>(value.orElse(null));\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(Value<V> value) {\n return new ImmutableValue<>(value.get());\n }\n\n /** Creates an instance of Value for the given String, treat empty strings as null */\n static Value<String> of(String value) {\n return new ImmutableValue<>((value == null || value.isEmpty()) ? null : value);\n }\n\n /** Tries to parse the integer from the String and returns the value if its found */\n static Value<Integer> parseInteger(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Integer.parseInt(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the long from the String and returns the value if its found */\n static Value<Long> parseLong(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Long.parseLong(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the double from the String and returns the value if its found */\n static Value<Double> parseDouble(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Double.parseDouble(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the float from the String and returns the value if its found */\n static Value<Float> parseFloat(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Float.parseFloat(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the short from the String and returns the value if its found */\n static Value<Short> parseShort(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Short.parseShort(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the byte from the String and returns the value if its found */\n static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the boolean from the String and returns the value if its found */\n static Value<Boolean> parseBoolean(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Boolean.parseBoolean(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Does the value instance contain a non null value */\n default boolean isPresent() {\n return get() != null;\n }\n\n /** Does the value instance contain a null value */\n default boolean isEmpty() {\n return get() == null;\n }\n\n /** Get the value of this instance if its present for return the argument could be null */\n default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }\n\n /** Gets the value of this instance or throw NullPointerException with the provided message */\n default V getOrThrow(String message) {\n return Conditions.nonNull(get(), message);\n }\n\n /** Gets the value of this instance or throw NullPointerException */\n default V getOrThrow() {\n return getOrThrow(\"null\");\n }\n\n /** Run a consumer instance on the value if it exists */\n default Value<V> ifPresent(Consumer<V> consumer) {\n if (isPresent()) {\n consumer.accept(get());\n }\n return this;\n }\n\n /** Run a runnable instance on the value if it exists */\n default Value<V> ifPresent(Runnable runnable) {\n if (isPresent()) {\n runnable.run();\n }\n return this;\n }\n\n /** Run a runnable instance on the value if it is empty */\n default Value<V> ifEmpty(Runnable runnable) {\n if (isEmpty()) {\n runnable.run();\n }\n return this;\n }\n}", "public abstract Optional<Item[]> equipmentRequired(Player player);", "public final void setOptional() {_occ.setOptional();}", "@Test\n void noRequestParamForOptionalBook() throws Exception {\n this.mvc.perform(get(\"/rp/optional_book\"))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$\").doesNotExist());\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = null;\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder((String) null, nucleotideSequence0, qualitySequence0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // id can not be null\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "@Test\n default void testAbstractDescriptivePredicateConstructorThrowsExceptionForNullDescription() {\n NullPointerException exception = Assertions.assertThrows(NullPointerException.class,\n () -> getInstance(null));\n Assertions.assertEquals(ValidityUtils.nullArgumentMessage(\"description\"),\n exception.getMessage(),\n \"The AbstractDescriptivePredicate constructor should throw the expected exception for a null argument.\");\n }", "public void testConstructorWithComplexTypeWithNullSimpleParam() throws Exception {\r\n ConfigurationObject configurationObject = createObject(\"name\", TYPE_OBJECT);\r\n ConfigurationObject paramsChild = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param1\");\r\n param.setPropertyValue(PROPERTY_TYPE, TYPE_INT);\r\n paramsChild.addChild(param);\r\n configurationObject.addChild(paramsChild);\r\n root.addChild(configurationObject);\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tif (value != null)\r\n\t\t\treturn String.format(\"Optional[%s]\", value);\r\n\t\telse\r\n\t\t\treturn \"Optional.empty\";\r\n\t}", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public static <T> Optional <T> ofNullable(T value) {\r\n\t\tif (value == null)\r\n\t\t\treturn empty();\r\n\t\treturn of(value);\r\n\t}", "public void setOptional(Boolean optional) {\n this.optional = optional;\n }", "@Named(\"unwrap\")\n default <T> T unwrap(Optional<T> optional) {\n return optional.orElse(null);\n }", "@Test(expected = UserNotExists.class)\n public void getUserInformationThatDoesNotExistsTest() throws Exception {\n\n given(userRepository.findById(anyLong())).willReturn(Optional.empty());\n User user_retrived = userServiceImpl.getUserInformation(1L);\n\n }", "@Test\n\tpublic void testDefaultConstructor() {\n\t\tassertThat(\"Expect not null.\", testling, is(notNullValue()));\n\t}", "protected Node getOptionalNode(Node parent, int idx)\n {\n if (hasArgument(parent, idx)) {\n return parent.jjtGetChild(idx);\n }\n return null;\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n String string0 = \"\";\n NucleotideSequence nucleotideSequence0 = null;\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder(\"\", (NucleotideSequence) null, qualitySequence0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // sequence can not be null\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "public interface Option {\n\n String DEFAULT_PREFIX = \"<span style='color:red;'>\";\n\n String DEFAULT_SUFFIX = \"</span>\";\n\n String DEFAULT_REPLACEMENT = \"*\";\n\n Option DECORATE = new DecorateOption(DEFAULT_PREFIX, DEFAULT_SUFFIX);\n\n Option REPLACE = new ReplaceOption(DEFAULT_REPLACEMENT);\n\n Option REMOVE = new RemoveOption();\n\n String getPrefix();\n\n String getReplacement();\n\n String getSuffix();\n\n Option prefix(String prefix);\n\n Option replacement(String replacement);\n\n Option suffix(String suffix);\n\n Option cloneOption();\n}", "public static <T> Optional<T> or(Optional<T> first, Optional<T> second) {\n return first.isPresent() ? first : second;\n }", "public NullableResponse(T value) {\n\t\tthis.value = value;\n\t}", "Optional<String> getOName();", "Optional<Possession> randomPossession();", "public static void main(String[] args) {\r\n\t\tStream strings = Stream.of(\"A\", \"good\", \"day\", \"to\", \"write\", \"some\", \"Java\");\r\n//\t\tOptional<String> optionalS = (Optional<String>) strings.reduce(\"\", (x, y) -> x+\" \"+y).\r\n\r\n\t\tOptional<String> optional = strings.reduce((o, o2) -> o +\" \"+o2);\r\n\t\tif(optional.isPresent())\r\n\t\t\tSystem.out.println(optional.get());\r\n\r\n\t\t\r\n\t}", "private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }", "@Override public Type make_nil(byte nil) { return make(nil,_any); }", "public interface UserDao extends JpaRepository<UserEntity,String> {\n\n default UserEntity findByAccount(String account)throws Exception{\n UserEntity exp=new UserEntity();\n exp.setAccount(account);\n return this.findOne(Example.of(exp)).orElse(null);\n }\n}", "@Test\n public void testLoadOptional() throws Exception\n {\n factory.setURL(OPTIONAL_FILE.toURI().toURL());\n Configuration config = factory.getConfiguration();\n assertTrue(config.getBoolean(\"test.boolean\"));\n assertEquals(\"value\", config.getProperty(\"element\"));\n }", "@Override\n\tpublic Optional<T> get() {\n\t\treturn null;\n\t}", "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ConstructTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }" ]
[ "0.650741", "0.62998426", "0.6285289", "0.6197499", "0.6160639", "0.6143673", "0.6143209", "0.60810935", "0.5980876", "0.5936333", "0.59040487", "0.58879846", "0.5824231", "0.5796319", "0.5788492", "0.5770518", "0.56808144", "0.565993", "0.56284285", "0.56238985", "0.55789334", "0.5568591", "0.55416244", "0.5529796", "0.5507955", "0.5494686", "0.5485532", "0.5467649", "0.54493934", "0.5444036", "0.5440404", "0.5381851", "0.5381851", "0.53718424", "0.53414625", "0.53357124", "0.53205603", "0.53187203", "0.53097075", "0.5291121", "0.5266152", "0.52556455", "0.5248134", "0.52441704", "0.5241164", "0.51711076", "0.51686686", "0.51686686", "0.5164995", "0.5150733", "0.5146746", "0.5142901", "0.5140171", "0.5129855", "0.5110247", "0.5108771", "0.51068276", "0.50946355", "0.5091466", "0.5067724", "0.50598156", "0.50396305", "0.50394976", "0.5036483", "0.5036483", "0.50309443", "0.501998", "0.50183755", "0.4990288", "0.4982618", "0.49823356", "0.49819058", "0.49794322", "0.49777135", "0.49774474", "0.49654698", "0.4963768", "0.49588418", "0.49519885", "0.49515116", "0.49477962", "0.4928428", "0.49267596", "0.4924684", "0.49221283", "0.49202585", "0.49189353", "0.4911899", "0.4894983", "0.48935953", "0.48902023", "0.48892775", "0.48878798", "0.48840567", "0.48670608", "0.48637894", "0.4860923", "0.48593175", "0.4858748", "0.48580965" ]
0.6774622
0
operate on a stringargument that might be null
public static void filterMap(final String testString) { // filter if (testString != null && testString.contains("Hello")) { System.out.println(testString); } Optional.ofNullable(testString).filter(s -> s.contains("Hello")).ifPresent(System.out::println); // map if (testString != null) { String trimmed = testString.trim(); if (trimmed.length() > 0) System.out.println(trimmed); } Optional.ofNullable(testString).map(String::trim).filter(s -> s .length() > 0).ifPresent(System.out::println); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "private static void m9058c(String str) {\n StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[3];\n String className = stackTraceElement.getClassName();\n String methodName = stackTraceElement.getMethodName();\n throw ((IllegalArgumentException) m9050a(new IllegalArgumentException(\"Parameter specified as non-null is null: method \" + className + \".\" + methodName + \", parameter \" + str)));\n }", "private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}", "public static void notNullOrEmpty(String value, String argName) {\n\t\tif( argName == null) {\n\t\t\tthrow new IllegalArgumentException (\"The argName of the received 'value' parameter cannot be null.\");\n\t\t}\n\t\t\n\t\tif( argName.trim().length() == 0) {\n\t\t\tthrow new IllegalArgumentException (\"The argName of the received 'value' parameter cannot be empty.\");\n\t\t}\n\t\t\n\t\tif( value == null) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' is null.\");\n\t\t}\n\t\t\n\t\tif( value.trim().length() == 0) {\n\t\t\tthrow new IllegalArgumentException (\"The string '\" + argName + \"' is empty.\");\n\t\t}\n\t}", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "private String getStringOrNull (String value) {\n if (value == null || value.isEmpty()) value = null;\n return value;\n }", "private static void checkArg(Object s) {\n if (s == null) {\n throw new NullPointerException(\"Argument must not be null\");\n }\n }", "public static String requireNullOrNonEmpty(String str, String message) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "@Test\n\tpublic void caseNameWithNull() {\n\t\tString caseName = \"null\";\n\t\ttry {\n\t\t\tStringNumberUtil.stringUtil(caseName);\n\t\t\tfail();\n\t\t} catch (StringException e) {\n\n\t\t}\n\t}", "@Test\n public void nonNullStringPass() {\n }", "private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void whenNullStringUsed_ExceptionIsThrown() {\n\t\tString input = null;\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tstringUtility.castWordNumberToNumber(input);\n\t}", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String dispNull (String input) {\n //because of short circuiting, if it's null, it never checks the length.\n if (input == null || input.length() == 0)\n return \"N/A\";\n else\n return input;\n }", "public static String requireNullOrNonEmpty(String str) {\n if (str != null && str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public static boolean b(String paramString) {\n/* 26 */ return (paramString == null || \"\".equals(paramString));\n/* */ }", "static String checkEmptyString(String str, String strName) {\n String errorMsg = \"empty \" + strName;\n str = Optional.ofNullable(str).map(s -> {\n if(s.isEmpty()) {\n throw new NullPointerException(errorMsg);\n }\n return s;\n }).orElseThrow(() -> new NullPointerException(errorMsg));\n return str;\n }", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public static void notNullOrEmpty(String parameter, String name)\n {\n if(parameter == null || parameter.isEmpty()) {\n throw new IllegalArgumentException(name + \" is null or empty.\");\n }\n }", "public static String checkString(String s) {\n if(s==null || s.length()==0) return null;\n return s;\n }", "public static String checkNull(String string1) {\n if (string1 != null)\n return string1;\n else\n return \"\";\n }", "public static String notNull(String p_in) {\n\t\tString ret = p_in;\n\t\tif (ret==null) ret=\"\";\n\t\treturn ret;\n\n\t}", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n\tvoid testCheckString3() {\n\t\tassertFalse(DataChecker.checkString(null));\n\t}", "public ArgumentChecker(String word) {\n\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }", "static void checkString(final String param, final String paramName) {\r\n Helper.checkNull(param, paramName);\r\n\r\n if (param.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"The argument '\" + paramName\r\n + \"' should not be empty string.\");\r\n }\r\n }", "public static String displayNull (String input)\r\n {\r\n //because of short circuiting, if it's null, it never checks the length.\r\n if (input == null || input.length() == 0)\r\n return \"N/A\";\r\n else\r\n return input;\r\n }", "@Test\n public void nonNullString() {\n }", "private boolean hasValue (String s) { return s != null && s.length() != 0; }", "@Override\n public String visit(ReceiverParameter n, Object arg) {\n return null;\n }", "private static void checkForNullValue(String value) {\n if ( value == null ) {\n throw new NullPointerException();\n }\n }", "private String checkNullString(String text) {\n if ( text.contains( \" \" )) {\n return null;\n }\n\n // otherwise, we're totally good\n return text;\n }", "public void testCheckNull() {\n Util.checkNull(\"\", \"test\");\n }", "public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\n\t }", "private void checkForNullOrEmptyParameter(String param, String paramName)\n\t\t\tthrows MissingParameterException, InvalidParameterException {\n\t\tif (param == null) {\n\t\t\tthrow new MissingParameterException(paramName + \" can not be null\");\n\t\t} else if (param.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(paramName + \" can not be empty\");\n\t\t}\n\t}", "@Override\n\tpublic Object valueOf(String arg0) {\n\t\treturn null;\n\t}", "public String checkNull(String result) {\r\n\t\tif (result == null || result.equals(\"null\")) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "@Override\n\tpublic Object visit(StringNode stringNode) {\n\treturn null; }", "@Override\n public String visit(Name n, Object arg) {\n return null;\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testcontainsUniqueCharsNaiveNullString() {\n\t\tQuestion11.containsUniqueCharsNaive(null);\n\t}", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "@Override\n public String visit(MemberValuePair n, Object arg) {\n return null;\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "public static String fromNullToEmtpyString(String a) {\r\n\t\tif (a == null) {\r\n\t\t\treturn \"\";\r\n\t\t} else {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}", "public static String checkNull(String sInString) {\n\n\t\tString sOutString = \"\";\n\n\t\tif (sInString == null || sInString.trim().equals(\"\")) {\n\t\t\tsOutString = \"\";\n\t\t} else {\n\t\t\tsOutString = sInString.trim();\n\t\t}\n\n\t\treturn sOutString;\n\n\t}", "public static String mapEmptyToNull(String strIn)\r\n {\r\n if (strIn == null || strIn.trim().equals(\"\"))\r\n {\r\n return null;\r\n }\r\n return strIn;\r\n }", "public static boolean nullity(String param) {\n return (param == null || param.trim().equals(\"\"));\n }", "public static String checkNull(String string1, String string2) {\n if (string1 != null)\n return string1;\n else if (string2 != null)\n return string2;\n else\n return \"\";\n }", "public String visit (StringArgument aArg)\n {\n return aArg.getValue ();\n }", "private String notNull(String value) {\n return value != null ? value : \"\";\n }", "public static String check(String param, String src_default) {\n if (param == null || param.trim().equals(\"\")) {\n return src_default;\n } else {\n return param;\n }\n }", "@Contract(\"null -> true\")\n public static boolean isBlankOrNull(final String arg) {\n return (arg == null || arg.replaceAll(\"\\\\s\", \"\").length() == 0);\n }", "@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }", "@Override\n public String visit(CharLiteralExpr n, Object arg) {\n return null;\n }", "public static void nonBlank(String arg, String argName) {\r\n longerThan(arg, 0, argName);\r\n }", "@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }", "@Override\n public String visit(SimpleName n, Object arg) {\n return null;\n }", "@Test\n public void nullable_matcher() throws Exception {\n mock.oneArg(((Character) (null)));\n mock.oneArg(Character.valueOf('?'));\n Mockito.verify(mock, Mockito.times(2)).oneArg(ArgumentMatchers.nullable(Character.class));\n }", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public R visit(RDFLiteral n, A argu) {\n R _ret = null;\n n.sparqlString.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public String visit(UnionType n, Object arg) {\n return null;\n }", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public static String checkNull(String string1, String string2, String string3) {\n if (string1 != null)\n return string1;\n else if (string2 != null)\n return string2;\n else if (string3 != null)\n return string3;\n else\n return \"\";\n }", "public static String checkNotBlank(String argument, String message, Object... args) {\n Preconditions.checkNotNull(argument, message, args);\n Preconditions.checkArgument(!StringUtils.isBlank(argument), message, args);\n return argument;\n }", "public boolean canProvideString();", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testContainsUniqueChars2NullString() {\n\t\tQuestion11.containsUniqueChars2(null);\n\t}", "private static void checkStringExprNode(@Nullable Node node) {\n if (node == null) {\n throw new IllegalArgumentException(\"Expected a string; found: null\");\n }\n switch (node.getToken()) {\n case STRING:\n case TEMPLATELIT:\n break;\n case ADD:\n Node c = node.getFirstChild();\n checkStringExprNode(c);\n checkStringExprNode(c.getNext());\n break;\n default:\n throw new IllegalArgumentException(\"Expected a string; found: \" + node.getToken());\n }\n }", "@Ignore\n\t@Test\n\tpublic void testParamNull() {\n\t\tregisterParamException(null, keyString, valueString);\n\t\tregisterParamException(groupString, null, valueString);\n\t\tregisterParamException(groupString, keyString, null);\n\t}", "public static void verifyNonEmptyString(String variableName, Object value, Class<?> owner) throws DiagnoseException {\r\n DiagnoseUtil.verifyNotNull(variableName, value, owner);\r\n if (!(value instanceof String))\r\n throw new DiagnoseException(owner.getName() + \" parameter [\" + variableName + \"] must be a String.\");\r\n String stringValue = (String) value;\r\n if (stringValue.length() == 0)\r\n throw new DiagnoseException(owner.getName() + \" parameter [\" + variableName + \"] cannot be empty.\");\r\n }", "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n public String visit(VarType n, Object arg) {\n return null;\n }", "private void valida(String str)throws Exception{\n\t\t\t\n\t\t\tif(str == null || str.trim().isEmpty()){\n\t\t\t\tthrow new Exception(\"Nao eh possivel trabalhar com valores vazios ou null.\");\n\t\t\t}\n\t\t\n\t\t}", "public static String requireNonEmpty(String str, String message) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return str;\n }", "public RamString(String string) throws IllegalArgumentException{\r\n if (string == null) {\r\n throw new IllegalArgumentException(\"Input cannot be null.\");\r\n }\r\n this.string = string; }", "public static String requireNonEmpty(String str) {\n if (str.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return str;\n }", "public String replaceMissingWithNull(String value);", "public static String nullToEmpty(String string)\r\n {\r\n return (string == null)?\"\":string;\r\n }", "@Override\n public String visit(TypeParameter n, Object arg) {\n return null;\n }", "@Override\n\tpublic void visit(StringValue arg0) {\n\n\t}", "@Override\n public String visit(TextBlockLiteralExpr n, Object arg) {\n return null;\n }", "@Test\n\tpublic void testNullString() {\n\t\tString s = null;\n\t\tassertTrue(\"Null string\", StringUtil.isEmpty(s));\n\t}", "public static void notNull(Object argument, String argumentName)\n\t{\n\t\tif (argument == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(String.format(\n\t\t\t\t\"Argument '%1$s' can't be null.\", argumentName));\n\t\t}\n\t}", "public void testSetPostalCode_NullString() {\r\n try {\r\n address.setPostalCode(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void whenEmptyStringUsed_ExceptionIsThrown() {\n\t\tString input = \"\";\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tstringUtility.castWordNumberToNumber(input);\n\t}", "java.lang.String getArg();", "@Override\n\tpublic Object visitStringLiteral(StringLiteral literal) {\n\t\treturn null;\n\t}", "@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }", "public static void nonNull(Object arg, String argName) {\r\n if (arg == null) {\r\n throw new IllegalArgumentException(\"Argument \\\"\" + argName + \"\\\" cannot be null\");\r\n }\r\n }", "static <T> T m61432a(T t, String str) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException(str);\n }", "public static void nonNull(Object arg, String argName, String message) {\r\n if (arg == null) {\r\n throw new IllegalArgumentException(\"Argument \\\"\" + argName + \"\\\": \" + message);\r\n }\r\n }", "public String notNull(String text)\n {\n return text == null ? \"\" : text;\n }", "@Override\n public String execute(String argument) {\n try {\n if (!argument.isEmpty()) {\n throw new WrongArgumentException();\n }\n\n System.out.println(\"Программа успешно завершена!\");\n System.exit(0);\n } catch (WrongArgumentException e) {\n System.out.println(\"Используйте: '\" + getName() + \"'\");\n } catch (Exception e) {\n System.out.println(\"Что-то пошло не так. Повторите ввод.\");\n }\n return argument;\n }", "public void testSetLine1_NullString() {\r\n try {\r\n address.setLine1(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }" ]
[ "0.72527796", "0.69214624", "0.69214624", "0.6917228", "0.67820054", "0.66656494", "0.65889287", "0.65444034", "0.6531006", "0.6449634", "0.63975894", "0.6383815", "0.6382775", "0.63671964", "0.6364395", "0.63611794", "0.6333885", "0.6333885", "0.6327287", "0.6324376", "0.630512", "0.63010377", "0.6288047", "0.6273773", "0.6187147", "0.6180738", "0.6176695", "0.6175915", "0.61605215", "0.61605215", "0.61540544", "0.61359483", "0.6100991", "0.60810035", "0.60484904", "0.6045417", "0.6037814", "0.6032519", "0.6009069", "0.6005156", "0.60009164", "0.5995335", "0.5985419", "0.5953182", "0.5952354", "0.59201854", "0.59009576", "0.5897634", "0.58915424", "0.5881901", "0.58686334", "0.5867298", "0.586714", "0.58663374", "0.586338", "0.58569306", "0.5851699", "0.5850413", "0.58450454", "0.58351964", "0.58262175", "0.5819206", "0.58140385", "0.5809678", "0.5769151", "0.57690525", "0.5762342", "0.5751689", "0.5744935", "0.56999475", "0.56979275", "0.56953", "0.5691959", "0.5671826", "0.566522", "0.56578356", "0.56408566", "0.5632573", "0.56315076", "0.5628951", "0.5625694", "0.56207263", "0.562054", "0.5619642", "0.561144", "0.56088674", "0.5608416", "0.5605928", "0.56056637", "0.5593278", "0.5589747", "0.5587061", "0.55858594", "0.55758846", "0.5568873", "0.5560792", "0.55600315", "0.555745", "0.5557186", "0.5555672", "0.5550763" ]
0.0
-1
The maximal size of the shapes
public ShapeGraphics() { //A random object to set random measures for the shapes Random rn = new Random(); //Creating two instances of every shape using the random object and adding them to the list for (int i = 0; i <2 ; i++) { MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED); MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true); MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true); list.add(line); list.add(oval); list.add(rec); } //Creating cloned shapes of this list and adding them to another array list ClonedShapes c = new ClonedShapes(list); clonedList = c.getClonedList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dimension getMaximumSize()\n {\n return new Dimension(32767, 32767);\n }", "public int getMaximalSize() {\n return maximalSize;\n }", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "abstract int calculateMaximumSize(int axis);", "public Dimension getMaximumSize() {\n Dimension size = super.getMaximumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }", "public abstract int getMaxIntermediateSize();", "public static int size_max() {\n return (8 / 8);\n }", "Dimension getSize();", "Dimension getSize();", "int getMaxSize();", "public abstract long getMaxSize();", "@Override\r\n public Dimension getMaximumSize() {\r\n \t// get current preferred size\r\n \tDimension d = isMaximumSizeSet() ? super.getMaximumSize() : new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\r\n // forward\r\n return isExpanded() ? d : (isMaximumSizeSet() ?\r\n \t\tnew Dimension(d.width,minimumCollapsedHeight) :\r\n \t\tnew Dimension(Integer.MAX_VALUE,minimumCollapsedHeight));\r\n }", "public int getMaximumSize() {\n return maximumSize;\n }", "private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }", "protected abstract int getMaxDesiredSize();", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize()\n {\n return m_MaxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "final int getMaximumSize(int axis) {\n if (max == UNSET) {\n max = constrain(calculateMaximumSize(axis));\n }\n return max;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize(){\n return maxSize;\n }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public int getMaxSize()\r\n\t{\r\n\t\tSystem.out.print(\"The Max size of the Array is \");\r\n\t\treturn MAXSIZE;\r\n\t}", "@Override\n\tpublic int getMaxSizeX()\n\t{\n\t\treturn 200;\n\t}", "public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public int getMaxSize(){\n\t\treturn ds.length;\n\t}", "public Dimension getSize() {\n\t\t\t\tfor(Rectangle rec : boxes){\r\n\t\t\t\t\tbounds.union(rec);\r\n\t\t\t\t}\r\n\t\t\t\treturn bounds.getSize();\r\n\t\t\t}", "public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }", "public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }", "public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }", "int getAreaSize();", "public Dimension getSize()\n {\n return new Dimension(300, 150);\n }", "private YDimension computeMaxNodeSize (Graph2D graph)\n {\n double maxWidth = 0;\n double maxHeight = 0;\n for (Node node : graph.getNodeArray ())\n {\n NodeRealizer realizer = graph.getRealizer (node);\n double width = realizer.getLabel ().getWidth ();\n double height = realizer.getLabel ().getHeight ();\n maxWidth = Math.max (maxWidth, width);\n maxHeight = Math.max (maxHeight, height);\n }\n GraphManager graphManager = GraphManager.getGraphManager ();\n return graphManager.createYDimension (maxWidth, maxHeight);\n }", "public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}", "public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "double getSize();", "public int getSizeOfLargestSquare()\n {\n int i = GRID_SIZE;\n while(getNumSquares(i) == 0) i--;\n return i;\n }", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "private static int getLargestBoundedArea(char[][] rowsArray) {\n\t HashMap<Integer, ArrayList<String>> boundedRegionPointsMap = getBoundedRegionsPlotting(rowsArray);\n\n\t boundedRegionPointsMap = checkAndMergeIntersectedPoints(boundedRegionPointsMap);\n\n\t int largestSize = -1;\n\t \n\t // Finally, iterate over the bounded regions to get the region with maximum number of points.\n\t for (Integer key : boundedRegionPointsMap.keySet()) {\n\t ArrayList<String> boundedPointsList = boundedRegionPointsMap.get(key);\n\t logInfo(\"getLargestBoundedArea() | Region key = \" + key + \" Region points = \" + boundedPointsList.size());\n\t if (largestSize < boundedPointsList.size()) {\n\t largestSize = boundedPointsList.size();\n\t }\n\t }\n\t \n\t logDebug(\"getLargestBoundedArea() | Largest region size = \"+largestSize);\n\t return largestSize;\n\t}", "public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}", "public static int sizeBits_max() {\n return 8;\n }", "public int maxSize()\n {\n return maxSize;\n }", "public abstract Dimension getSize();", "public int getSize() {\n return rows * cols;\n }", "public Dimension getSize() { return new Dimension(width,height); }", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public int getSize() {\n\t\treturn width + length;\n\t}", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public long maxSize() {\n\t\treturn maxSize;\n\t}", "public int getMazeSize() \r\n\t{\r\n\t\treturn this.size;\r\n\t}", "public Dimension3d getSize() {\n return size;\n }", "public Dimension maximumLayoutSize(Container target)\n\t{\n\t\treturn new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);\n\t}", "public Dimension getSize() {\n\t\treturn null;\n\t}", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "@Override\r\n\tpublic int getSize() {\n\t\treturn gridSize;\r\n\t}", "public long getMaxHeight(){\r\n\t\treturn world.getHeight();\r\n\t}", "int maxColSize() {\n int max = Integer.MIN_VALUE;\n for (IntSet col : this.cols) {\n if (col.size() > max) {\n max = col.size();\n }\n }\n return max;\n }", "public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}", "public abstract int getPuzzleLengthSize();", "protected int get_max_litter_size()\n {\n return max_litter_size;\n }", "int getLostedSize();", "public int maxHeight() {\n\n\t\treturn maxheight(root);\n\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public float getSize() {\n\t\treturn size;\n\t}", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "int getCurrentSize();", "public static int size_min() {\n return (8 / 8);\n }", "int getMaxSetSize(Object modelID) throws Exception;", "public float getMaxWidth() {\n Object value = library.getObject(entries, MAX_WIDTH);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }", "boolean hasMaxSize();", "public int maxLen() {\n if (compositions == null) {\n return Math.max(maxLen(getAllele(0)), maxLen(getAllele(1)));\n } else {\n if (compositions.isEmpty())\n return 0;\n int maxLen = compositions.get(0).maxLen();\n for (Variant c : compositions) {\n maxLen = Math.max(maxLen, c.maxLen());\n }\n return maxLen;\n }\n }", "public abstract float getSquareSize();", "@Override\n\tpublic int size() {\n\t\treturn this.nDims;\n\t}", "@Override\r\n public Dimension maximumLayoutSize(Container container) {\n return container.getPreferredSize();\r\n }", "public double getMaxHeight()\n\t{\n\t\treturn this.maxHeight;\n\t}", "public int getKernelSize();", "public final int getHeight() {\r\n return (int) size.y();\r\n }" ]
[ "0.74773085", "0.74171925", "0.7322136", "0.7261602", "0.71835923", "0.7170872", "0.71469516", "0.70552605", "0.70552605", "0.7045501", "0.7009705", "0.6982753", "0.6921852", "0.68856084", "0.68040645", "0.6781355", "0.67752874", "0.67752874", "0.6755331", "0.6738514", "0.6738514", "0.6738514", "0.67244077", "0.67095333", "0.6677631", "0.6677425", "0.667696", "0.66551113", "0.66125125", "0.6600314", "0.6575484", "0.6560024", "0.6552673", "0.65410733", "0.65329903", "0.6524319", "0.65063095", "0.64868754", "0.6463113", "0.6460774", "0.6442421", "0.6430153", "0.64165807", "0.64061695", "0.6391787", "0.63901365", "0.63661194", "0.63614064", "0.6339857", "0.6325566", "0.6315165", "0.62964976", "0.62804836", "0.62774915", "0.6263943", "0.6260889", "0.6228558", "0.6205053", "0.6203221", "0.6196318", "0.61860245", "0.6183943", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.6179758", "0.61738795", "0.6173464", "0.6171861", "0.6149874", "0.61458194", "0.6141826", "0.61344546", "0.6133906", "0.61326075", "0.61326075", "0.61326075", "0.61326075", "0.6121968", "0.61186236", "0.611219", "0.6109736", "0.61093134", "0.61017644", "0.6100843", "0.6100291", "0.60898316", "0.6088941", "0.6085184", "0.608438", "0.6083656", "0.60792434" ]
0.0
-1
Using this paint component method, we will draw all the shapes in the two lists in the same JPanel
public void paintComponent(Graphics g){ super.paintComponent(g); for (int i = 0; i < list.size(); i++) {//draw the shapes of the original list list.get(i).draw(g); } for (int i = 0; i <clonedList.size() ; i++) {//draw the shapes of the cloned list clonedList.get(i).draw(g); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D)g;\n\n if (shapeList != null) {\n shapeList.sort(Comparator.comparing(Shape::getLayer));\n for (Shape shape : shapeList) {\n if (shape.getType() == ShapeType.RECTANGLE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillRect(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n else if (shape.getType() == ShapeType.ELLIPSE) {\n g2d.setColor(new Color(shape.getR(), shape.getG(), shape.getB()));\n g2d.fillOval(shape.getX(), shape.getY(), shape.getWidth(), shape.getHeight());\n }\n }\n }\n }", "protected synchronized void paintComponent(Graphics g) {\n /*Call the paintComponent of the super class*/\n super.paintComponent(g);\n\n /*Cast the object to a Graphics2D object*/\n Graphics2D g2 = (Graphics2D) g;\n\n /*Enable rendering Antialiasing and other rendering optimizations*/\n g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n\n /***\n * Loop through the List that holds all the shapes.\n * shapesBuffer list and Draw them on screen\n */\n for (int i=0; i<labelBuffer.size(); i++)\n {\n /*Get the Concept for each index i*/\n ShapesInterface currentConcept = (ShapesInterface) labelBuffer.get(i);\n\n \n /*Pass from the connected List*/\n if (currentConcept instanceof ShapeConcept || currentConcept instanceof ShapeLinking) {\n for (int k=0; k<currentConcept.getConnComponenetsList().size(); k++) {\n /*Get the center point of this Concept*/\n Point p1 = currentConcept.getCenter();\n Point p2 = ((ShapesInterface) currentConcept.getConnComponenetsList().get(k)).getCenter();\n \n //Point p2 = ((ShapeConcept) currentConcept.getConnComponenetsList().get(k)).getCenter();\n\n g2.draw(new Line2D.Double(p1.x, p1.y, p2.x, p2.y));\n }//end for\n }//end if check\n }//end for\n\n}", "public void paintComponenet(){\r\n\t\tfor(DShape ds : shapes){\r\n\t\t\tds.draw();\r\n\t\t}\r\n\t}", "public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(Shape s : shapes){\n\t\t\ts.paint(g);\n\t\t}\n\t}", "public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Iterator<Circle> circleIterator = circleArrayList.iterator();\n Circle drawCircle;\n\n // iterate through the ArrayList\n while (circleIterator.hasNext()) {\n drawCircle = circleIterator.next();\n drawCircle.draw(g); // draw each circle\n }\n\n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics;\n\n for (int i = 0; i < myDrawingArray.size(); i++) {\n final Drawing drawing = myDrawingArray.get(i);\n g2d.setPaint(drawing.getColor());\n g2d.setStroke(new BasicStroke(drawing.getWidth()));\n g2d.draw(drawing.getShape());\n }\n \n if (myCurrentShape != null) {\n g2d.setPaint(myCurrentShape.getColor());\n g2d.setStroke(new BasicStroke(myCurrentShape.getWidth()));\n g2d.draw(myCurrentShape.getShape());\n }\n \n if (myGrid) { //Paints the grid if myGrid is true.\n g2d.setStroke(new BasicStroke(1));\n g2d.setPaint(Color.GRAY);\n for (int row = 0; row < getHeight() / GRID_SPACING; row++) {\n final Line2D line = new Line2D.Float(0, GRID_SPACING + (row * GRID_SPACING),\n getWidth(), GRID_SPACING + (row * GRID_SPACING));\n g2d.draw(line);\n }\n for (int col = 0; col < getWidth() / GRID_SPACING; col++) {\n final Line2D line = new Line2D.Float(GRID_SPACING \n + (col * GRID_SPACING), 0,\n GRID_SPACING\n + (col * GRID_SPACING), getHeight());\n g2d.draw(line);\n }\n \n }\n }", "public ShapeGraphics() {\r\n //A random object to set random measures for the shapes\r\n Random rn = new Random();\r\n //Creating two instances of every shape using the random object and adding them to the list\r\n for (int i = 0; i <2 ; i++) {\r\n MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED);\r\n MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n list.add(line);\r\n list.add(oval);\r\n list.add(rec);\r\n\r\n }\r\n //Creating cloned shapes of this list and adding them to another array list\r\n ClonedShapes c = new ClonedShapes(list);\r\n clonedList = c.getClonedList();\r\n }", "public void draw(Graphics2D graphics2D, ArrayList<OneShape> registeredShapes){\n boolean _amIPartOfAGroup = this.CheckIfIAmPartOfAGroup(registeredShapes);\n if(this.myActiveShade.equals(this.myActiveShade.OUTLINE)){\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(this.myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n graphics2D.fillOval(this.startPoint.x - 10, this.startPoint.y - 10, this.width + 20, this.height + 20);\n graphics2D.setColor(Color.WHITE);\n }\n }\n\n else if(this.myActiveShade.equals(this.myActiveShade.OUTLINE_AND_FILLED_IN)){\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(this.myShapeColorMap.getMySecondaryShapeColor(this.mySecondaryColor));\n graphics2D.fillOval(this.startPoint.x - 10, this.startPoint.y - 10, this.width + 20, this.height + 20);\n graphics2D.setColor(this.myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n }\n }\n\n else{\n if(this.isSelected == true){\n SelectionEllipseDecorator selectionEllipseDecorator = new SelectionEllipseDecorator(this, _amIPartOfAGroup);\n selectionEllipseDecorator.draw(graphics2D, registeredShapes);\n }\n else{\n graphics2D.setColor(myShapeColorMap.getMyPrimaryShapeColor(this.myColor));\n }\n }\n\n graphics2D.fillOval(this.startPoint.x, this.startPoint.y, this.width, this.height);\n }", "public void paint(Graphics g) {\r\n\t\tsuper.paint(g);\r\n\t\t// add code below\r\n\t\tGraphics g1 = drawingPanel.getGraphics();\r\n\t\tif (myLine != null && myLine.getIsAPerpendicular() == false) {\r\n\t\t\tShapes.add(myLine);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1);\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t\tif (myOval != null) {\r\n\t\t\tShapes.add(myOval);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1); // To make this legal an abstract method named draw which accepted graphics g need to be added to the shapes class\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t}", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "public void drawAll(List<? extends Shape> shapes) {\n\t}", "public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }", "public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}", "@Override\r\n public void paintComponent(Graphics g)\r\n {\r\n super.paintComponent(g); // clears drawing area\r\n\r\n for(Point point : points)\r\n g.fillOval(point.x, point.y, 4, 4);\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n progress_stack = progress_stack_bkup;\r\n\r\n rec_points = rec_points_bkup;\r\n rec_colors = rec_colors_bkup;\r\n\r\n squ_points = squ_points_bkup;\r\n squ_colors = squ_colors_bkup;\r\n\r\n ell_points = ell_points_bkup;\r\n ell_colors = ell_colors_bkup;\r\n\r\n cir_points = cir_points_bkup;\r\n cir_colors = cir_colors_bkup;\r\n\r\n str_points = str_points_bkup;\r\n str_colors = str_colors_bkup;\r\n\r\n poly_points = poly_points_bkup;\r\n poly_colors = poly_colors_bkup;\r\n\r\n handdraw_points = handdraw_points_bkup;\r\n handdraw_colors = handdraw_colors_bkup;\r\n\r\n\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n //repaint circle\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n //repaint square\r\n if(squ_colors.size()>0){\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n //repaint ellipse\r\n if(ell_colors.size()>0){\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n //repaint straight line\r\n if(str_colors.size()>0){\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n //repaint polygons\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n }\r\n\r\n //repaint freehand lines\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }", "protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n // draw all piles and the remaining cards left in the deck\n for (int i = 0; i < mainPiles.length; i++) {\n mainPiles[i].draw(g);\n }\n for (int i = 0; i < suitPiles.length; i++) {\n suitPiles[i].draw(g);\n }\n deckPile.draw(g);\n deck.draw(g);\n \n if (selectedPile != null) {\n selectedPile.draw(g);\n }\n }", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }", "@Override\n public void paint(Graphics g) {\n g.setColor(Color.white);\n g.fillRect(0, 0, getWidth(), getHeight() );\n\n for (PieceUI pieceUI : pieceUIList) {\n pieceUI.draw(g);\n }\n\n g.drawImage(trapeze.getTrapezeView(), 200, 400, null);\n }", "public void paint(Graphics g) {\n\t\t\tsuper.paint(g); // don't remove - required for GUI widgets to draw correctly\n\t\t\t/************************\n\t\t\t * Late Binding Demo\n\t\t\t ************************/\n\t\t\tfor (int i = 0; i < myShapes.length; i++) {\n\t\t\t\t// which draw method is invoked here?\n\t\t\t\t// There are many forms of the method (polymorphic),\n\t\t\t\t// so which is chosen?\n\t\t\t\t// Java has RTTI (run-time type info)\n\t\t\t\t// about every object,\n\t\t\t\t// and it uses this info to choose\n\t\t\t\t// the correct method to invoke!\n\t\t\t\tmyShapes[i].draw(g);\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(new Color(255, 0, 0));\r\n\t\tg.drawOval(mp1.getX(), mp1.getY(), 3*length, 3*length);\r\n\t\tg.setColor(new Color(0,0,255));\r\n\t\tg.drawOval(enenmy.getX(), enenmy.getY(), 3, 3);\r\n\t}", "public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}", "public void paint(Graphics g) {\n\t\tshapes[0] = dc1;\n\t\tdrawables[0] = dc1;\n\t\tdc1.setColor(new Color(176,134,245));\n\t\t\n\t\t\n\t\tshapes[1] = dr1;\n\t\tdrawables[1] = dr1;\n\t\tdrawables[1].setColor(new Color(12,12,12));\n\t\t\n\t\tshapes[2] = dr2;\n\t\tdrawables[2] = dr2;\n\t\tdrawables[2].setColor(new Color(222,12,12));\n\t\t\n/*\t shapes[3] = dr3;\n \tdrawables[3] = dr3; */\n \t\n\t\tshapes[4] = dc2;\n\t\tdrawables[4] = dc2;\n\t\t\n\t\tshapes[5] = dc3;\n\t\tdrawables[5] = dc3;\n\t\tdrawables[5].setColor(new Color(255,255,0));\n\t\t\n\t\t\n\t\t// Added\n\t\tshapes[6] = dl1;\n\t\tdrawables[6] = dl1;\n\t\tdrawables[6].setColor(new Color(255,255,0));\n\n\t\tdouble total_area = 0;\n\n\t\t// use the array\n\t\tfor (int i = 0; i < shapes.length; i++) {\n\t\t\ttotal_area = total_area + shapes[i].area();\n\t\t\tdrawables[i].draw(g);\n\t\t}\n\t\tSystem.out.println(\"total_area\");\n\t\tg.drawString(\"Total area: \" + total_area, 200, 400);\n\t}", "public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tfor(SnakeSquare i:sSquare)i.paint(g);\n\t\tsObst.paint(g);\n\t\tsFood.paint(g);\n\t\tboundary.paint(g);\n\t}", "private void render() {\n if (drawingArea != null) {\n //get graphics of the image where coordinate and function will be drawn\n Graphics g = drawingArea.getGraphics();\n\n //draw the x-axis and y-axis\n g.drawLine(0, originY, width, originY);\n g.drawLine(originX, 0, originX, height);\n\n //print numbers on the x-axis and y-axis, based on the scale\n for (int i = 0; i < lengthX; i++) {\n g.drawString(Integer.toString(i), (int) (originX + (i * scaleX)), originY);\n g.drawString(Integer.toString(-1 * i), (int) (originX + (-i * scaleX)), originY);\n }\n for (int i = 0; i < lengthY; i++) {\n g.drawString(Integer.toString(-1 * i), originX, (int) (originY + (i * scaleY)));\n g.drawString(Integer.toString(i), originX, (int) (originY + (-i * scaleY)));\n }\n\n // draw the lines\n for (int i = 0; i < points1.size() - 1; i++) {\n g.setColor(Color.BLACK);\n g.drawLine((int) (originX + points1.get(i).x * scaleX), (int) (originY - points1.get(i).y * scaleY),\n (int) (originX + points1.get(i + 1).x * scaleX), (int) (originY - points1.get(i + 1).y * scaleY));\n g.setColor(Color.RED);\n g.drawLine((int) (originX + points2.get(i).x * scaleX), (int) (originY - points2.get(i).y * scaleY),\n (int) (originX + points2.get(i + 1).x * scaleX), (int) (originY - points2.get(i + 1).y * scaleY));\n }\n }\n }", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t\tfor (int i = 0; i < inc.length; i++) {\n\t\t\t\t\tg.setColor(new Color(220 - i * 50, 220 - i * 50, 220 - i * 50));\n\t\t\t\t\tg.fillOval(inc[i][0], inc[i][1], 30, 30);\n\t\t\t\t}\n\t\t\t\tg.setColor(Color.yellow);\n\t\t\t\tg.fillOval(x, h, 30, 30);\n\n\t\t\t\t// 장애물\n\t\t\t\tg.setColor(Color.red);\n\t\t\t\tg.fillRect(0, 480, 800, 20);\n\t\t\t\tg.fillRect(400, 200, 50, 300);\n\t\t\t\tg.fillRect(300, 350, 100, 30);\n\t\t\t\t//\n\t\t\t\tGraphics2D g2 = bi.createGraphics();\n//\t\t\t\tthis.paintAll(g2);\n\t\t\t}", "@Override\n\tprotected void paint2d(Graphics2D g) {\n\t\tdouble x = 0;//getX();\n\t\tdouble y = 0;//getY();\n\t\tfor (int i = 0; i < size() - 1; i++) {\n\t\t\tGPoint p1 = points.get(i);\n\t\t\tGPoint p2 = points.get(i + 1);\n\t\t\tdouble x0 = p1.getX() - x;\n\t\t\tdouble y0 = p1.getY() - y;\n\t\t\tdouble x1 = p2.getX() - x;\n\t\t\tdouble y1 = p2.getY() - y;\n\t\t\tg.drawLine(GMath.round(x0), GMath.round(y0),\n\t\t\t\t\tGMath.round(x1), GMath.round(y1));\n\t\t}\n\t}", "@Override\n public void paintComponent(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setStroke(new BasicStroke(WALL));\n int[] xs = {BORDER + WALL, BORDER, BORDER, BORDER + (width-1)*SIZE + WALL};\n int[] ys = {BORDER, BORDER, BORDER + height*SIZE, BORDER + height*SIZE};\n g2.drawPolyline(xs, ys, 4);\n int[] xs2 = {BORDER + SIZE - WALL, BORDER + width*SIZE, BORDER + width*SIZE, BORDER + width*SIZE - WALL};\n g2.drawPolyline(xs2, ys, 4);\n // code that was used to create the intermediate images\n// g2.setColor(Color.LIGHT_GRAY);\n// for(int i = 1; i < height; i++) {\n// int where = BORDER + i*SIZE;\n// g2.drawLine(BORDER + WALL, where, BORDER + width * SIZE - WALL, where);\n// }\n// for(int i = 1; i < width; i++) {\n// int where = BORDER + i*SIZE;\n// g2.drawLine(where, BORDER + WALL, where, BORDER + height * SIZE - WALL);\n// }\n g2.setColor(Color.blue);\n for(Wall wall : walls) {\n drawWall(g2, wall);\n }\n }", "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n if(ingame){\n\n int screenWidth = this.getWidth();\n int screenHeight = this.getHeight();\n\n\n for(int i = 0; i < end_positions.size(); i++){\n End_position item = end_positions.get(i);\n g.setColor(Color.green);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n\n g.setColor(Color.white);\n g.fillRect(player.getCurrentX()*screenWidth/LEVEL_WIDTH,player.getCurrentY()*screenHeight/LEVEL_HEIGHT,player.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,player.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n g.setColor(Color.yellow);\n g.fillRect(item.getCurrentX()*screenWidth/LEVEL_WIDTH,item.getCurrentY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n for(int i = 0; i < walls.size(); i++){\n Wall item = walls.get(i);\n\n g.setColor(Color.red);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n }\n\n }\n\n }", "public void paintComponent(Graphics page)\r\n {\r\n super.paintComponent(page);\r\n \r\n //Goes through each object in the array list and\r\n //draws the dot.\r\n for(int i = 0; i < dotList.size(); i++)\r\n {\r\n \t ((Dot) dotList.get(i)).draw(page); //Draws the dot\r\n }\r\n }", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t\tfor (int i = 0; i < wall.length; i++) {\n\t\t\t\t\tfor (int j = 0; j < wall[i].length; j++) {\n\t\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\tg.drawRect(i*30, j*30, 30, 30);\n\t\t\t\t\t\tif (wall[i][j] == 1) {\n\t\t\t\t\t\t\tg.fillRect(i*30, j*30, 30, 30);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }", "public void paintComponent(Graphics g){\n \t\tsuper.paintComponent(g);\r\n \r\n \t\tint numOfRows = (int)blockShape.getResolution().x;\r\n \t\tint numOfCols = (int)blockShape.getResolution().y;\r\n \t\tint gridSize = (int)(SHAPE_WIN_SIZE/numOfRows);\r\n \t\t\r\n \t\t//1st: paint each element in the BlockShape -> shape(Color[][])\r\n \t\tfor(int i=0; i< numOfRows;i++){\r\n \t\t\tfor(int j=0; j< numOfCols; j++){\r\n \t\t\t\tg.setColor(blockShape.getShapeElement(i, j));\r\n \r\n \t\t\t\tif(i == numOfRows-1 || j == numOfCols-1){\r\n \t\t\t\t\t//the last row and last column is a bit wider because of the type casting =_=\r\n \t\t\t\t\tg.fillRect(j*gridSize, i*gridSize, gridSize+10, gridSize+10);\r\n \t\t\t\t}else{\r\n \t\t\t\t\tg.fillRect(j*gridSize, i*gridSize, gridSize, gridSize);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t//2nd: paint the grid corresponding to the resolution of blockShape\r\n \t\tg.setColor(Color.orange);\r\n \t\tfor (int row = 0; row < numOfRows; row++) {\r\n \t\t\tg.drawLine(0,row*gridSize ,SHAPE_WIN_SIZE, row*gridSize);\r\n \t\t}\r\n \t\tg.drawLine(0,SHAPE_WIN_SIZE, SHAPE_WIN_SIZE, SHAPE_WIN_SIZE);\r\n \r\n \t\tfor (int col = 0; col < numOfCols; col++) {\r\n \t\t\tg.drawLine(col*gridSize, 0 , col*gridSize , SHAPE_WIN_SIZE);\r\n \t\t}\r\n \t\tg.drawLine(SHAPE_WIN_SIZE-1, 0, SHAPE_WIN_SIZE-1, SHAPE_WIN_SIZE);\r\n \t}", "public DrawCanvas(DrawConsoleUI drawConsole) {\n /*Call the super constructor and set the background colour*/\n super();\n this.setBackground(Color.white);\n\n /*Set the size of this component*/\n this.setPreferredSize(new Dimension(970,800));\n\n /*Enable autoscroll for this panel, when there is a need to\n update component's view*/\n this.setAutoscrolls(true);\n\n /*Construct a list that will hold the shapes*/\n //shapesBuffer = Collections.synchronizedList(new ArrayList());\n labelBuffer = Collections.synchronizedList(new ArrayList());\n\n /*Hold a reference to the DrawConsoleUI class*/\n drawConsoleUI = drawConsole;\n\n \n /***\n * Register Listeners to the canvas\n */\n\n /*Mouse move*/\n this.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n //panelMouseMoved(evt);\n }//end mouse motion moved\n\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n try {\n panelMouseDragged(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end mouse motion Dragged\n });\n\n /*Mouse Clicked*/\n this.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n panelMouseClicked(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Pressed*/\n public void mousePressed(java.awt.event.MouseEvent evt) {\n try {\n panelMousePressed(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Released*/\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n try {\n panelMouseReleased(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n });\n\n\n }", "private void draw(ArrayList<Show> shows) {\n shows.sort(new Helper.NameComparator());\n GridBagConstraints gbc = new GridBagConstraints();\n pnlShowList.setLayout(new GridBagLayout());\n pnlShowList.setBackground(FontsAndColors.getProjectBlue());\n\n pnlShowList.removeAll();\n if (shows.size() > 0) {\n Show show;\n Color colorMiddle;\n\n for(int i = 0; i < shows.size(); i++) {\n show = shows.get(i);\n\n if (i % 2 == 0)\n colorMiddle = new Color(colorCard1);\n else\n colorMiddle = new Color(colorCard2);\n\n JButton btnInfo = new JButton(\"Info\");\n JButton btnRemove = new JButton(\"Remove\");\n String[] rating = {\"No rating\",\"★\",\"★★\",\"★★★\",\"★★★★\",\"★★★★★\"};\n JComboBox cb = new JComboBox(rating);\n if(show.getPersonalRating() != null)\n cb.setSelectedItem(show.getPersonalRating().getStrValue());\n else\n cb.setSelectedItem(rating);\n\n btnRemove.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n btnInfo.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n cb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\n JPanel pnlMiddle = new JPanel(new FlowLayout());\n\n JLabel label = new JLabel(\"Card Label\");\n label.setForeground(new Color(colorTitle));\n label.setFont(new Font(\"Roboto\", Font.BOLD, 18));\n label.setText(show.getName());\n\n pnlMiddle.add(label);\n pnlMiddle.setBackground(colorMiddle);\n\n JPanel pnlSouth = new JPanel(new FlowLayout());\n pnlSouth.setBackground(colorMiddle);\n pnlSouth.add(btnInfo);\n pnlSouth.add(btnRemove);\n pnlSouth.add(cb);\n\n JPanel pnlMain = new JPanel(new BorderLayout());\n pnlMain.setPreferredSize(new Dimension(800, 162));\n Border cardBorder = BorderFactory.createLineBorder(Color.decode(\"#E3E2DD\"));\n pnlMain.setBorder(cardBorder);\n pnlMain.add(pnlMiddle, BorderLayout.CENTER);\n pnlMain.add(pnlSouth, BorderLayout.EAST);\n pnlMain.setBackground(Color.decode(\"#6A86AA\"));\n\n //Poster container\n Border posterBorder = BorderFactory.createLineBorder(colorMiddle, 10, false);\n JLabel lblImage = new JLabel();\n lblImage.setBorder(posterBorder);\n JPanel pnlPoster = new JPanel(new BorderLayout());\n\n // Add poster if available\n if (show.getPoster() != null &&\n !show.getPoster().isEmpty()\n ) {\n BufferedImage image;\n try {\n URL url = new URL(show.getPoster());\n image = ImageIO.read(url);\n Image dImg = image.getScaledInstance(96, 142, Image.SCALE_AREA_AVERAGING);\n ImageIcon imageIcon = new ImageIcon(dImg);\n lblImage.setIcon(imageIcon);\n pnlPoster.add(lblImage, BorderLayout.WEST);\n } catch (IOException e) {\n System.err.println(\"Poster exception in class ShowList\");\n }\n }\n\n final Show tmpShow = show;\n btnInfo.addActionListener(e -> {\n clientController.setPanel(\"Info\", tmpShow);\n });\n\n cb.addActionListener(e ->{\n String personalRating = (String) cb.getSelectedItem();\n tmpShow.setPersonalRating(Rating.get(personalRating));\n cb.setSelectedItem(personalRating);\n });\n\n btnRemove.addActionListener(e -> {\n clientController.getUser().removeShow(tmpShow);\n draw();\n });\n\n gbc.gridx = 0;\n gbc.weightx = 1;\n\n pnlMain.add(pnlPoster, BorderLayout.WEST);\n pnlShowList.add(pnlMain, gbc);\n }\n\n gbc.anchor = GridBagConstraints.NORTHWEST;\n gbc.weighty = 1;\n pnlShowList.add(new JPanel(), gbc);\n }\n else {\n pnlShowList.add(new JLabel(\" Nothing in your list at the moment!\"));\n pnlShowList.add(new JLabel(\" \"));\n ImageIcon imi = new ImageIcon(\"images/Showtrack.png\");\n Image image = imi.getImage().getScaledInstance(150, 150, Image.SCALE_AREA_AVERAGING);\n JLabel lbLogo = new JLabel(new ImageIcon(image));\n pnlShowList.add(lbLogo);\n }\n\n scrollPane.setViewportView(pnlShowList);\n scrollPane.setLayout(new ScrollPaneLayout());\n pnlShowList.revalidate();\n }", "@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if(image != null)\n {\n \tScaleImage();\n \tg.drawImage(image, 0, 0, null);\n }\n \n if(isFood())\n\t\t{\n \t\n\t\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\tg2.setColor(Color.red);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.drawArc(getWidth()/2, getHeight()/2-5, 10, 10, 30, 210);\t \n\t\t\tg2.drawArc(getWidth()/2, getHeight()/2+5, 10, 10, 180, 270);\n\t\t\tg2.setStroke(new BasicStroke(1));\n\t\t\t\n\t\t}\n \n for (int i = 0; i < listAnimals.size(); i++) {\n\t\t\t(listAnimals.get(i)).drawAnimal(g);\n\t\t\t//System.out.println(\"draw object \" + listAnimals.get(i) + \", location \" + listAnimals.get(i).getLocation());\n\t\t}\n \n }", "public Paint(){\n triangles = new ArrayList<>();\n rectangles = new ArrayList<>();\n circles = new ArrayList<>();\n }", "protected void paintComponent(Graphics g){\n\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\n\t\t// Creating all of the objects for snapshot with positions, then rotating if necessary\n\t\tI_Block iblock1 = new I_Block(0, 25 * 20);\n\t\tiblock1.rotate90();\n\t\tI_Block iblock2 = new I_Block(8 * 20, 17 * 20);\n\t\tS_Block sblock1 = new S_Block(3 * 20, 23 * 20);\n\t\tsblock1.rotate90();\n\t\tS_Block sblock2 = new S_Block(5 * 20, 21 * 20);\n\t\tsblock2.rotate90();\n\t\tO_Block oblock1 = new O_Block(5 * 20, 24 * 20);\n\t\tO_Block oblock2 = new O_Block(7 * 20, 21 * 20);\n\t\tT_Block tblock1 = new T_Block(7 * 20, 23 * 20);\n\t\ttblock1.rotate270();\n\t\tT_Block tblock2 = new T_Block(6 * 20, 18 * 20);\n\t\ttblock2.rotate270();\n\t\tL_Block lblock1 = new L_Block(0, 19 * 20);\n\t\tL_Block lblock2 = new L_Block(4 * 20, 21 * 20);\n\t\tZ_Block zblock1 = new Z_Block(0,23 * 20);\n\t\tZ_Block zblock2 = new Z_Block(1 * 20, 20 * 20);\n\t\tJ_Block jblock1 = new J_Block(0 ,22 * 20);\n\t\tjblock1.rotate90();\n\t\tJ_Block jblock2 = new J_Block(4 * 20, 20 * 20);\n\t\tjblock2.rotate90();\n\t\t\n\t\t// Put all objects into array\n\t\tTetromino[] bag = {iblock1, iblock2, sblock1, sblock2, oblock1, oblock2,\n\t\t\t\ttblock1, tblock2, lblock1, lblock2, zblock1, zblock2, jblock1, jblock2};\n\t\t\n\t\t/*\n\t\t * For each object in bag, set the color then display it, using polymorphism\n\t\t * Specifically what it does is that, since each shape could only be made with \n\t\t * the Rectangle class, I had each object store the Rectangles needed to create \n\t\t * it in an array. BlockComponent then takes the array from the class, then displays \n\t\t * each rectangle in the array.\n\t\t*/\n\t\tfor(Tetromino block : bag){\n\t\t\tg2.setColor(block.getColor());\n\t\t\tRectangle[] dimensions = block.getBlockArray();\n\t\t\tfor(Rectangle shape : dimensions){\t\n\t\t\t\tg2.fill(shape);\n\t\t\t}\n\t\t}\t\n\t}", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}", "@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2 = (Graphics2D) g; \n\t\tg2.setColor(Color.lightGray);\n\t\tg2.fill(model.bg);\n\t\tg2.setColor(Color.darkGray);\n\t\tg2.fillPolygon(model.terrain);\n\t\tg2.setColor(Color.gray);\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tg2.draw(model.circles.get(i));\n\t\t}\n\t\tif (model.curCircleSel != -1) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.circles.get(model.curCircleSel));\n\t\t}\n\t\tg2.setColor(Color.RED);\n\t\tg2.fill(model.pad);\n\t\tif (curPadSel) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.pad);\n\t\t}\n\t}", "public Shapes draw ( );", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n if (bdhcHandler != null) {\n int[] slopes = bdhcHandler.getSelectedPlate().getSlope();\n float angle = (float) Math.atan2(slopes[indexSlope1], slopes[indexSlope2]);\n\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g.setColor(Color.magenta);\n final int angleRadius = (radius * 2) / 3;\n final int angleOffset = size / 2 - angleRadius;\n g2.setStroke(new BasicStroke(2));\n g.drawArc(angleOffset, angleOffset, 2 * angleRadius, 2 * angleRadius, 0, (int) (-(angle * 180) / Math.PI));\n\n g2.setStroke(new BasicStroke(2));\n if (frontView) {\n g.setColor(Color.red);\n g.drawLine(size / 2, size / 2, size, size / 2);\n g.setColor(Color.blue);\n g.drawLine(size / 2, size / 2, size / 2, 0);\n } else {\n g.setColor(Color.green);\n //g.drawLine(size / 2, size / 2, size, size / 2);\n g.drawLine(size / 2, size / 2, size, size / 2);\n g.setColor(Color.blue);\n g.drawLine(size / 2, size / 2, size / 2, 0);\n }\n\n int circleOffset = size / 2 - radius;\n g.setColor(Color.black);\n g2.setStroke(new BasicStroke(1));\n g.drawOval(circleOffset, circleOffset, radius * 2, radius * 2);\n\n int x = (int) (Math.cos(angle) * radius);\n int y = (int) (Math.sin(angle) * radius);\n int lineOffset = size / 2;\n g.setColor(Color.orange);\n g2.setStroke(new BasicStroke(3));\n g.drawLine(lineOffset - x, lineOffset - y, lineOffset + x, lineOffset + y);\n\n }\n\n }", "@Override\n\t\tpublic void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tsetBackground(Color.gray);\n\n\t\t\tif (points != null) {\n\t\t\t\tPoint lastPoint = null;\n\t\t\t\tint step = 0;\n\t\t\t\tfor (Point p : points) {\n\t\t\t\t\tint shade = 255 * step / points.length;\n\t\t\t\t\tstep++;\n\t\t\t\t\tg.setColor(new Color(shade, 0, 255 - shade));\n\n\t\t\t\t\t// Draw the point, and maybe connect to the previous point\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\tint jiggleX = (int) (jiggleFactor * Math.random() - jiggleFactor / 2);\n\t\t\t\t\t\tint jiggleY = (int) (jiggleFactor * Math.random() - jiggleFactor / 2);\n\n\t\t\t\t\t\tg.fillOval(p.x + jiggleX - diameter / 2, p.y + jiggleY\n\t\t\t\t\t\t\t\t- diameter / 2, diameter, diameter);\n\t\t\t\t\t\tif (connectTheDots) {\n\t\t\t\t\t\t\tif (lastPoint != null)\n\t\t\t\t\t\t\t\tg.drawLine(lastPoint.x, lastPoint.y, p.x, p.y);\n\t\t\t\t\t\t\tlastPoint = p;\n\t\t\t\t\t\t}\n\t\t\t\t\t} // end of drawing one point\n\t\t\t\t} // End of loop that draws all points\n\t\t\t} // end of non-null logic\n\t\t}", "public Paint() {\n shapes = new ArrayList<>();\n }", "@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n g.setColor(Color.WHITE);\r\n g.fillRect(0,0,1200,800);\r\n canvas.repaint();\r\n\r\n popped_points.clear();\r\n\r\n if(progress_stack.size() > 0){\r\n last_state = progress_stack.get(progress_stack.size()-1);\r\n System.out.println(last_state+\" is the last shape in progress stack\");\r\n\r\n\r\n if(last_state.equals(\"rec\")){\r\n //recall other point_stack\r\n if(cir_colors.size()>0){\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"rec\", rec_points, rec_colors);\r\n\r\n /* //recall rec points\r\n //1. store the last rectangle data\r\n //2. pop the last rectangle\r\n\r\n //for loop\r\n for (int i = 0; i < rec_colors.size(); i++) {\r\n System.out.println(rec_colors.size());\r\n int begin_index = i * 4;\r\n x1 = rec_points.get(begin_index);\r\n y1 = rec_points.get(begin_index + 1);\r\n x2 = rec_points.get(begin_index + 2);\r\n y2 = rec_points.get(begin_index + 3);\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n //last one\r\n if(i == (rec_colors.size()-1)){\r\n //store points and shape\r\n\r\n popped_points.add(x1);\r\n popped_points.add(y1);\r\n popped_points.add(x2);\r\n popped_points.add(y2);\r\n\r\n popped_shape = \"rec\";\r\n popped_color = rec_colors.get(rec_colors.size()-1);\r\n System.out.println(popped_points+ \" is popped rectangle\");\r\n\r\n //popped the last rectangle\r\n System.out.println(progress_stack+\" is the previous stack\");\r\n progress_stack.remove(progress_stack.size()-1);\r\n System.out.println(progress_stack+\" is the current stack\");\r\n\r\n //pop last 4 points from rec_points\r\n\r\n if(rec_colors.size() == 1){\r\n //last element in shape stack\r\n rec_points.clear();\r\n }\r\n else{\r\n //pop last 4 points from cir_points\r\n rec_points.remove(rec_points.size()-1);\r\n rec_points.remove(rec_points.size()-2);\r\n rec_points.remove(rec_points.size()-3);\r\n rec_points.remove(rec_points.size()-4);\r\n System.out.println(rec_points+ \" is the current rec_points\");\r\n }\r\n\r\n\r\n //pop the last color\r\n rec_colors.remove(rec_colors.size()-1);\r\n\r\n\r\n\r\n }else{\r\n g.setColor(rec_colors.get(i));\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n\r\n canvas.repaint();\r\n }\r\n\r\n }*/\r\n\r\n// if(rec_points.size() < 5){\r\n// //it is the first shape\r\n// //do nothing don't paint anything on canvas\r\n// //but store the\r\n// }else{\r\n// for (int i = 0; i < rec_colors.size()-1; i++) {\r\n// System.out.println(rec_colors.size());\r\n// int begin_index = i * 4;\r\n// x1 = rec_points.get(begin_index);\r\n// y1 = rec_points.get(begin_index + 1);\r\n// x2 = rec_points.get(begin_index + 2);\r\n// y2 = rec_points.get(begin_index + 3);\r\n//\r\n// int[] start_points = start_point(x1, y1, x2, y2);\r\n//\r\n// g.setColor(rec_colors.get(i));\r\n// g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n//\r\n// canvas.repaint();\r\n// }\r\n// }\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"cir\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"cir\", cir_points, cir_colors);\r\n\r\n /* //recall circle points\r\n //1. store the last circle data\r\n //2. pop the last circle\r\n\r\n //for loop\r\n for (int i = 0; i < cir_colors.size(); i++) {\r\n System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = cir_points.get(begin_index);\r\n y1 = cir_points.get(begin_index + 1);\r\n x2 = cir_points.get(begin_index + 2);\r\n y2 = cir_points.get(begin_index + 3);\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n //last one\r\n if(i == (cir_colors.size()-1)){\r\n //store points and shape\r\n popped_points.add(x1);\r\n popped_points.add(y1);\r\n popped_points.add(x2);\r\n popped_points.add(y2);\r\n\r\n popped_color = cir_colors.get(cir_colors.size()-1);\r\n\r\n popped_shape = \"cir\";\r\n System.out.println(popped_points+ \" is popped circle\");\r\n\r\n //popped the last circle\r\n System.out.println(progress_stack+\" is the previous stack\");\r\n progress_stack.remove(progress_stack.size()-1);\r\n System.out.println(progress_stack+\" is the current stack\");\r\n\r\n if(cir_colors.size() == 1){\r\n //last element in shape stack\r\n cir_points.clear();\r\n }\r\n else{\r\n //pop last 4 points from cir_points\r\n System.out.println(cir_points.size()+ \" is the previous circle points\");\r\n cir_points.remove(cir_points.size()-1);\r\n cir_points.remove(cir_points.size()-2);\r\n cir_points.remove(cir_points.size()-3);\r\n cir_points.remove(cir_points.size()-4);\r\n System.out.println(cir_points+ \" is the current cir_points\");\r\n }\r\n\r\n\r\n //pop the last color\r\n cir_colors.remove(cir_colors.size()-1);\r\n System.out.println(cir_colors+\" is current color stack\");\r\n\r\n\r\n }else{\r\n g.setColor(cir_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n\r\n }*/\r\n\r\n /* //recall cir points\r\n if(cir_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < cir_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = cir_points.get(begin_index);\r\n y1 = cir_points.get(begin_index + 1);\r\n x2 = cir_points.get(begin_index + 2);\r\n y2 = cir_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(cir_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"squ\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n regular_shape_undo_process(\"squ\", squ_points, squ_colors);\r\n /*//recall squ points\r\n if(squ_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < squ_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = squ_points.get(begin_index);\r\n y1 = squ_points.get(begin_index + 1);\r\n x2 = squ_points.get(begin_index + 2);\r\n y2 = squ_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(squ_colors.get(i));\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(x2-x1));\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"ell\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"ell\", ell_points, ell_colors);\r\n\r\n /*//recall ellipse points\r\n if(ell_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < ell_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = ell_points.get(begin_index);\r\n y1 = ell_points.get(begin_index + 1);\r\n x2 = ell_points.get(begin_index + 2);\r\n y2 = ell_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(ell_colors.get(i));\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2-x1), Math.abs(y2-y1));\r\n\r\n canvas.repaint();\r\n }\r\n }\r\n*/\r\n\r\n }\r\n\r\n if(last_state.equals(\"str\")){\r\n //recall other point_stack\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n regular_shape_undo_process(\"str\", str_points, str_colors);\r\n\r\n /* //recall straight line points\r\n if(str_points.size() < 5){\r\n //it is the first shape\r\n //do nothing don't paint anything on canvas\r\n }else{\r\n for (int i = 0; i < str_colors.size()-1; i++) {\r\n// System.out.println(cir_colors.size());\r\n int begin_index = i * 4;\r\n x1 = str_points.get(begin_index);\r\n y1 = str_points.get(begin_index + 1);\r\n x2 = str_points.get(begin_index + 2);\r\n y2 = str_points.get(begin_index + 3);\r\n\r\n int[] start_points = start_point(x1, y1, x2, y2);\r\n\r\n g.setColor(str_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n }*/\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"poly\")){\r\n //repaint polygons except the last one\r\n //polygon repaint don't need to consider the last polygon\r\n //not good to use polygon color cuz it can be change whithin one polygon\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n if(separate_index.size()>1){\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n \r\n for (int j = 0; j < separate_index.size(); j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n\r\n\r\n //for the last one\r\n if(j == (separate_index.size()-1)){\r\n // store all points, color, shape\r\n int end_index = poly_points.size();\r\n popped_color = poly_colors.get(poly_colors.size()-1);\r\n popped_shape = \"poly\";\r\n\r\n popped_points.clear();\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n popped_points.add(poly_points.get(k));\r\n }\r\n\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n //popped the last one from color, points, progress stack\r\n System.out.println(poly_points + \" is the previous poly points stack\");\r\n for (int p = 0; p < (popped_points.size()+1); p++) {\r\n poly_points.remove(poly_points.size()-1);\r\n }\r\n System.out.println(poly_points+\" is the current stack\");\r\n\r\n for (int s = 0; s < popped_points.size()/2; s++) {\r\n progress_stack.remove(progress_stack.size()-1);\r\n poly_colors.remove(poly_colors.size()-1);\r\n }\r\n System.out.println(progress_stack+\" is current progress_stack\");\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n\r\n\r\n }else{\r\n //get polygon points arraylist\r\n int end_index = separate_index.get(j+1);\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n\r\n }\r\n }\r\n if(separate_index.size() == 1){\r\n // store the last color, points, shape\r\n //popped the last one from color, points, progress stack\r\n System.out.println(poly_points+\" is poly points stack\");\r\n popped_color = poly_colors.get(poly_colors.size()-1);\r\n popped_shape = \"poly\";\r\n poly_points.remove(0);\r\n popped_points.clear();\r\n for (int i = 0; i < poly_points.size(); i++) {\r\n popped_points.add(poly_points.get(i));\r\n }\r\n// int line_num = poly_points.size()-1;\r\n\r\n\r\n poly_colors.clear();\r\n\r\n for (int s = 0; s < poly_points.size()/2; s++) {\r\n progress_stack.remove(progress_stack.size()-1);\r\n }\r\n System.out.println(progress_stack+\" after polygon pop\");\r\n poly_points.clear();\r\n System.out.println(popped_points+\" is the popped points\");\r\n\r\n\r\n\r\n }\r\n\r\n //repaint other shapes\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index_hand = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index_hand.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index_hand.get(j)+1;\r\n int end_index = separate_index_hand.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if(last_state.equals(\"handdraw\")){\r\n //repaint shapes except the last one\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n if(handdraw_colors.size() == 1){\r\n // store color points shape\r\n int begin_index = 0;\r\n int end_index = separate_index.get(0);\r\n\r\n popped_color = handdraw_colors.get(0);\r\n popped_shape = \"handdraw\";\r\n\r\n popped_points.clear();\r\n for (int p = begin_index; p < end_index; p++) {\r\n popped_points.add(handdraw_points.get(p));\r\n }\r\n\r\n //pop those data\r\n handdraw_colors.clear();\r\n progress_stack.remove(progress_stack.size()-1);\r\n handdraw_points.clear();\r\n\r\n }\r\n if(handdraw_colors.size() > 1){\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }\r\n if(i == handdraw_colors.size()-1){\r\n // the last freehand line\r\n //store shape color points\r\n int begin_index = separate_index.get(separate_index.size()-2)+1;\r\n int end_index = separate_index.get(separate_index.size()-1);\r\n\r\n popped_color = handdraw_colors.get(handdraw_colors.size()-1);\r\n popped_shape = \"handdraw\";\r\n\r\n popped_points.clear();\r\n for (int j = begin_index; j < end_index; j++) {\r\n popped_points.add(handdraw_points.get(j));\r\n }\r\n\r\n System.out.println(popped_points+\" popped freehand points\");\r\n\r\n //pop those data\r\n handdraw_colors.remove(handdraw_colors.size()-1);\r\n progress_stack.remove(progress_stack.size()-1);\r\n for (int p = 0; p < (popped_points.size()+1); p++) {\r\n handdraw_points.remove(handdraw_points.size()-1);\r\n }\r\n System.out.println(handdraw_points+\" after freehand pop\");\r\n\r\n\r\n }\r\n\r\n else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-2; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n\r\n //repaint other shapes\r\n if(rec_colors.size()>0){\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n\r\n if(cir_colors.size()>0){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n\r\n if(squ_colors.size()>0){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n\r\n if(ell_colors.size()>0){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n\r\n if(str_colors.size()>0){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n\r\n if(poly_colors.size()>0){\r\n //polygon repaint\r\n separate_index = get_separate_index(poly_points);\r\n points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n }", "public void paint(Graphics g) {\n\t\t\n\t\t//find slope - use to calculate position \n\t\tArrayList <Integer> Xpos = new ArrayList<Integer>();\n\t\tArrayList <Integer> Ypos = new ArrayList<Integer>();\n\n\t\t//contain all the x and y coordinates for horizontal lines\n\t\tArrayList <Integer> HorizXOutline = new ArrayList<Integer>();\n\t\tArrayList <Integer> HorizYOutline = new ArrayList<Integer>();\n\t\t//contain all x any y points for veritical lines\n\t\tArrayList <Integer> VertOutlineX = new ArrayList<Integer>();\n\t\tArrayList <Integer> VertOutlineY = new ArrayList<Integer>();\n\t\t//contain all x and y points of postive and pos diag lines\n\t\tArrayList <Integer> PosDiagOutlineX = new ArrayList<Integer>();\n\t\tArrayList <Integer> PosDiagOutlineY = new ArrayList<Integer>();\n\t\t//contain all x and y points of postive and neg diag lines\n\t\tArrayList <Integer> NegDiagOutlineX = new ArrayList<Integer>();\n\t\tArrayList <Integer> NegDiagOutlineY = new ArrayList<Integer>();\n\n\t\tg.setColor(Color.green);\n\t\t//adding outer shape x coord\n\t\tXpos.add(100);Xpos.add(100);Xpos.add(100);Xpos.add(200);\n\t\tXpos.add(200);Xpos.add(300);Xpos.add(100);Xpos.add(200);\n\t\tXpos.add(300);Xpos.add(400);Xpos.add(300);Xpos.add(350);\n\t\tXpos.add(400);Xpos.add(350);Xpos.add(300);Xpos.add(350);\n\t\tXpos.add(400);Xpos.add(350);Xpos.add(200);Xpos.add(300);//Xpos.add(120);Xpos.add(120);\n\t\tSystem.out.println(Xpos.size());\n\t\t//g.drawArc(100, 10, 200, 200, 0, 360);\n\t\t//adding outer shape y coord\n\t\tYpos.add(100);Ypos.add(10);Ypos.add(10);Ypos.add(10);\n\t\tYpos.add(10);Ypos.add(110);Ypos.add(100);Ypos.add(200);\n\t\tYpos.add(300);Ypos.add(300);Ypos.add(300);Ypos.add(180);\n\t\tYpos.add(300);Ypos.add(180);Ypos.add(300);Ypos.add(420);\n\t\tYpos.add(300);Ypos.add(420);Ypos.add(200);Ypos.add(110);//Ypos.add(100);Ypos.add(10);\n\t\tfor(int x =0;x<Xpos.size();x+=2){\n\t\t\tg.drawLine(Xpos.get(x), Ypos.get(x), Xpos.get(x+1), Ypos.get(x+1));\n\t\t\tif(Ypos.get(x)==Ypos.get(x+1)){\n\t\t\t\tHorizXOutline.add(x);HorizXOutline.add(x+1);\n\t\t\t\tHorizYOutline.add(x);HorizYOutline.add(x+1);\n\t\t\t\tg.drawLine(Xpos.get(x),Ypos.get(x)+20,Xpos.get(x+1),Ypos.get(x+1)+20);\n\t\t\t}\n\t\t\telse if(Xpos.get(x)==Xpos.get(x+1)){\n\t\t\t\tVertOutlineX.add(x);VertOutlineX.add(x+1);\n\t\t\t\tVertOutlineY.add(x);VertOutlineY.add(x+1);\n\t\t\t\tg.drawLine(Xpos.get(x)+20,Ypos.get(x),Xpos.get(x+1)+20,Ypos.get(x+1));\n\t\t\t}\n\t\t\tif((Ypos.get(x+1)-Ypos.get(x))!=0)\n\t\t\t{\n\t\t\t\tint slope = (Xpos.get(x)-Xpos.get(x+1))/(Ypos.get(x+1)-Ypos.get(x));\n\t\t\t\tif(slope<0){\n\t\t\t\t\tNegDiagOutlineX.add(x);NegDiagOutlineX.add(x+1);\n\t\t\t\t\tNegDiagOutlineY.add(x);NegDiagOutlineY.add(x+1);\n\t\t\t\t\tif(Xpos.get(x)<=100){\n\t\t\t\t\t\tg.drawLine(Xpos.get(x),Ypos.get(x)-20,Xpos.get(x+1)+10,Ypos.get(x+1)-10);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tg.drawLine(Xpos.get(x),Ypos.get(x)+20,Xpos.get(x+1)-10,Ypos.get(x+1)+10);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(slope>0){\n\t\t\t\t\tPosDiagOutlineX.add(x);PosDiagOutlineX.add(x+1);\n\t\t\t\t\tPosDiagOutlineY.add(x);PosDiagOutlineY.add(x+1);\n\t\t\t\t\tg.drawLine(Xpos.get(x)-10,Ypos.get(x)-10,Xpos.get(x+1)-10,Ypos.get(x+1)-10);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t for(int x = 0;x<=120;x+=10){\n//\t \t//change in x-3900/-13 = Xpos\n//\t \tint xpos1 = (int)(350 +(x/10)*(-50/11));\n//\t \tint xpos2 = (int)(350+(x/10)*(50/11));\n//\t \tint ypos = 180+x;\n//\t \tg.setColor(Color.red);\n//\t \tg.drawLine(xpos1, ypos, xpos2, ypos);\n//\t \tXpos.add(xpos1);Ypos.add(ypos);Xpos.add(xpos2);Ypos.add(ypos);\n//\t }\n//\t // g.setColor(Color.blue);\n//\t ////.drawRect(200, 100, 100, 100);\n//\t // g.setColor(Color.red);\n//\t double slope = (300-200)/(110-10);\n//\t int y = (int) (100-slope*20);\n//\t // g.drawRect(220, 130-y, 100, 100);\n//\t for(int x = 20;x<=100;x+=10){\n//\t \t//Y=slope*x+0 : (Y)/slope = X where Y = interval of 20\n//\t \tint ypos = (int)(x/slope)+190;\n//\t \tg.drawLine(100, x, ypos, x);\n//\t \tXpos.add(100);Ypos.add(x);Xpos.add(ypos);Ypos.add(x);\n//\t }\n\t // g.drawLine(300, 100, 200, 200);\n//\t for(int x = 100;x<=200;x+=10){\n//\t \tdouble circleypos = 200+ Math.sqrt((200-x)*100);\n//\t \tg.drawLine(x, x, (int)(circleypos), x);\n//\t \t\n//\t }\n\t double totalDist=0;\n\t for(int x=0; x<Xpos.size();x+=2){\n\t int xd = Xpos.get(x+1)-Xpos.get(x); xd = xd*xd;\n\t int yd = Ypos.get(x+1)-Ypos.get(x); yd = yd*yd;\n\t int distance = (int) (Math.sqrt(xd+yd));\n\t totalDist +=distance;\n\t System.out.println(\"The length of this line is\" + distance + \" and the total distance as of now is \" + totalDist);\n\t }\n\t}", "public void paintComponent(Graphics g)\n { box_writer.paint(g);\n ball1_writer.paint(g);\n ball2_writer.paint(g);\n }", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n this.g2d = (Graphics2D) g;\n for (Casilla casilla : casillas) {\n if(casilla instanceof CasillaCentro){\n (new GCasillaCentro(casilla, numCasillasAspa)).dibujar(g2d);\n }else if(casilla instanceof CasillaSemicirculo){\n (new GCasillaSemicirculo(casilla, numCasillasAspa)).dibujar(g2d);\n }else if(casilla instanceof CasillaTriangulo){\n (new GCasillaTriangulo(casilla, numCasillasAspa)).dibujar(g2d);\n }else if(casilla instanceof CasillaPropia){\n (new GCasillaPropia(casilla, numCasillasAspa)).dibujar(g2d);\n }else{\n (new GCasillaNormal(casilla, numCasillasAspa)).dibujar(g2d);\n }\n }\n }", "@Override\n\tpublic void paintComponent(Graphics g){\n\t\tsuper.paintComponent(g);\n\t\tanimateFace((int)circle.x, (int)circle.y, (int)circle2.x, (int)circle2.y);\n\t\tdrawFace(g);\n\t}", "protected abstract void paintLayers(Graphics2D g);", "@Override\n public void paint(Graphics g1){\n\n try{\n super.paint(g1);\n\n drawSymbols_Rel( g1 );\n drawSymbols_Att( g1 );\n /**\n //==== only for test ====\n this.setComplexRelationsCoordinates(20, 28, 33, 38);\n this.setComplexRelationsCoordinates_extraEnds(400, 404);\n */\n\n drawComplexRelationship(g1);\n drawPath(g1);\n \n \n \n }catch(Exception ex){\n }\n }", "@Override\n public void paint(final Graphics g)\n {\n try\n {\n offScreenG.setColor(getBackground());\n offScreenG.fillRect(0, 0, getSize().width, getSize().height);\n\n if(offG == null)\n \toffG = offScreenG.create();\n\n if(backGround != null)\n {\n \t//System.out.println(\"drawing the loaded background image\");\n \toffG.drawImage(backGround, 0, 0, this);\n \tfinal int h = backGround.getHeight(this);\n \tfinal int w = backGround.getWidth(this);\n \toffG.setColor(Color.BLACK);\n \t//offG.drawRect(0, 0, w, h);\n }\n\n offScreenG.setColor(Color.BLACK);\n //offScreenG.drawRect(0, 0, this.getWidth()-1, this.getHeight()-1); //disable drawing of bounding box\n\n final Graphics2D g2 = (Graphics2D)offG;\n\t\t\tfinal Composite normC = g2.getComposite();\n\t\t\tg2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP,(float)0.8));\n for(int i=0; i < associations.size(); i++)\n \tassociations.elementAt(i).render(offG);\n if(mpos != null && start != null)\n {\n \toffG.setColor(Color.DARK_GRAY);\n \tfinal Point rPoint = start.getPoint(mpos);\n \toffG.drawLine(rPoint.x, rPoint.y, mpos.x, mpos.y);\n \tif(retType.equals(\"pair\"))\n \t{\n \t\tdrawArrow(g2, mpos.x, mpos.y, rPoint.x, rPoint.y, 1);\n \t}\n \tdrawArrow(g2, rPoint.x, rPoint.y, mpos.x, mpos.y, 1);\n }\n\t\t\tif(hotspots != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t\t\thotspots.elementAt(i).render(g2);\n\t\t\t}\n\n\t\t\tif(movableObjects != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tmovableObjects.elementAt(i).render2(g2);\n\t\t\t\t}\n\t\t\t}\n g2.setComposite(normC);\n if(drawHSLabel != null)\n {\n \tif(drawHSLabel.hotSpotLabel != null && !drawHSLabel.hotSpotLabel.equals(\"\"))\n \t{\n\n \t\tfinal Rectangle2D bounds = (new TextLayout(drawHSLabel.hotSpotLabel,g2.getFont(),g2.getFontRenderContext())).getBounds();\n \t\tg2.setColor(Color.YELLOW);\n \t\tg2.fillRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.setColor(Color.BLACK);\n \t\tg2.drawRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.drawString(drawHSLabel.hotSpotLabel, mpos.x+5, mpos.y);\n \t}\n }\n\n g.drawImage(offScreenImg, 0, 0, this);\n\n if (om.equals(\"figure_placement_interaction\")) {\n for (int h=0; h < hotspots.size(); h++) {\n //g.drawRect(hotspots.elementAt(h).coords[0],hotspots.elementAt(h).coords[1],hotspots.elementAt(h).coords[2],hotspots.elementAt(h).coords[3]);\n }\n }\n }\n catch(final Exception exception)\n {\n \texception.printStackTrace();\n }\n }", "public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}", "public void paintComponent(Graphics g){\n \t\t\t g.setColor(Color.white);\n \t\t\t g.fillRect(0,0,getWidth(),getHeight());\n for(Block z : blocks){\n z.draw(g);\n }\n \t\t }", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n Dimension d = getSize();\n //current block\n for (j = 0; j < 16; j++)\n {\n if (shapes[blockType][turnState][j] == 1)\n {\n g.setColor(Color.BLUE);\n g.fillRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n }\n }\n //next block\n for (j = 0; j < 16; j++)\n {\n if (shapes[nextb][nextt][j] == 1)\n {\n g.setColor(Color.RED);\n g.fillRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width*3/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width*3/20, d.width/20, d.width/20);\n\n }\n }\n //left boundary drawing\n for (j = 4; j < 36; j++)\n { \n int i = 0;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+1)*d.width/20,(j-5)*d.width/20);\n }\n }\n //right boundary drawing\n for (j = 4; j < 36; j++)\n { \n int i = 11;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine(i*d.width/20,(j-4)*d.width/20,i*d.width/20,(j-5)*d.width/20);\n }\n }\n //bottom boundary drawing\n for (i = 0; i < 10; i++)\n {\n int j = 35;\n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+2)*d.width/20,(j-4)*d.width/20);\n }\n //draw blocks which reached the bottom or on top of another block\n for (j = 4; j < 36; j++)\n {\n for (i = 0; i < 12; i++)\n {\n if (map[i][j] == 1)\n { \n g.setColor(Color.GREEN);\n g.fillRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n } \n }\n }\n\n //next label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.ITALIC, d.width/20));\n g.drawString(\"Next Shape:\", d.width*13/20, d.width/8);\n //level label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Level: \" + level, d.width*13/20, d.width*5/8);\n //line label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Line: \" + showline, d.width*13/20, d.width*7/8);\n //score label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Score: \" + score, d.width*13/20, d.width*9/8);\n }", "@Override\n protected void onDraw(Canvas canvas) {\n // Draw the components\n Arrange();\n box.draw(canvas);\n for (Node node : nodes) {\n node.draw(canvas);\n }\n line.draw(canvas);\n invalidate(); // Force a re-draw\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n //create coloring for hand and floor\n g.setColor(Color.DARK_GRAY);\n g.fillRect(0, 0, 1054, 170);\n g.setColor(Color.GRAY);\n g.fillRect(0, 170, 1054, 521);\n g.setColor(Color.DARK_GRAY);\n g.fillRect(0, 691, 1054, 170);\n\n //hand border\n g.setColor(Color.BLACK);\n g.fillRect(0, 168, 1054, 4);\n g.fillRect(0, 689, 1054, 4);\n\n //opponent hand containers\n for (Integer i = 0; i < 7; i++) {\n g.setColor(Color.BLACK);\n g.fillRect(20 + (30 * (i + 1) + (i * 110)), 9, 110, 150);\n g.setColor(Color.DARK_GRAY);\n g.fillRect(25 + (30 * (i + 1) + (i * 110)), 14, 100, 140);\n }\n\n //opponent floor containers\n for (Integer i = 0; i < 7; i++) {\n if(i == 1){\n g.setColor(new Color(255,140,0));\n } else if (i == 0){\n g.setColor(new Color(128,0,128));\n } else {\n g.setColor(new Color(220,20,60));\n }\n g.fillRect(20 + (30 * (i + 1) + (i * 110)), 187, 110, 150);\n g.setColor(Color.GRAY);\n g.fillRect(25 + (30 * (i + 1) + (i * 110)), 192, 100, 140);\n }\n\n //user floor containers\n for (Integer i = 0; i < 7; i++) {\n if(i == 1){\n g.setColor(new Color(255,140,0));\n } else if (i == 0){\n g.setColor(new Color(128,0,128));\n } else {\n g.setColor(new Color(34, 139, 34));\n }\n g.fillRect(20 + (30 * (i + 1) + (i * 110)), 523, 110, 150);\n g.setColor(Color.GRAY);\n g.fillRect(25 + (30 * (i + 1) + (i * 110)), 528, 100, 140);\n }\n\n //user hand containers\n for (Integer i = 0; i < 7; i++) {\n g.setColor(Color.BLACK);\n g.fillRect(20 + (30 * (i + 1) + (i * 110)), 701, 110, 150);\n g.setColor(Color.DARK_GRAY);\n g.fillRect(25 + (30 * (i + 1) + (i * 110)), 706, 100, 140);\n }\n\n //attack container\n g.setColor(new Color(0,0,128));\n g.fillRect(470, 355, 110, 150);\n g.setColor(Color.GRAY);\n g.fillRect(475, 360, 100, 140);\n\n //defend container\n g.setColor(new Color(0,0,128));\n g.fillRect(750, 355, 110, 150);\n g.setColor(Color.GRAY);\n g.fillRect(755, 360, 100, 140);\n\n displayLeaders(g);\n displayHand(g);\n displayOppHand(g);\n\n repaint();\n\n }", "private void paintBeanMachine(){\n Line baseLine = new Line();\n\n baseLine.startXProperty().bind(widthProperty().multiply(0.2));\n baseLine.startYProperty().bind(heightProperty().multiply(0.8));\n baseLine.endXProperty().bind(widthProperty().multiply(0.8));\n baseLine.endYProperty().bind(heightProperty().multiply(0.8));\n\n // distance gap per circle\n double distance = (baseLine.getEndX() - baseLine.getStartX()) / SLOTS;\n ballRadius = distance / 2;\n\n //Draw pegs\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n Circle[] pegs = new Circle[factorialSum(SLOTS)];\n int index = 0;\n\n for(int row = 0; row < SLOTS; row++){\n DoubleBinding y = baseLine.startYProperty().subtract(heightProperty().multiply(0.2).divide(row + 1));\n\n for(int col = 0; col < SLOTS - row; col++){\n Circle peg = new Circle(5, Color.BLUE);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(row).multiply(0.5))\n .add(dist.divide(2))\n .add(dist.multiply(row)));\n peg.centerYProperty().bind(y);\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n\n Line line = new Line();\n line.startXProperty().bind(peg.centerXProperty());\n line.startYProperty().bind(peg.centerYProperty());\n line.endXProperty().bind(peg.centerXProperty());\n line.endYProperty().bind(baseLine.startYProperty());\n getChildren().add(line);\n }\n }\n\n /*\n for(int i = 1; i <= SLOTS; i++){\n double x = baseLine.getStartX() + (i * distance * 0.50) + distance / 2;\n double y = baseLine.getStartY() - (distance * i) - distance / 2;\n\n for(int j = 0; j <= SLOTS - i; j++){\n Circle peg = new Circle(5, Color.BLUE);\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(i).multiply(0.5))\n .add(dist.divide(2)));\n peg.centerYProperty().bind(baseLine.startYProperty()\n .subtract(dist.multiply(i))\n .subtract(dist.divide(2)));\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n x += distance;\n }\n }\n */\n\n distance = distance + (distance / 2) - pegs[0].getRadius();\n // Connect the base of the triangle with lowerLine\n // NOT including left most and right most line\n Line[] lines = new Line[SLOTS - 1];\n for (int i = 0; i < SLOTS - 1; i++) {\n double x1 = pegs[i].getCenterX() + pegs[i].getRadius() * Math.sin(Math.PI);\n double y1 = pegs[i].getCenterY() - pegs[i].getRadius() * Math.cos(Math.PI);\n lines[i] = new Line(x1, y1, x1, y1 + distance);\n\n }\n // Draw right most and left most most line\n Line[] sides = new Line[6];\n sides[0] = new Line(\n baseLine.getEndX(), baseLine.getEndY(),\n baseLine.getEndX(), baseLine.getEndY() - distance);\n sides[1] = new Line(\n baseLine.getStartX(), baseLine.getStartY(),\n baseLine.getStartX(), baseLine.getStartY() - distance);\n\n //Draw left side line\n /*\n for(int i = 2; i < 4; i++){\n double x = pegs[pegs.length - i].getCenterX();\n double y = pegs[pegs.length - i].getCenterY() - distance;\n sides[i] = new Line(x, y, sides[i - 2].getEndX(), sides[i - 2].getEndY());\n }\n */\n\n // Draw the upper 2 lines on top of the triangle\n /*\n for (int i = 4; i < sides.length; i++){\n sides[i] = new Line(\n sides[i-2].getStartX(), sides[i-2].getStartY(),\n sides[i-2].getStartX(), sides[i-2].getStartY() - (distance * 0.6)\n );\n }\n */\n\n getChildren().addAll(baseLine);\n getChildren().addAll(pegs);\n //getChildren().addAll(lines);\n //getChildren().addAll(sides);\n }", "private void createRectangle() {\n int x = 0;\n int y = 270;\n int x1 = 230;\n for(int index = 0; index < 10; index++){\n rec[index] = new JLabel();\n doublyrec[index] = new JLabel();\n circularrec[index] = new JLabel();\n arrowLabel[index] = new JLabel();\n doublyarrowLabel[index] = new JLabel();\n circulararrowLabel[index] = new JLabel();\n rec[index].setBackground(new java.awt.Color(0, 0, 255));\n rec[index].setLocation(x,y);\n rec[index].setVisible(false);\n rec[index].setSize(80,40);\n rec[index].setOpaque(true);\n rec[index].setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n singlyPracticalPanel.add(rec[index]);\n doublyrec[index].setBackground(new java.awt.Color(0, 0, 255));\n doublyrec[index].setLocation(x,y);\n doublyrec[index].setVisible(false);\n doublyrec[index].setSize(80,40);\n doublyrec[index].setOpaque(true);\n doublyrec[index].setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n doublyPracticalPanel.add(doublyrec[index]);\n circularrec[index].setBackground(new java.awt.Color(0, 0, 255));\n circularrec[index].setLocation(x,y);\n circularrec[index].setVisible(false);\n circularrec[index].setSize(80,40);\n circularrec[index].setOpaque(true);\n circularrec[index].setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n circularPracticalPanel.add(circularrec[index]);\n y -= 20;\n arrowLabel[index].setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/DataStructure/22312.png\")));\n singlyPracticalPanel.add(arrowLabel[index]);\n arrowLabel[index].setBounds(x1, 210, 20, 20);\n arrowLabel[index].setVisible(false);\n \n doublyarrowLabel[index].setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/DataStructure/doubly.png\")));\n doublyPracticalPanel.add(doublyarrowLabel[index]);\n doublyarrowLabel[index].setBounds(x1, 210, 20, 20);\n doublyarrowLabel[index].setVisible(false);\n \n circulararrowLabel[index].setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/DataStructure/22312.png\")));\n circularPracticalPanel.add(circulararrowLabel[index]);\n circulararrowLabel[index].setBounds(x1, 210, 20, 20);\n circulararrowLabel[index].setVisible(false);\n \n x1 += 100;\n }\n }", "public void paint(Graphics g)\n\t{\n\t\t\n\t\tGraphics2D graph2 = (Graphics2D)g;\n\t\t\n\t\t// Sets preferences for rendering\n\t\t// KEY_ANTIALIASING reduces artifacts on shapes\n\t\t// VALUE_ANTIALIAS_ON will clean up the edges\n\t\t\n\t\tgraph2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\tgraph2.setColor(Color.LIGHT_GRAY);\n\t\tgraph2.fillRect(0, 0, this.getWidth(), this.getHeight());\n\n\t\tgraph2.setColor(Color.BLACK);\n\t\tgraph2.setFont(new Font(\"Serif\", Font.BOLD, 10));\n\t\tfor(int i=0;i<gen.length;i++)\n\t\t{\n\t\t\tgraph2.drawString(Integer.toString((int)gen[i]), (int)gen[i], 290);\n\t\t}\n\t\td.doEverthing2_0();\n\t\tStuffToDraw[]s = d.s;\n\t\t\n\t\tfor(int i=0;i<d.s.length;i++)\n\t\t{\n\t\t\tif(s[i].fix)\n\t\t\t{\n\t\t\t\t//System.out.println(\"Here6\");\n\t\t\t\tgraph2.setPaint(colors[i]);\n\t\t\t\tPath2D path2D = new Path2D.Double();\n\t\t\t\tpath2D.append(s[i].bottom, false);\n\t\t\t\tpath2D.lineTo(1000, 276);\n\t\t\t\tpath2D.lineTo(1000, 0);\n\t\t\t\tpath2D.lineTo(s[i].top.getX1(), 0);\n\t\t\t\tpath2D.append(s[i].top, false);\n\t\t\t\tpath2D.closePath();\n\t\t\t\t// fill constructed path\t\t\n\t\t\t\tgraph2.fill(path2D);\n\t\t\t\t\n\t\t\t\tgraph2.setPaint(Color.WHITE);\n\t\t\t\tgraph2.setStroke(new BasicStroke(2));\n\t\t\t\tgraph2.draw(s[i].bottom);\n\t\t\t\tgraph2.draw(s[i].top);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"Here7\");\n\t\t\t\tgraph2.setPaint(colors[i]);\n\t\t\t\tPath2D path2D2 = new Path2D.Double();\n\t\t\t\tpath2D2.append(s[i].bottom, false);\n\t\t\t\tpath2D2.append(s[i].top, false);\n\t\t\t\tpath2D2.closePath();\n\t\t\t\t// fill constructed path\t\t\n\t\t\t\tgraph2.fill(path2D2);\n\t\t\t\t\n\t\t\t\tgraph2.setPaint(Color.WHITE);\n\t\t\t\tgraph2.setStroke(new BasicStroke(2));\n\t\t\t\tgraph2.draw(s[i].bottom);\n\t\t\t\tgraph2.draw(s[i].top);\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\tdouble x1=-1, x2=-1, x3=-1, x4=-1, y1=-1, y2=-1, y3=-1, y4=-1;\n\t\tfor(int i=0;i<d.clustered_names.size();i++)\n\t\t{\n\t\t\tfor(int j=0;j<d.averaged_l.get(i).size();j++)\n\t\t\t{\n\t\t\t\tif((d.averaged_l.get(i).get(j)>.01) && (x1==-1))\n\t\t\t\t{\n\t\t\t\t\tx1=gen[j];\n\t\t\t\t\ty1=138;\n\t\t\t\t}\n\t\t\t\tif((d.averaged_l.get(i).get(j)>.90) && (x4==-1))\n\t\t\t\t{\n\t\t\t\t\tx4=gen[j];\n\t\t\t\t\ty4=276;\n\t\t\t\t}\n\t\t\t\tif(x1!=-1 && x4!=-1)\n\t\t\t\t{\n\t\t\t\t\tx2 = x1+(x4-x1)/2;\n\t\t\t\t\tx3 = x1+(x4-x1)/2;\n\t\t\t\t\ty2 = 138;\n\t\t\t\t\ty3 = 276;\n\t\t\t\t\t\n\t\t\t\t\tgraph2.setPaint(colors[i]);\n\t\t\t\t\tCubicCurve2D cubicCurve = new CubicCurve2D.Double();\t\n\t\t\t\t\tcubicCurve.setCurve(x1, y1, x2, y2, x3, y3, x4, y4);\t\n\t\t\t\t\tgraph2.draw(cubicCurve);\n\t\t\t\t\tCubicCurve2D cubicCurve2 = new CubicCurve2D.Double();\n\t\t\t\t\tcubicCurve2.setCurve(x4, 0, x3, 0, x2, y2, x1, y1);\n\t\t\t\t\tgraph2.draw(cubicCurve2);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tPath2D path2D = new Path2D.Double();\n\t\t\t\t\tpath2D.append(cubicCurve, false);\n\t\t\t\t\tpath2D.lineTo(1000, 276);\n\t\t\t\t\tpath2D.lineTo(1000, 0);\n\t\t\t\t\tpath2D.lineTo(x4, 0);\n\t\t\t\t\tpath2D.append(cubicCurve2, false);\n\t\t\t\t\tpath2D.closePath();\n\t\t\t\t\t// fill constructed path\t\t\n\t\t\t\t\tgraph2.fill(path2D);\n\t\t\t\t\tgraph2.setPaint(Color.BLACK);\n\t\t\t\t\tgraph2.drawString(d.clustered_names.get(i), (int)x2+70, (int)y3-50);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tx1=-1; x2=-1; x3=-1; x4=-1; y1=-1; y2=-1; y3=-1; y4=-1;\n\t\t}\n\t\t\n\t\tgraph2.setPaint(Color.black);\n\t\tCubicCurve2D c = new CubicCurve2D.Double();\n\t\tc.setCurve(200, 276, 100, 138, 100, 138, 0, 138);\n\t\tgraph2.draw(c);\n\t\t*/\n\t\tgraph2.setPaint(Color.BLACK);\n\t\tgraph2.drawLine(0, 0, 0, 276);\n\t\tgraph2.drawLine(0, 276, 1000, 276);\n\t\tgraph2.drawLine(1000,276,1000,0);\n\t\tgraph2.drawLine(1000,0,0,0);\n\t\t\n\t\t\n\t\t/*graph2.setPaint(Color.MAGENTA);\t\n\n\n\t\tCubicCurve2D cubicCurve = new CubicCurve2D.Double();\t\n\t\tcubicCurve.setCurve(0, 138, 50, 138, 50, 276, 100, 276);\t\n\t\tgraph2.draw(cubicCurve);\n\t\t\n\t\tCubicCurve2D cubicCurve2 = new CubicCurve2D.Double();\n\t\tcubicCurve2.setCurve(100, 0, 50, 0, 50, 138, 0, 138);\n\t\tgraph2.draw(cubicCurve2);\n\n\t\tPath2D path2D = new Path2D.Double();\n\t\tpath2D.append(cubicCurve, false);\n\t\tpath2D.lineTo(700, 276);\n\t\tpath2D.lineTo(700, 0);\n\t\tpath2D.lineTo(100, 0);\n\t\tpath2D.append(cubicCurve2, false);\n\t\tpath2D.closePath();\n\t\t// fill constructed path\t\t\n\t\tgraph2.fill(path2D);\n\t\n\t\t\n\t\t\n\t\t\n\t\tgraph2.setPaint(Color.CYAN);\n\t\tcubicCurve.setCurve(50, 138, 100, 138, 100, 276, 150, 276);\t\n\t\tgraph2.draw(cubicCurve);\n\t\tcubicCurve2.setCurve(150, 0, 100, 0, 100, 138, 50, 138);\n\t\tgraph2.draw(cubicCurve2);\n\t\tPath2D path2D2 = new Path2D.Double();\n\t\tpath2D2.append(cubicCurve, false);\n\t\tpath2D2.lineTo(700, 276);\n\t\tpath2D2.lineTo(700, 0);\n\t\tpath2D2.lineTo(150, 0);\n\t\tpath2D2.append(cubicCurve2, false);\n\t\tpath2D2.closePath();\n\t\tgraph2.fill(path2D2);\n\t\t*/\n\t}", "private void drawFavouritesAndLegend(){\n renderer.begin();\n renderer.set(ShapeRenderer.ShapeType.Filled);\n renderer.setColor(Color.CYAN);\n for(int i = 0; i<favouriteX.size(); i++){\n renderer.circle(favouriteX.get(i), favouriteY.get(i), 3);\n }\n renderer.setColor(Color.WHITE);\n renderer.circle(50, 900, 5);\n renderer.setColor(Color.GREEN);\n renderer.circle(50, 870, 5);\n renderer.setColor(Color.RED);\n renderer.circle(50, 840, 5);\n renderer.setColor(Color.CYAN);\n renderer.circle(50, 810, 5);\n renderer.end();\n batch.begin();\n font.draw(batch, Const.PLANET_NAME, 60, 905);\n font.draw(batch, \"Flight Origin\", 60, 875);\n font.draw(batch, \"Flight Destination\", 60, 845);\n font.draw(batch, \"Habitable Planet\", 60, 815);\n batch.end();\n }", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n Dimension d = getSize();\n //current block\n for (j = 0; j < 16; j++)\n {\n if (shapes[blockType][turnState][j] == 1)\n {\n g.setColor(Color.BLUE);\n g.fillRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + x + 1)*d.width/20,(j/4 + y - 4)*d.width/20, d.width/20, d.width/20);\n }\n }\n //next block\n for (j = 0; j < 16; j++)\n {\n if (shapes[nextb][nextt][j] == 1)\n {\n g.setColor(Color.RED);\n g.fillRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width/10, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + 1)*d.width/20+d.width*13/20,(j/4)*d.width/20+d.width/10, d.width/20, d.width/20);\n\n }\n }\n //left boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 0;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+1)*d.width/20,(j-5)*d.width/20);\n }\n }\n //right boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 11;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine(i*d.width/20,(j-4)*d.width/20,i*d.width/20,(j-5)*d.width/20);\n }\n }\n //bottom boundary drawing\n for (i = 0; i < 10; i++)\n {\n int j = 25;\n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/20,(j-4)*d.width/20,(i+2)*d.width/20,(j-4)*d.width/20);\n }\n //draw blocks which reached the bottom or on top of another block\n for (j = 4; j < 26; j++)\n {\n for (i = 0; i < 12; i++)\n {\n if (map[i][j] == 1)\n { \n g.setColor(Color.GREEN);\n g.fillRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n g.setColor(Color.BLACK);\n g.drawRect(i*d.width/20,(j-4)*d.width/20, d.width/20, d.width/20);\n } \n }\n }\n\n //next label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.ITALIC, d.width/20));\n g.drawString(\"Next Shape:\", d.width*13/20, d.width*3/40);\n //level label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Level: \" + level, d.width*13/20, d.width/2);\n //line label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Line: \" + showline, d.width*13/20, d.width*3/5);\n //score label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/80));\n g.drawString(\"Score: \" + score, d.width*13/20, d.width*7/10);\n }", "@Override\n void drawShape(BufferedImage image, int color) {\n Point diem2 = new Point(diem.getX()+canh, diem.getY());\n Point td = new Point(diem.getX()+canh/2, diem.getY());\n \n \n Point dinh = new Point(td.getX(), td.getY()+h);\n \n Point diem_thuc = Point.convert(diem);\n Point diem_2_thuc = Point.convert(diem2);\n Point dinh_thuc = Point.convert(dinh);\n Point td_thuc = Point.convert(td);\n \n Line canh1=new Line(dinh_thuc, diem_thuc);\n canh1.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh2=new Line(diem_thuc, diem_2_thuc);\n canh2.drawShape(image, ColorConstant.BLACK_RGB);\n Line canh3=new Line(diem_2_thuc, dinh_thuc);\n canh3.drawShape(image, ColorConstant.BLACK_RGB);\n int k =5;\n for(int i =canh1.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n \n Point ve = new Point(td_thuc.getX()-canh*5/2+j+5, td_thuc.getY()-k);\n if(ve.getX()>canh1.getPoints().get(i).getX()+5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n k=5;\n for(int i =canh3.getPoints().size()-5;i>=5;i--){\n \n for(int j = 0;j<canh*5/2-5;j++){\n Point ve = null;\n \n ve = new Point(td_thuc.getX()+canh*5/2-j-5, td_thuc.getY()-k);\n if(ve.getX()<canh3.getPoints().get(i).getX()-5){\n Point.putPoint(ve, image, color);\n }\n }\n k++;\n }\n }", "public void paint(Graphics g) {\n\n for (int i = 0; i < activePickups.size(); i++) {\n activePickups.get(i).paint(g);\n }\n }", "public void paintBalls(Graphics g);", "public void draw(Graphics g) {\n g.setColor(needsHighlight() ? selectColor : Color.GRAY);\n setBbox(x1, y1, x2, y2);\n g.setLineDash(16, 6);\n if (x1 < x2 && y1 < y2) {\n g.drawRect(x1, y1, x2 - x1, y2 - y1);\n } else if (x1 > x2 && y1 < y2) {\n g.drawRect(x2, y1, x1 - x2, y2 - y1);\n } else if (x1 < x2 && y1 > y2) {\n g.drawRect(x1, y2, x2 - x1, y1 - y2);\n } else {\n g.drawRect(x2, y2, x1 - x2, y1 - y2);\n }\n g.setLineDash(0, 0);\n }", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n public void paintComponent(Graphics brush)\r\n {\r\n super.paintComponent(brush);\r\n Graphics2D g2 = (Graphics2D) brush;\r\n /*Faster Rendering for mouse interaction*/\r\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\r\n \r\n \r\n if (!wps.getWalls().isEmpty())\r\n {\r\n x = INITIAL_X;\r\n int wallNo = 1;\r\n /*Iterate for all Walls*/\r\n for (Wall wa : wps.getWalls())\r\n {\r\n /*Rectangle counters*/\r\n int rectangles = 0;\r\n for (int bays : wa.getBaysArray())\r\n {\r\n y = INITIAL_Y;\r\n for (int i=0; i<bays;i++)\r\n {\r\n brush.drawRect(x,y, SLEEPER_W, SLEEPER_H);\r\n brush.setFont(f);\r\n //Centering the Name\r\n brush.drawString(\"Wall \"+wallNo, x+28, y+16);\r\n y = y - SLEEPER_H;\r\n }\r\n \r\n /*Painting rectangles to simulate at entire bay*/\r\n if(wps.getWalls().get(wallNo-1).getArrayRect().size() != wps.getWalls().get(wallNo-1).getBaysArray().size())\r\n {\r\n wps.getWalls().get(wallNo-1).getArrayRect().add(new Rectangle(x,y+SLEEPER_H, SLEEPER_W, (SLEEPER_H*bays)));\r\n }\r\n g2.draw(wps.getWalls().get(wallNo-1).getArrayRect().get(rectangles));\r\n rectangles++;\r\n x = x + SLEEPER_W;\r\n \r\n }\r\n wallNo++;\r\n }\r\n }\r\n \r\n if (x> 830)\r\n {\r\n this.setPreferredSize(new Dimension(x+20,560));\r\n this.revalidate();\r\n }\r\n }", "private void paintAllObjects()\n {\n for (int i = 0; i < allObjects.size(); i++)\n {\n JComponent c = (JComponent) allObjects.get(i);\n\n c.setBackground(backgroundColor);\n c.setForeground(foregroundColor);\n }\n }", "public void paint(Graphics g) {\n\t\tfor(int i = 0; i < handler.object.size(); i++){\r\n\t\t\tObjectsInGame tempObject = handler.object.get(i);\r\n\t\t\tif(tempObject.getId() == IDOfObjects.Paddle1)\r\n\t\t\t\tg.setColor(Color.blue);\r\n\t\t\telse\r\n\t\t\tif(tempObject.getId() == IDOfObjects.Paddle2)\r\n\t\t\t\tg.setColor(Color.green);\r\n\t\tg.fillRect(x, y, 100, 15);\r\n\t\t\r\n\t\t}\r\n\r\n\t}", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n Dimension d = getSize();\n //current block\n for (j = 0; j < 16; j++)\n {\n if (shapes[blockType][turnState][j] == 1)\n {\n g.setColor(Color.BLUE);\n g.fillRect((j%4 + x + 1)*d.width/30,(j/4 + y - 4)*d.width/30, d.width/30, d.width/30);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + x + 1)*d.width/30,(j/4 + y - 4)*d.width/30, d.width/30, d.width/30);\n }\n }\n //next block\n for (j = 0; j < 16; j++)\n {\n if (shapes[nextb][nextt][j] == 1)\n {\n g.setColor(Color.RED);\n g.fillRect((j%4 + 1)*d.width/30+d.width*23/30,(j/4)*d.width/30+d.width/15, d.width/30, d.width/30);\n g.setColor(Color.BLACK);\n g.drawRect((j%4 + 1)*d.width/30+d.width*23/30,(j/4)*d.width/30+d.width/15, d.width/30, d.width/30);\n\n }\n }\n //left boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 0;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/30,(j-4)*d.width/30,(i+1)*d.width/30,(j-5)*d.width/30);\n }\n }\n //right boundary drawing\n for (j = 4; j < 26; j++)\n { \n int i = 21;\n if (map[i][j]==2)\n { \n g.setColor(Color.BLACK);\n g.drawLine(i*d.width/30,(j-4)*d.width/30,i*d.width/30,(j-5)*d.width/30);\n }\n }\n //bottom boundary drawing\n for (i = 0; i < 20; i++)\n {\n int j = 25;\n g.setColor(Color.BLACK);\n g.drawLine((i+1)*d.width/30,(j-4)*d.width/30,(i+2)*d.width/30,(j-4)*d.width/30);\n }\n //draw blocks which reached the bottom or on top of another block\n for (j = 4; j < 26; j++)\n {\n for (i = 0; i < 21; i++)\n {\n if (map[i][j] == 1)\n { \n g.setColor(Color.GREEN);\n g.fillRect(i*d.width/30,(j-4)*d.width/30, d.width/30, d.width/30);\n g.setColor(Color.BLACK);\n g.drawRect(i*d.width/30,(j-4)*d.width/30, d.width/30, d.width/30);\n } \n }\n }\n\n //next label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.ITALIC, d.width/30));\n g.drawString(\"Next Shape:\", d.width*23/30, d.width*3/60);\n //level label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/120));\n g.drawString(\"Level: \" + level, d.width*23/30, d.width/3);\n //line label\n g.setColor(Color.black);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/120));\n g.drawString(\"Line: \" + showline, d.width*23/30, d.width*2/5);\n //score label\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"Serif\", Font.BOLD, d.width*3/120));\n g.drawString(\"Score: \" + score, d.width*23/30, d.width*7/15);\n }", "public void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// Setting drawings the global color.\r\n\t\tg.setColor( this.model.defaultV.movingColor ); \r\n\r\n\t\t//Painting all of the particles.\r\n\t\tfor(int i = 0; i < this.model.particleArray.size(); i++) {\r\n\t\t\tParticle p = (Particle) this.model.particleArray.get(i);\r\n\t\t\tint x = (int) p.x;\r\n\t\t\tint y = (int) p.y;\r\n\t\t\t\r\n\t\t\t// Changing the color accordingly.\r\n\t\t\tif( p.isMoving ) {\r\n\t\t\t\tg.setColor( p.color );\r\n\t\t\t} else {\r\n\t\t\t\tg.setColor( this.model.defaultV.stuckColor );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Painting each particle.\r\n\t\t\tg.fillRect(x, y, this.model.defaultV.particleSize, this.model.defaultV.particleSize);\r\n\t\t\t\r\n\t\t\tif (p.isTracking && p.trackingPath.size() > 1) {\r\n\t\t\t\tParticle firstPos = p.trackingPath.get(0); // Our very first particle position.\r\n\t\t\t\tfor(int j = 1; j < p.trackingPath.size() - 1; j++) {\r\n\t\t\t\t\tParticle secondPos = p.trackingPath.get(j);\r\n\t\t\t\t\t// draw line from first to second.\r\n\t\t\t\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\t\t\t\tLine2D lin = new Line2D.Float((int) firstPos.x, (int) firstPos.y, (int) secondPos.x, (int) secondPos.y);\r\n\t\t\t\t\tg.setColor( p.color );\r\n\t\t\t\t\tg2.draw(lin);\r\n\t\t\t\t\t// Set our first to the next.\r\n\t\t\t\t\tfirstPos = secondPos;\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n\t}", "public void paintComponent(Graphics g) {\n\t\t// Use g to draw on the JPanel, lookup java.awt.Graphics in\n\t\t// the javadoc to see more of what this can do for you!!\n\t\t\n super.paintComponent(g); //paint background\n Graphics2D g2d = (Graphics2D) g; // lets use the advanced api\n\t\t// setBackground (Color.blue); \n\t\t// Origin is at the top left of the window 50 over, 75 down\n\t\tg2d.setColor(Color.white);\n g2d.drawString (\"i=\"+i, 50, 75);\n\t\ti=i+1;\n\t\t\n\t\t// Draw Shapes\n\t\tArrayList<Shape> shapes = this.model.getShapes();\n\t\tthis.dsf = new DrawShapeFactory(shapes, this.shape);\n\t\tthis.dsf.paintComponent(g2d);\n\t\t\n\t\tg2d.dispose();\n\t}", "public void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tthis.setBackground(Color.ORANGE);\r\n\t\t\r\n\t\t//-------------------------------------------------------------------------------\r\n\t\t\r\n\t\tclass SquareColours {\r\n\t\t\t\r\n\t\t\tprivate int x,y,z;\r\n\t\t\t\r\n\t\t\t//---------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\tSquareColours(int x, int y, int z) {\r\n\t\t\t\tthis.x = x;\r\n\t\t\t\tthis.y = y;\r\n\t\t\t\tthis.z = z;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//---------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\tpublic void chooseSquareColours() {\r\n\t\t\t\tint k = this.z;\r\n\t\t\t\t\r\n\t\t\t\tswitch(k) {\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\tg.setColor(new Color(0,0,255)); //draws unvisited squares as blue\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tg.setColor(new Color(0,255,0)); //draws squares on the mouse's path as green\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2: \r\n\t\t\t\t\t\tg.setColor(new Color(255,0,0)); //draws the mouse trap squares as red\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3: \r\n\t\t\t\t\t\tg.setColor(Color.BLACK);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault: g.setColor(new Color(100,100,100));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//---------------------------------------------------------------------------\r\n\t\t\t\r\n\t\t\tpublic void drawSquares(int i, int j) {\r\n\t\t\t\t\tg.fillRect(i*50,j*50,49,49);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//-------------------------------------------------------------------------------\r\n\t\t\r\n\t\tfor (int i = 0;i < 11;i++) {\r\n\t\t\tfor (int j = 0;j < 11; j++) {\r\n\t\t\t\tSquareColours A = new SquareColours(i,j,getVal(i,j));\r\n\t\t\t\tA.chooseSquareColours();\r\n\t\t\t\tA.drawSquares(i,j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*SquareColours A = new SquareColours(0,0,getVal(0,0));\r\n\t\tA.chooseSquareColours();\r\n\t\tA.drawSquares(0,0);\r\n\t\t\r\n\t\tSquareColours B = new SquareColours(1,2,getVal(1,2));\r\n\t\tB.chooseSquareColours();\r\n\t\tB.drawSquares(1,2);*/\r\n\t\t\r\n\t}", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n System.out.println(popped_points+ \"++++++++++++++++++++++\");\r\n int x1_r = popped_points.get(0);\r\n int y1_r = popped_points.get(1);\r\n int x2_r = popped_points.get(2);\r\n int y2_r = popped_points.get(3);\r\n\r\n switch (popped_shape){\r\n case \"rec\":\r\n g.setColor(popped_color);\r\n int[] start_points = start_point(x1_r, y1_r,x2_r,y2_r);\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2_r-x1_r), Math.abs(y2_r-y1_r));\r\n canvas.repaint();\r\n\r\n// System.out.println(rec_colors);\r\n// System.out.println(rec_points);\r\n// System.out.println(progress_stack);\r\n\r\n //store this shape in regular stack\r\n rec_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n rec_points.add(popped_points.get(i));\r\n }\r\n\r\n// System.out.println(rec_colors);\r\n System.out.println(rec_points+\"++++++++++++++++++++++++++++++++\");\r\n// System.out.println(progress_stack);\r\n\r\n break;\r\n case \"squ\":\r\n g.setColor(popped_color);\r\n start_points = start_point(x1_r, y1_r,x2_r,y2_r);\r\n g.drawRect(start_points[0], start_points[1], Math.abs(x2_r-x1_r), Math.abs(x2_r-x1_r));\r\n canvas.repaint();\r\n\r\n //store this shape in regular stack\r\n squ_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n squ_points.add(popped_points.get(i));\r\n }\r\n\r\n break;\r\n\r\n case \"ell\":\r\n g.setColor(popped_color);\r\n start_points = start_point(x1_r, y1_r,x2_r,y2_r);\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2_r-x1_r), Math.abs(y2_r-y1_r));\r\n canvas.repaint();\r\n\r\n //store this shape in regular stack\r\n ell_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n ell_points.add(popped_points.get(i));\r\n }\r\n break;\r\n\r\n case \"cir\":\r\n g.setColor(popped_color);\r\n start_points = start_point(x1_r, y1_r,x2_r,y2_r);\r\n g.drawOval(start_points[0], start_points[1], Math.abs(x2_r-x1_r), Math.abs(x2_r-x1_r));\r\n canvas.repaint();\r\n\r\n //store this shape in regular stack\r\n cir_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n cir_points.add(popped_points.get(i));\r\n }\r\n\r\n break;\r\n\r\n case \"str\":\r\n g.setColor(popped_color);\r\n g.drawLine(x1_r, y1_r, x2_r, y2_r);\r\n canvas.repaint();\r\n\r\n //store this shape in regular stack\r\n str_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n str_points.add(popped_points.get(i));\r\n }\r\n\r\n break;\r\n\r\n case \"handdraw\":\r\n g.setColor(popped_color);\r\n int line_num = popped_points.size()/2-1;\r\n for (int i = 0; i < line_num; i++) {\r\n int begin_index = i*2;\r\n g.drawLine(popped_points.get(begin_index),popped_points.get(begin_index+1),popped_points.get(begin_index+2),popped_points.get(begin_index+3));\r\n }\r\n canvas.repaint();\r\n\r\n //store this shape in regular stack\r\n handdraw_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n handdraw_points.add(popped_points.get(i));\r\n }\r\n handdraw_points.add(-1);\r\n\r\n break;\r\n\r\n case \"poly\":\r\n g.setColor(popped_color);\r\n line_num = popped_points.size()/2-1;\r\n for (int i = 0; i < line_num; i++) {\r\n int begin_index = i*2;\r\n g.drawLine(popped_points.get(begin_index),popped_points.get(begin_index+1),popped_points.get(begin_index+2),popped_points.get(begin_index+3));\r\n }\r\n canvas.repaint();\r\n\r\n //store this shape in regular stack\r\n for (int i = 0; i < popped_points.size()/2; i++) {\r\n poly_colors.add(popped_color);\r\n progress_stack.add(popped_shape);\r\n }\r\n\r\n poly_points.add(-1);\r\n for (int i = 0; i < popped_points.size(); i++) {\r\n poly_points.add(popped_points.get(i));\r\n }\r\n break;\r\n\r\n }\r\n\r\n /*//repaint last shape in stack\r\n String last_shape = progress_stack.get(progress_stack.size()-1);\r\n if(last_shape.equals(\"rec\")){\r\n //rectangle repaint\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n }\r\n if(last_shape.equals(\"cir\")){\r\n //circle repaint\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n }\r\n if(last_shape.equals(\"squ\")){\r\n //square repaint\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n }\r\n if(last_shape.equals(\"ell\")){\r\n //ellipse repaint\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n }\r\n if(last_shape.equals(\"str\")){\r\n //straight line repaint\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n }\r\n if(last_shape.equals(\"poly\")){\r\n //polygon repaint\r\n ArrayList<Integer> separate_index = get_separate_index(poly_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n\r\n //other shapes\r\n for (int j = 0; j < separate_index.size()-1; j++) {\r\n Color polygon_color = poly_colors.get(j);\r\n //each shape repaint\r\n int begin_index = separate_index.get(j);\r\n int end_index = separate_index.get(j+1);\r\n\r\n //get polygon points arraylist\r\n for (int k = (begin_index+1); k < end_index; k++) {\r\n points.add(poly_points.get(k));\r\n\r\n }\r\n System.out.println(points);\r\n\r\n //repaint one polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int k = 0; k < line_num; k++) {\r\n int begin_point = k*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(polygon_color);\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n points.clear();\r\n }\r\n\r\n //the last polygon\r\n //get last shape points arraylist\r\n int index = separate_index.get(separate_index.size()-1);\r\n for (int j = index+1; j < poly_points.size(); j++) {\r\n points.add(poly_points.get(j));\r\n }\r\n System.out.println(points);\r\n //using points to repaint polygon\r\n int line_num = points.size()/2 - 1 ;\r\n for (int j = 0; j < line_num; j++) {\r\n int begin_point = j*2;\r\n x1 = points.get(begin_point);\r\n y1 = points.get(begin_point + 1);\r\n x2 = points.get(begin_point + 2);\r\n y2 = points.get(begin_point + 3);\r\n\r\n g.setColor(poly_colors.get(poly_colors.size()-1));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n }\r\n }\r\n\r\n if(last_shape.equals(\"handdraw\")){\r\n //freehand drawing repaint\r\n if(handdraw_colors.size()>0){\r\n //repaint all handdraw\r\n ArrayList<Integer> separate_index = get_separate_index(handdraw_points);\r\n ArrayList<Integer> points = new ArrayList<Integer>();\r\n for (int i = 0; i < handdraw_colors.size(); i++) {\r\n //each handdraw\r\n //take all points in one draw\r\n if(i == 0){\r\n //first draw\r\n int begin_index = 0;\r\n int end_index = separate_index.get(i);\r\n //get all points in first drawing\r\n for (int j = begin_index; j < end_index; j++) {\r\n points.add(handdraw_points.get(j));\r\n }\r\n //repaint first drawing\r\n System.out.println(points);\r\n\r\n int line_num = points.size()/2 - 1;\r\n for (int j = 0; j < line_num; j++) {\r\n //draw each short line\r\n begin_index = j*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n points.clear();\r\n\r\n }else{\r\n //draw other handdraws\r\n for (int j = 0; j < handdraw_colors.size()-1; j++) {\r\n //draw each drawing\r\n\r\n int begin_index = separate_index.get(j)+1;\r\n int end_index = separate_index.get(j+1);\r\n //get all points in one drawing\r\n for (int k = begin_index; k < end_index; k++) {\r\n points.add(handdraw_points.get(k));\r\n }\r\n System.out.println(points);\r\n\r\n //repaint drawing\r\n int line_num = points.size()/2 - 1;\r\n for (int k = 0; k < line_num; k++) {\r\n //each line\r\n begin_index = k*2;\r\n\r\n x1 = points.get(begin_index);\r\n y1 = points.get(begin_index + 1);\r\n x2 = points.get(begin_index + 2);\r\n y2 = points.get(begin_index + 3);\r\n\r\n g.setColor(handdraw_colors.get(i));\r\n g.drawLine(x1, y1, x2, y2);\r\n\r\n canvas.repaint();\r\n\r\n }\r\n\r\n points.clear();\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }*/\r\n\r\n\r\n }", "private void drawComponents () {\n // Xoa het nhung gi duoc ve truoc do\n mMap.clear();\n // Ve danh sach vi tri cac thanh vien\n drawMembersLocation();\n // Ve danh sach cac marker\n drawMarkers();\n // Ve danh sach cac tuyen duong\n drawRoutes();\n }", "public void update(List<Shape> currentShapes) {\n\t\tthis.listOfShapes = currentShapes;\n\t\trepaint();\n\n\t}", "public void paintComponent(Graphics g) {\n\t int horz, vert; \r\n\t// The 'outer loop' \r\n\tfor ( vert = 0; vert < size; vert++ ) { \t\t\t\r\n\t // The 'inner loop' \t\t\t\r\n\t for( horz = 0; horz < size; horz++ ) {\r\n\t // Create a new Color object \t\t\t\t\r\n\t int icol = 256*horz*12 + (vert*12);\r\n\t Color c = new Color(icol); \r\n\t // Set the drawing colour.\r\n\t g.setColor(c);\r\n\t // Create a circle \r\n\t g.fillOval(horz*size,vert*size,size-1,size-1);\r\n\t } \t\t\r\n\t } \r\n }", "protected synchronized void paintComponent(Graphics g) {\n super.paintComponent(g);\n for (Botao b : botoes) {\n b.draw(g);\n }\n \n for (Elevadores a : andares) {\n a.draw(g);\n }\n \n e.draw(g);\n g.drawRect(X.getVal()-30, Y.getVal()-530, 90, 580);\n g.drawString(e.toString(), 5, getHeight() - 10);\t\t// Print elevador status\n }", "@Override\n protected void paintComponent(Graphics g)\n {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n Rectangle r = getBounds();\n g2.setColor(theme.getPitColor());\n // Paint different shapes depending on the shape type\n switch(theme.getPitShape())\n {\n case CIRCLE:\n g2.fillOval(0, 0, r.width, r.height);\n break;\n case SQUARE:\n g2.fillRect(0, 0, r.width, r.height);\n break;\n }\n\n paintStoneCount(g2);\n }", "public void paint(Graphics g) {\n\t\tSystem.out.println(\"Painting shapes\");\n\t\t\n\t\t// draw a red square\n\t\tPoint corner = new Point(10,10);\n\t\tint size = 100;\n\t\tg.setColor(Color.RED);\n\t\tg.drawRect(corner.x, corner.y, size, size);\n\t\t\n\t\t// draw a blue circle\n\t\tint radius = 50;\n\t\tPoint center = new Point(200, 10+radius);\n\t\tg.setColor(Color.BLUE);\n\t\t// syntax: drawOver(xTopLeft, yTopLeft, width, height)\n\t\tg.drawOval(center.x-radius, center.y-radius, 2*radius, 2*radius);\n\n\t}", "private void drawnPoints(Canvas canvas) {\n int height;\n String itemText;\n Paint temporaryPaint;\n Rect textBound;\n\n // TODO refactor left and right to avoid duplicated code\n if (left.size() > 0) {\n height = HEIGHT / left.size();\n for (int i = 0; i < left.size(); i++) {\n Object item = left.get(i);\n\n Bitmap itemBitmap = adapter.getNotNullBitmap(item);\n itemText = adapter.getLabel(item);\n temporaryPaint = adapter.getLabelPaint(item);\n textBound = new Rect();\n float textMaxWidth = getMaximumWidth(itemText, temporaryPaint);\n temporaryPaint.getTextBounds(itemText, 0, itemText.length() - 1, textBound);\n\n if (item != null) {\n PointF location = getLocation(item);\n\n int positionY = (height / 2) + (height * i);\n\n\n float itemHeight = itemBitmap.getHeight() / (scaleToBackground ? ratio : 1);\n float itemWidth = itemBitmap.getWidth() / (scaleToBackground ? ratio : 1);\n\n labelClickable.put(drawText(canvas, temporaryPaint, 0, positionY, itemText, true), item);\n\n PointF anchor = adapter.getAnchor(item);\n canvas.drawLine(\n textMaxWidth + TEXT_MARGIN,\n positionY - (textBound.height() / 2),\n location.x + (itemWidth * anchor.x) - (itemWidth / 2),\n location.y + (itemHeight * anchor.y) - (itemHeight / 2),\n adapter.getLinePaint(item));\n }\n }\n }\n if (right.size() > 0) {\n height = HEIGHT / right.size();\n for (int i = 0; i < right.size(); i++) {\n Object item = right.get(i);\n\n itemText = adapter.getLabel(item);\n textBound = new Rect();\n\n temporaryPaint = adapter.getLabelPaint(item);\n\n temporaryPaint.getTextBounds(itemText, 0, itemText.length() - 1, textBound);\n\n\n if (item != null) {\n PointF location = getLocation(item);\n\n int positionY = (height / 2) + (height * i);\n\n\n Rect rect = drawText(canvas, temporaryPaint, WIDTH, positionY, itemText, false);\n labelClickable.put(rect, item);\n drawLine(canvas, textBound, item, location, positionY, rect.width());\n }\n }\n }\n }", "public void paintComponent(Graphics g) {\n\n super.paintComponent(g); //Paint background\n Graphics2D g2 = (Graphics2D) g; //Cast Graphics object to Graphics2D\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n Dimension d = getSize();\n\n //Defines the corners of the plot area in pixels\n int iMin = (int) (PA_XO * d.width);\n int iMax = (int) ((PA_XO + PA_XS) * d.width);\n int jMin = (int) (PA_YO * d.height);\n int jMax = (int) ((PA_YO + PA_YS) * d.height);\n\n //Define the scaling between the plot area in x-y and the plot area in pixels\n double xScale = (double) (iMax - iMin) / (xMax - xMin);\n double yScale = (double) (jMax - jMin) / (yMax - yMin);\n\n //Draws x-axis and y-axis\n g2.setColor(Color.black); //Sets color of axes to black\n g2.draw(new Rectangle2D.Double(PA_XO * d.width, PA_YO * d.height,\n PA_XS * d.width, PA_YS * d.height));\n\n double ix;\n double iy;\n for (int i = 0; i < nPts; i++) {\n //Draws the points (JPanel y starts at TOP of the panel)\n ix = iMin + ((x[i] - xMin) * xScale);\n iy = jMax - ((y[i] - yMin) * yScale);\n g2.setColor(Color.red); //Sets color of data points to red\n g2.fill(new Ellipse2D.Double(ix - dotSize / 2., iy - dotSize / 2.,\n dotSize, dotSize));\n\n }\n\n // Adds labels of xMin, xMax, yMin, yMax to drawing and positions them on the screen\n // String.valueOf(xMin) turns the number xMin into a String that you can draw.\n g2.setColor(Color.black);\n g2.drawString(\"Input Size (n)\", (float) (PA_XO * d.width + 150),\n (float) ((PA_YO + PA_YS) * d.height + 20));\n g2.drawString(\"Time (ms)\", (float) (PA_XO * d.width - 70),\n (float) ((PA_YO + PA_YS) * d.height - 200));\n g2.drawString(String.valueOf(xMin), (float) (PA_XO * d.width - 10.),\n (float) ((PA_YO + PA_YS) * d.height + 15.));\n g2.drawString(String.valueOf(xMax),\n (float) ((PA_XO + PA_XS) * d.width - 20.),\n (float) ((PA_YO + PA_YS) * d.height + 15.));\n g2.drawString(String.valueOf(yMin), (float) (PA_XO * d.width - 50.),\n (float) ((PA_YO + PA_YS) * d.height + 5.));\n g2.drawString(String.valueOf(yMax), (float) (PA_XO * d.width - 50.),\n (float) (PA_YO * d.height + 5.));\n }", "protected void paintComponent(Graphics g) {\r\n\t\t super.paintComponent(g);\r\n\r\n\t\t g.setColor(new Color(cespedcorto[0],cespedcorto[1],cespedcorto[2]));\r\n\t\t g.fillRect(0, 0, TAMCELDA * CELDASCOL,TAMCELDA * CELDASFILA);\r\n\t\t g.setColor(Color.BLACK);\r\n\t\t for (int i = 0; i < CELDASFILA; i ++) { \r\n\t\t for (int j = 0; j < CELDASCOL; j ++) {\r\n\t\t g.drawRect( j * TAMCELDA, i * TAMCELDA, TAMCELDA, TAMCELDA);// Dibujamos las casillas vacías\r\n\t\t if(getvectorjardin()[i][j].getcelda() == 1){// si es cesped largo\r\n\t\t \tg.setColor(new Color(cespedlargo[0],cespedlargo[1],cespedlargo[2]));\r\n\t\t \tg.fillRect( j * TAMCELDA + 1, i * TAMCELDA + 1, TAMCELDA - 1, TAMCELDA - 1);\r\n\t\t \tg.setColor(Color.BLACK);\r\n\t\t }\r\n\t\t if(getvectorjardin()[i][j].getcelda() == 2){//si es obstaculo\r\n\t\t \tg.setColor(new Color(obstaculo[0],obstaculo[1],obstaculo[2]));\r\n\t\t \tg.fillRect( j * TAMCELDA + 1, i * TAMCELDA + 1, TAMCELDA - 1, TAMCELDA - 1);\r\n\t\t \tg.setColor(Color.BLACK);\r\n\t\t }\r\n\t\t if((getvectorjardin()[i][j].getcelda() == 3)&& (numeromaximodecortacesped == 0)){// si es el unico cortacesped\r\n\t\t \tnumeromaximodecortacesped = 1;\r\n\t\t \tg.setColor(new Color(cortacesped[0],cortacesped[1],cortacesped[2]));\r\n\t\t \tg.fillRect( j * TAMCELDA + 1, i * TAMCELDA + 1, TAMCELDA - 1, TAMCELDA - 1);\r\n\t\t \tg.setColor(Color.BLACK);\r\n\t\t \tposinicialI = i;\r\n\t\t \tposinicialJ = j;\r\n\t\t }\r\n\t\t if(getvectorjardin()[i][j].getcelda() == 0){\r\n\t\t \tg.setColor(new Color(cespedcorto[0],cespedcorto[1],cespedcorto[2]));\r\n\t\t \tg.fillRect( j * TAMCELDA + 1, i * TAMCELDA + 1, TAMCELDA - 1, TAMCELDA - 1);\r\n\t\t \tg.setColor(Color.BLACK);\r\n\t\t }\r\n\t\t if(numeromaximodecortacesped == 1){\r\n\t\t \tg.setColor(new Color(cortacesped[0],cortacesped[1],cortacesped[2]));\r\n\t\t \tg.fillRect( posinicialJ * TAMCELDA + 1, posinicialI * TAMCELDA + 1, TAMCELDA - 1, TAMCELDA - 1);\r\n\t\t \tg.setColor(Color.BLACK);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t }", "public void paint (Graphics g)\n {\n g.setColor(color);\n for(Point pellet : pellets)\n {\n g.fillOval(5+MunchGame.SEGMENT_SIZE*pellet.x+2,\n 15+MunchGame.SEGMENT_SIZE*pellet.y+2, \n MunchGame.SEGMENT_SIZE-4,\n MunchGame.SEGMENT_SIZE-4);\n }\n }", "public List<Shape> getDrawShapes();", "@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(this.color);\r\n\t\tg.fillOval((int)x, (int)y, side, side);\r\n\t\tg.setColor(this.color2);\r\n\t\tg.fillOval((int)x+5, (int)y+2, side/2, side/2);\r\n\t}", "public void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g); //instance of superclass' paintComponent method\n\t\tGraphics2D g2 = (Graphics2D) g; //parsing to Graphics2D\n\t\tfor (GameToken token : myTokens) { //going through the ArrayList and draws tokens\n\t\t\ttoken.draw(g2);\n\t\t}\n\t\tuserToken.draw(g2); //draws user token\n\t}", "@Override\r\n public void paint(Graphics y) {\n super.paintComponent(y);\r\n\r\n for (int i = 0; i < 20; i++) {\r\n\r\n switch (opcion) {\r\n case 1:\r\n int xRect = 10 + (i *10);\r\n int yRect = 10 + (i * 10);\r\n int anchoRect = 50 + (i * 10);\r\n int altoRect = 50 + (i * 10);\r\n\r\n y.drawRect(xRect, yRect, anchoRect, altoRect);\r\n break;\r\n\r\n case 2:\r\n int xOval = 10 + (i * 10);\r\n int yOval = 10 + (i * 10);\r\n int anchoOval = 50 + (i * 10);\r\n int altoOval = 50 + (i * 10);\r\n\r\n y.drawOval(xOval, yOval, anchoOval, altoOval);\r\n break;\r\n\r\n case 3:\r\n int x3d = 10 + (i * 10);\r\n int y3d = 10 + (i * 10);\r\n int ancho3d = 50 + (i * 10);\r\n int alto3d = 50 + (i * 10);\r\n y.draw3DRect(x3d, y3d, ancho3d, alto3d, true);\r\n break;\r\n \r\n case 4:\r\n int rectax = 100 + (i * 10);\r\n int rectay = 100 + (i * 10);\r\n int anchorecta = 500 + (i * 10);\r\n int altorecta = 500 + (i * 10);\r\n y.drawLine(rectax, rectay, anchorecta, altorecta);\r\n \r\n \r\n case 5:\r\n int rectaxx = 100 + (i * 10);\r\n int rectayy = 100 + (i * 10);\r\n int anchonueva = 500 + (i * 10);\r\n int altonueva = 500 + (i * 10);\r\n y.draw3DRect(rectaxx, rectayy, anchonueva, altonueva, true);\r\n }\r\n\r\n }\r\n\r\n }", "public void paintComponent(final Graphics the_graphics)\n {\n super.paintComponent(the_graphics);\n final Graphics2D g2d = (Graphics2D) the_graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setFont(my_font);\n g2d.setColor(Color.WHITE);\n g2d.setStroke(new BasicStroke(STROKE_SIZE));\n g2d.drawString(PIECE_STRING, (getWidth() / (STROKE_SIZE * STROKE_SIZE)) - \n (PIECE_STRING.length() / STROKE_SIZE), (int) (getHeight() * LABEL_STARTING_Y));\n \n for (int y = Piece.NUMBER_OF_BLOCKS - 1; 0 <= y; y--) \n {\n for (int x = 0; x < Piece.NUMBER_OF_BLOCKS; x++) \n {\n for (int i = 0; i < Piece.NUMBER_OF_BLOCKS; i++) \n {\n final Point block = my_board.nextPiece().blocks()[i];\n if (block.x() == x && block.y() == y) \n {\n g2d.setColor(my_board.nextPiece().color());\n g2d.fill(new Rectangle2D.Double((x * getWidth() * BLOCK_SIZE_CONSTANT) + \n (int) (getWidth() * BLOCK_STARTING_X), (getHeight() / 2) + \n (float) (getWidth() * BLOCK_SIZE_CONSTANT) - (y * getWidth() * \n BLOCK_SIZE_CONSTANT), getWidth() * BLOCK_SIZE_CONSTANT, getWidth() * \n BLOCK_SIZE_CONSTANT));\n g2d.setColor(Color.DARK_GRAY);\n g2d.draw(new Rectangle2D.Double((x * getWidth() * BLOCK_SIZE_CONSTANT) + \n (int) (getWidth() * BLOCK_STARTING_X), (getHeight() / 2) + \n (float) (getWidth() * BLOCK_SIZE_CONSTANT) - (y * getWidth() * \n BLOCK_SIZE_CONSTANT), getWidth() * BLOCK_SIZE_CONSTANT, getWidth() * \n BLOCK_SIZE_CONSTANT));\n } \n }\n }\n }\n }", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tGraphics2D g2d= (Graphics2D)g;//Cast the Graphics received in the paint method to Graphics2D\r\n\t\tg2d.setColor(Color.RED);//Set the color to red\r\n\t\tg2d.setStroke(new BasicStroke(5));//Set the width of the line to 5px \r\n\t\t//g2d.drawLine(0, 0, 500, 500);//Draw a line starting at point (0,0) and ending at point (500,500)\r\n\t\t//g2d.drawRect(100, 100, 300, 300);//Draw a rectangle with upper left corner at (100,100) and with width and height of 300px\r\n\t\tg2d.setColor(Color.GREEN);//Set the color to green\r\n\t\t//g2d.fillRect(100, 100, 300, 300);//Fill the rectangle\r\n\t\t\r\n\t\t//If we will draw the line first and then the rectangle, the rectangle will be on top of the line and hide part of it\r\n\t\t//g2d.drawOval(100, 100, 300, 300);//Draw circle\r\n\t\t//g2d.fillOval(100, 100, 300, 300);//Fill the circle\r\n\t\t\r\n\t\t//g2d.drawArc(100,100,200,200,0,180);//Draw half circle\r\n\t\r\n\t\t//g2d.drawArc(100,100,200,200,180,180);//Flip it\r\n\t\t//g2d.drawArc(100,100,200,200,0,270);//Draw 3/4 of a circle\r\n\t\t\r\n\t\t//int[] xPoints= {150,250,350};\r\n\t\t//int[] yPoints= {300,150,300};\r\n\t\t//g2d.drawPolygon(xPoints,yPoints,3);//Draw rectangle using polygon, specify x points and y points of the corners and number of corners,\r\n\t\t\t\t\t\t\t\t\t\t //we can specify more than 3 corners and create different shapes.\r\n\t\t\t\t\r\n\t\t//g2d.fillPolygon(xPoints,yPoints,3);//Fill the rectangle using polygon\r\n\t\tg2d.setColor(Color.BLACK);//Set the color to black\r\n\t\tg2d.setFont(new Font(\"Ink Free\", Font.BOLD,40));\r\n\t\tg2d.drawString(\"Hello world\", 100, 100);\r\n\t}", "public void draw(Graphics g) {\n\t\tGraphics2D graphic2d = (Graphics2D) g;\n\t\t//loop through and create circles\n\t\tint bool = 0;\n\t\t//makes 36 squares\n\t\tfor (int x=1; x < 37; x++) {\t\t\t\n\t\t\tRectangle2D shape = new Rectangle2D.Double(super.getX(), super.getY(), super.width/2, super.height/2);\n\t\t\tfinal AffineTransform saved = graphic2d.getTransform();\n\t\t\t//converts 10 to radians and rotates shape by 10 degrees\n\t\t\tfinal AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(x*10), super.getX(), super.getY());\n\t\t\tgraphic2d.transform(rotate);\n\t\t\t//paints a different square colour every 9 squares\n\t\t\tif (x%9 == 0) {\n\t\t\t\tif (bool == 0) {\n\t\t\t\t\tgraphic2d.setPaint(super.borderColor);\n\t\t\t\t\tbool = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t\t\tbool = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tgraphic2d.fill(shape);\n\t\t\tgraphic2d.setTransform(saved);\n\t\t}\n\t\tdrawHandles(g);\n\t\t\n\t}", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n Graphics2D g2 = (Graphics2D)g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n if (icon != null) icon.paintIcon(this, g, 0, 0);\n\n // draw a grey grid over the bitmap background\n for(int y = 0; y < bitmapHeight; y++) {\n g2.setColor(Color.GRAY);\n // g2.draw(new Line2D.Float(0, (y+1)*pixelScale, canvasWidth, (y+1)*pixelScale));\n }\n for(int x = 0; x < bitmapWidth; x++) {\n g2.setColor(Color.GRAY);\n // g2.draw(new Line2D.Float((x+1)*pixelScale, 0, (x+1)*pixelScale, canvasHeight));\n }\n\n // draw the polygon\n g2.setColor(Color.BLUE);\n Point2D.Float prev = null;\n float r = 4;\n for (Point2D.Float gp : points) {\n Point2D.Float p = screenPosition(gp);\n g2.fill(new Ellipse2D.Float(p.x - r, p.y - r, 2*r, 2*r));\n if (prev != null) {\n g2.draw(new Line2D.Float(prev, p));\n }\n prev = p;\n }\n }" ]
[ "0.7438214", "0.73436755", "0.7279843", "0.6938113", "0.68106", "0.678307", "0.6749887", "0.67121893", "0.65817", "0.6577731", "0.6500705", "0.64970285", "0.6469362", "0.645237", "0.6381087", "0.6373789", "0.63726735", "0.63507545", "0.6337242", "0.63038164", "0.6293736", "0.6287439", "0.628483", "0.6267768", "0.62592566", "0.622678", "0.6214305", "0.62013024", "0.61769235", "0.6176911", "0.6145315", "0.6121677", "0.61171556", "0.6114407", "0.611435", "0.60925126", "0.60860497", "0.6082899", "0.6078208", "0.607252", "0.6069472", "0.6061379", "0.60569435", "0.6053708", "0.605358", "0.60500413", "0.6046486", "0.60285056", "0.60152113", "0.6008943", "0.6008929", "0.6004445", "0.6000845", "0.59988034", "0.59897274", "0.59606135", "0.59604555", "0.5956272", "0.5954784", "0.5943342", "0.59426475", "0.59347916", "0.5928267", "0.5924045", "0.59226596", "0.5916343", "0.591434", "0.59139585", "0.59127253", "0.5911075", "0.590573", "0.590573", "0.590573", "0.5902225", "0.59019476", "0.58979034", "0.5896231", "0.58752", "0.5873703", "0.5868006", "0.5864374", "0.5862593", "0.58521557", "0.5851904", "0.5845275", "0.5842576", "0.5839032", "0.58344173", "0.5826535", "0.5825008", "0.58207846", "0.58203983", "0.5818829", "0.581517", "0.5788142", "0.5774054", "0.57727134", "0.57666487", "0.5763003", "0.5762842" ]
0.79302394
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { PanalNew = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); jSeparator2 = new javax.swing.JSeparator(); jLabel3 = new javax.swing.JLabel(); lblPath = new javax.swing.JLabel(); btnSend = new javax.swing.JButton(); txtCC = new javax.swing.JTextField(); txtTo = new javax.swing.JTextField(); btnDiscard = new javax.swing.JButton(); lblAttached = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); lblImg = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtSubject = new org.jdesktop.swingx.JXTextField(); jScrollPane1 = new javax.swing.JScrollPane(); txtareaMessage1 = new org.jdesktop.swingx.JXTextArea(); setLayout(null); PanalNew.setBackground(new java.awt.Color(204, 204, 204)); PanalNew.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel1.setBackground(new java.awt.Color(176, 168, 168)); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("To"); jLabel1.setOpaque(true); PanalNew.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(39, 28, 41, 28)); jLabel2.setBackground(new java.awt.Color(181, 179, 179)); jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel2.setText("Cc"); jLabel2.setOpaque(true); PanalNew.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(39, 82, 40, 28)); jSeparator1.setBackground(new java.awt.Color(59, 57, 57)); PanalNew.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(39, 64, 836, 7)); jSeparator2.setBackground(new java.awt.Color(59, 57, 57)); PanalNew.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(39, 118, 836, -1)); jLabel3.setBackground(new java.awt.Color(176, 168, 168)); jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel3.setText("Bcc"); jLabel3.setOpaque(true); PanalNew.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(834, 23, 41, -1)); lblPath.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lblPathMouseClicked(evt); } }); PanalNew.add(lblPath, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 480, 300, 40)); btnSend.setBackground(new java.awt.Color(0, 51, 51)); btnSend.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N btnSend.setText("Send"); btnSend.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSendActionPerformed(evt); } }); PanalNew.add(btnSend, new org.netbeans.lib.awtextra.AbsoluteConstraints(39, 554, 107, 34)); txtCC.setOpaque(false); PanalNew.add(txtCC, new org.netbeans.lib.awtextra.AbsoluteConstraints(83, 84, 792, 28)); txtTo.setOpaque(false); PanalNew.add(txtTo, new org.netbeans.lib.awtextra.AbsoluteConstraints(84, 30, 740, 28)); btnDiscard.setBackground(new java.awt.Color(0, 51, 51)); btnDiscard.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N btnDiscard.setText("Discard"); PanalNew.add(btnDiscard, new org.netbeans.lib.awtextra.AbsoluteConstraints(156, 554, 106, 34)); lblAttached.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/Iconia_48(0)_128aa.png"))); // NOI18N lblAttached.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lblAttachedMouseClicked(evt); } }); PanalNew.add(lblAttached, new org.netbeans.lib.awtextra.AbsoluteConstraints(272, 554, -1, 35)); PanalNew.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(367, 554, 60, 39)); lblImg.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/linecons_e01b(0)_64dd.png"))); // NOI18N PanalNew.add(lblImg, new org.netbeans.lib.awtextra.AbsoluteConstraints(319, 554, -1, 31)); jLabel4.setText("jLabel4"); PanalNew.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 130, -1, 30)); txtSubject.setBackground(new java.awt.Color(204, 204, 204)); txtSubject.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N txtSubject.setPrompt("Add Subject"); PanalNew.add(txtSubject, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 790, 30)); txtareaMessage1.setColumns(20); txtareaMessage1.setRows(5); jScrollPane1.setViewportView(txtareaMessage1); PanalNew.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 170, 840, 370)); add(PanalNew); PanalNew.setBounds(0, 0, 900, 670); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }", "public frmAddIncidencias() {\n initComponents();\n }" ]
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458604", "0.6942849", "0.6935743", "0.6930747", "0.69286084", "0.6924837", "0.69246644", "0.6911876", "0.69103247", "0.68922365", "0.6891582", "0.68904996", "0.68901706", "0.6888661", "0.68829393", "0.6881672", "0.6880505", "0.68782157", "0.6875765", "0.6874406", "0.68711114", "0.6859388", "0.6856025", "0.68551815", "0.6855079", "0.6855076", "0.68530315", "0.68524104", "0.68524104", "0.6843717", "0.68364704", "0.6836458", "0.6828335", "0.68279964", "0.6826276", "0.68240345", "0.6823631", "0.68171996", "0.6816324", "0.68097955", "0.68088883", "0.68078303", "0.6807776", "0.680721", "0.680251", "0.6795605", "0.6794452", "0.67921954", "0.67907083", "0.678904", "0.6787817", "0.6787755", "0.67814714", "0.67663145", "0.6765024", "0.67649895", "0.6756559", "0.6754775", "0.6751848", "0.67506975", "0.67435455", "0.6738591", "0.6737042", "0.6735227", "0.6732907", "0.6726301", "0.6726003", "0.67197675", "0.67156976", "0.6714806", "0.6713657", "0.6708582", "0.67078584", "0.6705488", "0.6700733", "0.6699659", "0.6698679", "0.66974026", "0.6693979", "0.66902804", "0.6690275" ]
0.0
-1
End of variables declaration//GENEND:variables
private void viewFileChooser() { try { JFileChooser chooser = new JFileChooser(); chooser.showOpenDialog(null); f = chooser.getSelectedFile(); // this.attachmentName = f.getName(); // this.attachmentPath = f.getAbsolutePath();//dan mokdda karanna ona// meke file ek // txtAttachment.setText(attachmentPath); System.out.println(f.getName()); System.out.println(f.getAbsolutePath()); // Icon icon = new ImageIcon(getClass().getResource("/image/file.png")); lblPath.setText(f.getName()); // lblPath.setIcon(icon); lblPath.setVisible(true); } catch (NullPointerException e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "private void m50366E() {\n }", "public void mo21782G() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "public void mo21780E() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo3370l() {\n }", "public void mo23813b() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "public void func_70295_k_() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}" ]
[ "0.6359889", "0.6279971", "0.6187572", "0.60946643", "0.6091784", "0.60693496", "0.6051178", "0.6051116", "0.60025823", "0.59882265", "0.5969506", "0.5967291", "0.5966852", "0.5964883", "0.5961025", "0.5940938", "0.5907547", "0.5895275", "0.5889831", "0.5881641", "0.5879958", "0.5853272", "0.5850332", "0.5849194", "0.5840939", "0.5838261", "0.583457", "0.58202296", "0.5807366", "0.5801392", "0.57930285", "0.5784862", "0.5782759", "0.57826674", "0.5781335", "0.5773689", "0.57610327", "0.5757231", "0.574421", "0.574151", "0.5732511", "0.5732511", "0.5732511", "0.5732511", "0.5732511", "0.5732511", "0.5732511", "0.5732181", "0.5729069", "0.5724425", "0.57219625", "0.5717557", "0.5703145", "0.56976354", "0.56965256", "0.5688939", "0.5687167", "0.56857926", "0.5673167", "0.5659136", "0.56503564", "0.56437236", "0.56430036", "0.5641896", "0.5641177", "0.5639261", "0.5628726", "0.5628141", "0.5626105", "0.56208736", "0.56174546", "0.5611748", "0.56101596", "0.5610095", "0.5603684", "0.5602963", "0.5601059", "0.559905", "0.55905503", "0.5584596", "0.55758244", "0.55699193", "0.55689955", "0.5557126", "0.5551803", "0.55504376", "0.5548215", "0.55469537", "0.5545882", "0.5544817", "0.55442566", "0.5542889", "0.5541067", "0.554066", "0.55380684", "0.55350995", "0.5526738", "0.5521562", "0.5515748", "0.5501556", "0.5500748" ]
0.0
-1
TODO Autogenerated method stub
@Override public void remove() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density 120" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density 160" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density 240" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density 320" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density 480" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density 640" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Void doInBackground(Void... params) { suResult = Shell.SU.run(new String[] { "wm density reset" }); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub "dumpsys display | grep \"mOverrideDisplayInfo\""
@Override protected Void doInBackground(Void... params) { ValResult = Shell.SU.run(new String[]{ "wm density | grep \"Override\"" }); if(ValResult.isEmpty()){ System.out.println("Entered in isEmpty"); ValResult = Shell.SU.run(new String[]{ "wm density | grep \"Physical\"" }); } System.out.println("validate density executed ==> " + ValResult.get(0)); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDisplay() {\n\t\tDisplayOpt.add(\"-sd\");\n\t\tDisplayOpt.add(\"/sd\");\n\t\tDisplayOpt.add(\"showdetails\");\n\n\t}", "public void initializeDisplayOverrideConfiguration() {\n ActivityDisplay activityDisplay = this.mAcitvityDisplay;\n if (activityDisplay != null) {\n activityDisplay.onInitializeOverrideConfiguration(getRequestedOverrideConfiguration());\n }\n }", "public static DisplayInfo parseDisplayInfo(String dumpsysDisplayOutput, int displayId) {\n Pattern regex = Pattern.compile(\n \"^ mOverrideDisplayInfo=DisplayInfo\\\\{\\\".*?, displayId \" + displayId + \".*?(, FLAG_.*)?, real ([0-9]+) x ([0-9]+).*?, \"\n + \"rotation ([0-9]+).*?, layerStack ([0-9]+)\",\n Pattern.MULTILINE);\n Matcher m = regex.matcher(dumpsysDisplayOutput);\n if (!m.find()) {\n return null;\n }\n int flags = parseDisplayFlags(m.group(1));\n int width = Integer.parseInt(m.group(2));\n int height = Integer.parseInt(m.group(3));\n int rotation = Integer.parseInt(m.group(4));\n int layerStack = Integer.parseInt(m.group(5));\n\n return new DisplayInfo(displayId, new Size(width, height), rotation, layerStack, flags);\n }", "@Override\n\tpublic void setDisplayOptions(int options, int mask) {\n\t\t\n\t}", "public void setDisplayLocReplace() {\r\n displayLoc = REPLACE;\r\n }", "@Override\n\tpublic int getDisplayOptions() {\n\t\treturn 0;\n\t}", "public void initializeDisplayBaseInfo() {\n DisplayInfo newDisplayInfo;\n DisplayManagerInternal displayManagerInternal = this.mWmService.mDisplayManagerInternal;\n if (!(displayManagerInternal == null || (newDisplayInfo = displayManagerInternal.getDisplayInfo(this.mDisplayId)) == null)) {\n this.mDisplayInfo.copyFrom(newDisplayInfo);\n }\n updateBaseDisplayMetrics(this.mDisplayInfo.logicalWidth, this.mDisplayInfo.logicalHeight, this.mDisplayInfo.logicalDensityDpi);\n this.mInitialDisplayWidth = this.mDisplayInfo.logicalWidth;\n this.mInitialDisplayHeight = this.mDisplayInfo.logicalHeight;\n this.mInitialDisplayDensity = this.mDisplayInfo.logicalDensityDpi;\n this.mInitialDisplayCutout = this.mDisplayInfo.displayCutout;\n }", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "com.ctrip.ferriswheel.proto.v1.Display getDisplay();", "public String getCurrentScreenDisplay();", "@Override // com.android.server.wm.ConfigurationContainer\n public String getName() {\n return \"Display \" + this.mDisplayId + \" name=\\\"\" + this.mDisplayInfo.name + \"\\\"\";\n }", "@Override\n\tpublic void setDisplayOptions(int options) {\n\t\t\n\t}", "public void setDisplay(String display);", "public static String getDisplay() {\n return android.os.Build.DISPLAY;\n }", "public DisplayInfo getDisplayInfo() {\n return this.mDisplayInfo;\n }", "protected abstract String getDefaultDisplayTypeStringRepresentation();", "public void updateDisplayInfo() {\n updateBaseDisplayMetricsIfNeeded();\n this.mDisplay.getDisplayInfo(this.mDisplayInfo);\n this.mDisplay.getMetrics(this.mDisplayMetrics);\n onDisplayChanged(this);\n }", "public String getDefaultAppearance() {\n/* 530 */ return getCOSObject().getString(COSName.DA);\n/* */ }", "@AutoEscape\n\tpublic String getDisplay();", "public static List<DisplayProperty> getDisplayProperties() {return DISPLAY_PROPERTIES;}", "public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}", "public String getDisplayFlag() {\n\t\treturn displayFlag;\n\t}", "public String getDisplayFlag() {\n return displayFlag;\n }", "@Override\r\n\tpublic String getShowDescribing() {\n\t\treturn \"所属乡镇:\"+ getSsxz().getName();\r\n\t}", "public abstract Display getDisplay();", "public String getDisplayId() {\n return displayId;\n }", "@java.lang.Override\n public POGOProtos.Rpc.QuestDisplayProtoOrBuilder getDisplayOrBuilder() {\n return getDisplay();\n }", "@Implementation(minSdk = O_MR1)\n public Point getStableDisplaySize() throws RemoteException {\n DisplayInfo defaultDisplayInfo = mDm.getDisplayInfo(Display.DEFAULT_DISPLAY);\n return new Point(defaultDisplayInfo.getNaturalWidth(), defaultDisplayInfo.getNaturalHeight());\n }", "private VirtualDisplay createVirtualDisplay() {\n // 建立virtualDisplay\n return mediaProjection.createVirtualDisplay(\"MainActivity\", screenWidth, screenHeight, screenDensity,\n DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, mediaRecorder.getSurface(), null, null);\n }", "public boolean isUntrustedVirtualDisplay() {\n return this.mDisplay.getType() == 5 && this.mDisplay.getOwnerUid() != 1000;\n }", "private void createDisplayEditOverlay() {\n\t}", "public String getDisplayType();", "private void ausgebenSystem() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Rechner: \" + InetAddress.getLocalHost().getHostName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println();\n\t\tString txt = System.getProperties().toString();\n\t\twhile (txt.indexOf(\",\") > 0) {\n\t\t\tSystem.out.println(txt.substring(0, txt.indexOf(\",\") + 1));\n\t\t\ttxt = txt.substring(txt.indexOf(\",\") + 2);\n\n\t\t}\n\t\tSystem.out.println(txt);\n\t}", "protected void setDisplayProperty( int display, int mask,\n \t\t\tStringBuffer styleBuffer )\n \t{\n \t\tint flag = display & mask;\n \t\tif ( ( display & HTMLEmitterUtil.DISPLAY_NONE ) > 0 )\n \t\t{\n \t\t\tstyleBuffer.append( \"display: none;\" ); //$NON-NLS-1$\n \t\t}\n \t\telse if ( flag > 0 )\n \t\t{\n \t\t\tif ( ( flag & HTMLEmitterUtil.DISPLAY_BLOCK ) > 0 )\n \t\t\t{\n \t\t\t\tstyleBuffer.append( \"display: block;\" ); //$NON-NLS-1$\n \t\t\t}\n \t\t\telse if ( ( flag & HTMLEmitterUtil.DISPLAY_INLINE_BLOCK ) > 0 )\n \t\t\t{\n \t\t\t\tstyleBuffer.append( \"display: inline-block;\" ); //$NON-NLS-1$\n \t\t\t}\n \t\t\telse if ( ( flag & HTMLEmitterUtil.DISPLAY_INLINE ) > 0 )\n \t\t\t{\n \t\t\t\tstyleBuffer.append( \"display: inline;\" ); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t}", "public void setDisplay(Display dspl) {\n this.display = dspl;\n }", "@Override // com.android.server.wm.WindowContainer\n public void onDisplayChanged(DisplayContent dc) {\n super.onDisplayChanged(dc);\n updateSystemGestureExclusionLimit();\n }", "@DISPID(1611006032) //= 0x60060050. The runtime will prefer the VTID if present\n @VTID(108)\n void displayGeometryAfterCurrent(\n boolean oDisplayed);", "public void configureDisplayPolicy() {\n int longSize;\n int shortSize;\n if (this.mBaseDisplayDensity == 0) {\n Slog.e(TAG, \"density is 0\");\n return;\n }\n int width = this.mBaseDisplayWidth;\n int height = this.mBaseDisplayHeight;\n if (width > height) {\n shortSize = height;\n longSize = width;\n } else {\n shortSize = width;\n longSize = height;\n }\n int i = this.mBaseDisplayDensity;\n this.mDisplayPolicy.updateConfigurationAndScreenSizeDependentBehaviors();\n this.mDisplayRotation.configure(width, height, (shortSize * 160) / i, (longSize * 160) / i);\n DisplayFrames displayFrames = this.mDisplayFrames;\n DisplayInfo displayInfo = this.mDisplayInfo;\n displayFrames.onDisplayInfoUpdated(displayInfo, calculateDisplayCutoutForRotation(displayInfo.rotation));\n this.mIgnoreRotationForApps = isNonDecorDisplayCloseToSquare(0, width, height);\n }", "@java.lang.Override\n public boolean hasDisplay() {\n return display_ != null;\n }", "public String toString() {\n\n return super.toString() + String.format(\n \"%nScreen: %s%nMonitorType: %s\",\n getScreen(), getMonitorType()\n );\n }", "public String displaySystemProperties()\n\t{\n\t\tString displaySystemInfo = \"\";\n\t\tString yourOS = \"\";\n\t\t\n\t\t//Positive\n\t\t//For TestingOnly - By Default, the below line is commented\n\t\t//if (java.lang.System.getProperty(\"os.name\").equalsIgnoreCase(\"Mac OS X\")){\t\n\t\n\t\tif (java.lang.System.getProperty(\"os.name\").equalsIgnoreCase(\"Windows 10\")){\n\t\t\t\n\t\t\tyourOS = \"Positive - Be Awesome. Run on Windows\";\n\t\t\t\n\t\t}\n\t\t\n\t\t//Negative\n\t\t//For Testing - By Default, the below line is commented\n\t\t//else if (java.lang.System.getProperty(\"os.name\").equalsIgnoreCase(\"Mac OS X\")){\n\t\t\n\t\telse if (java.lang.System.getProperty(\"os.name\").equalsIgnoreCase(\"Linux\")){\n\t\t\tyourOS = \"Negative - Linux\";\n\t\t}\n\t\t\n\t\t//Neutral\n\t\telse {\n\t\t\tyourOS = \"Neutral - You've got a decent OS here\";\n\t\t}\n\t\t\n\t\tdisplaySystemInfo = \"Operating System Architecture\\t=>\\t\" + java.lang.System.getProperty(\"os.arch\") +\n\t\t\t\t \"\\nOperating System Name\\t\\t=>\\t\" + java.lang.System.getProperty(\"os.name\") +\n\t\t\t\t \"\\nOperating System Version\\t=>\\t\" + java.lang.System.getProperty(\"os.version\") +\n\t\t\t\t \"\\nUser Account Name\\t\\t=>\\t\" + java.lang.System.getProperty(\"user.name\") +\n\t\t\t\t \"\\nJava Version\\t\\t\\t=>\\t\" + java.lang.System.getProperty(\"java.version\") +\n\t\t\t\t \"\\n\" + yourOS;\n\t\t\n\t\t\n\t\treturn displaySystemInfo;\n\t\t\n\t}", "public abstract String getDisplayLocation();", "String getDisplay_description();", "public String getDisplayVariant(ULocale displayLocale) {\n/* 664 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@java.lang.Override\n public POGOProtos.Rpc.QuestDisplayProto getDisplay() {\n return display_ == null ? POGOProtos.Rpc.QuestDisplayProto.getDefaultInstance() : display_;\n }", "public void setDisplayId(String displayId) {\n this.displayId = displayId;\n }", "public void Display() {\n\t\tSystem.out.println(Integer.toHexString(PID) + \"\\t\" + Integer.toString(CreationTime) + \"\\t\"+ Integer.toHexString(CommandCounter) + \"\\t\" + ProcessStatus.toString() \n\t\t+ \"\\t\" + Integer.toString(MemoryVolume) + \"\\t\" + Integer.toHexString(Priority) + \"\\t\" + ((MemorySegments != null)? MemorySegments.toString() : \"null\"));\n\t}", "private void overridePreferenceAccessibility_i() {\n overrideMenuForLocation_i();\n overrideMenuFor4K_i();\n overrideMenuForCDSMode_i();\n overrideMenuForSeeMore_i();\n }", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "public void setDisplayLocNew() {\r\n displayLoc = NEW;\r\n }", "public DisplayType getDisplayType();", "@Override\n public com.gensym.util.Symbol getDisplayUpdatePriority() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.DISPLAY_UPDATE_PRIORITY_);\n return (com.gensym.util.Symbol)retnValue;\n }", "public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}", "@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}", "public ShowSystemPropertiesResponse showSystemProperties(ShowSystemPropertiesRequest request) throws GPUdbException {\n ShowSystemPropertiesResponse actualResponse_ = new ShowSystemPropertiesResponse();\n submitRequest(\"/show/system/properties\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\n\tpublic String display() {\n\t\treturn null;\n\t}", "private void m81846c(boolean z) {\n if (C6969H.m41409d(\"G6891C715A8\").equals(this.f58080l) || C6969H.m41409d(\"G6B82D611\").equals(this.f58080l)) {\n this.f58069a.setSystemBarDisplayHomeAsUp();\n } else if (C6969H.m41409d(\"G6A8FDA09BA\").equals(this.f58080l)) {\n this.f58069a.setSystemBarDisplayHomeAsClose();\n } else if (z) {\n this.f58069a.setSystemBarDisplayHomeAsClose();\n }\n }", "public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }", "public void setDisplaySettings_(DisplaySettings displaySettings_) {\n this.displaySettings_ = displaySettings_;\n }", "public int getPresentationDisplayId() {\n return mBundle.getInt(KEY_PRESENTATION_DISPLAY_ID, -1);\n }", "public Map<java.awt.RenderingHints.Key, ?> getImplementationHints() {\n return null;\n }", "@Override\r\npublic void setOnScreen(boolean os) {\n}", "@Override\n\tprotected void UpdateUI() {\n\t\tFineModulationDisplay(FineModulation);\n\t\tAutoGreaseDisplay(AutoGrease);\n\t\tQuickcouplerDisplay(Quickcoupler);\n\t\tRideControlDisplay(RideControl);\n\t\tBeaconLampDisplay(BeaconLamp);\n\t\tMirrorHeatDisplay(MirrorHeat);\n//\t\tFNKeyDisplay(ParentActivity.LockEntertainment);\n\t}", "@Override\n public String toString() {\n return displayString;\n }", "public void showSystemUI() {\r\n this.mTargetContainer.getDecorView().setSystemUiVisibility(0);\r\n }", "@Override\n public java.lang.String getLabelToDisplay() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.LABEL_TO_DISPLAY_);\n return (java.lang.String)retnValue;\n }", "private void showDisplay() {\n this.display.displayScreen();\n }", "public String getDefaultAppearanceString()\r\n {\r\n return ((COSString)option.getObject( 1 ) ).getString();\r\n }", "protected void _updateMsbDisplay()\n\t{\n\t\tignoreActions = true ;\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\tif( obs.isMSB() )\n\t\t{\n\t\t\t_w.msbPanel.setVisible( true ) ;\n\t\t\t_w.optional.setVisible( false ) ;\n\t\t\t_w.unSuspendCB.setVisible( obs.isSuspended() ) ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_w.msbPanel.setVisible( false ) ;\n\n\t\t\tif( OtCfg.telescopeUtil.supports( TelescopeUtil.FEATURE_FLAG_AS_STANDARD ) )\n\t\t\t\t_w.optional.setVisible( true ) ;\n\t\t}\n\t\tignoreActions = false ;\n\t}", "default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize when the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "public boolean supportsSystemDecorations() {\n return (this.mWmService.mDisplayWindowSettings.shouldShowSystemDecorsLocked(this) || (this.mDisplay.getFlags() & 64) != 0 || (this.mWmService.mForceDesktopModeOnExternalDisplays && !isUntrustedVirtualDisplay())) && this.mDisplayId != this.mWmService.mVr2dDisplayId;\n }", "public boolean getNoDisplay() {\n\t\treturn false;\n\t}", "String getDisplay_name();", "public int getDisplayFormat() {\r\n return insertMode ? 0 : intValue(CONTACTS_DISPLAY_FORMAT);\r\n }", "public static double getRawDisplayHeight() {\n\t\treturn javafx.stage.Screen.getPrimary().getBounds().getHeight();\n\t}", "private void drawDisplayDialog(Graphics2D g2, String displayDialog)\n\t{\n\t\tFont fontyFont = new Font(\"IMPACT\", Font.BOLD, HUGE_FONT);\n\t\tg2.setFont(fontyFont);\n\t\tg2.setColor(Color.WHITE);\n\t\tg2.drawString(displayDialog, DISPLAY_DIALOG_Y_DISPLACEMENT, frameHeight / 2);\n\t\tg2.drawString(\" Esc to\", frameWidth / 2 + DISPLAY_DIALOG_X_DISPLACEMENT,\n\t\t\t\tframeHeight / 2 - DISPLAY_DIALOG_Y_DISPLACEMENT);\n\t\tg2.drawString(\"Restart\", frameWidth / 2 + DISPLAY_DIALOG_X_DISPLACEMENT,\n\t\t\t\tframeHeight / 2 + DISPLAY_DIALOG_Y_DISPLACEMENT);\n\t}", "JTextArea getDisplay();", "private void hideSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView. setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n // Set the content to appear under the system bars so that the\n // content doesn't resize *'hen the system bars hide and show.\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n // Hide the nav bar and status bar\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "protected Display getDisplay() {\n return display;\n }", "public int getDisplayMode() {\n return this.displayMode;\n }", "public void setDisplayFlag(String displayFlag) {\n this.displayFlag = displayFlag == null ? null : displayFlag.trim();\n }", "public boolean okToDisplay() {\n return this.mDisplayId == 0 ? !this.mWmService.mDisplayFrozen && this.mWmService.mDisplayEnabled && this.mWmService.mPolicy.isScreenOn() : this.mDisplayInfo.state == 2;\n }", "public POGOProtos.Rpc.QuestDisplayProtoOrBuilder getDisplayOrBuilder() {\n if (displayBuilder_ != null) {\n return displayBuilder_.getMessageOrBuilder();\n } else {\n return display_ == null ?\n POGOProtos.Rpc.QuestDisplayProto.getDefaultInstance() : display_;\n }\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "public interface DisplayPropertiesListener {\r\n public void displayAnnViewChanged(DisplayProperties dp, \r\n Sequence seq,\r\n boolean show);\r\n public void displaySeqSelectChanged(DisplayProperties dp, \r\n Sequence seq,\r\n boolean select);\r\n public void displayColorSchemeChanged(DisplayProperties dp, \r\n ColorScheme old);\r\n public void displayFontChanged(DisplayProperties dp);\r\n public void displayRenderGapsChanged(DisplayProperties dp);\r\n public void displayGroupEditingChanged(DisplayProperties dp);\r\n public void displayOverwriteChanged(DisplayProperties dp);\r\n public void displayHighlightsChanged(DisplayProperties dp,\r\n Sequence seq);\r\n public void displayHighlightsChanged(DisplayProperties dp,\r\n Sequence[] seqs);\r\n}", "public String getDisplayText() {\n\t\treturn displayText;\n\t}", "String getDisplayText();", "protected void displayInfo(KeyEvent e){\n\t }", "@Override\n\tpublic Component getDisplayComponent() {\n\t\treturn null;\n\t}", "public String getDisplayScript(ULocale displayLocale) {\n/* 585 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.6786755", "0.6355628", "0.6123913", "0.60570914", "0.6005029", "0.5829238", "0.5807508", "0.5781998", "0.57361263", "0.56982684", "0.5657772", "0.564684", "0.5631486", "0.5606189", "0.5604669", "0.5579634", "0.55370855", "0.5461333", "0.5363831", "0.5363576", "0.5321672", "0.53152376", "0.5312334", "0.5295634", "0.5280019", "0.52593976", "0.5257385", "0.5250083", "0.5236569", "0.5223028", "0.5209761", "0.51901764", "0.51757413", "0.5138835", "0.51044285", "0.5097562", "0.50821054", "0.5071423", "0.5044285", "0.5036029", "0.50305796", "0.5021267", "0.5017722", "0.5012662", "0.5009625", "0.49981004", "0.49953198", "0.4991371", "0.49894732", "0.4988301", "0.4986389", "0.49806672", "0.49657565", "0.49570748", "0.49570748", "0.49563253", "0.4942582", "0.49261856", "0.4920477", "0.4918504", "0.4909569", "0.49045092", "0.4893272", "0.488126", "0.48728368", "0.48455176", "0.4840949", "0.48376924", "0.48366082", "0.48341298", "0.48257062", "0.4810937", "0.48082194", "0.48082194", "0.48082194", "0.48082194", "0.48082194", "0.48082194", "0.4803751", "0.48002586", "0.47949883", "0.4794098", "0.47885627", "0.47848696", "0.47822922", "0.47747052", "0.47714478", "0.47699234", "0.47553015", "0.47495908", "0.47461474", "0.4743129", "0.4741344", "0.4741344", "0.4741344", "0.47332007", "0.4731029", "0.4727944", "0.47250113", "0.47211358", "0.47199726" ]
0.0
-1
Inflate the layout for this fragment
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { LinearLayout ll = (LinearLayout) inflater.inflate(R.layout.density, container, false); Bundle bundle = this.getArguments(); filename = bundle.getString("filename"); final CharSequence[] items = { "Reset original", "ldpi 120dpi", "mdpi 160dpi", "hdpi 240dpi", "xhdpi 320dpi", "xxhdpi 480dpi", "xxxhdpi 640dpi" }; Button db = (Button) ll.findViewById(R.id.button_density); db.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { AlertDialog.Builder builder = new AlertDialog.Builder(getContext() ,R.style.MyAlertDialogStyle); builder.setTitle("Select Density"); builder.setItems(items, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int item) { // Do something with the selection switch (item) { case 0 : new original().execute(); break; case 1 : idd = 1; new ldpi().execute(); break; case 2 : idd = 2; new mdpi().execute(); break; case 3 : idd = 3; new hdpi().execute(); break; case 4 : idd = 4; new xhdpi().execute(); break; case 5 : idd = 5; new xxhdpi().execute(); break; case 6: idd = 6; new xxxhdpi().execute(); break; } } }); AlertDialog alert = builder.create(); alert.show(); } }); return ll; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Do something with the selection
@Override public void onClick(DialogInterface dialog, int item) { switch (item) { case 0 : new original().execute(); break; case 1 : idd = 1; new ldpi().execute(); break; case 2 : idd = 2; new mdpi().execute(); break; case 3 : idd = 3; new hdpi().execute(); break; case 4 : idd = 4; new xhdpi().execute(); break; case 5 : idd = 5; new xxhdpi().execute(); break; case 6: idd = 6; new xxxhdpi().execute(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateSelection() {\n\t\t\n\t}", "protected void onSelectionPerformed(boolean success) {\n }", "protected abstract void doSelection() throws IOException;", "Object getSelection();", "public void select() {}", "public void run() {\n\t\t\t\t\tif (currentViewer != null) {\r\n\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(\r\n\t\t\t\t\t\t\t\ttheSelection.toArray()), true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void onSelectionChanged();", "protected void selectionChanged(ITextSelection selection) {}", "public void select();", "@Override\n\tpublic void select() {\n\t}", "public void select ();", "public void updateSelection()\n {\n \trectForSelection.setRect(rettangoloX,rettangoloY,larghezza,altezza);\n \trectSelTopLeft.setRect(rettangoloX-3,rettangoloY-3,6,6);\n \trectSelBottomLeft.setRect(rettangoloX-3,rettangoloY+altezza-3,6,6);\n \trectSelTopRight.setRect(rettangoloX+larghezza-3,rettangoloY-3,6,6);\n \trectSelBottomRight.setRect(rettangoloX+larghezza-3,rettangoloY+altezza-3,6,6);\n }", "public void selectionChanged(Selection selecton) {\r\n }", "public void select(Object obj, boolean selectionFlag);", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }", "public void selected(String action);", "Select(){\n }", "@Override\n protected void processSelect() {\n \n }", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "private static void DoSelection()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tString selection = \"o_orderdate > Str (\\\"1996-12-19\\\") && o_custkey < Int (100)\";\n\n\t\tHashMap<String, String> exprs = new HashMap<String, String>();\n\t\texprs.put(\"att1\", \"o_orderkey\");\n\t\texprs.put(\"att2\", \"(o_totalprice * Float (1.5)) + Int (1)\");\n\t\texprs.put(\"att3\", \"o_orderdate + Str (\\\" this is my string\\\")\");\n\t\texprs.put(\"att4\", \"o_custkey\");\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Selection(inAtts, outAtts, selection, exprs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private void doSelect(MouseEvent e) {\n if (e != null && e.getClickCount() > 1)\n doOK();\n }", "public boolean forceSelection();", "public void setSelection(Pair selection);", "public void drawSelection(Graphics g, int screenX, int screenY, Case caseSelection, int selectionX, int selectionY) {\n\t\t\n\t}", "public void selectAt(MouseEvent e) {\r\n \t\tactivateSelect();\r\n \t\tmouseListner.mousePressed(e);\r\n \t}", "protected abstract void select();", "public Object getSelection() {\n return selection;\n }", "public abstract boolean hasSelection();", "void selectionModeChanged(SelectionMode mode);", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "protected abstract void paintSelection(Graphics2D g);", "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "void selectpos()\n {\n \n }", "void select();", "public void beginSelecting() {\r\n selecting = true;\r\n minX = 0;\r\n maxX = 0;\r\n }", "@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "private void doSelect() {\n this.setVisible(false);\n }", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "public void select(int start, int end) {\n\t\tcmd = new SelectCommand(start, end, editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void actionPerformed(ActionEvent ae) {\n rb_selection = ae.getActionCommand(); \t \n }", "private void selection(int level, int item) {\n switch (level) {\n case 0:\n if (domaineSelectionne != null && item < tvComptes.getItems().size())\n tvComptes.getSelectionModel().select(item);\n break;\n case 1:\n if (donneesActives != null && item < lvDomaines.getItems().size())\n lvDomaines.getSelectionModel().select(item);\n break;\n }\n }", "public void selectionChanged(Action item);", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}", "protected void onSelect() {\n\n }", "public void selectionChanged(IAction action, ISelection selection) {\n\t\t\r\n\t}", "@Override\n\tpublic void selectionChanged(IAction arg0, ISelection arg1) {\n\n\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public void selectionChanged(IAction action, ISelection selection) {\n\t}", "private void nextSelect() {\n\t\tif (selectionIndex + 1 > selections.size() - 1) {\n\t\t\tselectionIndex = 0;\n\t\t} else {\n\t\t\tselectionIndex++;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "public void selectA() { }", "public void selectionChanged(IAction action, ISelection selection) {\n }", "public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }", "protected void ACTION_B_SELECT(ActionEvent arg0) {\n\t\tchoseInterface();\r\n\t}", "public void selectAllAccessibleSelection() {\n // To be fully implemented in a future release\n }", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "public String getMySelection() {\n return mySelection;\n }", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "public void selectSlot() {\n\t\t\r\n\t}", "public interface Selectable {\n\n /**\n * Initializes the current selection to begin with the character at (x, y).\n * @return true if action resulted in change of selection.\n */\n boolean selectAt(double x, double y);\n\n /**\n * Extends the current selection to the character at (x, y)..\n * @return true if action resulted in change of selection.\n */\n boolean selectTo(double x, double y);\n\n /**\n * Selects the entire contents of the GraphicsNode at (x, y).\n * @return true if action resulted in change of selection.\n */\n boolean selectAll(double x, double y);\n\n /**\n * Get the current text selection.\n * @return an object containing the selected content.\n */\n Object getSelection();\n\n /**\n * Return a shape in user coords which encloses the current selection.\n */\n Shape getHighlightShape();\n}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n state = \"select\";\r\n instruction.setText(\"Drag the rectangle to cover the whole shape which you want to select\");\r\n\r\n }", "public void select() {\n \t\t\tString sinput = \"\";\r\n \t\t\tOption selected = null;\r\n \t\t\tErrorLog.debug(name + \" selected.\");\r\n \t\t\t\r\n \t\t\twhile (true) {\r\n \t\t\t\tSystem.out.println(toString()); //Print menu.\r\n \t\t\t\tsinput = read(); //Get user selection.\r\n \t\t\t\tif (!sinput.equalsIgnoreCase(\"exit\")) {\r\n \t\t\t\t\tselected = options.get(sinput); //Find corresponding option.\r\n \r\n \t\t\t\t\tif (selected != null) //Sinput corresponds to an extant option.\r\n \t\t\t\t\t\tselected.select(); //Select the selected.\r\n \t\t\t\t\telse\r\n \t\t\t\t\t\tprint(sinput + \" is not a valid option\");\r\n \t\t\t\t} else\r\n \t\t\t\t\t{print(\"Returning to previous menu.\"); break;}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tErrorLog.debug (\"Quitting \" + name + \". Sinput:\"+sinput);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}", "public abstract void select(boolean select);", "void updateSelected(Coord c) {\n this.selected = c;\n }", "@Override\n public void selectGolem(int id) {\n }", "default public void clickSelect() {\n\t\tremoteControlAction(RemoteControlKeyword.SELECT);\n\t}", "@Override\r\n\tpublic void setSelection(List<EObject> selection) {\r\n\t\tthis.selection = selection;\r\n\t\tthis.refactoringProcessor = \r\n\t\t\t\tnew InternalRefactoringProcessor(this.selection);\r\n\t}", "public abstract int getSelectionStart();", "public void setSelectionChanged(boolean selectionChanged);", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tselect();\n\t\te.consume();\n\t}", "private void processSelection(int selection) {\n\t\tswitch (selection) {\n\t\tcase 1:\n\t\t\tcoach.displayAvailableSeats();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tbookSeats();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trefundSeats();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tcoach.salesReport();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tSystem.out.println(\"Bye\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Invalid selection\");\n\t\t}\n\n\t}", "void afterMasterSelectionChange();", "public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\n }", "@Override\n public Component select(int x, int y) { \n\t m_selected = super.select(x, y);\n\t return m_selected;\n }", "public void run() {\n List<Node> selNodes = new ArrayList<Node>(selectedPaths.size());\n\n for (Object path : selectedPaths) {\n selNodes.add(findPath(root, (String[]) path));\n }\n\n // set the selection\n Node[] newSelection = selNodes.toArray(new Node[selNodes.size()]);\n\n if (exploredCtx != null) {\n setExploredContext(findPath(root, exploredCtx), newSelection);\n } else {\n setSelectedNodes0(newSelection);\n }\n }", "protected void selectionChanged(IStructuredSelection selection) {\n \t}", "public void setSelection (int index) {\r\n\tcheckWidget();\r\n\tsetSelection (index, false);\r\n}", "@Override\r\n\tpublic boolean forceSelection() {\r\n\t\treturn false;\r\n\t}", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(9)\n void onselectionchange(\n @MarshalAs(NativeType.VARIANT) java.lang.Object p);", "public void selectionChanged(DrawingView view) {\n setupAttributes();\n }", "public void run(IStructuredSelection selection) {\r\n\t\t\r\n\t\tif (!canOperateOn(selection))\r\n\t\t\treturn;\r\n\t\trun(selection.toArray());\r\n\t}", "public void toSelectingAction() {\n }", "public abstract int getSelectionEnd();", "public void searchSelectionAction(QuantSearchSelection selection) {\n this.quantSearchSelection = selection;\n SelectionChanged(\"quant_searching\");\n\n }", "@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}", "public void select(int action) {\n\t\tselected = true;\n\t\tthis.action = action;\n\t}", "void setSelection(int from, int to);", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public ISelection getSelection(IClientContext context) throws Exception;", "public String selection() {\n return inputter.selection();\n }", "public void processSelection(IndexView selection, OutputStream out) {\n\tsetCode(evaluateSecurityCode(selection));\n\n\t//PrintStream pout = new PrintStream(out);\n\t//pout.println(getCode());\n }", "public void selectionChanged(String[][] selection);", "boolean applicable(Selection selection);", "static public void select(DrawingPad drawingPad, SelectPanel selectPanel, Rectangle2D.Float fBounds, boolean oneItem) {\n // Current layer?\n boolean bCurrentLayer = selectPanel.isCurrentLayer();\n \n // Get the selected design.\n if (selectPanel.isSelectAllItems())\n drawingPad.getDesign().selectGraphs(RECTANLE_MAX, false, bCurrentLayer);\n else if (selectPanel.isSelectGraph())\n drawingPad.getDesign().selectGraphs(fBounds, oneItem, bCurrentLayer);\n else if (selectPanel.isSelectLine())\n drawingPad.getDesign().selectLines(fBounds, oneItem, bCurrentLayer);\n else if (selectPanel.isSelectPoint())\n drawingPad.getDesign().selectVertices(fBounds, oneItem, bCurrentLayer);\n else\n throw new IllegalArgumentException(\"Unknown select type.\");\n }", "@Listen(\"onClick = #selectTree\")\n\tpublic void select(){\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\ttree.setSelectedItem(items[items.length - 1]);\n\t}", "private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}", "@VisibleForTesting\n protected void applyProvisionalSelection() {\n mSelection.addAll(mProvisionalSelection);\n mProvisionalSelection.clear();\n }", "protected final void onSelect(CommandSender sender) {\n setInteracting(sender);\n onSelect();\n }" ]
[ "0.78891337", "0.76337844", "0.74886596", "0.7359611", "0.73324174", "0.7306083", "0.7226723", "0.71949494", "0.7177132", "0.713858", "0.7118329", "0.71047646", "0.7096097", "0.70601565", "0.7040722", "0.70346296", "0.6985065", "0.69523776", "0.6948769", "0.69383043", "0.69360805", "0.693546", "0.6927653", "0.6855778", "0.682856", "0.6806209", "0.6802932", "0.6766189", "0.674491", "0.6738379", "0.67219037", "0.6704009", "0.66796196", "0.6678528", "0.6670897", "0.6670451", "0.66699827", "0.6666313", "0.66613865", "0.66461915", "0.6642261", "0.6607429", "0.6591737", "0.65831155", "0.6577475", "0.6572631", "0.6572631", "0.6555229", "0.6543137", "0.6535331", "0.6534056", "0.65240026", "0.6511499", "0.65081143", "0.6504717", "0.65012443", "0.6496593", "0.6483673", "0.6482426", "0.6478688", "0.6464037", "0.6455368", "0.64543706", "0.64433163", "0.64368814", "0.6429051", "0.64225286", "0.64149845", "0.64009976", "0.63976014", "0.6395766", "0.63819903", "0.63761896", "0.63756937", "0.63752466", "0.63727933", "0.6371673", "0.63693166", "0.636503", "0.63597125", "0.6341351", "0.6339835", "0.6339231", "0.63371706", "0.6324144", "0.63169956", "0.6305776", "0.6304486", "0.6288403", "0.6287359", "0.6286353", "0.62796366", "0.62770385", "0.62755436", "0.6274838", "0.6270006", "0.6269947", "0.6267844", "0.6259904", "0.62544644", "0.6253729" ]
0.0
-1
/ 41: / 42:
protected void doPost(HttpServletRequest request, HttpServletResponse response) /* 43: */throws ServletException, IOException /* 44: */{ /* 45:48 */doGet(request, response); /* 46: */}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }", "@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P/-a/\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(\"P/\", token0.getTokenText());\n assertEquals(12, token0.getTokenType());\n }", "void mo34677H(String str, int i, int i2);", "public void method_4270() {}", "dkj mo4367a(dkk dkk);", "public void mo4683c() {\n mo4679a(3);\n }", "public void mo9233aH() {\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }", "void mo9075h(String str, int i, int i2);", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "public abstract String division();", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stem(\"4m9%dXDPbb\");\n assertEquals(\"4m9%dxdpb\", string0);\n }", "public int method_2436() {\r\n return 16;\r\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public void mo3749d() {\n }", "public void mo32111rr(int i) {\n }", "private void kk12() {\n\n\t}", "public void mo6944a() {\n }", "@Test(timeout = 4000)\n public void test165() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.colon();\n assertEquals(18, token0.getTokenType());\n }", "public void mo23438b() {\n }", "public abstract void mo4367a(int i, String str);", "int mo5882g(String str);", "public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }", "public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}", "void mo11024a(int i, int i2, String str);", "public void mo21782G() {\n }", "public void mo21789N() {\n }", "public void mo21793R() {\n }", "public void mo5332a(int i) {\n }", "public void mo3350a(int i) {\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }", "public void mo21877s() {\n }", "public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }", "public void mo44231a(int i) {\n }", "public void mo44053a() {\n }", "public int mo36g() {\n return 4;\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"rV.:Q-\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(11, token0.getTokenType());\n assertEquals(\"r\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dots();\n assertEquals(\"V.\", token1.getTokenText());\n assertEquals(14, token1.getTokenType());\n }", "public int mo36g() {\n return 2;\n }", "public void prlns(int a) {\n\t\tSystem.out.println(a);\r\n\t}", "public abstract void mo70708a(String str, int i, int i2);", "private static int nextSemiColon(final String cmd)\n {\n int start = 0;\n int ret = -1;\n while (true)\n {\n ret = cmd.indexOf(';', start);\n if (ret == -1) break;\n int begin = cmd.lastIndexOf(\"BEGIN\", ret);\n int end = cmd.lastIndexOf(\"END;\", ret);\n if (begin == -1) break;\n if (end > begin) break;\n start = ret + 1;\n }\n return ret;\n }", "public void mo2740a() {\n }", "public static void main(String[] args) {\npat(16);\r\nint a[]= {2,0,2};\r\nSystem.out.println(fillthewater(a));\r\npascalstri(6);\r\n\t}", "public void mo21794S() {\n }", "public static void main002(String[] args) {\n\n\t\tint number\t= 20;\n\t\tSystem.out.println(\"Start = \" + number);\n\t\t\n\t\tnumber += 10;\t// number\t= number + 10;\n\t\tnumber -= 10;\t// number\t= number - 10\n\t\tnumber *= 10;\t// number\t= number * 10\n\t\tnumber /= 10;\t// number\t= number / 10\n\t\tnumber %= 10;\t// number\t= number % 10\n\t\tSystem.out.println(\"End = \" + number);\n\t}", "void mo4872a(int i, String str);", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"i_,r,6bt/,0{\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"i_\", token0.getTokenText());\n }", "public void mo21786K() {\n }", "public static void main(String[] arg) {\n int /* The delimited comment can extend over a part of the line */ x = 42;\n System.out.printf(\"%d\",x);\n }", "public void a(eq ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public int k() {\r\n/* 55 */ return 9;\r\n/* */ }", "void mo32046rn(int i);", "void mo34684de(int i, int i2);", "@Override\n\tpublic void challenge10() {\n\n\t}", "public void mo21779D() {\n }", "public void mo21788M() {\n }", "private final void step4() { switch (b[k])\n\t {\n\t case 'e': if (ends(\"icate\")) { r(\"ic\"); break; }\n\t if (ends(\"ative\")) { r(\"\"); break; }\n\t if (ends(\"alize\")) { r(\"al\"); break; }\n\t break;\n\t case 'i': if (ends(\"iciti\")) { r(\"ic\"); break; }\n\t break;\n\t case 'l': if (ends(\"ical\")) { r(\"ic\"); break; }\n\t if (ends(\"ful\")) { r(\"\"); break; }\n\t break;\n\t case 's': if (ends(\"ness\")) { r(\"\"); break; }\n\t break;\n\t } }", "void mo54446k(int i);", "protected abstract int getFirstFrag();", "@Test\n\tpublic void test4()\n\t{\n\t\tassertEquals(\n\t\t\t\"$webpage: {<spacex>}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: spacex\")\n\t\t);\n\t}", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "public void mo23980a(int i, String str) {\n }", "public static void main(String[] args)\r\n {\r\n System.out.print(\"39 + 3\");\r\n System.out.println(\"39 / 3\");\r\n System.out.println(\"This is not good.\" + \" I beg of you to stop.\");\r\n System.out.println(\"This is not good, again.\" + \"Why are we here?\")\r\n /* These are apparently comments that will not have the most incredible\r\n And these are some more of them so that we can practice\r\n */\r\n \r\n }", "public void mo21791P() {\n }", "String divideAtWhite()[]{ return null; }", "public abstract String mo24851a(String str);", "public void mo21783H() {\n }", "public void mo33394d() {\n mo33393c();\n mo33395e();\n }", "public int a(String paramString)\r\n/* 454: */ {\r\n/* 455:451 */ if (paramString == null) {\r\n/* 456:452 */ return 0;\r\n/* 457: */ }\r\n/* 458:454 */ int i1 = 0;\r\n/* 459:455 */ int i2 = 0;\r\n/* 460:457 */ for (int i3 = 0; i3 < paramString.length(); i3++)\r\n/* 461: */ {\r\n/* 462:458 */ char c1 = paramString.charAt(i3);\r\n/* 463: */ \r\n/* 464:460 */ int i4 = a(c1);\r\n/* 465:461 */ if ((i4 < 0) && (i3 < paramString.length() - 1))\r\n/* 466: */ {\r\n/* 467:462 */ c1 = paramString.charAt(++i3);\r\n/* 468:464 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 469:465 */ i2 = 1;\r\n/* 470:466 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 471:467 */ i2 = 0;\r\n/* 472: */ }\r\n/* 473:469 */ i4 = 0;\r\n/* 474: */ }\r\n/* 475:471 */ i1 += i4;\r\n/* 476:472 */ if ((i2 != 0) && (i4 > 0)) {\r\n/* 477:473 */ i1++;\r\n/* 478: */ }\r\n/* 479: */ }\r\n/* 480:477 */ return i1;\r\n/* 481: */ }", "void mo54436d(int i);", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"2zN4KMC-?7MaZH(AJF*\");\n Token token0 = xPathLexer0.identifier();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"2zN4KMC-\", token0.getTokenText());\n }", "public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}", "public void mo3946e() {\n m25427g();\n }", "Rule IndentChar() {\n return FirstOf(Letter(), Digit(), \".\", \"_\");\n }", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "public abstract void partiallyParsedUtterance(long ms);", "public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }", "@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}", "static int getNumPatterns() { return 64; }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public void mo21787L() {\n }", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.literal();\n assertNotNull(token1);\n \n xPathLexer0.setPreviousToken(token1);\n assertEquals(\"]J\", token1.getTokenText());\n assertEquals(27, token1.getTokenType());\n \n Token token2 = xPathLexer0.slashes();\n assertEquals(11, token2.getTokenType());\n assertEquals(\"/\", token2.getTokenText());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(\"L!uFQ7%)BrL\", token3.getTokenText());\n }", "String d(String paramString, int paramInt)\r\n/* 613: */ {\r\n/* 614:609 */ int i1 = e(paramString, paramInt);\r\n/* 615:610 */ if (paramString.length() <= i1) {\r\n/* 616:611 */ return paramString;\r\n/* 617: */ }\r\n/* 618:614 */ String str1 = paramString.substring(0, i1);\r\n/* 619: */ \r\n/* 620:616 */ int i2 = paramString.charAt(i1);\r\n/* 621:617 */ int i3 = (i2 == 32) || (i2 == 10) ? 1 : 0;\r\n/* 622:618 */ String str2 = b(str1) + paramString.substring(i1 + (i3 != 0 ? 1 : 0));\r\n/* 623: */ \r\n/* 624:620 */ return str1 + \"\\n\" + d(str2, paramInt);\r\n/* 625: */ }", "public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }", "void mo56161e();", "public void testYourFourthPartition() {\n\tSystem.out.print(\"\\nTesting Fourth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com?\", false); // empty \n executeTestPrintResult(\"http://abc.com?key=value\", true); \n executeTestPrintResult(\"http://abc.com?a=1&b=2&c=3\", true); // arbitrary length, letters/digits \n executeTestPrintResult(\"http://abc.com?a=1+b=2\", false); // +\n executeTestPrintResult(\"http://abc.com?a\", false); // no value\n executeTestPrintResult(\"http://abc.com?=a\", false); // no key\n executeTestPrintResult(\"?key=value\", false); // no domain \n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }", "int mo54441g(int i);", "public void mo21800a() {\n }", "@Test\n\t/** Level 4 Thunderlord AD vs Thunderlord Arm Pen\n\t * Thunderlord + AD:\n\t * \t\t726.12 AD Dealt\n\t * \t\t47.59 AP Dealt\n\t * \t\tArmor Reduction: 88%\n\t * Thunderlord + Full Arm Pen Runes\n\t * \t\t632.02 AD Dealt\n\t * \t\t43 AP Dealt\n\t * \t\tArmor Reduction: 88%\n\t * \t\tFlat Armor Pen: 19.2\n\t */\n\tpublic void testThunderlordArmPen() {\n\t}" ]
[ "0.5339947", "0.5209091", "0.5204026", "0.5160566", "0.51377463", "0.5010999", "0.49361923", "0.4932329", "0.48965937", "0.48875034", "0.4877629", "0.4873787", "0.4871664", "0.48647928", "0.484392", "0.4843051", "0.48384988", "0.48063517", "0.48024985", "0.4800099", "0.47989163", "0.47984454", "0.47972703", "0.4788455", "0.47842515", "0.477808", "0.47704333", "0.47489983", "0.47460452", "0.47450137", "0.47421336", "0.47333923", "0.47323558", "0.47285533", "0.47271827", "0.47259462", "0.4718983", "0.47139162", "0.47123867", "0.4707253", "0.46898565", "0.46847662", "0.46723807", "0.4668579", "0.4661566", "0.46588975", "0.46525216", "0.46466985", "0.46433762", "0.46328065", "0.46291006", "0.46289185", "0.46273276", "0.4626897", "0.46265674", "0.46258637", "0.46228096", "0.46140513", "0.46101433", "0.4610115", "0.46076933", "0.4600395", "0.45954454", "0.45934957", "0.45924482", "0.45891407", "0.45840326", "0.45782614", "0.4573006", "0.45705122", "0.4568622", "0.4563962", "0.45630744", "0.45628747", "0.45585865", "0.4557891", "0.45560494", "0.4555237", "0.45521364", "0.45519915", "0.45452228", "0.4545191", "0.45429757", "0.45411918", "0.4540878", "0.4540311", "0.4535046", "0.45348194", "0.45341146", "0.45337895", "0.45329437", "0.45329124", "0.45322528", "0.45316327", "0.45282558", "0.45261025", "0.4525686", "0.45233017", "0.45190737", "0.45185083", "0.45145106" ]
0.0
-1
Created by bin.shen on 10/12/2016.
public interface MongoBase<T> { public void insert(T object,String collectionName); public T findOne(Map<String,Object> params, String collectionName); public List<T> findAll(Map<String,Object> params, String collectionName); public void update(Map<String,Object> params,String collectionName); public void createCollection(String collectionName); public void remove(Map<String,Object> params,String collectionName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public void mo38117a() {\n }", "private void kk12() {\n\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void init() {\n\n }", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo6081a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "private void m50366E() {\n }", "private Rekenhulp()\n\t{\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected void mo6255a() {\n }", "@Override\n protected void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {}", "private void poetries() {\n\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "static void feladat9() {\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "static void feladat7() {\n\t}", "@Override\n public void initialize() { \n }", "protected boolean func_70814_o() { return true; }", "private MetallicityUtils() {\n\t\t\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void startUp() {\n }", "Consumable() {\n\t}", "public void mo55254a() {\n }" ]
[ "0.61946714", "0.60687906", "0.5823329", "0.57765925", "0.57765925", "0.5761328", "0.5747794", "0.5747794", "0.5742018", "0.57240117", "0.5679709", "0.5654498", "0.56414795", "0.56412524", "0.56218547", "0.5618614", "0.5605506", "0.5586393", "0.5575066", "0.5573278", "0.55670863", "0.5566375", "0.55387723", "0.55387723", "0.55387723", "0.55387723", "0.55387723", "0.55387723", "0.55380523", "0.553211", "0.5530665", "0.5530434", "0.55231565", "0.55224746", "0.55142874", "0.55142874", "0.5507262", "0.54839367", "0.5482489", "0.5468308", "0.5468212", "0.5468212", "0.5468212", "0.5468212", "0.5468212", "0.54575896", "0.5456923", "0.54454154", "0.5442434", "0.54396415", "0.54396415", "0.54396415", "0.54396415", "0.54396415", "0.54396415", "0.54396415", "0.5439357", "0.5438776", "0.54352933", "0.54338706", "0.5428101", "0.54272395", "0.54183227", "0.5417176", "0.54023594", "0.5402118", "0.54014957", "0.5400997", "0.53951705", "0.5392523", "0.53850096", "0.5371982", "0.53577733", "0.5354769", "0.5354769", "0.53546655", "0.53528655", "0.53404707", "0.53370434", "0.5335961", "0.5335961", "0.5335961", "0.53343964", "0.53339374", "0.53339374", "0.53339374", "0.53305584", "0.53305584", "0.5329742", "0.53288007", "0.5328355", "0.532823", "0.5327463", "0.5326519", "0.53251505", "0.5318039", "0.5318039", "0.5318039", "0.5312155", "0.5311462", "0.53082687" ]
0.0
-1
end Constructor Check BlankSpace
public void checkBlankSpace() { if (xOffset < 0) { xOffset = 0; } else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) { xOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth(); } if (yOffset < 0) { yOffset = 0; } else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) { yOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected BlankRecord(Cell c)\r\n/* 25: */ {\r\n/* 26: 72 */ super(Type.BLANK, c);\r\n/* 27: */ }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public abstract boolean isBlank() throws Exception;", "protected BlankRecord(int c, int r)\r\n/* 15: */ {\r\n/* 16: 48 */ super(Type.BLANK, c, r);\r\n/* 17: */ }", "protected BlankRecord(int c, int r, BlankRecord br)\r\n/* 30: */ {\r\n/* 31: 84 */ super(Type.BLANK, c, r, br);\r\n/* 32: */ }", "private boolean isBlank() {\n\t\tchar currentChar = data[index];\n\t\tif (currentChar == '\\r' || currentChar == '\\n' || currentChar == '\\t' || currentChar == ' ') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "static boolean isBlank(Token t) {\n return t.getText().isBlank(); // trim().length() == 0\n }", "@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}", "public static boolean checkBlank(Token token) throws Exception\r\n\t{\r\n\t\tchar currentChar; \r\n\t\t\r\n\t\t//if(nextToken.primClassif == 6)\t//end of file \r\n\t\tif(token.primClassif == 6)\t\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif(Scanner.textCharM.length == 0)\r\n\t\t\treturn true;\r\n\t\r\n\t\telse\r\n\t\t\tcurrentChar = Scanner.textCharM[0];\r\n\t\t\r\n\t\t\r\n\t\t//get the first character, if you reach the end of the line, the line contains \r\n\t\t//only spaces or tabs and is therefore blank \r\n\t\twhile(currentChar == ' ' || currentChar == '\\t' || currentChar == '\\n')\r\n\t\t{\r\n\t\t\ttoken.iColPos++;\r\n\t\t\t\r\n\t\t\tif(token.iColPos == Scanner.textCharM.length)\r\n\t\t\t\treturn true;\r\n\t\t\telse\t\r\n\t\t\t\tcurrentChar = Scanner.textCharM[token.iColPos];\r\n\t\t}\r\n\t\t\r\n\t\t//Line is not blank, check for comments \r\n\t\tif(currentChar == '/')\r\n\t\t{\r\n\t\t\tif(Scanner.textCharM[token.iColPos + 1] == '/')\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t//Line is not blank \r\n\t\treturn false;\r\n\t}", "protected BlankRecord(int c, int r, CellFormat st)\r\n/* 20: */ {\r\n/* 21: 61 */ super(Type.BLANK, c, r, st);\r\n/* 22: */ }", "public ParkingSpace() {}", "@Test\r\n\tpublic void test002_EmptyArgumentConstructor() {\r\n\t\tCustomer c = new Customer( \"\", \"\", \"\" );\r\n\t\tassertEquals( c.getId(), \"\" );\r\n\t\tassertEquals( c.getFirstName(), \"\" );\r\n\t\tassertEquals( c.getLastName(), \"\" );\r\n\t\tassertEquals( c.getContact(), \"\" );\r\n\t}", "private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }", "@Test\n\tpublic void caseNameWithEmpty() {\n\t\tString caseName = \" \";\n\t\ttry {\n\t\t\tStringNumberUtil.stringUtil(caseName);\n\t\t} catch (StringException e) {\n\t\t}\n\t}", "public NotEmptyException() {\n \tsuper(\"Object was occupied.\");\n }", "private void skipBlankSpaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c == ' ' || c == '\\t' || c =='\\n' || c == '\\r') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }", "private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }", "private void checkEmptyLine(String line) {\n if (line.substring(5).replace('\\t', ' ')\n .replace('\\n', ' ').trim().length() != 0) {\n throw new IllegalArgumentException(\"Invalid characters after tag.\");\n }\n }", "@Test\n\tpublic void testEmptyString() {\n\t\tString s = \" \\t \";\n\t\tassertTrue(\"Empty string with tab\", StringUtil.isEmpty(s));\n\t}", "private boolean isConstructor() {\n \tif (line.contains(\"new \")) {\n \t\treturn false;\n \t}\n int bracket = line.indexOf(\"(\");\n if(bracket==-1) {\n return false;\n }\n String declaration = line.substring(0,bracket);\n String[] words = declaration.split(\"\\\\s+\");\n return words[words.length-1].equals(className);\n }", "public WhitespaceState()\n\t{\n\t\tsetWhitespaceChars(0, ' ', true);\n\t}", "public EmptySea() {\r\n\t\tsuper(EmptySea.length);\r\n\t\t\r\n\t}", "private static boolean isBlank(String str)\r\n/* 254: */ {\r\n/* 255: */ int length;\r\n/* 256:300 */ if ((str == null) || ((length = str.length()) == 0)) {\r\n/* 257:301 */ return true;\r\n/* 258: */ }\r\n/* 259: */ int length;\r\n/* 260:302 */ for (int i = length - 1; i >= 0; i--) {\r\n/* 261:303 */ if (!Character.isWhitespace(str.charAt(i))) {\r\n/* 262:304 */ return false;\r\n/* 263: */ }\r\n/* 264: */ }\r\n/* 265:306 */ return true;\r\n/* 266: */ }", "protected boolean checkEmpty(String line) {\n return line == null || line.isBlank();\n }", "public void testCheckNull() {\n Util.checkNull(\" \", \"test\");\n }", "public EmptyCommandException() {\n super(\"Input is empty! Please enter something into the chat\");\n }", "boolean canMatchEmptyString() {\n return false;\n }", "private boolean isNoSpace(final String message) {\n\t\treturn message.contains(\"0 space\"); //$NON-NLS-1$\n\t}", "Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }", "private void validarCampos() {\n }", "public EmptyType() {\n super(\"<EMPTY>\");\n }", "public static boolean isBlank(CharSequence cs) {\n if (cs == null || cs.length() == 0) {\n return true;\n }\n\n int strLen = cs.length();\n for (int i = 0; i < strLen; ++i) {\n if (!Character.isWhitespace(cs.charAt(i))) {\n return false;\n }\n }\n return true;\n }", "private Zeroes() {\n // This space intentionally left blank.\n }", "@Test\n public void billEmptyConstructor_isCorrect() throws Exception {\n\n //Create empty bill\n Bill bill = new Bill();\n\n // Verify Values\n assertEquals(-1, bill.getBillId());\n assertEquals(\"\", bill.getBillName());\n assertEquals(-1, bill.getUserId());\n assertEquals(-1, bill.getAccountId());\n assertEquals(-1.00, bill.getBillAmount(), 0);\n assertEquals(\"\", bill.getDueDate());\n assertEquals(-1, bill.getOccurrenceRte());\n }", "private void valida(String str)throws Exception{\n\t\t\t\n\t\t\tif(str == null || str.trim().isEmpty()){\n\t\t\t\tthrow new Exception(\"Nao eh possivel trabalhar com valores vazios ou null.\");\n\t\t\t}\n\t\t\n\t\t}", "public boolean isEmpty() {\n return top == ' ';\n }", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "public boolean isBlank()\n\t\t{\n\t\t\treturn m_isBlank;\n\t\t}", "private void validateConstructor () throws ModelValidationException\n\t\t\t{\n\t\t\t\t// no constructor or no arg constructor\n\t\t\t\tModel model = getModel();\n\t\t\t\tboolean hasConstr = model.hasConstructor(keyClassName);\n\t\t\t\tObject noArgConstr = \n\t\t\t\t\tmodel.getConstructor(keyClassName, Model.NO_ARGS);\n\t\t\t\tint modifiers = model.getModifiers(noArgConstr);\n\n\t\t\t\tif (hasConstr && \n\t\t\t\t\t((noArgConstr == null) || !Modifier.isPublic(modifiers)))\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(keyClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_constructor\", //NOI18N\n\t\t\t\t\t\tkeyClassName, getClassName()));\n\t\t\t\t}\n\t\t\t}", "private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }", "public void testFieldMatchCriteriaEmptyField() {\r\n try {\r\n new FieldMatchCriteria(\" \", \"str\");\r\n fail(\"testFieldMatchCriteriaEmptyField is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"testFieldMatchCriteriaEmptyField is failure.\");\r\n }\r\n }", "public CommAreaRecord() {\n\t}", "private boolean space() {\r\n return CHAR(' ');\r\n }", "public void testSetLine1_EmptyString() {\r\n try {\r\n address.setLine1(\" \");\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void testEmptyContainerSpace(){\n\t\tContainer c = new Container(0,1){\n\t\t\tpublic boolean canAccess(Player player) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tassertTrue(c.hasSpace());\n\t}", "@Override\n public int NumCVSpaces() {\n return 0;\n }", "@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}", "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "public EmptyException() {\n super();\n }", "public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException {\r\n super(new TriangleBoard(emptyRow, emptyCol));\r\n }", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "public NotEmptyException(String msg) {\n super(msg);\n }", "public Space() {\n\t\tthis.id = \"\";\n\t\tthis.created = \"\";\n\t\tthis.modified = \"\";\n\t\tthis.name = \"(no name set)\";\n\t\tthis.description = \"(no description)\";\n\t\tthis.information = \"(no information)\";\n\t\tthis.parent = \"\";\n\t\tthis.shareable = true;\n\t\tthis.entities = new ArrayList<Entity>();\n\t\tthis.rules = new ArrayList<Rule>();\n\t}", "private String processConstructor() {\n int firstBracket = line.indexOf('(');\n //The substring of line after the bracket (inclusive)\n String parameters = line.substring(firstBracket);\n return \"A constructor \"+className+parameters+\" is created.\";\n }", "static public final boolean ccIsAllNoneSpace(String pxLine){\n return VcStringUtility.ccNulloutString(pxLine)\n .matches(\"^\\\\S+$\");\n }", "private static final boolean isEmpty(String s) {\n return s == null || s.trim().length() < 1;\n }", "public Alignment()\n\t{\n\t}", "private StringAssert() {\n }", "public void testConstructorA1() {\r\n try {\r\n new BidUpdateHandler(\" \", \"bidId\", \"maxAmount\");\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "@Test\n public void testWhitespace() throws TokenizerException {\n assertTokenizes(\" \", new Token[0]);\n }", "public boolean inVerticalBlank();", "void testConstructor(Tester t) {\n t.checkConstructorException(\n new IllegalArgumentException(\"The board must be atleast 2 x 1 in size\"), \"LightEmAll\", 0,\n 0);\n t.checkConstructorException(\n new IllegalArgumentException(\"The board must be atleast 2 x 1 in size\"), \"LightEmAll\", 1,\n 0);\n t.checkConstructorException(\n new IllegalArgumentException(\"The board must be atleast 2 x 1 in size\"), \"LightEmAll\", 0,\n 1);\n t.checkConstructorException(\n new IllegalArgumentException(\"The board must be atleast 2 x 1 in size\"), \"LightEmAll\", 1,\n 1);\n t.checkConstructorException(\n new IllegalArgumentException(\"The board must be atleast 2 x 1 in size\"), \"LightEmAll\", -5,\n -10);\n }", "public static boolean isBlank(CharSequence seq) {\n if (seq == null || seq.length() == 0) {\n return true;\n }\n return is(seq, Character::isWhitespace);\n }", "public BufferEmptyException(String s) {\n super(s);\n }", "public Square() {\n content = \"EMPTY\";\n \n }", "public void testEmptyConstructor() {\n Agent agent = new Agent();\n assertNull(agent.getName(), \"Agent name should have not been initialized.\");\n assertNull(agent.getVersion(), \"Agent version should have not been initialized.\");\n assertEquals(agent.toString(), \"\", \"Agent display representation should not be valid.\");\n }", "private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }", "@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}", "private final static boolean isEmpty(String field) {\n return field == null || field.trim().length() == 0;\n }", "public void emptyConstructorTest() throws AssertException\n {\n // Use the default constructor\n Zoo animal = new Zoo(0);\n\n // The name should be \"noname\", color \"unknown\", height and weight 0.\n Assert.assertEquals(0, animal.getCapacity());\n Assert.assertEquals(0, animal.getAverageWeight());\n Assert.assertEquals(0, animal.getAverageWeight(\"Red\"));\n Assert.assertEquals(0.0, animal.getTotalHeight());\n }", "@Test\n public void validate_Constructor() {\n try {\n Service testService = new Service(\"Camera Installation\", 250, \"category_test\");\n assertEquals(\"Service getter Failed - name\", \"Camera Installation\", testService.getName());\n assertEquals(\"Service getter Failed - rate\", 250, testService.getRate());\n assertEquals(\"Service getter Failed - categoryID\", \"category_test\", testService.getCategoryKey());\n } catch (InvalidDataException e) {\n fail(\"Availability construction failed. Error: \" + e.getMessage());\n }\n\n // Make sure InvalidDataException is thrown for invalid data\n try {\n new Service(\"Illegal-service+name\", 45, \"categoryKey\");\n fail(\"Service Constructor Failed - Illegal Name\");\n } catch (InvalidDataException ignore) {}\n try {\n new Service(\"service name\", -45, \"categoryKey\");\n fail(\"Service Constructor Failed - Illegal rate\");\n } catch (InvalidDataException ignore) {}\n try {\n new Service(\"service name\", 45, \"\");\n fail(\"Service Constructor Failed - Illegal category key\");\n } catch (InvalidDataException ignore) {}\n\n }", "abstract boolean canMatchEmptyString();", "@Test\n\tvoid testTokenizeEmptyString() {\n\t\ttokenizer.setColumns(new Range[] { new Range(1, 5), new Range(6, 10), new Range(11, 15) });\n\t\tvar exception = assertThrows(IncorrectLineLengthException.class, () -> tokenizer.tokenize(\"\"));\n\t\tassertEquals(15, exception.getExpectedLength());\n\t\tassertEquals(0, exception.getActualLength());\n\t\tassertEquals(\"\", exception.getInput());\n\t}", "public boolean isEmpty() {\n\n \tif (numLines == 0) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\t\n }", "public BibFileFormatter() {\n this(\" \");\n }", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "public MyStringBuilder2()\n\t{ \t\t\t // or null reference\n\t\t\tfirstC = null;\n\t\t\tlastC = null;\n\t\t\tlength = 0;\n\t\t\n\t}", "public WhitespaceTokenizer(Reader r)\n/* */ {\n/* 88 */ this(r, false);\n/* */ }", "public boolean checkForBlank(int m, int n){\r\n\t\tif ( count[m][n] == 0 )\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}", "@Contract(\"null -> true\")\n public static boolean isBlankOrNull(final String arg) {\n return (arg == null || arg.replaceAll(\"\\\\s\", \"\").length() == 0);\n }", "public void testSetLine2_EmptyString() {\r\n try {\r\n address.setLine2(\" \");\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public void setEmpty(){this.empty = true;}", "public boolean hasSpace() {\r\n\t\treturn hasSpace;\r\n\t}", "static void getNonBlank() throws IOException{\n while(curr_char == 32)\n {\n curr_char = pbIn.read();\n }\n }", "public Indent()\n {\n this(\" \", 0);\n }", "@Test\n public final void testCheckForBlankText() {\n Document testDoc = TestDocHelper.createDocument(\n \"<a></a>\");\n\n Node nonBlank = testDoc.createTextNode(\"a\");\n assertFalse(NodeOps.nodeIsEmptyText(nonBlank));\n\n Node blank = testDoc.createTextNode(\"\");\n assertTrue(NodeOps.nodeIsEmptyText(blank));\n }", "private boolean startsWithSpace(String str) {\r\n\t\treturn str.length() != 0 && str.charAt(0) == ' ';\r\n\t}", "public abstract void makeEmpty();", "private static boolean noWhiteSpace(String password) {\n\t\tint whitespaces = 0;\n\t\tfor (int i = 0; i < password.length(); i++) {\n\t\t char c = password.charAt(i);\n\t\t if ( Character.isWhitespace(c) ) {\n\t\t \t whitespaces++;\n\t\t }\n\t\t}\n\t\tif (whitespaces >= 1) {\n\t\t\tSystem.out.println(\"no whitespaces!\");\n\t\t\treturn false;\n\t\t} else return true;\n\t}", "private Validador() {\r\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n\tpublic void testCreateLinkValidWhitespace() {\n\t\tLink result = helper.createLink(\"http://good.com \");\n\t\tassertEquals(\"http://good.com\", result.getUrl());\n\t\tassertTrue(result.isValid());\n\t}", "public static boolean isBlank(final CharSequence chars) {\r\n\t\tif (isEmpty(chars)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tint stringLength = chars.length();\r\n\t\tfor (int i = 0; i < stringLength; i++) {\r\n\t\t\tif (!Character.isWhitespace(chars.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void testEmptyConstructors() {\n\t\t\n\t\tSystem.out.println(\"+-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"| Testing empty constructors: \");\n\n\t\tCustomer greg;\n\t\tAirlineTicket ticketGreg;\n\t\tFlight flightBahamas;\n\n\t\tgreg = new Customer();\n\t\tflightBahamas = new Flight();\n\t\tticketGreg = new AirlineTicket();\n\n\t\t// manipulate data using object methods and print it out\n\t\tSystem.out.println(\"| Manipulating data...\");\n\t\tmanipulateData(greg, ticketGreg, flightBahamas);\n\t\tSystem.out.println(\"| After manipulation:\");\n\t\tprintObjects(greg, ticketGreg, flightBahamas);\n\t\t\n\t}", "public static boolean spotIsEmpty(char n){\r\n boolean dummy = false;\r\n if (n == ' '){\r\n dummy = true;\r\n return dummy;\r\n }\r\n return dummy;\r\n }", "public static void nonBlank(String arg, String argName) {\r\n longerThan(arg, 0, argName);\r\n }", "public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }", "NullSt (int ln) { super (ln); }" ]
[ "0.61712617", "0.61709225", "0.61502934", "0.612417", "0.6101396", "0.60850173", "0.6016349", "0.5981489", "0.59585357", "0.59491473", "0.5880287", "0.58783525", "0.5876241", "0.5850624", "0.58502907", "0.58472764", "0.583429", "0.58173", "0.58050215", "0.577967", "0.573987", "0.5698339", "0.5696935", "0.5696018", "0.5694934", "0.56616884", "0.56528044", "0.5636742", "0.56230515", "0.5622064", "0.5605385", "0.5598155", "0.55973476", "0.5594436", "0.5584788", "0.55778426", "0.5556986", "0.5533784", "0.55328673", "0.55223763", "0.55004215", "0.5490932", "0.54862136", "0.54831195", "0.54830754", "0.54440016", "0.5436868", "0.54255885", "0.541353", "0.5413043", "0.5412996", "0.5393959", "0.53767824", "0.53728986", "0.5372513", "0.5372111", "0.53668725", "0.53620297", "0.5360488", "0.53602344", "0.5358141", "0.53574675", "0.5355079", "0.5350987", "0.53488606", "0.53435314", "0.5337171", "0.5334832", "0.5333323", "0.53278846", "0.5313211", "0.53112996", "0.5302603", "0.52997637", "0.5295418", "0.52953357", "0.5289879", "0.52827233", "0.5275203", "0.5273963", "0.52735084", "0.5272278", "0.5271836", "0.52700585", "0.52501136", "0.5249255", "0.52451116", "0.52418554", "0.5240277", "0.5239518", "0.5235718", "0.52350026", "0.52350026", "0.52346987", "0.5233264", "0.5230402", "0.5218625", "0.5217857", "0.5216542", "0.52145255" ]
0.5890821
10
/ BEGIN Getters and Setters
public float getxOffset() { return xOffset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void getExras() {\n }", "public void setdat()\n {\n }", "private void assignment() {\n\n\t\t\t}", "@Override\n String get();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void get() {\n }", "String setValue();", "public String getName () { return this.name; }", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public int getAge() {return age;}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "public int\t\tget() { return value; }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "public Object get()\n {\n return m_internalValue;\n }", "private Integer getId() { return this.id; }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "String getName(){return this.name;}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "public abstract String get();", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public String getName(){return this.name;}", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n public String toString() {\n return (super.toString());\n\n }", "public String getID(){return ID;}", "private Values(){}", "public String get();", "protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "public Object getValue() { return _value; }", "public Book getBook() \t\t{ return this.myBook; }", "protected int getID(){\r\n\t\treturn this.ID;\r\n\t}", "@Override public String getID() { return id;}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "@Override\n public String toString () {\n return super.toString();\n }", "public int getID(){\r\n return this.ID;\r\n }", "public int getNewProperty_descriptionType(){\n return localNewProperty_descriptionType;\n }", "public void setAge(int age) { this.age = age; }", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "private Value() {\n\t}", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\n public String toString() {\n return value();\n }", "@Override\n\tpublic void initializeValues() {\n\n\t}", "public Student getStudent() { return student; }", "public int value() { \n return this.value; \n }", "public int getID() {return id;}", "public int getID() {return id;}", "@Override\n public String getName(){\n return Name; \n }", "@Override\n protected void init() {\n }", "public String getAuthor(){return author;}", "@Override\n public void memoria() {\n \n }", "public int characteristics() {\n/* 1570 */ return this.characteristics;\n/* */ }", "@Override\n void init() {\n }", "@Override\n\tpublic void setData() {\n\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public String getName(){ return name; }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private Get() {}", "private Get() {}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}" ]
[ "0.65992194", "0.636376", "0.6304055", "0.62031835", "0.6021414", "0.5876016", "0.5818816", "0.5808886", "0.5798924", "0.5795755", "0.57944095", "0.5744341", "0.57405156", "0.57318443", "0.57190716", "0.5710082", "0.5704097", "0.56931865", "0.56686974", "0.56650376", "0.5653424", "0.5648472", "0.56365734", "0.5627588", "0.5623273", "0.5623273", "0.5623273", "0.5623273", "0.5623273", "0.5623273", "0.5609607", "0.5604907", "0.55964017", "0.5591184", "0.559051", "0.559051", "0.55877817", "0.5585711", "0.5583544", "0.5579553", "0.55785316", "0.5578056", "0.557601", "0.5573876", "0.55671644", "0.5560732", "0.556047", "0.5558126", "0.5558126", "0.5554876", "0.5549263", "0.5541302", "0.553903", "0.553903", "0.5531964", "0.55210346", "0.55156446", "0.55136067", "0.5511925", "0.5509808", "0.5508266", "0.5506439", "0.5506321", "0.55034566", "0.55034566", "0.5496473", "0.54964286", "0.5490712", "0.5486596", "0.5483607", "0.5479076", "0.54771394", "0.5473575", "0.54723763", "0.5471931", "0.54677606", "0.5461757", "0.5460401", "0.5459677", "0.5459677", "0.54579794", "0.5456809", "0.54461217", "0.5445776", "0.54413515", "0.54413515", "0.5438372", "0.5436919", "0.5436428", "0.5434026", "0.5432367", "0.5426322", "0.542326", "0.5423256", "0.5422907", "0.54204684", "0.5418943", "0.5418943", "0.54188436", "0.54188436", "0.54188436" ]
0.0
-1
TODO Autogenerated method stub
public void del(String id) throws SQLException { TiaoxiushenqingDao dao = new TiaoxiushenqingDao(); dao.delete(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void add(Tiaoxiushenqing t) throws SQLException { TiaoxiushenqingDao dao = new TiaoxiushenqingDao(); dao.add(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void update(Tiaoxiushenqing t) throws SQLException { TiaoxiushenqingDao dao = new TiaoxiushenqingDao(); dao.update(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Constructor that encapsulates the api
@Autowired public FoDRestConnectionService(final HubFoDConfigProperties appProps) { this.appProps = appProps; client = Create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public API() {}", "public api() {}", "private APIClient() {\n }", "private Api() {\n // Implement a method to build your retrofit\n buildRetrofit(BASE_URL);\n }", "public ApiResponse() {\n }", "private ParkingLotApi()\r\n {\r\n }", "public APIOperation()\n {\n super();\n }", "private ApiConfig() {\n }", "private ApiUrlCreator() {\n }", "public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "public ReservationApi()\r\n {\r\n }", "public ApiError()\n\t{\n\n\t}", "API createAPI();", "public TestServerApi()\r\n\t{\r\n\t\t\r\n\t}", "public AlpacaAPI() {\n this(AlpacaProperties.API_VERSION_VALUE, AlpacaProperties.KEY_ID_VALUE,\n AlpacaProperties.SECRET_VALUE, AlpacaProperties.BASE_ACCOUNT_URL_VALUE,\n AlpacaProperties.BASE_DATA_URL_VALUE);\n }", "private Aliyun() {\n\t\tsuper();\n\t}", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "protected ApiActivityBase() {\n super();\n }", "private WAPIHelper() { }", "public ApiBuilder() \n\t{\n\t\tthis._data = new LinkedHashMap<String,Object>();\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n //Form an API to receive a token\n kedronService = retrofit.create(IKedronService.class);\n }", "@Inject\n public MachineMonkeyRestApiImpl() {\n }", "private RestClient() {\n }", "public RestClient(){\n }", "public ApiProject() {\n super();\n }", "protected RestClient() {\n }", "private MApi() {}", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "public BasicResponse() {\n }", "private HttpClient() {\n\t}", "private Response() {\n initFields();\n }", "public KorisniciREST() {\n }", "private LoginApi() {\n }", "public YelpAPI() {\n\t\tgetAccessToken();\n\t}", "private Request() {}", "private Request() {}", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "public SessionManager(API api) {\n _api = api;\n }", "private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"[email protected]\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }", "public UpdateTrackingResp() {\n }", "private CassandraIoSDK(APIConnection apiConnection, String apiUrl){\n\t\tthis.apiConnection = apiConnection;\n\t\tthis.apiUrl = apiUrl;\n\t}", "protected ContactsResource(XingApi api) {\n super(api);\n }", "public Example() {\n this.api = new MetaMapApiImpl();\n }", "public RestService() {\r\n \r\n }", "private Request() {\n initFields();\n }", "public LpsClient() {\n super();\n }", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "public TurnoVOClient() {\r\n }", "private Response() {}", "private Response() {}", "private MatterAgentClient() {}", "protected GaConnector() {\n }", "public HttpConnector(JsonSystem system) {\r\n super(system);\r\n }", "public AuthorizationJson() {\n }", "public Response(){\n\t\t// nothing needed\n\t}", "public Libro() {\r\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public Curso() {\r\n }", "public RestService() {\r\n }", "private TwitterAPI(){\n\t\t\n\t}", "public Http()\n {\n numberOfParameters = -1;\n }", "public Chimney() {\r\n\t\tthis.apikey = DEFAULT_APIKEY;\r\n\t\t//todo manage database connection?\r\n\t}", "private HttpClientInfra() {}", "public HGDClient() {\n \n \t}", "private JsonUtils() {\n\t\tsuper();\n\t}", "public Factory() {\n this(getInternalClient());\n }", "private RestUtil() {\n\t}", "public BittrexApi() {\n this.apiKey = config.getVariable(\"BITTREX_API_KEY\");\n this.secretKey = config.getVariable(\"BITTREX_SECRET_KEY\");\n }", "public XCRI_CAPRestService() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public DefaultHttpRequest() {\n }", "public BrowseOffenceAMClient() {\r\n }", "public Request() {\n\n }", "private ApiInfo apiInfo() {\n\t\treturn new ApiInfo(\"Langton ant app\", \"rest api for langton ant app\", version, null,\n\t\t\t\tnew Contact(\"leclerc\", \"N/A\", \"[email protected]\"), null, null, Collections.EMPTY_LIST);\n\t}", "public Request() {\n }", "public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public GetMembersREST() {\n }", "public AppInstanceResp() {\n super();\n }", "public SgaexpedbultoImpl()\n {\n }", "public ClaseJson() {\n }", "public HttpConnector(){\n super();\n }", "public JSONUtils() {\n\t\tsuper();\n\t}", "public API getApi()\n\t{\n\t\treturn new API(this);\n\t}", "public BasicAppInfo() {\n super();\n }", "public Webinar() {\n\t\t\n\t}", "public AlpacaAPI(String apiVersion) {\n this(apiVersion, AlpacaProperties.KEY_ID_VALUE, AlpacaProperties.SECRET_VALUE,\n AlpacaProperties.BASE_ACCOUNT_URL_VALUE, AlpacaProperties.BASE_DATA_URL_VALUE);\n }", "private CorrelationClient() { }", "private ApiInfo apiInfo() {\n return new ApiInfoBuilder()\n .title(title)\n .description(description)\n .termsOfServiceUrl(serviceUrl)\n .license(license)\n .licenseUrl(licenseUrl)\n .version(version)\n .build();\n }", "private YahooMeteoRetriever() {\r\n\t\tsuper();\r\n\t}", "public RequestUpdateCancha() {\n }", "public AuthenticationApi(String apiKey, String baseUrl) {\n client = new ApiClient();\n client.setBasePath(baseUrl);\n client.addDefaultHeader(\"x-api-key\", apiKey);\n retrieveTokenApi = new RetrieveTokenApi(client);\n authorizationApi = new AuthorizationApi(client);\n authenticationApi = new com.genesys.internal.authentication.api.AuthenticationApi(client);\n }", "public EndpointDetail() {\n }", "public TboFlightSearchRequest() {\n}", "private RecipleazBackendService() {\n }", "public UBERequest() {\r\n }", "public JerseyWrapper() {\n super(prc);\n }", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}" ]
[ "0.8429768", "0.8420282", "0.7929529", "0.772094", "0.7625294", "0.7613127", "0.74973905", "0.74641514", "0.74130476", "0.73862135", "0.7362942", "0.73347425", "0.7198998", "0.7179196", "0.716277", "0.7143562", "0.71259713", "0.71086717", "0.70500475", "0.7027352", "0.697419", "0.6972505", "0.6944111", "0.6943136", "0.6921423", "0.68853784", "0.6856934", "0.6853443", "0.6788376", "0.6785268", "0.67768794", "0.676052", "0.67593306", "0.6747249", "0.67432", "0.6739744", "0.67212033", "0.67212033", "0.67205936", "0.67172086", "0.6716442", "0.67116225", "0.6704314", "0.6675327", "0.6657666", "0.6657448", "0.6652226", "0.6634481", "0.65974903", "0.6595294", "0.65805584", "0.65805584", "0.6575823", "0.6569031", "0.6560938", "0.65512323", "0.655001", "0.65341896", "0.6532618", "0.65216786", "0.6509583", "0.650198", "0.65007544", "0.6494989", "0.64874184", "0.64808017", "0.6473146", "0.64529693", "0.64442647", "0.64376414", "0.6433639", "0.643007", "0.64206105", "0.64198345", "0.64194995", "0.6418142", "0.6401455", "0.6390538", "0.6390486", "0.63886917", "0.63798445", "0.63756704", "0.6363342", "0.63552815", "0.6353614", "0.6346923", "0.6346283", "0.6344435", "0.6340824", "0.63403565", "0.63366926", "0.6321367", "0.63208336", "0.63119763", "0.6300211", "0.6299545", "0.62969077", "0.6292662", "0.62891597", "0.62833893", "0.62802124" ]
0.0
-1
Used for authenticating in the case of a time out using the saved api credentials.
public void authenticate() throws Exception { try { // Build the form body final FormBody.Builder formBodyBuilder = new FormBody.Builder().add("scope", "api-tenant"); // Has username/password if (appProps.getFodGrantType().equals(VulnerabilityReportConstants.GRANT_TYPE_PASSWORD)) { formBodyBuilder.add("grant_type", VulnerabilityReportConstants.GRANT_TYPE_PASSWORD) .add("username", appProps.getFodTenantId() + "\\" + appProps.getFodUsername()) .add("password", appProps.getFodPassword()); } else // Has api key/secret { formBodyBuilder.add("grant_type", VulnerabilityReportConstants.GRANT_TYPE_CLIENT_CREDENTIALS) .add("client_id", appProps.getFodClientId()) .add("client_secret", appProps.getFodClientSecret()); } final RequestBody formBody = formBodyBuilder.build(); final Request request = new Request.Builder() .url(appProps.getFodAPIBaseURL() + "/oauth/token") .post(formBody) .build(); final Response response = client.newCall(request).execute(); if (!response.isSuccessful()) { logger.debug("response::" + response.message() + ", " + response.code() + ", " + response.toString()); throw new FoDConnectionException("Unexpected code " + response); } logger.info("Successful connection to Fortify On Demand!"); final String content = IOUtils.toString(response.body().byteStream(), "utf-8"); response.body().close(); // Parse the Response final JsonParser parser = new JsonParser(); final JsonObject obj = parser.parse(content).getAsJsonObject(); this.token = obj.get("access_token").getAsString(); } catch (final FoDConnectionException fce) { if (fce.getMessage().contains(VulnerabilityReportConstants.FOD_UNAUTORIZED)) { logger.error("FoD CONNECTION FAILED. Please check the FoD URL, username, tenant, and password and try again."); logger.info("FoD URL=" + appProps.getFodAPIBaseURL()); logger.info("FoD GrantType=" + appProps.getFodGrantType()); logger.info("FoD client Id=" + appProps.getFodClientId()); logger.info("FoD username=" + appProps.getFodUsername()); logger.info("FoD tennant=" + appProps.getFodTenantId()); } else { logger.error("FoD Response was not successful with message: " + fce.getMessage()); } throw fce; } catch (final UnknownHostException uhe) { logger.error("Unknown Host Error. Are you connected to the internet?"); uhe.printStackTrace(); throw uhe; } catch (final Exception e) { logger.error("Authentication to FoD failed. Connection seems OK."); e.printStackTrace(); throw e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getInvalidLoginLockoutTime();", "@Override\n public void onCanceled() {\n\n logOutNow();\n\n }", "@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }", "@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn true;\n}", "@Override\n public void onFailure(@NonNull Exception e) {\n\n logOutNow();\n\n }", "public void sessionTimeout() {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(DeviceTrackerApplication.getContext());\n alertDialogBuilder.setTitle(getString(R.string.app_name));\n alertDialogBuilder\n .setMessage(R.string.session_expired)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_msg, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n logout();\n }\n });\n alertDialog = alertDialogBuilder.create();\n alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);\n startSessionTimer(0);\n }", "@Override\n public void onAuthenticationFailed() {\n }", "@Override\n\t\t\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "Duration getTokenExpiredIn();", "@Override\n public void onAuthenticationFailed() {\n }", "void onRetryAuthentication();", "public String getAuthToken() throws Exception {\n _log.info(\"3PARDriver:getAuthToken enter, after expiry\");\n String authToken = null;\n ClientResponse clientResp = null;\n String body= \"{\\\"user\\\":\\\"\" + _user + \"\\\", \\\"password\\\":\\\"\" + _password + \"\\\"}\";\n\n try {\n clientResp = _client.post_json(_baseUrl.resolve(URI_LOGIN), body);\n if (clientResp == null) {\n _log.error(\"3PARDriver:There is no response from 3PAR\");\n throw new HP3PARException(\"There is no response from 3PAR\");\n } else if (clientResp.getStatus() != 201) {\n String errResp = getResponseDetails(clientResp);\n throw new HP3PARException(errResp);\n } else {\n JSONObject jObj = clientResp.getEntity(JSONObject.class);\n authToken = jObj.getString(\"key\");\n }\n this._authToken = authToken;\n return authToken;\n } catch (Exception e) {\n throw e;\n } finally {\n if (clientResp != null) {\n clientResp.close();\n }\n _log.info(\"3PARDriver:getAuthToken leave, after expiry\");\n } //end try/catch/finally\n }", "@Test\r\n public void testAuthSessionAfterTimeoutPassUnderMax() {\r\n try {\r\n SessionThrottler throttler = new SessionThrottler(mockHelper);\r\n throttler.setMaxAuthSession(2);\r\n String userId = \"FDJTEST\";\r\n boolean allowAuthSession = throttler.allowAuthSession(\"abcd1234\", userId);\r\n assertTrue(\"Failed to allow auth session\", allowAuthSession);\r\n } catch (Exception e) {\r\n fail(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "private Drive authentication() throws IOException {\n\t\t// Request a new access token using the refresh token.\n\t\tGoogleCredential credential = new GoogleCredential.Builder()\n\t\t\t\t.setTransport(HTTP_TRANSPORT)\n\t\t\t\t.setJsonFactory(JSON_FACTORY)\n\t\t\t\t.setClientSecrets(CLIENT_ID, CLIENT_SECRET).build()\n\t\t\t\t.setFromTokenResponse(new TokenResponse().setRefreshToken(REFRESH_TOKEN));\n\t\tcredential.refreshToken();\n\t\treturn new Drive.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential)\n\t\t\t\t.setApplicationName(\"tp3\").build();\n\t}", "@Test\n public final void test_interval_is_short() {\n String addbody = \"&username=account2&password=dummypassword\";\n\n // Authentication failed.\n PersoniumResponse res = requesttoAuthz(addbody);\n assertThat(res.getStatusCode()).isEqualTo(HttpStatus.SC_SEE_OTHER);\n assertTrue(res.getFirstHeader(HttpHeaders.LOCATION).startsWith(\n UrlUtils.cellRoot(Setup.TEST_CELL1) + \"__authz?\"));\n assertTrue(UrlUtils.parseFragment(res.getFirstHeader(HttpHeaders.LOCATION)).isEmpty());\n Map<String, String> queryMap = UrlUtils.parseQuery(res.getFirstHeader(HttpHeaders.LOCATION));\n assertThat(queryMap.get(OAuth2Helper.Key.CODE), is(\"PS-AU-0004\"));\n\n // If the authentication interval is short.\n for (int i = 0; i < 5; i++) {\n try {\n Thread.sleep(1000 * TEST_ACCOUNT_VALID_AUTHN_INTERVAL / 2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n addbody = \"&username=account2&password=password2\";\n res = requesttoAuthz(addbody);\n assertThat(res.getStatusCode()).isEqualTo(HttpStatus.SC_SEE_OTHER);\n assertTrue(res.getFirstHeader(HttpHeaders.LOCATION).startsWith(\n UrlUtils.cellRoot(Setup.TEST_CELL1) + \"__authz?\"));\n assertTrue(UrlUtils.parseFragment(res.getFirstHeader(HttpHeaders.LOCATION)).isEmpty());\n queryMap = UrlUtils.parseQuery(res.getFirstHeader(HttpHeaders.LOCATION));\n assertThat(queryMap.get(OAuth2Helper.Key.CODE), is(\"PS-AU-0004\"));\n }\n }", "@Test\r\n public void testAuthSessionAfterTimeoutAdded() {\r\n try {\r\n SessionThrottler throttler = new SessionThrottler(mockHelper);\r\n throttler.setMaxAuthSession(0);\r\n String userId = \"FDJTEST\";\r\n boolean allowAuthSession = throttler.allowAuthSession(\"abcd1234\", userId);\r\n assertFalse(\"Should not allow auth session\", allowAuthSession);\r\n } catch (Exception e) {\r\n fail(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "@Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n public boolean isCredentialsNonExpired() {\n return Boolean.TRUE;\n }", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}", "public void enquireTimeout(Long sessionId);", "@Override\n\tpublic boolean isCredentialsNonExpired()\n\t{\n\t\treturn true;\n\t}", "void stopAuthentication() {\n if (biometricPrompt != null) {\n biometricPrompt.cancelAuthentication();\n biometricPrompt = null;\n }\n }", "@Test\n public final void test_interval_normal() {\n String addbody = \"&username=account2&password=dummypassword\";\n\n // Authentication failed.\n PersoniumResponse res = requesttoAuthz(addbody);\n assertThat(res.getStatusCode()).isEqualTo(HttpStatus.SC_SEE_OTHER);\n assertTrue(res.getFirstHeader(HttpHeaders.LOCATION).startsWith(\n UrlUtils.cellRoot(Setup.TEST_CELL1) + \"__authz?\"));\n assertTrue(UrlUtils.parseFragment(res.getFirstHeader(HttpHeaders.LOCATION)).isEmpty());\n Map<String, String> queryMap = UrlUtils.parseQuery(res.getFirstHeader(HttpHeaders.LOCATION));\n assertThat(queryMap.get(OAuth2Helper.Key.CODE), is(\"PS-AU-0004\"));\n\n // Make enough intervals.\n try {\n Thread.sleep(1000 * TEST_ACCOUNT_VALID_AUTHN_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // authorization\n addbody = \"&username=account2&password=password2\";\n res = requesttoAuthz(addbody);\n assertEquals(HttpStatus.SC_SEE_OTHER, res.getStatusCode());\n\n Map<String, String> response = UrlUtils.parseFragment(res.getFirstHeader(HttpHeaders.LOCATION));\n try {\n ResidentLocalAccessToken aToken = ResidentLocalAccessToken.parse(response.get(OAuth2Helper.Key.ACCESS_TOKEN),\n UrlUtils.cellRoot(Setup.TEST_CELL1));\n assertNotNull(\"access token parse error.\", aToken);\n assertEquals(OAuth2Helper.Scheme.BEARER, response.get(OAuth2Helper.Key.TOKEN_TYPE));\n assertEquals(\"3600\", response.get(OAuth2Helper.Key.EXPIRES_IN));\n assertEquals(DEFAULT_STATE, response.get(OAuth2Helper.Key.STATE));\n } catch (TokenParseException e) {\n fail(e.getMessage());\n e.printStackTrace();\n }\n }", "@Override\n protected void afterAuthenticating() {\n }", "private AuthenticationCallback getAuthSilentCallback() {\n return new AuthenticationCallback() {\n @Override\n public void onSuccess(AuthenticationResult authenticationResult) {\n /* Successfully got a token */\n updateRefreshTokenUI(true);\n\n /* If the token is refreshed we should refresh our data */\n callAPI();\n }\n\n @Override\n public void onError(MsalException exception) {\n /* Failed to acquireToken */\n Log.d(TAG, \"Authentication failed: \" + exception.toString());\n updateRefreshTokenUI(false);\n if (exception instanceof MsalClientException) {\n /* Exception inside MSAL, more info inside MsalError.java */\n assert true;\n\n } else if (exception instanceof MsalServiceException) {\n /* Exception when communicating with the STS, likely config issue */\n assert true;\n\n } else if (exception instanceof MsalUiRequiredException) {\n /* Tokens expired or no session, retry with interactive */\n assert true;\n }\n }\n\n @Override\n public void onCancel() {\n /* User canceled the authentication */\n Log.d(TAG, \"User cancelled login.\");\n updateRefreshTokenUI(true);\n }\n };\n }", "@Override\n protected void onCancel() {\n // TODO: Show error notification\n Log.d(\"JOB\", \"onCancel()\");\n Log.d(\"AUTH\", this.username + \" \" + this.password);\n }", "@Test\n public void AuthenticationShouldFailWithValidIPUser() throws Exception {\n kidozen = new KZApplication(AppSettings.KZ_TENANT, AppSettings.KZ_APP, AppSettings.KZ_KEY, false);\n final CountDownLatch alcd = new CountDownLatch(1);\n kidozen.Authenticate(AppSettings.KZ_USER, AppSettings.KZ_PASS, \"ups!\", new ServiceEventListener() {\n @Override\n public void onFinish(ServiceEvent e) {\n alcd.countDown();\n assertThat(e.StatusCode, equalTo(HttpStatus.SC_UNAUTHORIZED));\n assertTrue(e.Body.toLowerCase().contains(\"unauthorized\".toLowerCase()));\n }\n });\n assertEquals(false, kidozen.UserIsAuthenticated);\n alcd.await(TEST_TIMEOUT_IN_MINUTES, TimeUnit.MINUTES);\n }", "public void authentication() throws AuthorizationException {\n\t\tclient = new RennClient(API_KEY, SECRET_KEY);\n\t\tclient.authorizeWithClientCredentials();\n\t}", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "boolean isCredentialsNonExpired();", "boolean isCredentialsNonExpired();", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "@Override\n public void onFailure(CredentialsManagerException error) {\n finish();\n }", "protected static void deleteTimedOutSessions() {\r\n Enumeration userLogins = activeUserLogins.keys();\r\n\r\n while (userLogins.hasMoreElements()) {\r\n long now = System.currentTimeMillis();\r\n String thisKey = (String)userLogins.nextElement();\r\n Login thisLogin = activeUserLogins.get(thisKey);\r\n if ((thisLogin.getTimeout() > 0) &&\r\n (now > (thisLogin.getLastAccessed().getTime() + thisLogin.getTimeout()))) {\r\n log.debug(\"Logging \" + thisLogin.getUserId() + \" out\");\r\n logout(thisKey);\r\n\r\n }\r\n }\r\n }", "private AuthenticationCallback getAuthSilentCallback() {\n return new AuthenticationCallback() {\n @Override\n public void onSuccess(AuthenticationResult authenticationResult) {\n activeDirectoryOnSignInSuccess(authenticationResult);\n }\n\n @Override\n public void onError(MsalException exception) {\n // Failed to acquireToken\n Log.d(TAG, \"Silent authentication failed: \" + exception.toString());\n final String[] scopes = Constants.SCOPES.split(\"\\\\s+\");\n if (exception instanceof MsalUiRequiredException) {\n // Tokens expired or no session, retry with interactive\n activeDirectoryApp.acquireToken(MainActivity.this, scopes, getAuthInteractiveCallback());\n return;\n }\n activeDirectoryOnSignInError(exception);\n }\n\n @Override\n public void onCancel() {\n activeDirectoryOnSignInCancel();\n }\n };\n }", "static void timeout(AnyRpcCallback<APIResponse> callback) {\n APIResponse apiResponse =\n APIResponse.newBuilder()\n .setError(APIResponse.ERROR.RPC_ERROR_VALUE)\n .setRpcError(RpcError.DEADLINE_EXCEEDED)\n .build();\n callback.success(apiResponse);\n // This is \"success\" in the sense that we got back a response, but one that will provoke\n // an ApiProxy.ApiDeadlineExceededException.\n }", "@Test\n public void doSuccessfulAuthTest() throws IOException {\n // Load valid credentials\n loadValidCredentials();\n\n final RestClient restClient = new HttpClientRestClient();\n restClient.init(testConfig);\n\n // Validate not yet valid\n assertFalse(\"should not yet be valid\", sessionRefreshHandler.isValid());\n// TODO\n// assertNull(\"Should have no header value yet\", sessionRefreshHandler.getAuthorizationHeaderValue());\n\n // Call method with valid credentials and this should return true.\n assertTrue(sessionRefreshHandler.refreshCredentials(pardotClient));\n\n // Sanity check\n assertTrue(sessionRefreshHandler.isValid());\n// TODO\n// assertNotNull(sessionRefreshHandler.getAuthorizationHeaderValue());\n }", "@Test\n public void doFailedAuthTest() {\n// loadInvalidCredentials();\n//\n// final RestClient restClient = new HttpClientRestClient();\n// restClient.init(testConfig);\n//\n// final SsoSessionRefreshHandler handler = new SsoSessionRefreshHandler(\n// testConfig.getSsoLoginCredentials(),\n// pardotClient\n// );\n//\n// // Sanity check\n// assertFalse(testConfig.getSsoLoginCredentials().hasAccessToken());\n//\n// // Validate not yet valid\n// assertFalse(\"should not yet be valid\", handler.isValid());\n//\n// // Call method with valid credentials and this should throw LoginFailedException.\n// assertThrows(LoginFailedException.class, handler::refreshCredentials);\n//\n// // Sanity check\n// assertFalse(testConfig.getSsoLoginCredentials().hasAccessToken());\n }", "@Test\n public void testExpiredToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .token(OAuthTokenType.Bearer, true, null, null, null)\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "@Override\r\n protected LoginResult doInBackground(Void... params) {\n Call<AuthResponse> authCall;\r\n authCall = api.login(phone, password, Api.KEY);\r\n\r\n try {\r\n Response<AuthResponse> authResponse = authCall.execute();\r\n\r\n if (authResponse.isSuccessful()) {\r\n AuthResponse auth = authResponse.body();\r\n Log.d(TAG, \"token => \" + auth.getCredential().getToken());\r\n accountPreference.saveLogin(phone, password);\r\n accountPreference.saveToken(auth.getCredential().getToken());\r\n accountPreference.saveEmail(auth.getCredential().getEmail());\r\n accountPreference.saveName(auth.getCredential().getName());\r\n accountPreference.savePhoto(auth.getCredential().getPhoto());\r\n return new LoginResult(true, null);\r\n }\r\n\r\n String errorString = authResponse.errorBody().string();\r\n Log.d(TAG, \"error => \" + errorString);\r\n Gson gson = new GsonBuilder()\r\n .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\r\n .create();\r\n String error = null;\r\n\r\n try {\r\n ErrorReponse e = gson.fromJson(errorString, ErrorReponse.class);\r\n error = e.getMessage();\r\n } catch (JsonSyntaxException e) {\r\n error = getResources().getString(R.string.error_occured);\r\n }\r\n\r\n return new LoginResult(false, error);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return new LoginResult(false, null);\r\n }\r\n }", "void timedOut();", "@Override\n public void onCancel(AuthCancellation cancellation) {\n System.out.println(\"Cancel \" + cancellation);\n // Reset the UI to a ready-to-login state\n }", "private static Object doAuth(Request req, Response res) {\n \n HashMap<String, String> response = new HashMap<>();\n\t\t \n String email = Jsoup.parse(req.queryParams(\"email\")).text();\n\t\t String password = Jsoup.parse(req.queryParams(\"password\")).text();\n\t\t\n res.type(Path.Web.JSON_TYPE);\n \t\t\n\t\t\n\t\tif(email != null && !email.isEmpty() && password != null && !password.isEmpty() ) {\n \n authenticate = new Authenticate(password);\n\t\t\t//note that the server obj has been created during call to login()\n\t\t\tString M2 = authenticate.getM2(server);\n\t\t\t\n if(M2 != null || !M2.isEmpty()) {\n \n \n\t\t\tSession session = req.session(true);\n\t\t\tsession.maxInactiveInterval(Path.Web.SESSION_TIMEOUT);\n\t\t\tUser user = UserController.getUserByEmail(email);\n\t\t\tsession.attribute(Path.Web.ATTR_USER_NAME, user.getUsername());\n session.attribute(Path.Web.ATTR_USER_ID, user.getId().toString()); //saves the id as String\n\t\t\tsession.attribute(Path.Web.AUTH_STATUS, authenticate.authenticated);\n\t\t\tsession.attribute(Path.Web.ATTR_EMAIL, user.getEmail());\n logger.info(user.toString() + \" Has Logged In Successfully\");\n \n response.put(\"M2\", M2);\n response.put(\"code\", \"200\");\n response.put(\"status\", \"success\");\n response.put(\"target\", Path.Web.DASHBOARD);\n \n String respjson = gson.toJson(response);\n logger.info(\"Final response sent By doAuth to client = \" + respjson);\n res.status(200);\n return respjson;\n }\n\t\t\t\t\n\t\t} \n \n res.status(401);\n response.put(\"code\", \"401\");\n response.put(\"status\", \"Error! Invalid Login Credentials\");\n \n return gson.toJson(response);\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Log.i(TAG,\"An error occurred\" +e.getMessage());\n String exception=e.getMessage();\n int index=exception.indexOf(\":\");\n String data=exception.substring(index+1).trim();\n showMessage(\"Error\",data,R.drawable.ic_error_dialog);\n Toast.makeText(getApplicationContext(), \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n\n }", "@Override\n\t\tpublic void onCancelLogin() {\n\n\t\t}", "@Override\n\t\tpublic void onCancelLogin() {\n\n\t\t}", "protected boolean authenticate() {\n \tif (mConfig == null) {\n \t\tmConfig = getConfig();\n \t}\n \tString keys[] = getKeys();\n \tif (keys != null) {\n\t mConfig = api.authenticateToken(keys[0], keys[1], mConfig);\n\t if (mConfig != null) {\n\t return true;\n\t }\n \t}\n \tshowToast(\"Failed user authentication for stored login tokens.\");\n \tclearKeys();\n \tsetLoggedIn(false);\n \treturn false;\n }", "protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }", "public void handleTimeout();", "public JiraServiceSecurityTokenExpiredException() {\r\n }", "public int getTokenViaClientCredentials(){\n\t\t//Do we have credentials?\n\t\tif (Is.nullOrEmpty(clientId) || Is.nullOrEmpty(clientSecret)){\n\t\t\treturn 1;\n\t\t}\n\t\ttry{\n\t\t\t//Build auth. header entry\n\t\t\tString authString = \"Basic \" + Base64.getEncoder().encodeToString((clientId + \":\" + clientSecret).getBytes());\n\t\t\t\n\t\t\t//Request headers\n\t\t\tMap<String, String> headers = new HashMap<>();\n\t\t\theaders.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\t\t\theaders.put(\"Authorization\", authString);\n\t\t\t\n\t\t\t//Request data\n\t\t\tString data = ContentBuilder.postForm(\"grant_type\", \"client_credentials\");\n\t\t\t\n\t\t\t//Call\n\t\t\tlong tic = System.currentTimeMillis();\n\t\t\tthis.lastRefreshTry = tic;\n\t\t\tJSONObject res = Connectors.httpPOST(spotifyAuthUrl, data, headers);\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi getTokenViaClientCredentials\");\n\t\t\tStatistics.addExternalApiTime(\"SpotifyApi getTokenViaClientCredentials\", tic);\n\t\t\t//System.out.println(res.toJSONString()); \t\t//DEBUG\n\t\t\tif (!Connectors.httpSuccess(res)){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tString token = JSON.getString(res, \"access_token\");\n\t\t\tString tokenType = JSON.getString(res, \"token_type\");\n\t\t\tlong expiresIn = JSON.getLongOrDefault(res, \"expires_in\", 0);\n\t\t\tif (Is.nullOrEmpty(token)){\n\t\t\t\treturn 4;\n\t\t\t}else{\n\t\t\t\tthis.token = token;\n\t\t\t\tthis.tokenType = tokenType;\n\t\t\t\tthis.tokenValidUntil = System.currentTimeMillis() + (expiresIn * 1000);\n\t\t\t}\n\t\t\treturn 0;\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi-error getTokenViaClientCredentials\");\n\t\t\treturn 3;\n\t\t}\n\t}", "@Override\n protected void initiateAuthenticationRequest(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL()\n .replace(\"authenticationendpoint/login.do\", Token2Constants.LOGIN_PAGE);\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = Token2Constants.RETRY_PARAMS;\n }\n try {\n response.sendRedirect(loginPage + (\"?\" + queryParams) + \"&authenticators=\"\n + getName() + retryParam);\n } catch (IOException e) {\n throw new AuthenticationFailedException(\"Authentication failed!\", e);\n }\n }", "public void authenticate() {\n LOGGER.info(\"Authenticating user: {}\", this.name);\n WebSession result = null;\n try {\n result =\n getContext()\n .getAuthenticationMethod()\n .authenticate(\n getContext().getSessionManagementMethod(),\n this.authenticationCredentials,\n this);\n } catch (UnsupportedAuthenticationCredentialsException e) {\n LOGGER.error(\"User does not have the expected type of credentials:\", e);\n } catch (Exception e) {\n LOGGER.error(\"An error occurred while authenticating:\", e);\n return;\n }\n // no issues appear if a simultaneous call to #queueAuthentication() is made\n synchronized (this) {\n this.getAuthenticationState().setLastSuccessfulAuthTime(System.currentTimeMillis());\n this.authenticatedSession = result;\n }\n }", "public String generateNewAccessToken(String refresh_token) throws SocketTimeoutException, IOException, Exception{\n String newAccessToken = \"\";\n JSONObject jsonReturn = new JSONObject();\n JSONObject tokenRequestParams = new JSONObject();\n tokenRequestParams.element(\"refresh_token\", refresh_token);\n if(currentRefreshToken.equals(\"\")){\n //You must read in the properties first!\n Exception noProps = new Exception(\"You must read in the properties first with init(). There was no refresh token set.\");\n throw noProps;\n }\n else{\n try{\n URL rerum = new URL(Constant.RERUM_ACCESS_TOKEN_URL);\n HttpURLConnection connection = (HttpURLConnection) rerum.openConnection();\n connection.setRequestMethod(\"POST\"); \n connection.setConnectTimeout(5*1000); \n connection.setDoOutput(true);\n connection.setDoInput(true);\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.connect();\n DataOutputStream outStream = new DataOutputStream(connection.getOutputStream());\n //Pass in the user provided JSON for the body \n outStream.writeBytes(tokenRequestParams.toString());\n outStream.flush();\n outStream.close(); \n //Execute rerum server v1 request\n BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(),\"utf-8\"));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null){\n //Gather rerum server v1 response\n sb.append(line);\n }\n reader.close();\n jsonReturn = JSONObject.fromObject(sb.toString());\n newAccessToken = jsonReturn.getString(\"access_token\");\n }\n catch(java.net.SocketTimeoutException e){ //This specifically catches the timeout\n System.out.println(\"The Auth0 token endpoint is taking too long...\");\n jsonReturn = new JSONObject(); //We were never going to get a response, so return an empty object.\n jsonReturn.element(\"error\", \"The Auth0 endpoint took too long\");\n throw e;\n }\n }\n setAccessToken(newAccessToken);\n writeProperty(\"access_token\", newAccessToken);\n return newAccessToken;\n }", "@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }", "private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }", "interface Auth extends RconConnectionEvent, Cancellable {}", "void onAuthenticationError(Throwable throwable);", "public boolean accessTokenExpired() {\n Date currentTime = new Date();\n if ((currentTime.getTime() - lastAccessTime.getTime()) > TIMEOUT_PERIOD) {\n return true;\n } else {\n return false;\n }\n }", "public CouchDbAuthenticate(String url, String username, String password)\r\n {\r\n super();\r\n this.url = url + \"/_session\";\r\n this.username = username;\r\n this.password = password;\r\n this.sessionTimeout = TimeUnit.MINUTES.toMillis(10L);\r\n }", "public void customLoginTwitter() {\n //check if user is already authenticated or not\n if (getTwitterSession() == null) {\n\n //if user is not authenticated start authenticating\n client.authorize(this, new Callback<TwitterSession>() {\n @Override\n public void success(Result<TwitterSession> result) {\n\n // Do something with result, which provides a TwitterSession for making API calls\n TwitterSession twitterSession = result.data;\n fetchTwitterEmail(twitterSession);\n }\n\n @Override\n public void failure(TwitterException e) {\n // Do something on failure\n Toast.makeText(SignInActivity.this, \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n //if user is already authenticated direct call fetch twitter email api\n Toast.makeText(this, \"User already authenticated\", Toast.LENGTH_SHORT).show();\n// fetchTwitterEmail(getTwitterSession());\n }\n }", "private AuthenticationCallback getAuthInteractiveCallback() {\n return new AuthenticationCallback() {\n @Override\n public void onSuccess(AuthenticationResult authenticationResult) {\n activeDirectoryOnSignInSuccess(authenticationResult);\n }\n\n @Override\n public void onError(MsalException exception) {\n // Failed to acquireToken\n Log.d(TAG, \"Interactive authentication failed: \" + exception.toString());\n activeDirectoryOnSignInError(exception);\n }\n\n @Override\n public void onCancel() {\n activeDirectoryOnSignInCancel();\n }\n };\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "private void signInRequest() throws Exception {\n if (progressDialog != null) {\n progressDialog.setIndeterminate(true);\n progressDialog.setMessage(\"Authenticating...\");\n progressDialog.show();\n }\n String url = Constants.BASE_LOCAL__URL + \"signin/A\";\n JSONObject paramsJsonObj = new JSONObject();\n try {\n String android_id = Settings.Secure.getString(getApplicationContext().getContentResolver(), Settings.Secure.ANDROID_ID);\n Log.d(\"androidid\",android_id );\n paramsJsonObj.put(\"loginId\", _emailText.getText().toString());\n\n paramsJsonObj.put(\"password\", _passwordText.getText().toString());\n\n paramsJsonObj.put(\"androidId\", android_id);\n\n } catch (JSONException e) {\n e.printStackTrace();\n\n }\n Log.d(\"URL :- \", url);\n Log.d(\"paramsJsonObj :- \", paramsJsonObj.toString());\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest(Request.Method.POST, url, paramsJsonObj, this.createRequestSuccessListener(), this.createRequestErrorListener(System.currentTimeMillis()));\n jsonObjRequest.setRetryPolicy(new DefaultRetryPolicy(Constants.TIMEOUT_TIME,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n Log.d(\"No resul :- \", paramsJsonObj.toString());\n Volley.newRequestQueue(this).add(jsonObjRequest);\n // Adding request to request queue\n\n // Cancelling request\n// AppController.getInstance().getRequestQueue().cancelAll(TAG);\n }", "void stopAuthentication() {\n stop(false);\n }", "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "public static void timeSensitiveInit(Env env, AAF_Service authzAPI, AuthzFacade facade, final DirectAAFUserPass directAAFUserPass) throws Exception {\n /**\n * Basic Auth, quick Validation\n *\n * Responds OK or NotAuthorized\n */\n authzAPI.route(env, HttpMethods.GET, \"/authn/basicAuth\", new Code(facade,\"Is given BasicAuth valid?\",true) {\n @Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n\n Principal p = trans.getUserPrincipal();\n if (p instanceof BasicPrincipal) {\n // the idea is that if call is made with this credential, and it's a BasicPrincipal, it's ok\n // otherwise, it wouldn't have gotten here.\n resp.setStatus(HttpStatus.OK_200);\n } else if (p instanceof X509Principal) {\n // have to check Basic Auth here, because it might be CSP.\n String authz = req.getHeader(\"Authorization\");\n if (authz.startsWith(\"Basic \")) {\n BasicHttpTaf bht = ((X509Principal)p).getBasicHttpTaf();\n if (bht!=null) {\n BasicPrincipal bp = new BasicPrincipal(authz,\"\");\n CredVal cv = bht.getCredVal(bp.getDomain());\n if (cv!=null) {\n if (cv.validate(bp.getName(), Type.PASSWORD, bp.getCred(), null) ) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n resp.setStatus(HttpStatus.UNAUTHORIZED_401);\n }\n }\n } else {\n String decoded = Symm.base64noSplit.decode(authz.substring(6));\n int colon = decoded.indexOf(':');\n TimeTaken tt = trans.start(\"Direct Validation\", Env.REMOTE);\n try {\n if (directAAFUserPass.validate(\n decoded.substring(0,colon),\n CredVal.Type.PASSWORD ,\n decoded.substring(colon+1).getBytes(),trans)) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // DME2 at this version crashes without some sort of response\n resp.getOutputStream().print(\"\");\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n }\n } finally {\n tt.done();\n }\n }\n }\n } else if (p == null) {\n trans.error().log(\"Transaction not Authenticated... no Principal\");\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n } else {\n trans.checkpoint(\"Basic Auth Check Failed: This wasn't a Basic Auth Trans\");\n // For Auth Security questions, we don't give any info to client on why failed\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n }\n }\n },\"text/plain\",\"*/*\",\"*\");\n\n /**\n * returns whether a given Credential is valid\n */\n authzAPI.route(POST, \"/authn/validate\", API.CRED_REQ, new Code(facade,\"Is given Credential valid?\",true) {\n @Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n // will be a valid Entity. Do we need to add permission\n //if(trans.fish(\"ns\",\"password\",\"request\")) or the like\n Result<Date> r = context.doesCredentialMatch(trans, req, resp);\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n // Can't do \"401\", because that is on the call itself\n // 403 Implies you MAY NOT Ask.\n resp.setStatus(HttpStatus.NOT_ACCEPTABLE_406);\n }\n }\n });\n\n /**\n * returns whether a given Credential is valid\n */\n authzAPI.route(GET, \"/authn/cert/id/:id\", API.CERTS, new Code(facade,\"Get Cert Info by ID\",true) {\n @Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n\n Result<Void> r = context.getCertInfoByID(trans, req, resp, pathParam(req,\":id\") );\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n resp.setStatus(HttpStatus.FORBIDDEN_403);\n }\n }\n });\n\n\n\n\n }", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "public boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\n\tprotected void sync() {\n\n\t\tString key = null;\n\t\ttry {\n\t\t\tkey = DeviceKeyUtils.getDeviceKey(mContext);\n\t\t} catch (RuntimeException e) {\n\t\t\tUtil.logException(e);\n\t\t\tdoneSyncing();\n\t\t}\n\n\t\t/*\n\t\t * We don't really care about the response... we're not going to retry\n\t\t * if the login fails, since it's really only for tracking usage data.\n\t\t */\n\t\tResponse response = mApiService.login(key);\n\n\t\tdoneSyncing();\n\t}" ]
[ "0.5957977", "0.59431934", "0.5921656", "0.5810938", "0.5770081", "0.5770081", "0.5770081", "0.57637167", "0.5704793", "0.56458956", "0.5635232", "0.56253755", "0.56243736", "0.56220835", "0.55941945", "0.5577058", "0.5569377", "0.5553128", "0.5531341", "0.5495715", "0.54950726", "0.5461033", "0.5446486", "0.54403746", "0.5400028", "0.53952074", "0.53702325", "0.53702325", "0.5364652", "0.5364652", "0.5364652", "0.5332262", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.5327325", "0.52584654", "0.5251618", "0.5243368", "0.523128", "0.5230542", "0.5228212", "0.5206427", "0.519745", "0.51867247", "0.51672935", "0.5162511", "0.5156177", "0.5156177", "0.51104105", "0.5102813", "0.5097697", "0.5092572", "0.507911", "0.5046862", "0.5044633", "0.5043696", "0.5042739", "0.5039242", "0.50261664", "0.5016117", "0.5003985", "0.5002419", "0.5002419", "0.50013196", "0.49985296", "0.49897525", "0.4987117", "0.49870968", "0.49870548", "0.49866682", "0.49834746", "0.49799353", "0.49787268", "0.49754888", "0.497519", "0.49747944", "0.49717987", "0.49699175", "0.49561197", "0.49483258", "0.49467185", "0.4943351", "0.4937827", "0.49351308", "0.49195838", "0.49195838", "0.49157757", "0.4914301" ]
0.554089
18
Creates a okHttp client to connect with.
private OkHttpClient Create() { final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder() .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS) .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS) .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS); // If there's no proxy just create a normal client if (appProps.getProxyHost().isEmpty()) { return baseClient.build(); } final OkHttpClient.Builder proxyClient = baseClient .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort())))); if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) { Authenticator proxyAuthenticator; String credentials; credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword()); // authenticate the proxy proxyAuthenticator = (route, response) -> response.request().newBuilder() .header("Proxy-Authorization", credentials) .build(); proxyClient.proxyAuthenticator(proxyAuthenticator); } return proxyClient.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "public OkHttpClient okHttpClient ()\n {\n OkHttpClient okHttpClient = new OkHttpClient().newBuilder()\n .connectTimeout(60, TimeUnit.SECONDS)\n .readTimeout(60, TimeUnit.SECONDS)\n .writeTimeout(60, TimeUnit.SECONDS)\n .build();\n return okHttpClient;\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "private CloseableHttpAsyncClient createHttpClient() {\n RequestConfig.Builder requestConfigBuilder = RequestConfig.custom()\n .setConnectTimeout(Timeout.ofMilliseconds(DEFAULT_CONNECT_TIMEOUT_MILLIS))\n .setResponseTimeout(Timeout.ofMilliseconds(DEFAULT_RESPONSE_TIMEOUT_MILLIS));\n if (requestConfigCallback != null) {\n requestConfigBuilder = requestConfigCallback.customizeRequestConfig(requestConfigBuilder);\n }\n\n try {\n final TlsStrategy tlsStrategy = ClientTlsStrategyBuilder.create()\n .setSslContext(SSLContext.getDefault())\n // See https://issues.apache.org/jira/browse/HTTPCLIENT-2219\n .setTlsDetailsFactory(new Factory<SSLEngine, TlsDetails>() {\n @Override\n public TlsDetails create(final SSLEngine sslEngine) {\n return new TlsDetails(sslEngine.getSession(), sslEngine.getApplicationProtocol());\n }\n })\n .build();\n\n final PoolingAsyncClientConnectionManager connectionManager = PoolingAsyncClientConnectionManagerBuilder.create()\n .setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE)\n .setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL)\n .setTlsStrategy(tlsStrategy)\n .build();\n\n HttpAsyncClientBuilder httpClientBuilder = HttpAsyncClientBuilder.create()\n .setDefaultRequestConfig(requestConfigBuilder.build())\n .setConnectionManager(connectionManager)\n .setTargetAuthenticationStrategy(DefaultAuthenticationStrategy.INSTANCE)\n .disableAutomaticRetries();\n if (httpClientConfigCallback != null) {\n httpClientBuilder = httpClientConfigCallback.customizeHttpClient(httpClientBuilder);\n }\n\n final HttpAsyncClientBuilder finalBuilder = httpClientBuilder;\n return AccessController.doPrivileged((PrivilegedAction<CloseableHttpAsyncClient>) finalBuilder::build);\n } catch (NoSuchAlgorithmException e) {\n throw new IllegalStateException(\"could not create the default ssl context\", e);\n }\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "public static OkHttpClient getOkHttpClient() {\n return OK_HTTP_CLIENT;\n }", "@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n OkHttpClient client = new OkHttpClient();\n return client;\n }", "private static OkHttpClient getHttpClient(long timeout) {\n\n return new OkHttpClient\n .Builder()\n .connectTimeout(timeout, TimeUnit.SECONDS)\n .writeTimeout(10, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "public static Object httpClient() {\n return new Object();\n// return HttpClient.newBuilder()\n// .version(HttpClient.Version.HTTP_1_1)\n// .followRedirects(HttpClient.Redirect.NORMAL)\n// .connectTimeout(Duration.ofSeconds(300))\n// .build();\n }", "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);\n //It helps to handle cookies\n config.property(ClientProperties.FOLLOW_REDIRECTS, Boolean.FALSE);\n //Allow PATCH\n config.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);\n\n Logger logger = Logger.getLogger(\"Client\");\n Feature feature = new LoggingFeature(logger, Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY,\n null);\n\n //Allow self trusted certificates\n SSLContext sslcontext;\n try {\n sslcontext = SSLContext.getInstance(\"TLS\");\n sslcontext.init(null, new TrustManager[]{new X509TrustManager() {\n public void checkClientTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public void checkServerTrusted(X509Certificate[] arg0, String arg1) {\n }\n\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[0];\n }\n }}, new java.security.SecureRandom());\n } catch (KeyManagementException | NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n\n return ClientBuilder\n .newBuilder()\n .withConfig(config)\n .sslContext(sslcontext)\n .build()\n .register(feature)\n .register(MultiPartFeature.class);\n }", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public TankOkHttpClient() {\n try {\n\n final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {}\n\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {}\n } };\n\n // Setup SSL to accept all certs\n final SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustAllCerts, null);\n sslSocketFactory = sslContext.getSocketFactory();\n\n // Setup Cookie manager\n cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);\n CookieHandler.setDefault(cookieManager);\n okHttpClient.setCookieHandler(cookieManager);\n\n okHttpClient.setConnectTimeout(30000, TimeUnit.MILLISECONDS);\n okHttpClient.setReadTimeout(30000, TimeUnit.MILLISECONDS); // Socket-timeout\n okHttpClient.setFollowRedirects(true);\n okHttpClient.setFollowSslRedirects(true);\n\n okHttpClient.setSslSocketFactory(sslSocketFactory);\n okHttpClient.setHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n\n } catch (Exception e) {\n LOG.error(\"Error setting accept all: \" + e, e);\n }\n }", "public static Client create() {\n ClientConfig clientConfig = new ClientConfig(JacksonFeature.class,\n JacksonJaxbJsonProvider.class,\n JacksonJsonProvider.class);\n return ClientBuilder.newClient(clientConfig);\n }", "private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider credentialsProvider\n = new XCapCredentialsProvider();\n credentialsProvider.setCredentials(\n AuthScope.ANY,\n new UsernamePasswordCredentials(getUserName(), password));\n\n return HttpUtils.getHttpClient(\n null , null, uri.getHost(), credentialsProvider);\n }", "protected HttpClient getClient() {\n if (client == null) {\n synchronized (this) {\n if (client == null) {\n client = new DefaultHttpClient(conman, params);\n }\n }\n }\n\n return client;\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "public DefaultHttpClientImpl() {\n SchemeRegistry schemeRegistry = new SchemeRegistry();\n schemeRegistry.register(new Scheme(\n \"http\", PlainSocketFactory.getSocketFactory(), 80));\n\n schemeRegistry.register(new Scheme(\n \"https\", SSLSocketFactory.getSocketFactory(), 443));\n conman = new ThreadSafeClientConnManager(params, schemeRegistry);\n }", "private static void createCouchbaseClient() {\n LOGGER.debug(\"Creating Couchbase Client\");\n String bucket = CONFIG.getString(\"couchbase.bucket\");\n String[] hosts = CONFIG.getString(\"couchbase.host\").split(\";\");\n String port = CONFIG.getString(\"couchbase.port\");\n String base = CONFIG.getString(\"couchbase.base\");\n\n List<URI> uris = new ArrayList<>();\n for (final String host : hosts) {\n uris.add(URI.create(\"http://\" + host + \":\" + port + \"/\" + base));\n }\n try {\n tapClient = new TapClient(uris, bucket, \"\");\n } catch (Exception ex) {\n LOGGER.error(\"Caught exception trying to connect to Couchbase\", ex);\n }\n }", "public static KscHttpClient newInstance(String userAgent,\n boolean keepAlive, boolean requestSentRetryEnabled) {\n HttpParams params = getHttpParams(userAgent);\n\n SchemeRegistry schemeRegistry = new SchemeRegistry();\n schemeRegistry.register(new Scheme(\"http\", PlainSocketFactory\n .getSocketFactory(), 80));\n // schemeRegistry.register(new Scheme(\"https\", SSLSocketFactory\n // .getSocketFactory(), 443));\n schemeRegistry.register(ignoreAllCertificate());\n\n ClientConnectionManager manager = new ThreadSafeClientConnManager(\n params, schemeRegistry);\n\n // We use a factory method to modify superclass initialization\n // parameters without the funny call-a-static-method dance.\n return new KscHttpClient(manager, params, keepAlive,\n requestSentRetryEnabled);\n }", "@Provides\n @Singleton\n public OkHttpClient providesOkHttpClient() {\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder httpClient = new OkHttpClient.Builder();\n httpClient.addInterceptor(interceptor);\n\n return httpClient.build();\n\n }", "@Override\n public OkHttpClient customMake() {\n // just for OkHttpClient customize.\n final OkHttpClient.Builder builder = new OkHttpClient.Builder();\n // you can set the connection timeout.\n builder.connectTimeout(15_000, TimeUnit.MILLISECONDS);\n // you can set the HTTP proxy.\n builder.proxy(Proxy.NO_PROXY);\n // etc.\n return builder.build();\n }", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "private static HttpClient getNewHttpClient(){\n HttpParams params = new BasicHttpParams();\n return new DefaultHttpClient(params);\n }", "Client getClient();", "public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }", "@Before\n public void buildClient() {\n BasicCookieStore cookieStore = new BasicCookieStore();\n\n // Build Apache Http Client to execute requests\n this.httpClient = HttpClientBuilder.create()\n .setDefaultCookieStore(cookieStore)\n .setRedirectStrategy(new LaxRedirectStrategy())\n .build();\n }", "public static final DefaultHttpClient createHttpClient(int retryCount) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 15 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public static JSONRPCClient create(String uri)\r\n\t{\r\n\t\treturn new JSONRPCHttpClient(uri);\r\n\t}", "@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n final HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder()\n .addInterceptor(loggingInterceptor);\n\n return clientBuilder.build();\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "public okhttp3.OkHttpClient getHttpClientInstance() {\r\n return configuration.getHttpClientInstance();\r\n }", "public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }", "private void createClient() {\n tc = new TestClient();\n }", "public NetboxHttpClient(NetboxProperties properties) {\n this(properties.getHost(), properties.getApiKey());\n }", "static Http2ClientBuilder builder() {\n return new Http2ClientBuilder();\n }", "public DefaultHttpRequestBuilder (final DefaultHttpClient client) {\r\n\t\tif (client == null) {\r\n\t\t\tthrow new NullPointerException (\"client cannot be null\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.client = client;\r\n\t}", "public static final DefaultHttpClient createHttpClient(int retryCount,\n\t\t\tint timeout) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, timeout);\n\t\tHttpConnectionParams.setSoTimeout(params, timeout);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, timeout);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\t// httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\t// httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "protected RestClient()\n\t{\n\t\tclient = new HttpClient();\n\t\tclient.setIdleTimeout(3000000);\n\t\t// for possible future use:\n\t\t//exchange_get = new ContentExchange()\n\t\t{\n\t\t\t// define the callback method to process the response when you get it back\n\t\t\t// protected void onResponseComplete() throws IOException\n\t\t\t// {\n\t\t\t// super.onResponseComplete();\n\t\t\t// int responseStatus = this.getStatus();\n\n\t\t\t// do something with the response content\n\t\t\t//System.out.println(\"Response status: \" + responseStatus);\n\t\t\t//System.out.println(this.getResponseContent());\n\t\t\t//\t }\n\t\t};\n\t}", "@Bean(destroyMethod = \"close\", name = \"restClient\")\n public RestHighLevelClient initRestClient() {\n List<HttpHost> hosts = new ArrayList<>();\n String[] hostArrays = host.split(\",\");\n for (String host : hostArrays) {\n if (StringUtils.isNotEmpty(host)) {\n hosts.add(new HttpHost(host.trim(), port, \"http\"));\n }\n }\n\n RestClientBuilder restClientBuilder = RestClient.builder(hosts.toArray(new HttpHost[0]));\n\n // configurable auth\n if (authEnable) {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n restClientBuilder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder\n .setDefaultCredentialsProvider(credentialsProvider));\n }\n\n restClientBuilder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder\n .setConnectTimeout(connTimeout).setSocketTimeout(socketTimeout)\n .setConnectionRequestTimeout(connectionRequestTimeout));\n\n return new RestHighLevelClient(restClientBuilder);\n }", "@Test\n public void testClient() {\n try {\n MockWebServer server = new MockWebServer();\n server.enqueue(new MockResponse().setBody(\"hello, world!\"));\n server.start();\n HttpUrl baseUrl = server.url(\"\");\n ConnectionOptions opt = new ConnectionOptions(\"apikey\");\n opt.setHost(baseUrl.toString());\n ApiClientWrapper clientWrapper = new ApiClientWrapper(opt);\n TestApiService testService = clientWrapper.createService(TestApiService.class);\n assertTrue(testService.getEndpointValue().execute().isSuccessful());\n RecordedRequest request = server.takeRequest();\n assertEquals(\"/\" + AN_ENDPOINT_PATH, request.getPath());\n assertNotNull(request.getHeader(\"Authorization\"));\n assertTrue(request.getHeader(\"Authorization\").contains(\"Bearer\"));\n assertNotNull(request.getHeader(\"User-Agent\"));\n assertTrue(request.getHeader(\"User-Agent\").contains(ApiClientWrapper.UserAgent.MBED_CLOUD_SDK_IDENTIFIER));\n server.shutdown();\n } catch (IOException | InterruptedException e) {\n fail(e.getMessage());\n }\n }", "private DefaultHttpClient createHttpsClient() throws HttpException {\n DefaultHttpClient client = new DefaultHttpClient();\n SSLContext ctx = null;\n X509TrustManager tm = new TrustAnyTrustManager();\n try {\n ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(null, new TrustManager[] { tm }, null);\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n throw new HttpException(\"Can't create a Trust Manager.\", e);\n }\n SSLSocketFactory ssf = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n client.getConnectionManager().getSchemeRegistry().register(new Scheme(\"https\", 443, ssf));\n return client;\n }", "public HttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn new ApacheHttpClient(this.configuration, httpClient);\n\t}", "public interface HttpClientFactory {\n CloseableHttpClient newHttpClient();\n}", "static Retrofit getClient(String baseUrl) {\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(baseUrl)\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }\n return retrofit;\n }", "private static OkHttpClient m35241c() {\n return new OkHttpClient();\n }", "private CloseableHttpClient getHttpClient() {\n return HttpClients.custom()\n .setConnectionManager(httpClientConnectionManager)\n .setConnectionManagerShared(true)\n .build();\n }", "private HttpClient() {\n\t}", "public static Retrofit getClient() {\n if (retrofit == null){ // Nos aseguramos que no se haya creado un objeto retrofit\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n retrofit = new Retrofit.Builder() // Inicializamos el objeto Retrofit\n .baseUrl(BASE_URL) // Indicamos a cual sitio se estará conectando\n .addConverterFactory(GsonConverterFactory.create(gson)) // Indicamos cual será nuestro serializador y deserializador de objetos (JSON)\n .build(); // Construimos el objeto\n Log.w(\"Retrofit\",\"Retrofit Start\");\n }\n return retrofit;\n }", "public static Books setUpClient() {\n return new Books.Builder(AndroidHttp.newCompatibleTransport()\n , jsonFactory, null)\n .setApplicationName(APPLICATION_NAME)\n .setGoogleClientRequestInitializer(new BooksRequestInitializer(APIKEY))\n .build();\n }", "public static HttpClient getHttpClient() {\n HttpClient httpClient = new DefaultHttpClient();\n final HttpParams params = httpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params,\n HTTP_REQUEST_TIMEOUT_MS);\n HttpConnectionParams.setSoTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n ConnManagerParams.setTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n return httpClient;\n }", "public OkHttpDownloader(OkHttpClient client) {\n this.client = client;\n }", "public static Retrofit getClient() {\n if (retrofit==null) {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n // set your desired log level\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n final OkHttpClient okHttpClient = new OkHttpClient.Builder()\n .readTimeout(120, TimeUnit.SECONDS)\n .connectTimeout(120, TimeUnit.SECONDS)\n .addInterceptor(logging)\n .build();\n\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }\n return retrofit;\n }", "@NonNull\n public static OkHttpClient provideOkHttpClient(Application app) {\n File cacheDir = new File(app.getCacheDir(), \"http\");\n Cache cache = new Cache(cacheDir, DISK_CACHE_SIZE);\n\n OkHttpClient.Builder okHttpClient = new OkHttpClient.Builder()\n .cache(cache);\n\n if (BuildConfig.DEBUG) {\n okHttpClient.addInterceptor(provideHttpLoggingInterceptor());\n }\n return okHttpClient.build();\n }", "RestClientBuilder(){\n\n }", "public CloseableHttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn httpClient;\n\t}", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public static IOSClientBuilder.V3 builderV3() {\n return new OSClientBuilder.ClientV3();\n }", "public static Retrofit getClient(final Context context) {\n //setup cache\n OkHttpClient okHttpClient = createCachedClient(context);\n retrofit = new Retrofit.Builder()\n .client(okHttpClient)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n return retrofit;\n }", "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n String key = MessageFormat.format(\"{0}#{1}\", UserUtil.getUserUuid(), UserUtil.getUserId());\n\n //postDefaultHeaders.put(\"X-CLIENT-KEY\", key);\n defaultHeaders.put(\"X-CLIENT-KEY\", key);\n client.setTimeout(3000);\n }", "public OrigoApiClient(final URL apiUrl) {\r\n\t\tclient = new XmlRpcClient();\r\n\t\tXmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();\r\n\t\tconfig.setServerURL(apiUrl);\r\n\t\tclient.setConfig(config);\r\n\t}", "public UPKClient() {\n connectToServer(BASE_URL);\n }", "public HttpClientWrapper(String url, String user, String pwd, String proxyDns, int proxyPort) {\n this.url = url;\n if ( user == null && pwd == null ) {\n this.creds = null;\n } else if ( user != null && pwd != null ) {\n this.creds = new UsernamePasswordCredentials(user, pwd);\n } else {\n throw new DBCException(\"user / pwd either both null or both not null: \" + user + \" - \" + pwd);\n }\n if ( (proxyDns == null && proxyPort == 0) || (proxyDns != null && proxyPort > 0) ) {\n // ok\n } else {\n throw new DBCException(\"proxyDns / proxyPort either both null/0 or both not null/>0: \" + proxyDns + \" - \" + proxyPort);\n }\n\n this.requestConfig = RequestConfig.custom().setConnectionRequestTimeout(5000).build();\n\n SSLContext sslContext = buildSSLContext();\n SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext, new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n LOG.info(\"accepting SSLConnection for host: {}, port: {}\", session.getPeerHost(), session.getPeerPort());\n return true;\n }\n });\n\n ConnectionConfig connectionConfig = ConnectionConfig.custom().setCharset(Charset.forName(UTF_8)).build();\n PlainConnectionSocketFactory plainSF = PlainConnectionSocketFactory.getSocketFactory();\n\n RegistryBuilder<ConnectionSocketFactory> regBuilder = RegistryBuilder.<ConnectionSocketFactory> create();\n Registry<ConnectionSocketFactory> registry = regBuilder.register(\"http\", plainSF).register(\"https\", sslsf).build();\n\n PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(registry);\n connectionManager.setMaxTotal(200);\n connectionManager.setDefaultMaxPerRoute(100);\n connectionManager.setValidateAfterInactivity(10000); // good value for the check interval?\n connectionManager.setDefaultConnectionConfig(connectionConfig);\n\n HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();\n httpClientBuilder.setConnectionManager(connectionManager);\n\n if ( proxyDns != null ) {\n // add one step proxy support\n HttpHost proxy = new HttpHost(proxyDns, proxyPort);\n DefaultProxyRoutePlanner routePlanner = new DefaultProxyRoutePlanner(proxy);\n httpClientBuilder.setRoutePlanner(routePlanner);\n }\n\n this.client = httpClientBuilder.build();\n this.idleConnectionMonitorThread = new IdleConnectionMonitorThread(connectionManager);\n new Thread(null, this.idleConnectionMonitorThread, \"IdleConn\").start();\n }", "public Builder httpClientInstance(okhttp3.OkHttpClient httpClientInstance) {\r\n configurationBuilder.httpClientInstance(httpClientInstance);\r\n return this;\r\n }", "ConnectionClientTransport newClientTransport(SocketAddress serverAddress, String authority,\n @Nullable String userAgent, @Nullable ProxyParameters proxy);", "public DefaultClient(ApiKey apiKey, String baseUrl, Proxy proxy, AuthenticationScheme authenticationScheme, int connectionTimeout) {\n Assert.notNull(apiKey, \"apiKey argument cannot be null.\");\n Assert.isTrue(connectionTimeout >= 0, \"connectionTimeout cannot be a negative number.\");\n RequestExecutor requestExecutor = createRequestExecutor(apiKey, proxy, authenticationScheme, connectionTimeout);\n this.dataStore = createDataStore(requestExecutor, baseUrl, apiKey);\n }", "@Bean(destroyMethod = \"close\")\n public RestHighLevelClient client() {\n final CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(esUser, esPassword));\n\n RestClientBuilder builder = RestClient.builder(new HttpHost(esHost, esPort, \"https\"))\n .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider));\n\n return new RestHighLevelClient(builder);\n }", "public Client() {}", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "Client createNewClient(Client client);", "ApacheHttpClientBuilder getApacheHttpClientBuilder();", "private HttpClient prepareHttpClient() {\n\t\tHttpClientParams htcParams = new HttpClientParams();\n\t\tmHttpClient = new HttpClient();\n\t\thtcParams.setConnectionManagerTimeout(300000);\n\t\thtcParams.setSoTimeout(300000);\n\t\tmHttpClient.setParams(htcParams);\n\t\treturn mHttpClient;\n\t}", "public abstract Client getClient();", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "public static KubernetesClient k8sClient(KubevirtApiConfig config) {\n if (config == null) {\n log.warn(\"Kubernetes API server config is empty.\");\n return null;\n }\n\n String endpoint = endpoint(config);\n\n ConfigBuilder configBuilder = new ConfigBuilder().withMasterUrl(endpoint);\n\n if (config.scheme() == KubevirtApiConfig.Scheme.HTTPS) {\n configBuilder.withTrustCerts(true)\n .withCaCertData(config.caCertData())\n .withClientCertData(config.clientCertData())\n .withClientKeyData(config.clientKeyData());\n }\n\n return new DefaultKubernetesClient(configBuilder.build());\n }", "protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}", "private static HttpClient getHttpClient() {\n if (mHttpClient == null) {\n mHttpClient = new DefaultHttpClient();\n final HttpParams params = mHttpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params, HTTP_TIMEOUT);\n HttpConnectionParams.setSoTimeout(params, HTTP_TIMEOUT);\n ConnManagerParams.setTimeout(params, HTTP_TIMEOUT);\n }\n return mHttpClient;\n }", "public void initOkGo() throws IOException {\r\n mSPCookieStore = new SPCookieStore(this);\r\n HttpHeaders headers = new HttpHeaders();\r\n if (new SPCookieStore(this).getAllCookie().size() != 0) {\r\n headers.put(\r\n \"Set-Cookie\",\r\n String.valueOf(mSPCookieStore.getCookie(HttpUrl.parse(BaseUrl.HTTP_Get_code_auth))));\r\n }\r\n headers.put(\"version\", \"3.0\");\r\n headers.put(\"uid\", \"6f1a8e0eb24afb7ddc829f96f9f74e9d\");\r\n\r\n OkHttpClient.Builder builder = new OkHttpClient.Builder();\r\n // log相关\r\n HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(\"OkHttp\");\r\n loggingInterceptor.setPrintLevel(HttpLoggingInterceptor.Level.BODY); // log打印级别,决定了log显示的详细程度\r\n loggingInterceptor.setColorLevel(Level.INFO); // log颜色级别,决定了log在控制台显示的颜色\r\n builder.addInterceptor(loggingInterceptor); // 添加OkGo默认debug日志\r\n // 超时时间设置\r\n builder.readTimeout(10000, TimeUnit.MILLISECONDS); // 全局的读取超时时间\r\n builder.writeTimeout(10000, TimeUnit.MILLISECONDS); // 全局的写入超时时间\r\n builder.connectTimeout(10000, TimeUnit.MILLISECONDS); // 全局的连接超时时间\r\n builder.cookieJar(new CookieJarImpl(mSPCookieStore)); // 使用sp保持cookie,如果cookie不过期,则一直有效\r\n\r\n HttpsUtils.SSLParams sslParams = HttpsUtils.getSslSocketFactory(getAssets().open(\"server.cer\"));\r\n builder.sslSocketFactory(sslParams.sSLSocketFactory, sslParams.trustManager);\r\n // //配置https的域名匹配规则,使用不当会导致https握手失败\r\n builder.hostnameVerifier(HttpsUtils.UnSafeHostnameVerifier);\r\n\r\n // 其他统一的配置\r\n OkGo.getInstance()\r\n .init(this.getApplication()) // 必须调用初始化\r\n .setOkHttpClient(builder.build()) // 必须设置OkHttpClient\r\n .setCacheMode(CacheMode.NO_CACHE) // 全局统一缓存模式,默认不使用缓存,可以不传\r\n .setCacheTime(CacheEntity.CACHE_NEVER_EXPIRE) // 全局统一缓存时间,默认永不过期,可以不传\r\n .setRetryCount(3) // 全局统一超时重连次数,默认为三次,那么最差的情况会请求4次(一次原始请求,三次重连请求),不需要可以设置为0\r\n .addCommonHeaders(headers); // 全局公共头\r\n }", "@Override\n public HelixZkClient buildZkClient(HelixZkClient.ZkConnectionConfig connectionConfig,\n HelixZkClient.ZkClientConfig clientConfig) {\n return new ZkClient(createZkConnection(connectionConfig),\n (int) clientConfig.getConnectInitTimeout(), clientConfig.getOperationRetryTimeout(),\n clientConfig.getZkSerializer(), clientConfig.getMonitorType(), clientConfig.getMonitorKey(),\n clientConfig.getMonitorInstanceName(), clientConfig.isMonitorRootPathOnly());\n }", "BuildClient createBuildClient();", "private void buildApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addApi(Awareness.API)\n .addConnectionCallbacks(this)\n .build();\n mGoogleApiClient.connect();\n }", "public HttpClient(String host, int port)\n\t{\n\t\tsuper(host, port);\n\t\tclient = new org.apache.commons.httpclient.HttpClient();\n\t}", "static Http1ClientConfig.Builder builder() {\n return Http1ClientConfig.builder();\n }", "public void createClient() {\n FarmersBaseClient client = new FarmBeatsClientBuilder()\n .endpoint(\"https://<farmbeats resource name>.farmbeats-dogfood.azure.net\")\n .credential(new DefaultAzureCredentialBuilder().build())\n .buildFarmersBaseClient();\n }", "public static IOSClientBuilder.V2 builderV2() {\n return new OSClientBuilder.ClientV2();\n }", "private static OkHttpClient initializeRetrofitClients() {\n OkHttpClient.Builder okHttpBuilder = new OkHttpClient().newBuilder();\n okHttpBuilder.interceptors().add(new Interceptor() {\n @Override\n public okhttp3.Response intercept(@NonNull Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n // Nothing to add to intercepted request if:\n // a) Authorization value is empty because user is not logged in yet\n // b) There is already a header with updated Authorization value\n if (authorizationTokenIsEmpty() || alreadyHasAuthorizationHeader(originalRequest)) {\n return chain.proceed(originalRequest);\n }\n\n // Add authorization header with updated authorization value to intercepted request\n Request authorisedRequest = originalRequest.newBuilder()\n .header(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n return chain.proceed(authorisedRequest);\n }\n });\n okHttpBuilder.authenticator(new Authenticator() {\n @Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n // Refresh your access_token using a synchronous api request\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }\n });\n\n try {\n // Create a trust manager that does not validate certificate chains\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n final SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n okHttpBuilder.sslSocketFactory(sslSocketFactory);\n okHttpBuilder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n\n return okHttpBuilder.build();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public YelpFusionApi initClient() {\n try {\n YelpFusionApiFactory yelpBuild = new YelpFusionApiFactory();\n YelpFusionApi yelpClient = yelpBuild.createAPI(CONFIG.yelpClientID, CONFIG.yelpSecret);\n return yelpClient;\n }\n catch(IOException e) {\n Log.v(\"yelpClient\", e.getStackTrace().toString());\n return null;\n }\n }", "public static Builder newHttpJsonBuilder() {\n return Builder.createHttpJsonDefault();\n }", "protected MqttAsyncClient getClient() {\n return client;\n }", "private static twitter4j.Twitter createClient() {\n \t\ttwitter4j.Twitter client = TwitterFactory.getSingleton();\n \t\tclient.setOAuthConsumer(consumerKey, consumerSecret);\n \t\treturn client;\n \t}", "public ArkFolioClientFactory(HttpClient client) {\n\t\tthis.client = client;\n\t}", "public static OSClientV2 clientFromAccess(Access access) {\n return OSClientSessionV2.createSession(access);\n }", "public static final DefaultHttpClient createHttpClient(String proxyUri,\n\t\t\tint port) {\n\t\t// Shamelessly cribbed from AndroidHttpClient\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpHost host = new HttpHost(proxyUri, port);\n\t\tparams.setParameter(ConnRouteParams.DEFAULT_PROXY, host);\n\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 10 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\t3, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public void createClientFromCredential() {\n WebPubSubServiceAsyncClient serverClient = new WebPubSubServiceClientBuilder()\n .connectionString(\"<connection-string>\")\n .hub(\"<hub>>\")\n .buildAsyncClient();\n\n // wrap WebPubSubServiceAsyncClient.getClientAccessToken as WebPubSubClientCredential\n WebPubSubClientCredential clientCredential = new WebPubSubClientCredential(Mono.defer(() ->\n serverClient.getClientAccessToken(new GetClientAccessTokenOptions()\n .setUserId(\"<user-name>\")\n .addRole(\"webpubsub.joinLeaveGroup\")\n .addRole(\"webpubsub.sendToGroup\"))\n .map(WebPubSubClientAccessToken::getUrl)));\n\n // create WebPubSub client\n WebPubSubClient client = new WebPubSubClientBuilder()\n .credential(clientCredential)\n .buildClient();\n // END: readme-sample-createClientFromCredential\n }", "private static WebClient getClient(final Context context) {\n if (sInstance == null) {\n sInstance = new WebClient(context);\n }\n return sInstance;\n }", "public Client() {\n }", "public static ApiClient getDefaultApiClient() {\n return defaultApiClient;\n }", "public UserApiClient(String username, String password)\r\n {\r\n client = HttpClientFactory.getUserClient();\r\n configureClient(username, password);\r\n }" ]
[ "0.75693256", "0.71367306", "0.70405763", "0.7028086", "0.6802701", "0.67185616", "0.66654813", "0.6617919", "0.65194494", "0.65022343", "0.64216995", "0.64101994", "0.64082825", "0.63741016", "0.6359769", "0.629671", "0.6293052", "0.62072325", "0.6173505", "0.6111774", "0.60988665", "0.6088838", "0.6057266", "0.60551965", "0.6055139", "0.6039458", "0.6002638", "0.599807", "0.5992958", "0.5975451", "0.5968235", "0.59553295", "0.59187615", "0.5915191", "0.5821751", "0.58190674", "0.5784868", "0.5772275", "0.57592905", "0.57485664", "0.5721793", "0.5719896", "0.5695276", "0.5690977", "0.5659958", "0.5657259", "0.564994", "0.5645307", "0.564471", "0.56379384", "0.5634624", "0.5631795", "0.5618017", "0.5617918", "0.5594088", "0.5589996", "0.5577262", "0.55742496", "0.5570637", "0.5568001", "0.5562843", "0.55159444", "0.55070794", "0.54703575", "0.5449666", "0.5438879", "0.5438027", "0.5419889", "0.53968096", "0.5364794", "0.5358328", "0.53572965", "0.5352345", "0.53188235", "0.5318047", "0.5311627", "0.53112674", "0.53094894", "0.5305133", "0.5300956", "0.52984744", "0.5294664", "0.52886504", "0.5286429", "0.5285842", "0.52821153", "0.52801436", "0.5277302", "0.5261057", "0.5253908", "0.5250961", "0.52471703", "0.5242415", "0.5240889", "0.523895", "0.5230927", "0.5230725", "0.5228115", "0.52196616", "0.52129686" ]
0.7360327
1
Charger le pilote JDBC d'Oracle
public static void main (String args []) throws SQLException, ClassNotFoundException, java.io.IOException { Class.forName ("oracle.jdbc.driver.OracleDriver"); // Connexion à une BD Connection uneConnection = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:ora9i", "godin", "oracle"); /* PreparedStatement unEnoncéSQL = uneConnection.prepareStatement ("DROP TABLE LeTemps"); int n = unEnoncéSQL.executeUpdate(); */ PreparedStatement unEnoncéSQL = uneConnection.prepareStatement ("CREATE TABLE LeTemps(id NUMBER, laDate DATE, lHeure DATE, laDateEtHeure DATE)"); int n = unEnoncéSQL.executeUpdate(); unEnoncéSQL = uneConnection.prepareStatement ("INSERT INTO LeTemps(id,laDate,lHeure,laDateEtHeure) VALUES(?,?,?,?)"); unEnoncéSQL.setInt(1,1); Calendar maintenant = Calendar.getInstance(); // crée un calendrier grégorien avec date actuelle // Traitement de la date (sans l'heure) // Calendar.getTime() retourne un java.util.Date // java.util.Date.getTime() retourne le temps en long java.sql.Date laDate = new java.sql.Date(maintenant.getTime().getTime()); unEnoncéSQL.setDate(2,laDate); // Traitement de l'heure (sans la date) java.sql.Time leTime = new java.sql.Time(maintenant.getTime().getTime()); unEnoncéSQL.setTime(3,leTime); // Date + heure java.sql.Timestamp leTimestamp = new java.sql.Timestamp(maintenant.getTime().getTime()); unEnoncéSQL.setTimestamp(4,leTimestamp); n = unEnoncéSQL.executeUpdate(); unEnoncéSQL = uneConnection.prepareStatement ("SELECT id,laDate,lHeure,laDateEtHeure FROM LeTemps" ); ResultSet résultatSelect = unEnoncéSQL.executeQuery(); while (résultatSelect.next ()){ int leId = résultatSelect.getInt("id"); laDate = résultatSelect.getDate("laDate"); leTime = résultatSelect.getTime("lHeure"); leTimestamp = résultatSelect.getTimestamp("laDateEtHeure"); System.out.println ("id:" + leId); System.out.println ("la date :" + laDate); System.out.println ("l'heure :" + leTime); System.out.println ("la date avec l'heure :" + leTimestamp); } // Fermeture de l'énoncé et de la connexion unEnoncéSQL.close(); uneConnection.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Connection abrirOracle(){\r\n \r\n \r\n try{\r\n \r\n DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); //usando el JDBC de oracle\r\n con=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"system\",\"system\");//consiguiendo una conexion en el localhost\r\n ts=con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,rs.CONCUR_UPDATABLE);\r\n System.out.println(\"La conexion se realizon con exito\");//mensaje de demostraciòn de una conexiòn existosa\r\n \r\n \r\n }catch(Exception e){\r\n System.out.println(\"error de conexion: \"+e.toString());\r\n }\r\n return con;\r\n }", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "private static Connection connect() throws SQLException {\n\t\tConnection con = null;\r\n\t\ttry {\r\n\t\t\t \r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t\tcon = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"1234\");\r\n\t\t\treturn con;\r\n\t\t\r\n\t\t\t \r\n\t\t }\r\n\t catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\nreturn con;\r\n}", "public static void main(String[] args) {\n String url = \"jdbc:mysql://obiwan2.univ-brest.fr/zfm1-zparlanme\";\r\n String user = \"zparlanme\";\r\n String password = \"y4alfp4y\";\r\n\r\n Livre livre = new Livre();\r\n livre.setTitre(\"Salammbô\");\r\n livre.setAuteur(\"Flaubert\");\r\n livre.setAnnee(1862);\r\n\r\n try {\r\n Connection co = (Connection) DriverManager.getConnection(url, user, password);\r\n\r\n Statement st = (Statement) co.createStatement();\r\n\r\n // st.executeUpdate(\r\n // \"insert into t_livre (titre, auteur, annee) values ('Salammbô', 'Flaubert',\r\n // 1862)\");\r\n\r\n // V2\r\n st.executeUpdate(\"insert into t_livre (titre, auteur, annee) values ('\" + livre.getTitre()\r\n + \"', '\" + livre.getAuteur() + \"', \" + livre.getAnnee() + \")\");\r\n\r\n st.close();\r\n co.close();\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\ntry\n{\n\tConnection con=null;\n\tint i=0;\n\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\tcon=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\",\"system\",\"gaurav0698\");\n\tPreparedStatement ps=con.prepareStatement(\"insert into product values(?,?,?)\");\n\tps.setInt(1,2);\n\tps.setString(2, \"watches\");\n\tps.setInt(3, 2500);\n\ti=ps.executeUpdate();\n\tif(i>0)\n\t{\n\t\tSystem.out.println(\"Registered Successfully\");\n\t}\n\telse\n\t{\n\t\tSystem.out.println(\"Data not found!!\");\n\t}\n}\ncatch(Exception e)\n{\n\tSystem.out.println(e);\n}\n\t}", "public boolean asignaNumeroFac(java.sql.Connection conIns, int intCodEmp,int intCodLoc, int intCodTipDocFacEle, int intCodDoc, int intCodCot) \r\n {\r\n boolean blnRes = false;\r\n java.sql.Statement stmLoc, stmLocIns;\r\n java.sql.ResultSet rstLoc;\r\n String strSql = \"\";\r\n String strSqlIns = \"\";\r\n int intNumDoc = 0;\r\n int intNumDocGuia = 0;\r\n try \r\n {\r\n if (conIns != null){\r\n stmLoc = conIns.createStatement();\r\n strSql = \"SELECT CASE WHEN (ne_ultDoc+1) IS NULL THEN 1 ELSE (ne_ultDoc+1) END AS ultnum \"\r\n + \" FROM tbm_cabTipDoc WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n// System.out.println(\"numero \" + strSql);\r\n rstLoc = stmLoc.executeQuery(strSql);\r\n if (rstLoc.next()) {\r\n intNumDoc = rstLoc.getInt(\"ultnum\");\r\n }\r\n rstLoc.close();\r\n rstLoc = null;\r\n stmLoc.close();\r\n stmLoc = null;\r\n \r\n \r\n strSqlIns += \" UPDATE tbm_cabTipDoc SET ne_ultDoc=\" + intNumDoc + \" WHERE co_emp=\" +intCodEmp+ \" \"\r\n + \" AND co_loc=\" +intCodLoc+ \" AND co_tipDoc=\" + intCodTipDocFacEle;\r\n strSqlIns += \";UPDATE tbm_cabmovinv SET ne_numdoc=\" +intNumDoc+\", ne_numgui=\"+intNumDocGuia+\", st_reg='A' , st_imp='S' \"\r\n + \" WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_doc=\" + intCodDoc + \" and st_reg not in ('I','E') AND ne_numcot=\" + intCodCot;\r\n strSqlIns += \" ; UPDATE tbm_cabdia SET tx_numdia='\" + intNumDoc + \"' WHERE co_emp=\" +intCodEmp+ \" AND co_loc=\" +intCodLoc+ \" AND co_tipdoc=\" + intCodTipDocFacEle + \" \"\r\n + \" AND co_dia=\" + intCodDoc + \" and st_reg not in ('I','E') \";\r\n System.out.println(\"asignaNumeroFac \"+strSqlIns);\r\n stmLocIns = conIns.createStatement();\r\n stmLocIns.executeUpdate(strSqlIns);\r\n stmLocIns.close();\r\n stmLocIns = null;\r\n intNumFacElec=intNumDoc;\r\n blnRes = true;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "public Vector executeCmd_v2_khusus1(String sql_stmt) {\n \tVector v = null;\n \tListIterator li = null;\n \ttry {\n \t//String ipAddr = request.getRemoteAddr();\n \tContext initContext = new InitialContext();\n \tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \tcon = ds.getConnection();\n \t//update civitas\n \tstmt = con.prepareStatement(sql_stmt);\n \tif(sql_stmt.startsWith(\"select\")||sql_stmt.startsWith(\"SELECT\")||sql_stmt.startsWith(\"Select\")) {\n \t\trs = stmt.executeQuery();\n \t\tResultSetMetaData rsmd = rs.getMetaData();\n \t\tint columnsNumber = rsmd.getColumnCount();\n \t\tString col_label = null;\n \t\tString col_type = null;\n \t\tfor(int i=1;i<=columnsNumber;i++) {\n \t\t\t//getColumnName\n \t\t\t\tString col_name = rsmd.getColumnLabel(i);\n \t\t\t\tif(col_label==null) {\n \t\t\t\t\tcol_label = new String(col_name);\n \t\t\t\t\tcol_type = new String(\"`\");\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tcol_label = col_label+\"`\"+col_name;\n \t\t\t\t}\n \t\t\t\t//get col type\n \t\t\t\tint type = rsmd.getColumnType(i);\n \t\t\t\tif(type == java.sql.Types.DATE) {\n \t\t\t\t\tcol_type = col_type+\"date`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.DECIMAL || type == java.sql.Types.DOUBLE || type == java.sql.Types.FLOAT ) {\n \t\t\t\t\tcol_type = col_type+\"double`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.INTEGER || type == java.sql.Types.BIGINT || type == java.sql.Types.NUMERIC || type == java.sql.Types.SMALLINT) {\n \t\t\t\t\tcol_type = col_type+\"long`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.VARCHAR || type == java.sql.Types.LONGNVARCHAR || type == java.sql.Types.LONGVARCHAR || type == java.sql.Types.CHAR || type == java.sql.Types.NCHAR) {\n \t\t\t\t\tcol_type = col_type+\"string`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.TIME) {\n \t\t\t\t\tcol_type = col_type+\"time`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.BOOLEAN || type == java.sql.Types.TINYINT) {\n \t\t\t\t\tcol_type = col_type+\"boolean`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.TIMESTAMP) {\n \t\t\t\t\tcol_type = col_type+\"timestamp`\";\n \t\t\t\t}\n \t\t\t}\n \t\tif(v==null) {\n \t\t\t\tv = new Vector();\n \t\t\t\tli=v.listIterator();\n \t\t\t\tli.add(col_type);\n \t\t\t\tli.add(col_label);\n \t\t\t}\n \t\t\t\n \t\t//System.out.println(\"columnsNumber=\"+columnsNumber);\n \t\tString brs = null;\n \t\twhile(rs.next()) {\n \t\t\tfor(int i=1;i<=columnsNumber;i++) {\n \t\t\t\tString tmp = \"\";\n \t\t\t\t/*\n \t\t\t\t * ADA 2 metode cek column type, karena diupdate yg baruan adalah cara yg diatas, belum tau mana yg lebih efektif\n \t\t\t\t */\n \t\t\t\tcol_type = rsmd.getColumnTypeName(i);\n \t\t\t\t\n \t\t\t\tif(col_type.equalsIgnoreCase(\"VARCHAR\")||col_type.equalsIgnoreCase(\"TEXT\")||col_type.startsWith(\"CHAR\")) {\n \t\t\t\t\ttmp = \"\"+rs.getString(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"TINYINT\")) {\n \t\t\t\t\ttmp = \"\"+rs.getBoolean(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.contains(\"INT\")||col_type.contains(\"LONG\")) {\n \t\t\t\t\ttmp = \"\"+rs.getLong(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"DATE\")) {\n \t\t\t\t\ttmp = \"\"+rs.getDate(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"DECIMAL\")||col_type.equalsIgnoreCase(\"DOUBLE\")||col_type.equalsIgnoreCase(\"FLOAT\")) {\n \t\t\t\t\ttmp = \"\"+rs.getDouble(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"TIMESTAMP\")||col_type.equalsIgnoreCase(\"DATETIME\")) {\n \t\t\t\t\ttmp = \"\"+rs.getTimestamp(i);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(brs==null) {\n \t\t\t\t\tif(Checker.isStringNullOrEmpty(tmp)) {\n \t\t\t\t\t\tbrs = new String(\"null\");\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tbrs = new String(tmp);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tif(Checker.isStringNullOrEmpty(tmp)) {\n \t\t\t\t\t\tbrs = brs +\"`null\";\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tbrs = brs+\"`\"+tmp;\n \t\t\t\t\t}\n \t\t\t\t}\t\n \t\t\t}\n \t\t\tbrs = brs.replace(\"`K`\", \"`KELUAR`\");\n \t\t\tli.add(brs);\n \t\t\tbrs = null;\n \t\t}\n \t}\n \telse {\n \t\t//non select\n \t\tint i = stmt.executeUpdate();\n \t\tif(v==null) {\n \t\t\t\tv = new Vector();\n \t\t\t\tli=v.listIterator();\n \t\t\t\tli.add(\"string`string\");\n \t\t\t\tli.add(\"COMMAND`EXE\");\n \t\t\t}\n \t\t\n \t\tli.add(sql_stmt+\"`\"+i);\n \t}\n \t}\n \tcatch (NamingException e) {\n \t\te.printStackTrace();\n \t\tif(v==null) {\n\t\t\t\tv = new Vector();\n\t\t\t\tli=v.listIterator();\n\t\t\t\tli.add(\"ERROR\");\n\t\t\t}\n \t\tli.add(e.toString());\n \t}\n \tcatch (SQLException ex) {\n \t\tex.printStackTrace();\n \t\tif(v==null) {\n\t\t\t\tv = new Vector();\n\t\t\t\tli=v.listIterator();\n\t\t\t\tli.add(\"ERROR\");\n\t\t\t}\n \t\tli.add(ex.toString());\n \t} \n \tfinally {\n \t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t if (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t if (con!=null) try { con.close();} catch (Exception ignore){}\n \t}\n \ttry {\n \t\tv = Tool.removeDuplicateFromVector(v);\n \t}\n \tcatch(Exception e) {}\n \treturn v;\n }", "public static void main(String[] args) {\n\t\tConnection con =null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Driver not found\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tString url=\"jdbc:oracle:thin:@localhost:1521:orcl\";\r\n\t\tString username=\"hr\";\r\n\t\tString password=\"hr\";\r\n\t\t// 2. Get connection\r\n\t\ttry {\r\n\t\t\tcon =DriverManager.getConnection(url,username,password);\r\n\t\t\tDriverManager.getConnection(url,username,password);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Connection failed\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// database metadata\r\n\t\ttry {\r\n\t\t\tDatabaseMetaData dbmeta = con.getMetaData();\r\n\t\t\tSystem.out.println(dbmeta.toString());\r\n\t\t\tSystem.out.println(dbmeta.getDatabaseMajorVersion());\r\n\t\t\tSystem.out.println(dbmeta.getDatabaseProductName());\r\n\t\t\t}catch(SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t// Create statement object\r\n\t\tString sql=\"select employee_id, first_name, last_name from employees\";\r\n\t\ttry {\r\n\t\t\tStatement st =con.createStatement();\r\n\t\t\tResultSet rs=st.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tResultSetMetaData rsmd =rs.getMetaData();\r\n\t\t\tint colcount =rsmd.getColumnCount();\r\n\t\t\tSystem.out.println(\"Colcount:\"+colcount);\r\n\t\t\tint count=0;\r\n\t\t\tint type = rsmd.getColumnType(2);\r\n\t\t\tif(type == Types.INTEGER) {\r\n\t\t\t\tSystem.out.println(\"Col has Intehger type\");\r\n\t\t\t}\r\n\t\t\telse if(type == Types.VARCHAR) {\r\n\t\t\t\tSystem.out.println(\"col is a string (varchar)\");\r\n\t\t\t}else if (type == Types.NUMERIC) {\r\n\t\t\t\tSystem.out.println(\"Col is type numeric\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(rsmd.getColumnTypeName(1));\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\t\r\n\t\t\t\t//String fname =rs.getString(\"first_name\");\r\n\t\t\t\t\r\n\t\t\t\t//System.out.println(fname);\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(count);\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch(SQLException sqle) {\r\n\t\t\tSystem.out.println(sqle.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void introducirConsumosClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente) {\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {// mira los consumo de unas fechas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT CONSUMO_RESTAURANTE.Id_Consumo,CONSUMO_RESTAURANTE.Id_Alojamiento,CONSUMO_RESTAURANTE.Nombre_Comida,CONSUMO_RESTAURANTE.Precio_Comida,CONSUMO_RESTAURANTE.Cantidad,CONSUMO_RESTAURANTE.Fecha_Consumo FROM CONSUMO_RESTAURANTE JOIN ALOJAMIENTO JOIN RESERVACION WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND ALOJAMIENTO.Id=CONSUMO_RESTAURANTE.Id_Alojamiento AND RESERVACION.Dpi_Cliente=? AND Fecha_Consumo>=? AND Fecha_Consumo<=?\");\n declaracion.setString(1, dpiCliente);\n declaracion.setDate(2,fechaInicialSql);\n declaracion.setDate(3,fechaFinalSQL);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// mira los consumo de unas fechas\n Object objeto[] = new Object[7];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getString(3);\n objeto[3] = resultado.getInt(4);// mira los consumo de unas fechas\n objeto[4] = resultado.getInt(5);\n objeto[5] = resultado.getDate(6);\n int total = (Integer)objeto[3]*(Integer)objeto[4];\n objeto[6]= total;// mira los consumo de unas fechas\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public ResultSet getAccno(Long ano)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select balance from bank where Accno=\"+ano+\"\");\r\n\treturn rs;\r\n}", "public static void main(String[] args) throws SQLException {\n\t\tPruebaConnOracle conecta = new PruebaConnOracle();\r\n\t\tconecta.getConexion();\r\n\t\tconecta.banner(); \r\n\t}", "@Test\n public void testGetTabella_PreparedStatement() throws MainException, SQLException {\n System.out.println(\"getTabella\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n PreparedStatement stmt = instance.prepareStatement(\n \"select * from infermieri\");\n ADISysTableModel result = instance.getTabella(stmt);\n assertNotNull(result);\n }", "public static ResultSet selectLargerTV() throws Exception{\n Connection connection = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:10000/tiana18\", \"tiana18web\", \"<password>\");\n ResultSet result = connection.createStatement().executeQuery(\"select * from public.switchedelectronics where id = 9;\");\n connection.close();\n return result;\n }", "public void mostrarComplementos() {\r\n String sourceURL = \"jdbc:sqlserver://localhost:1433;databaseName=PennyPan;integratedSecurity=false;\";\r\n String usuario = \"invitado\";\r\n String password = \"guest\";\r\n Connection conexionDB = null;\r\n ResultSet resultado = null;\r\n Statement sentencia = null;\r\n\r\n try {\r\n Class.forName(\"java.sql.Driver\");\r\n conexionDB = DriverManager.getConnection(sourceURL, usuario, password);\r\n sentencia = conexionDB.createStatement();\r\n String miOrden = \"SELECT * FROM Complementos\";\r\n resultado = sentencia.executeQuery(miOrden);\r\n\r\n System.out.println(\"\\n-----------------------------------------\");\r\n System.out.println(\"| ID | Nombre | Precio |\");\r\n System.out.println(\"|----|--------------------|-------------|\");\r\n while (resultado.next()) {\r\n System.out.printf(\"|\" + \"%-4d\" + \"|\" + \"%-20s\" + \"|\" + \"%9.2f\" + \" EUR|\\n\", resultado.getInt(\"ID\"), resultado.getString(\"Nombre\"), resultado.getBigDecimal(\"Precio\").doubleValue());\r\n }\r\n System.out.println(\"-----------------------------------------\");\r\n\r\n } catch (SQLException e) {\r\n System.out.println(\"Connect not possible\" + e);\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(\"Driver not found \" + e);\r\n } finally {\r\n try {\r\n resultado.close();\r\n sentencia.close();\r\n conexionDB.close();\r\n } catch (SQLException e) {\r\n System.out.println(\"¡Error al cerrar la conexion!: \" + e);\r\n }\r\n }\r\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "float getCPA() throws SQLException;", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n jdbcConnection jdbcConnection0 = new jdbcConnection((Session) null);\n try { \n DBUtil.prepareStatement((Connection) jdbcConnection0, \"%EmSra)4o>D\", false, 15, 414, 42001);\n fail(\"Expecting exception: SQLException\");\n \n } catch(SQLException e) {\n //\n // java.lang.String@0000000002\n //\n verifyException(\"org.hsqldb.jdbc.Util\", e);\n }\n }", "public static void main(String[] args) {\n\n String select = \"select direccion from cliente where idCliente = 3;\", update;\n Connection conexion = BddConnection.newConexionPostgreSQL(\"Ventas\");\n PreparedStatement sentencia;\n Direccion dirCliente;\n ResultSet resul;\n\n try {\n sentencia = conexion.prepareStatement(select);\n resul = sentencia.executeQuery();\n if (resul.next()){\n dirCliente = Direccion.newInstance(resul.getString(1));\n dirCliente.getPoblacion().getProvincia().setProvincia(\"Granada update\");\n update = \"update cliente set direccion = \" + dirCliente.getStringTypeT_Direccion() + \" where idCliente = 3\";\n sentencia = conexion.prepareStatement(update);\n sentencia.executeUpdate();\n }\n resul.close();\n sentencia.close();\n conexion.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void setupDB(){\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n String username = \"sys as sysdba\"; //Provide username for your database\n String password = \"oracle\"; //provide password for your database\n\n con = DriverManager.getConnection(url, username, password);\n }\n catch(Exception e){\n System.out.println(e);\n }\n }", "BSQL2Java2 createBSQL2Java2();", "public static void main(String[] args) {\n\t\t\r\n\t\tConnection con=null;\r\n\t\tPreparedStatement updateSt=null;\r\n\t\tPreparedStatement selectSt=null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());\r\n\t\t\tString url=\"jdbc:oracle:thin:@localhost:1521:xe\";\r\n\t\t\tString user=\"hr\";\r\n\t\t\tString pass=\"hr\";\r\n\t\t con=DriverManager.getConnection(url,user,pass);\r\n\t\t\tSystem.out.println(\"Connected\");\r\n\t\t\tcon.setAutoCommit(false);\r\n\t\t\tsc = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Enter Account ID\");\r\n\t\t\tint id=sc.nextInt();\r\n\t\t\tselectSt=con.prepareStatement(\"select * from account where aid=?\");\r\n\t\t\tselectSt.setInt(1, id);\r\n\t\t\tResultSet rs1=selectSt.executeQuery();\r\n double bal1=0.0;\r\n if(rs1!=null) {\r\n \tif(rs1.next()) {\r\n \t\tSystem.out.println(rs1.getString(3));\r\n \t\tbal1=rs1.getDouble(\"balance\");\r\n \t\tSystem.out.println(\"Your balance is \"+bal1);\r\n \t}\r\n }\r\n \r\n /*\r\n \tPreparedStatement st=con.prepareStatement(sqlQuery);\r\n \tst.setInt(1,id);\r\n \tst.setLong(2,mb);\r\n \tst.setString(3,ah);\r\n \tst.setDouble(4,bal);\r\n \t\r\n int insertedRec=st.executeUpdate();\r\n \r\n\t\tSystem.out.println(+insertedRec);\r\n \t\r\n con.commit();\r\n con.close()\t;\r\n }*/}\r\n \tcatch(SQLException e)\r\n \t{\r\n System.out.println(e.getMessage()+\"\"+e.getErrorCode()+\"\"+e.getSQLState());\r\n e.printStackTrace();\r\n }\r\n\t\t\r\n\t}", "public Vector executeCmd_v2(String sql_stmt) {\n \tVector v = null;\n \tListIterator li = null;\n \ttry {\n \t//String ipAddr = request.getRemoteAddr();\n \tContext initContext = new InitialContext();\n \tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \tds = (DataSource)envContext.lookup(\"jdbc\"+beans.setting.Constants.getDbschema());\n \tcon = ds.getConnection();\n \t//update civitas\n \tstmt = con.prepareStatement(sql_stmt);\n \tif(sql_stmt.startsWith(\"select\")||sql_stmt.startsWith(\"SELECT\")||sql_stmt.startsWith(\"Select\")) {\n \t\trs = stmt.executeQuery();\n \t\tResultSetMetaData rsmd = rs.getMetaData();\n \t\tint columnsNumber = rsmd.getColumnCount();\n \t\tString col_label = null;\n \t\tString col_type = null;\n \t\tfor(int i=1;i<=columnsNumber;i++) {\n \t\t\t//getColumnName\n \t\t\t\tString col_name = rsmd.getColumnLabel(i);\n \t\t\t\tif(col_label==null) {\n \t\t\t\t\tcol_label = new String(col_name);\n \t\t\t\t\tcol_type = new String(\"`\");\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tcol_label = col_label+\"`\"+col_name;\n \t\t\t\t}\n \t\t\t\t//get col type\n \t\t\t\tint type = rsmd.getColumnType(i);\n \t\t\t\tif(type == java.sql.Types.DATE) {\n \t\t\t\t\tcol_type = col_type+\"date`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.DECIMAL || type == java.sql.Types.DOUBLE || type == java.sql.Types.FLOAT ) {\n \t\t\t\t\tcol_type = col_type+\"double`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.INTEGER || type == java.sql.Types.BIGINT || type == java.sql.Types.NUMERIC || type == java.sql.Types.SMALLINT) {\n \t\t\t\t\tcol_type = col_type+\"long`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.VARCHAR || type == java.sql.Types.LONGNVARCHAR || type == java.sql.Types.LONGVARCHAR || type == java.sql.Types.CHAR || type == java.sql.Types.NCHAR) {\n \t\t\t\t\tcol_type = col_type+\"string`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.TIME) {\n \t\t\t\t\tcol_type = col_type+\"time`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.BOOLEAN || type == java.sql.Types.TINYINT) {\n \t\t\t\t\tcol_type = col_type+\"boolean`\";\n \t\t\t\t}\n \t\t\t\telse if(type == java.sql.Types.TIMESTAMP) {\n \t\t\t\t\tcol_type = col_type+\"timestamp`\";\n \t\t\t\t}\n \t\t\t}\n \t\tif(v==null) {\n \t\t\t\tv = new Vector();\n \t\t\t\tli=v.listIterator();\n \t\t\t\tli.add(col_type);\n \t\t\t\tli.add(col_label);\n \t\t\t}\n \t\t\t\n \t\t//System.out.println(\"columnsNumber=\"+columnsNumber);\n \t\tString brs = null;\n \t\twhile(rs.next()) {\n \t\t\tfor(int i=1;i<=columnsNumber;i++) {\n \t\t\t\tString tmp = \"\";\n \t\t\t\t/*\n \t\t\t\t * ADA 2 metode cek column type, karena diupdate yg baruan adalah cara yg diatas, belum tau mana yg lebih efektif\n \t\t\t\t */\n \t\t\t\tcol_type = rsmd.getColumnTypeName(i);\n \t\t\t\t\n \t\t\t\tif(col_type.equalsIgnoreCase(\"VARCHAR\")||col_type.equalsIgnoreCase(\"TEXT\")||col_type.startsWith(\"CHAR\")) {\n \t\t\t\t\ttmp = \"\"+rs.getString(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"TINYINT\")) {\n \t\t\t\t\ttmp = \"\"+rs.getBoolean(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.contains(\"INT\")||col_type.contains(\"LONG\")) {\n \t\t\t\t\ttmp = \"\"+rs.getLong(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"DATE\")) {\n \t\t\t\t\ttmp = \"\"+rs.getDate(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"DECIMAL\")||col_type.equalsIgnoreCase(\"DOUBLE\")||col_type.equalsIgnoreCase(\"FLOAT\")) {\n \t\t\t\t\ttmp = \"\"+rs.getDouble(i);\n \t\t\t\t}\n \t\t\t\telse if(col_type.equalsIgnoreCase(\"TIMESTAMP\")||col_type.equalsIgnoreCase(\"DATETIME\")) {\n \t\t\t\t\ttmp = \"\"+rs.getTimestamp(i);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(brs==null) {\n \t\t\t\t\tif(Checker.isStringNullOrEmpty(tmp)) {\n \t\t\t\t\t\tbrs = new String(\"null\");\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tbrs = new String(tmp);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tif(Checker.isStringNullOrEmpty(tmp)) {\n \t\t\t\t\t\tbrs = brs +\"`null\";\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tbrs = brs+\"`\"+tmp;\n \t\t\t\t\t}\n \t\t\t\t}\t\n \t\t\t}\n \t\t\t\t\n \t\t\tli.add(brs);\n \t\t\tbrs = null;\n \t\t}\n \t}\n \telse {\n \t\t//non select\n \t\tint i = stmt.executeUpdate();\n \t\tif(v==null) {\n \t\t\t\tv = new Vector();\n \t\t\t\tli=v.listIterator();\n \t\t\t\tli.add(\"string`string\");\n \t\t\t\tli.add(\"COMMAND`EXE\");\n \t\t\t}\n \t\t\n \t\tli.add(sql_stmt+\"`\"+i);\n \t}\n \t}\n \tcatch (NamingException e) {\n \t\te.printStackTrace();\n \t\tif(v==null) {\n\t\t\t\tv = new Vector();\n\t\t\t\tli=v.listIterator();\n\t\t\t\tli.add(\"ERROR\");\n\t\t\t}\n \t\tli.add(e.toString());\n \t}\n \tcatch (SQLException ex) {\n \t\tex.printStackTrace();\n \t\tif(v==null) {\n\t\t\t\tv = new Vector();\n\t\t\t\tli=v.listIterator();\n\t\t\t\tli.add(\"ERROR\");\n\t\t\t}\n \t\tli.add(ex.toString());\n \t} \n \tfinally {\n \t\tif (rs!=null) try { rs.close(); } catch (Exception ignore){}\n \t if (stmt!=null) try { stmt.close(); } catch (Exception ignore){}\n \t if (con!=null) try { con.close();} catch (Exception ignore){}\n \t}\n \ttry {\n \t\tv = Tool.removeDuplicateFromVector(v);\n \t}\n \tcatch(Exception e) {}\n \treturn v;\n }", "float getCPC() throws SQLException;", "private Connection openConnection() throws SQLException, ClassNotFoundException {\n DriverManager.registerDriver(new oracle.jdbc.OracleDriver());\n\n String host = \"localhost\";\n String port = \"1521\";\n String dbName = \"xe\"; //\"coen280\";\n String userName = \"temp\";\n String password = \"temp\";\n\n // Construct the JDBC URL \n String dbURL = \"jdbc:oracle:thin:@\" + host + \":\" + port + \":\" + dbName;\n return DriverManager.getConnection(dbURL, userName, password);\n }", "public static void callEx942a() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Please enter a price. We will find a PC whose price is closest to the one you gave us.\");\n System.out.println(\"Price: \");\n int price = input.nextInt();\n\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_942a(?)}\");\n cStmt.setInt(1, price);\n boolean hadResults = cStmt.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n System.out.println(\"test\");\n\n\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Driver loaded\");\n\t\ttry {\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@LOCALHOST:1521:XE\",\"system\",\"password\");\n\t\t\tSystem.out.println(\"Connected\");\n\t\t\t\n\t\t\tjava.sql.Statement query=(java.sql.Statement) con.createStatement();\n\t\t//\tint size=((java.sql.Statement) query).executeUpdate(\"create table books(bname varchar(10) primary key, sales number(10))\");\n\t\t//\tint size1=((java.sql.Statement) query).executeUpdate(\"insert into books values(? ,? ,?)\");\n\t\t\t/*int sales[]={1001,301,601};\n\t\t\tString bname[]={\"java\",\"C\",\"oracle\"};\n\t\t\tPreparedStatement ps=con.prepareStatement(\"insert into books values(?,?)\");\n\t\t\tfor(int i=0;i<sales.length;i++){\n\t\t\tps.setString(1, bname[i]);\n\t\t\tps.setInt(2, sales[i]);\n\t\t\tps.executeUpdate();\n\t\t}*/\n\t\t\t\n\t\t\tPreparedStatement ps1=con.prepareStatement(\"Update books set sales=? where bname=?\");\n\t\t\tint sales1[]={1,2,3};\n\t\t\tString bname1[]={\"java\",\"C\",\"oracle\"};\n\t\t\tfor(int i=0;i<sales1.length;i++){\n\t\t\t\tps1.setInt(1, sales1[i]);\n\t\t\t\tps1.setString(2, bname1[i]);\n\t\t\t\tps1.executeUpdate();\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tResultSet res=((java.sql.Statement) query).executeQuery(\"Select * from books\");\n\t\t\twhile(res.next()){\n\t\t\t\tSystem.out.println(res.getString(1)+\" \"+res.getInt(2));\n\t\t\t}\t\n\t\t\tres.close();\n\t\t\t((Connection) query).close();\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}", "int getConversionsNumber() throws SQLException;", "protected void creationAppr(Connection con) {\n try {\n PreparedStatement pst = con.prepareStatement(\"SELECT identifiant, transitionIdentifier, fixIdentifiant, icaoCodeFix, secCodeFix, subCodeFix, aeroportIdentifiant, icaoCode, sequenceNumber FROM procedure where typeProcedure like 'APPR' ORDER BY aeroportIdentifiant, identifiant, transitionIdentifier ,sequenceNumber asc\");\n ResultSet rs = pst.executeQuery();\n rs.next();\n String runwayIdentifiant = rs.getString(1);\n String transitionIdentifier = rs.getString(2);\n String aeroport = rs.getString(7);\n String icaoCode = rs.getString(8);\n String premierPoint = null;\n if (transitionIdentifier.equals(\"\")) {\n premierPoint = rs.getString(3);\n } else {\n premierPoint = transitionIdentifier;\n }\n\n String sequenceNumber = rs.getString(9);\n List<LatitudeLongitude> couple = new ArrayList<>();\n do {\n System.out.println(\"Premier point\" + premierPoint);\n\n if (!transitionIdentifier.equals(rs.getString(2)) && !sequenceNumber.equals(rs.getString(9))) {\n System.out.println(\"Ajout bdd de \" + premierPoint);\n // ajout en bdd du precedent\n PreparedStatement ajoutSid = con.prepareStatement(\"INSERT INTO appr (runwayIdentifiant, typeApproche, aeroportIdentifiant, icaoCode, premierPoint ,balises) VALUES (?,CAST(? AS typeAppr),?,?,?,?)\");\n ajoutSid.setString(1, runwayIdentifiant);\n ajoutSid.setString(2, runwayIdentifiant.substring(0, 1));\n ajoutSid.setString(3, aeroport);\n ajoutSid.setString(4, icaoCode);\n ajoutSid.setString(5, premierPoint);\n\n\n String[][] tab = new String[couple.size()][2];\n for (int i = 0; i < couple.size(); i++) {\n tab[i][0] = couple.get(i).getLatitude();\n tab[i][1] = couple.get(i).getLongitude();\n }\n\n Array arraySql = con.createArrayOf(\"text\", tab);\n ajoutSid.setArray(6, arraySql);\n ajoutSid.executeUpdate();\n couple.clear();\n\n // on update l'identifiant ds la boucle\n runwayIdentifiant = rs.getString(1);\n transitionIdentifier = rs.getString(2);\n aeroport = rs.getString(7);\n icaoCode = rs.getString(8);\n if (transitionIdentifier.equals(\"\")) {\n premierPoint = rs.getString(3);\n } else {\n premierPoint = transitionIdentifier;\n }\n }\n\n ResultSet rsBalise = null;\n if (!rs.getString(3).equals(\"\")) {\n if (rs.getString(5).equals(\"D\") && rs.getString(6).equals(\"B\")) {\n //NDB\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM ndb where identifiant like ? and icaoCode like ?\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"NDB\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n } else if (rs.getString(5).equals(\"E\") && rs.getString(6).equals(\"A\")) {\n //waypoint en route\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM waypoint where identifiant like ? and icaoCode like ? and aeroport like 'ENRT'\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"WayPoint\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n } else if (rs.getString(5).equals(\"P\") && rs.getString(6).equals(\"C\")) {\n //waypoint terminaux\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM waypoint where identifiant like ? and icaoCode like ? and aeroport like ?\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n pstBalise.setString(3, rs.getString(7));\n rsBalise = pstBalise.executeQuery();\n\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"WayPoint\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n } else if (rs.getString(5).equals(\"D\") && rs.getString(6).equals(\"\")) {\n //VHF\n PreparedStatement pstBalise = con.prepareStatement(\"(SELECT latitude, longitude from vor where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from vorDme where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from dme where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from tacan where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from ilsdme where identifiant=? and icaoCode=?)\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n pstBalise.setString(3, rs.getString(3));\n pstBalise.setString(4, rs.getString(4));\n pstBalise.setString(5, rs.getString(3));\n pstBalise.setString(6, rs.getString(4));\n pstBalise.setString(7, rs.getString(3));\n pstBalise.setString(8, rs.getString(4));\n pstBalise.setString(9, rs.getString(3));\n pstBalise.setString(10, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"VHF\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n\n }\n\n } else {\n System.out.println(\"fix identifier vide\");\n }\n sequenceNumber = rs.getString(9);\n System.out.println(\"FIN\");\n } while (rs.next());\n\n PreparedStatement ajoutSid = con.prepareStatement(\"INSERT INTO appr (runwayIdentifiant, typeApproche, aeroportIdentifiant, icaoCode, premierPoint ,balises) VALUES (?,CAST(? AS typeAppr),?,?,?,?)\");\n ajoutSid.setString(1, runwayIdentifiant);\n ajoutSid.setString(2, runwayIdentifiant.substring(0, 1));\n ajoutSid.setString(3, aeroport);\n ajoutSid.setString(4, icaoCode);\n ajoutSid.setString(5, premierPoint);\n\n String[][] tab = new String[couple.size()][2];\n for (int i = 0; i < couple.size(); i++) {\n tab[i][0] = couple.get(i).getLatitude();\n tab[i][1] = couple.get(i).getLongitude();\n }\n\n Array arraySql = con.createArrayOf(\"text\", tab);\n ajoutSid.setArray(6, arraySql);\n ajoutSid.executeUpdate();\n couple.clear();\n\n rs.close();\n pst.close();\n\n\n } catch (SQLException ex) {\n Logger.getLogger(Approche.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n }", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public String actualizarPuntuacion(int idUsuario, int idLibro, double puntuacion) {\r\n Connection con = Conexion.getConnection();\r\n PreparedStatement ps1;\r\n PreparedStatement ps2;\r\n PreparedStatement ps3;\r\n PreparedStatement ps4;\r\n ResultSet rs1;\r\n ResultSet rs2;\r\n ResultSet rs3;\r\n ResultSet rs4;\r\n String rpta = \"\";\r\n String sql1 = \"select puntuacion from usuarioxlibro where idusuario =\" + idUsuario\r\n + \" and idlibro = \" + idLibro;\r\n String sql3 = \"update usuarioxlibro set puntuacion = ? where idusuario= \" + idUsuario\r\n + \" and idlibro = \" + idLibro;\r\n String sql2 = \"select vez from libro where idlibro =\" + idLibro;\r\n String sql4 = \"update libro set vez = ? where idlibro =\" + idLibro;\r\n double puntAnt = 0;\r\n int vez = 0;\r\n try {\r\n ps1 = con.prepareStatement(sql1);\r\n rs1 = ps1.executeQuery();\r\n while (rs1.next()) {\r\n puntAnt = rs1.getDouble(1);\r\n }\r\n\r\n ps2 = con.prepareStatement(sql2);\r\n rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n vez = rs2.getInt(1);\r\n }\r\n\r\n double nuevaPunt = puntuacionNueva(puntAnt, puntuacion, vez);\r\n ps3 = con.prepareStatement(sql3);\r\n ps3.setDouble(1, nuevaPunt);\r\n rpta = \"Puntuación registrada\";\r\n ps3.executeUpdate();\r\n\r\n ps4 = con.prepareStatement(sql4);\r\n ps4.setInt(1, vez + 1);\r\n ps4.executeUpdate();\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n rpta = \"No se pudo registrar la puntuacion\";\r\n }\r\n return rpta;\r\n }", "private boolean generaOC(java.sql.Connection conExt,int intCodEmp,int intCodLoc,int intCodCot){\n boolean blnRes=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n int intCodDoc,intCodBod=-1,intCodPrv=-1,intCodEmpTemp=-1,intCodLocTemp=-1;\n String strConfInv=\"F\",strCorEle=\"\";\n try{ \n if(conExt!=null){\n stmLoc=conExt.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_bod, a2.co_prv, a1.co_usrIng,a6.tx_nom as tx_nomCom,a3.tx_nom, a3.tx_ide, \\n\";\n strSql+=\" a3.tx_dir, a3.tx_tel,a3.tx_nom as tx_nomCli ,a4.tx_desLar as tx_nomCiu, a2.co_forPagCom,a5.tx_des as tx_nomForPagCom, \\n\";\n strSql+=\" a6.tx_usr,a6.tx_nom as tx_nomUsr, a6.tx_corEle, a2.tx_obs1Com, a2.co_forRetCom \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_cli as a3 ON (a2.co_emp=a3.co_emp AND a2.co_prv=a3.co_cli) \\n\";\n strSql+=\" LEFT OUTER JOIN tbm_ciu as a4 ON (a3.co_ciu=a4.co_ciu) \\n\";\n strSql+=\" INNER JOIN tbm_cabForPag AS a5 ON (a2.co_emp=a5.co_emp AND a2.co_forPagCom=a5.co_forPag)\\n\";\n strSql+=\" INNER JOIN tbm_usr AS a6 ON (a1.co_usrIng=a6.co_usr) \";\n strSql+=\" WHERE a1.co_emp=\"+intCodEmp+\" AND a1.co_loc=\"+intCodLoc+\" AND a1.co_cot=\"+intCodCot+\" AND a2.tx_codAlt like '%L' \\n\";\n strSql+=\" GROUP by a2.co_prv,a1.co_emp, a1.co_loc, a1.co_cot, a2.co_bod , a1.co_usrIng ,a3.tx_nom, a3.tx_ide, a3.tx_dir, \\n\";\n strSql+=\" a3.tx_tel ,a4.tx_desLar , a2.co_forPagCom, a5.tx_des, a6.tx_usr, a6.tx_nom , \\n\";\n strSql+=\" a6.tx_corEle, a2.tx_obs1Com, a2.co_forRetCom \\n\";\n System.out.println(\"Datos para la OC: generaOC: \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n intCodBod=rstLoc.getInt(\"co_bod\");\n intCodPrv = rstLoc.getInt(\"co_prv\");\n strCorEle = rstLoc.getString(\"tx_corEle\");\n intCodDoc=getCodigoDocumento(conExt,intCodEmp,intCodLoc, intCodTipDocOC);\n txtsql.setText(\"\");\n if(FormaRetencion(conExt,intCodEmp )){\n if(insertarCabOC(conExt,rstLoc,intCodDoc, strConfInv )){ \n if(insertarDetOC(intCodDoc,rstLoc,conExt )){ \n intCodEmpTemp = objParSis.getCodigoEmpresa(); intCodLocTemp=objParSis.getCodigoLocal();\n objParSis.setCodigoEmpresa(intCodEmp); objParSis.setCodigoLocal(intCodLoc);\n Ventas.ZafVen01.ZafVen01_OC obj1 = new Ventas.ZafVen01.ZafVen01_OC(javax.swing.JOptionPane.getFrameForComponent(this), objParSis, intCodCot, intCodPrv, 45, rstLoc.getString(\"co_usrIng\"), rstLoc.getString(\"tx_nomCom\"), conExt, intCodDoc,false);\n if(obj1.cargarOCReservas(conExt, intCodEmp, intCodLoc, intCodCot, intCodTipDocOC, intCodDoc)){\n if(obj1.insertarRegPagos(conExt, intCodDoc)){\n String strMensaje=(\"<HTML>Imprima la orden de compra numero <FONT COLOR=\\\"blue\\\"> \" + intNumDocOC + \" </FONT>.</HTML>\");\n objCorEle.enviarCorreoMasivo(rstLoc.getString(\"tx_corEle\"),strTitCorEle,strMensaje);\n }else{MensajeInf(\"Error al Guardar: Insertando pagos\");blnRes=false;}\n }else{MensajeInf(\"Error al Guardar: Al cargar la OC \");blnRes=false;}\n\n objParSis.setCodigoEmpresa(intCodEmpTemp);objParSis.setCodigoLocal(intCodLocTemp);\n obj1 = null;\n }else{blnRes=false;}\n }else{MensajeInf(\"Error al Guardar: Insertando OC\");blnRes=false;}\n }else{MensajeInf(\"Error al Guardar: Forma Retencion pagos OC\");blnRes=false;}\n }\n }else{blnRes=false;}\n \n if(blnRes==false){\n objCorEle.enviarCorreoMasivo(strCorEleErr, strTitCorEle, \"ERROR PAGOS OC co_emp=\"+intCodEmp+\"AND co_loc=\"+intCodLoc+\" AND co_cot=\"+intCodCot );\n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch(Exception Evt){ \n blnRes=false; \n objUti.mostrarMsgErr_F1(this, Evt); \n }\n return blnRes;\n }", "private static Connection newConnection() throws SQLException {\n\t\tOracleDataSource ods = new OracleDataSource();\n\t\tods.setURL(dburl);\n\t\tConnection conn = ods.getConnection();\n\t\treturn conn;\n\t}", "public interface CompiereDatabase\n{\n\t/**\n\t * Get Database Name\n\t * @return database short name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get Database Description\n\t * @return database long name and version\n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Get Database Driver\n\t * @return Driver\n\t */\n\tpublic Driver getDriver();\n\n\n\t/**\n\t * Get Standard JDBC Port\n\t * @return standard port\n\t */\n\tpublic int getStandardPort();\n\n\t/**\n\t * Get Database Connection String\n\t * @param connection Connection Descriptor\n\t * @return connection String\n\t */\n\tpublic String getConnectionURL (CConnection connection);\n\n\t/**\n\t * Supports BLOB\n\t * @return true if BLOB is supported\n\t */\n\tpublic boolean supportsBLOB();\n\n\t/**\n\t * String Representation\n\t * @return info\n\t */\n\tpublic String toString();\n\n\t/**************************************************************************\n\t * Convert an individual Oracle Style statements to target database statement syntax\n\t *\n\t * @param oraStatement oracle statement\n\t * @return converted Statement\n\t * @throws Exception\n\t */\n\tpublic String convertStatement (String oraStatement);\n\n\t/**************************************************************************\n\t * Set the RowID\n\t * @param pstmt prepared statement\n\t * @param pos position\n\t * @param rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic void setRowID (PreparedStatement pstmt, int pos, Object rowID) throws SQLException;\n\n\t/**\n\t * Get rhe RowID\n\t * @param rs result set\n\t * @param pos position\n\t * @return rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic Object getRowID (ResultSet rs, int pos) throws SQLException;\n\n\t/**\n\t * Get RowSet\n\t * \t@param rs result set\n\t * @return RowSet\n\t * @throws SQLException\n\t */\n\tpublic RowSet getRowSet (ResultSet rs) throws SQLException;\n\n\t/**\n\t * \tGet Cached Connection on Server\n\t *\t@param connection info\n\t *\t@return connection or null\n\t */\n\tpublic Connection getCachedConnection (CConnection connection);\n\n\t/**\n\t * \tCreate DataSource (Client)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic DataSource createDataSource(CConnection connection);\n\n\t/**\n\t * \tCreate Pooled DataSource (Server)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic ConnectionPoolDataSource createPoolDataSource(CConnection connection);\n\n}", "public interface CompiereDatabase\n{\n\t/**\n\t * Get Database Name\n\t * @return database short name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get Database Description\n\t * @return database long name and version\n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Get Database Driver\n\t * @return Driver\n\t */\n\tpublic Driver getDriver();\n\n\n\t/**\n\t * Get Standard JDBC Port\n\t * @return standard port\n\t */\n\tpublic int getStandardPort();\n\n\t/**\n\t * Get Database Connection String\n\t * @param connection Connection Descriptor\n\t * @return connection String\n\t */\n\tpublic String getConnectionURL (CConnection connection);\n\n\t/**\n\t * Supports BLOB\n\t * @return true if BLOB is supported\n\t */\n\tpublic boolean supportsBLOB();\n\n\t/**\n\t * String Representation\n\t * @return info\n\t */\n\tpublic String toString();\n\n\t/**************************************************************************\n\t * Convert an individual Oracle Style statements to target database statement syntax\n\t *\n\t * @param oraStatement oracle statement\n\t * @return converted Statement\n\t * @throws Exception\n\t */\n\tpublic String convertStatement (String oraStatement);\n\n\t/**************************************************************************\n\t * Set the RowID\n\t * @param pstmt prepared statement\n\t * @param pos position\n\t * @param rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic void setRowID (PreparedStatement pstmt, int pos, Object rowID) throws SQLException;\n\n\t/**\n\t * Get rhe RowID\n\t * @param rs result set\n\t * @param pos position\n\t * @return rowID ROWID\n\t * @throws SQLException\n\t */\n\tpublic Object getRowID (ResultSet rs, int pos) throws SQLException;\n\n\t/**\n\t * Get RowSet\n\t * \t@param rs result set\n\t * @return RowSet\n\t * @throws SQLException\n\t */\n\tpublic RowSet getRowSet (ResultSet rs) throws SQLException;\n\n\t/**\n\t * \tGet Cached Connection on Server\n\t *\t@param connection info\n\t *\t@return connection or null\n\t */\n\tpublic Connection getCachedConnection (CConnection connection);\n\n\t/**\n\t * \tCreate DataSource (Client)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic DataSource createDataSource(CConnection connection);\n\n\t/**\n\t * \tCreate Pooled DataSource (Server)\n\t *\t@param connection connection\n\t *\t@return data dource\n\t */\n\tpublic ConnectionPoolDataSource createPoolDataSource(CConnection connection);\n\n}", "public int nuevaVenta(InterfazVenta venta, String vendedor) throws java.rmi.RemoteException{\n\t\tString driver = \"org.apache.derby.jdbc.EmbeddedDriver\";\n\t\t// the database name \n\t\tString dbName=\"VentasDB\";\n\t\t// define the Derby connection URL to use \n\t\tString connectionURL = \"jdbc:derby:\" + dbName + \";create=true\";\n\n\t\tConnection conn = null;\n ResultSet rs = null;\n\t\tPreparedStatement pst = null;\n\t\tPreparedStatement pst2 = null;\n\t\tPreparedStatement pst3 = null;\n\t\tResultSet rs4 = null;\n\t\tPreparedStatement pst4 = null;\n\t\t\n\t\tSystem.out.println(\"Retornando monto de la venta...\");\n\t\t\t\t\t\n\t\ttry{\n\t\t\tClass.forName(driver).newInstance();\n\t\t\tconn = DriverManager.getConnection(connectionURL);\n\t\t\t// Buscamos el proximo identificador de venta\n\t\t\tString sql = \"SELECT MAX(IdentificadorVenta) FROM VentasArticulos\";\n pst = conn.prepareStatement(sql);\n \n rs = pst.executeQuery();\n\t\t\t\n\t\t\tint identificadorVenta;\n \n if (rs.next()){\n identificadorVenta = rs.getInt(1) + 1; //Obtengo el valor de identificador de venta mas alto y lo incremento para obtener el nuevo identificador de venta\n }\n else{\n identificadorVenta = 0;\n\t\t\t}\n\t\t\t\n\t\t\t// Insertamos la venta\n\t\t\tString sql2 = \"INSERT INTO VentasArticulos VALUES (?,?,?,?,?,?,?,?)\";\n\t\t\t\n\t\t\tpst2 = conn.prepareStatement(sql2);\n\t\t\t\n\t\t\tpst2.setString(1, vendedor);\n\t\t\tpst2.setString(2, venta.getNombreComprador());\n\t\t\tpst2.setString(3, venta.getApellidoComprador());\n\t\t\tpst2.setString(4, venta.getNumeroDocumentoComprador());\n\t\t\tpst2.setInt(5, venta.getAnioVenta());\n\t\t\tpst2.setInt(6, venta.getMesVenta());\n\t\t\tpst2.setInt(7, venta.getDiaVenta());\n\t\t\tpst2.setInt(8, identificadorVenta);\n \n pst2.execute();\n\t\t\t\n\t\t\t// Ingresamos los articulos de la venta\n\t\t\tint montoTotalVenta = 0;\n\t\t\tArticuloVenta[] listaArticulosVenta;\n\t\t\t\n\t\t\tlistaArticulosVenta = venta.getListaArticulosVenta();\n\t\t\t\t\t\n\t\t\tfor (int k=0; k<listaArticulosVenta.length; k++){\n\t\t\t\tString sql3 = \"INSERT INTO ArticuloDeVenta VALUES (?,?,?)\";\n\t\t\t\n\t\t\t\tpst3 = conn.prepareStatement(sql3);\n\t\t\t\t\n\t\t\t\tpst3.setInt(1, identificadorVenta);\n\t\t\t\tpst3.setString(2, listaArticulosVenta[k].getNombreArticuloVenta());\n\t\t\t\tpst3.setInt(3, listaArticulosVenta[k].getCantArticuloVenta());\n\t\t\t\t\n\t\t\t\tpst3.execute();\n\t\t\t\t\n\t\t\t\tString sql4 = \"SELECT PrecioArticulo FROM Articulos WHERE NombreArticulo=?\";\n\t\t\t\t\n\t\t\t\tpst4 = conn.prepareStatement(sql4);\n\t\t\t\tpst4.setString(1, listaArticulosVenta[k].getNombreArticuloVenta());\n\t\t\t\t\n\t\t\t\trs4 = pst4.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\tif (rs4.next()){\n\t\t\t\t\tmontoTotalVenta += rs4.getInt(1) * listaArticulosVenta[k].getCantArticuloVenta();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn montoTotalVenta;\n\t\t\t\n }catch(Exception e){\n\t\t\tSystem.out.println(\"Error al insertar nueva venta en la base de datos.\");\n\t\t\tSystem.out.println(\"Informacion del error: \" + e.toString());\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n }\n }", "public static void main(String[] args) throws SQLException {\n\t\tdao.DBBean daodao = new dao.DBBean();\r\n\t\tString sql = \"select * from msql.peizhi where xuhao ='1'\";\r\n\t\tResultSet rs = daodao.query(sql);\r\n\t\twhile(rs.next()){\r\n\t\t\tdouble sname = rs.getDouble(\"bxishu\");\r\n\t\t\tSystem.out.println(sname);\r\n\t\t}\r\n\t\t\r\n\t\t//sql = \"insert into msql.peizhi(xuhao)values('2')\";\r\n\t\t//daodao.update(sql);\r\n\t\t\r\n\t\tsql = \"update msql.peizhi set bsensorx = '3' where xuhao = '2'\";\r\n\t\tdaodao.update(sql);\r\n\t\t}", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n jdbcClob jdbcClob0 = new jdbcClob(\"&@Y)\");\n Reader reader0 = jdbcClob0.getCharacterStream();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(reader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }", "public final void executeSQL(Connection conn,DbConnVO vo,String fileName) throws Throwable {\r\n PreparedStatement pstmt = null;\r\n StringBuffer sql = new StringBuffer(\"\");\r\n InputStream in = null;\r\n\r\n try {\r\n try {\r\n in = this.getClass().getResourceAsStream(\"/\" + fileName);\r\n }\r\n catch (Exception ex5) {\r\n }\r\n if (in==null)\r\n in = new FileInputStream(org.openswing.swing.util.server.FileHelper.getRootResource() + fileName);\r\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n String line = null;\r\n ArrayList vals = new ArrayList();\r\n int pos = -1;\r\n String oldfk = null;\r\n String oldIndex = null;\r\n StringBuffer newIndex = null;\r\n StringBuffer newfk = null;\r\n ArrayList fks = new ArrayList();\r\n ArrayList indexes = new ArrayList();\r\n boolean fkFound = false;\r\n boolean indexFound = false;\r\n String defaultValue = null;\r\n int index = -1;\r\n StringBuffer unicode = new StringBuffer();\r\n boolean useDefaultValue = false;\r\n// vo.getDriverName().equals(\"oracle.jdbc.driver.OracleDriver\") ||\r\n// vo.getDriverName().equals(\"com.microsoft.jdbc.sqlserver.SQLServerDriver\") ||\r\n//\t\t\t\t\tvo.getDriverName().equals(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\") ||\r\n// vo.getDriverName().equals(\"com.mysql.jdbc.Driver\");\r\n while ( (line = br.readLine()) != null) {\r\n sql.append(' ').append(line);\r\n if (line.endsWith(\";\")) {\r\n if (vo.getDriverName().equals(\"oracle.jdbc.driver.OracleDriver\")) {\r\n sql = replace(sql, \" VARCHAR(\", \" VARCHAR2(\");\r\n sql = replace(sql, \" NUMERIC(\", \" NUMBER(\");\r\n sql = replace(sql, \" DECIMAL(\", \" NUMBER(\");\r\n sql = replace(sql, \" TIMESTAMP\", \" DATE \");\r\n sql = replace(sql, \" DATETIME\", \" DATE \");\r\n }\r\n else if (vo.getDriverName().equals(\"com.microsoft.jdbc.sqlserver.SQLServerDriver\")) {\r\n sql = replace(sql, \" TIMESTAMP\", \" DATETIME \");\r\n sql = replace(sql, \" DATE \", \" DATETIME \");\r\n }\r\n else if (vo.getDriverName().equals(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\")) {\r\n sql = replace(sql, \" TIMESTAMP\", \" DATETIME \");\r\n sql = replace(sql, \" DATE \", \" DATETIME \");\r\n }\r\n else if (vo.getDriverName().toLowerCase().contains(\"postgres\")) {\r\n sql = replace(sql, \" DATETIME\", \" TIMESTAMP \");\r\n sql = replace(sql, \" DATE \", \" TIMESTAMP \");\r\n }\r\n else {\r\n sql = replace(sql, \" DATE \", \" DATETIME \");\r\n }\r\n\r\n\r\n sql = replace(sql,\"ON DELETE NO ACTION\",\"\");\r\n sql = replace(sql,\"ON UPDATE NO ACTION\",\"\");\r\n\r\n if (sql.indexOf(\":COMPANY_CODE\") != -1) {\r\n sql = replace(sql, \":COMPANY_CODE\", \"'\" + vo.getCompanyCode() + \"'\");\r\n }\r\n if (sql.indexOf(\":COMPANY_DESCRIPTION\") != -1) {\r\n sql = replace(sql, \":COMPANY_DESCRIPTION\",\r\n \"'\" + vo.getCompanyDescription() + \"'\");\r\n }\r\n if (sql.indexOf(\":LANGUAGE_CODE\") != -1) {\r\n sql = replace(sql, \":LANGUAGE_CODE\",\r\n \"'\" + vo.getLanguageCode() + \"'\");\r\n }\r\n if (sql.indexOf(\":LANGUAGE_DESCRIPTION\") != -1) {\r\n sql = replace(sql, \":LANGUAGE_DESCRIPTION\",\r\n \"'\" + vo.getLanguageDescription() + \"'\");\r\n }\r\n if (sql.indexOf(\":CLIENT_LANGUAGE_CODE\") != -1) {\r\n sql = replace(sql, \":CLIENT_LANGUAGE_CODE\",\r\n \"'\" + vo.getClientLanguageCode() + \"'\");\r\n }\r\n if (sql.indexOf(\":PASSWORD\") != -1) {\r\n sql = replace(sql, \":PASSWORD\", \"'\" + vo.getAdminPassword() + \"'\");\r\n }\r\n if (sql.indexOf(\":DATE\") != -1) {\r\n sql = replace(sql, \":DATE\", \"?\");\r\n vals.add(new java.sql.Date(System.currentTimeMillis()));\r\n }\r\n\r\n if (sql.indexOf(\":CURRENCY_CODE\") != -1) {\r\n sql = replace(sql, \":CURRENCY_CODE\", \"'\" + vo.getCurrencyCodeREG03() + \"'\");\r\n }\r\n if (sql.indexOf(\":CURRENCY_SYMBOL\") != -1) {\r\n sql = replace(sql, \":CURRENCY_SYMBOL\", \"'\" + vo.getCurrencySymbolREG03() + \"'\");\r\n }\r\n if (sql.indexOf(\":DECIMALS\") != -1) {\r\n sql = replace(sql, \":DECIMALS\", vo.getDecimalsREG03().toString());\r\n }\r\n if (sql.indexOf(\":DECIMAL_SYMBOL\") != -1) {\r\n sql = replace(sql, \":DECIMAL_SYMBOL\", \"'\" + vo.getDecimalSymbolREG03() + \"'\");\r\n }\r\n if (sql.indexOf(\":THOUSAND_SYMBOL\") != -1) {\r\n sql = replace(sql, \":THOUSAND_SYMBOL\", \"'\" + vo.getThousandSymbolREG03() + \"'\");\r\n }\r\n\r\n if (sql.indexOf(\":USE_VARIANT_TYPE_1\") != -1) {\r\n sql = replace(sql, \":USE_VARIANT_TYPE_1\", \"'\" + vo.getUseVariantType1() + \"'\");\r\n }\r\n if (sql.indexOf(\":USE_VARIANT_TYPE_2\") != -1) {\r\n sql = replace(sql, \":USE_VARIANT_TYPE_2\", \"'\" + vo.getUseVariantType2() + \"'\");\r\n }\r\n if (sql.indexOf(\":USE_VARIANT_TYPE_3\") != -1) {\r\n sql = replace(sql, \":USE_VARIANT_TYPE_3\", \"'\" + vo.getUseVariantType3() + \"'\");\r\n }\r\n if (sql.indexOf(\":USE_VARIANT_TYPE_4\") != -1) {\r\n sql = replace(sql, \":USE_VARIANT_TYPE_4\", \"'\" + vo.getUseVariantType4() + \"'\");\r\n }\r\n if (sql.indexOf(\":USE_VARIANT_TYPE_5\") != -1) {\r\n sql = replace(sql, \":USE_VARIANT_TYPE_5\", \"'\" + vo.getUseVariantType5() + \"'\");\r\n }\r\n\r\n if (sql.indexOf(\":VARIANT_1\") != -1) {\r\n sql = replace(sql, \":VARIANT_1\", \"'\" + (vo.getVariant1()==null || vo.getVariant1().trim().equals(\"\")?ApplicationConsts.JOLLY:vo.getVariant1()) + \"'\");\r\n }\r\n if (sql.indexOf(\":VARIANT_2\") != -1) {\r\n sql = replace(sql, \":VARIANT_2\", \"'\" + (vo.getVariant2()==null || vo.getVariant2().trim().equals(\"\")?ApplicationConsts.JOLLY:vo.getVariant2()) + \"'\");\r\n }\r\n if (sql.indexOf(\":VARIANT_3\") != -1) {\r\n sql = replace(sql, \":VARIANT_3\", \"'\" + (vo.getVariant3()==null || vo.getVariant3().trim().equals(\"\")?ApplicationConsts.JOLLY:vo.getVariant3()) + \"'\");\r\n }\r\n if (sql.indexOf(\":VARIANT_4\") != -1) {\r\n sql = replace(sql, \":VARIANT_4\", \"'\" + (vo.getVariant4()==null || vo.getVariant4().trim().equals(\"\")?ApplicationConsts.JOLLY:vo.getVariant4()) + \"'\");\r\n }\r\n if (sql.indexOf(\":VARIANT_5\") != -1) {\r\n sql = replace(sql, \":VARIANT_5\", \"'\" + (vo.getVariant5()==null || vo.getVariant5().trim().equals(\"\")?ApplicationConsts.JOLLY:vo.getVariant5()) + \"'\");\r\n }\r\n\r\n if (!useDefaultValue)\r\n while((pos=sql.indexOf(\"DEFAULT \"))!=-1) {\r\n defaultValue = sql.substring(pos, sql.indexOf(\",\", pos));\r\n sql = replace(\r\n sql,\r\n defaultValue,\r\n \"\"\r\n );\r\n }\r\n\r\n fkFound = false;\r\n while((pos=sql.indexOf(\"FOREIGN KEY\"))!=-1) {\r\n oldfk = sql.substring(pos,sql.indexOf(\")\",sql.indexOf(\")\",pos)+1)+1);\r\n sql = replace(\r\n sql,\r\n oldfk,\r\n \"\"\r\n );\r\n newfk = new StringBuffer(\"ALTER TABLE \");\r\n newfk.append(sql.substring(sql.indexOf(\" TABLE \")+7,sql.indexOf(\"(\")).trim());\r\n newfk.append(\" ADD \");\r\n newfk.append(oldfk);\r\n fks.add(newfk);\r\n fkFound = true;\r\n }\r\n\r\n if (fkFound)\r\n sql = removeCommasAtEnd(sql);\r\n\r\n indexFound = false;\r\n while((pos=sql.indexOf(\"INDEX \"))!=-1) {\r\n oldIndex = sql.substring(pos,sql.indexOf(\")\",pos)+1);\r\n sql = replace(\r\n sql,\r\n oldIndex,\r\n \"\"\r\n );\r\n newIndex = new StringBuffer(\"CREATE \");\r\n newIndex.append(oldIndex.substring(0,oldIndex.indexOf(\"(\")));\r\n newIndex.append(\" ON \");\r\n newIndex.append(sql.substring(sql.indexOf(\" TABLE \")+7,sql.indexOf(\"(\")).trim());\r\n newIndex.append( oldIndex.substring(oldIndex.indexOf(\"(\")) );\r\n indexes.add(newIndex);\r\n indexFound = true;\r\n }\r\n\r\n if (indexFound)\r\n sql = removeCommasAtEnd(sql);\r\n\r\n // check for unicode chars...\r\n while((index=sql.indexOf(\"\\\\u\"))!=-1) {\r\n for(int i=index+2;i<Math.min(sql.length(),index+2+6);i++)\r\n if (Character.isDigit(sql.charAt(i)) ||\r\n sql.charAt(i)=='A' ||\r\n sql.charAt(i)=='B' ||\r\n sql.charAt(i)=='C' ||\r\n sql.charAt(i)=='D' ||\r\n sql.charAt(i)=='E' ||\r\n sql.charAt(i)=='F')\r\n if (unicode.length() < 4)\r\n unicode.append(sql.charAt(i));\r\n else\r\n break;\r\n if (unicode.length()>0) {\r\n sql.delete(index, index+1+unicode.length());\r\n sql.setCharAt(index, new Character((char)Integer.valueOf(unicode.toString(),16).intValue()).charValue());\r\n unicode.delete(0, unicode.length());\r\n }\r\n }\r\n\r\n\r\n if (sql.toString().toUpperCase().contains(\"DROP TABLE\")) {\r\n // remove fks before dropping table!\r\n String table = sql.toString().toUpperCase().replace('\\n',' ').replace('\\r',' ').trim();\r\n table = table.substring(10).trim();\r\n if (table.endsWith(\";\"))\r\n table = table.substring(0,table.length()-1);\r\n ResultSet rset = conn.getMetaData().getExportedKeys(null,vo.getUsername().toUpperCase(),table);\r\n String fkName = null;\r\n String tName = null;\r\n Statement stmt2 = conn.createStatement();\r\n boolean fksFound = false;\r\n while(rset.next()) {\r\n fksFound = true;\r\n tName = rset.getString(7);\r\n fkName = rset.getString(12);\r\n\r\n if (vo.getDriverName().equals(\"com.mysql.jdbc.Driver\"))\r\n stmt2.execute(\"ALTER TABLE \"+tName+\" DROP FOREIGN KEY \"+fkName);\r\n else\r\n stmt2.execute(\"ALTER TABLE \"+tName+\" DROP CONSTRAINT \"+fkName);\r\n }\r\n try {\r\n rset.close();\r\n }\r\n catch (Exception ex6) {}\r\n\r\n if (!fksFound &&\r\n !vo.getDriverName().equals(\"oracle.jdbc.driver.OracleDriver\") &&\r\n !vo.getDriverName().equals(\"com.microsoft.jdbc.sqlserver.SQLServerDriver\") &&\r\n !vo.getDriverName().equals(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\") &&\r\n !vo.getDriverName().equals(\"com.mysql.jdbc.Driver\")\r\n && !vo.getDriverName().equals(\"org.sqlite.JDBC\")) {\r\n // case postgres...\r\n rset = conn.getMetaData().getExportedKeys(null,null,null);\r\n while(rset.next()) {\r\n if (rset.getString(3).toUpperCase().equals(table)) {\r\n tName = rset.getString(7);\r\n fkName = rset.getString(12);\r\n\r\n if (vo.getDriverName().equals(\"com.mysql.jdbc.Driver\"))\r\n stmt2.execute(\"ALTER TABLE \"+tName+\" DROP FOREIGN KEY \"+fkName);\r\n else\r\n stmt2.execute(\"ALTER TABLE \"+tName+\" DROP CONSTRAINT \"+fkName);\r\n }\r\n }\r\n try {\r\n rset.close();\r\n }\r\n catch (Exception ex6) {}\r\n }\r\n\r\n try {\r\n stmt2.close();\r\n }\r\n catch (Exception ex6) {}\r\n\r\n } // end if\r\n\r\n if (sql.toString().trim().length()>0) {\r\n String query = sql.toString().substring(0,sql.length() - 1);\r\n System.out.println(\"Execute query: \" + query);\r\n pstmt = conn.prepareStatement(query);\r\n for (int i = 0; i < vals.size(); i++) {\r\n pstmt.setObject(i + 1, vals.get(i));\r\n }\r\n\r\n try {\r\n pstmt.execute();\r\n }\r\n catch (SQLException ex4) {\r\n try {\r\n if (sql.toString().toUpperCase().contains(\"DROP TABLE\")) {\r\n//\t\t\t\t\t\t\t\t\tLogger.error(\"NONAME\", this.getClass().getName(), \"executeSQL\",\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"Invalid SQL: \" + sql, ex4);\r\n }\r\n else\r\n throw ex4;\r\n }\r\n catch (Exception exx4) {\r\n throw ex4;\r\n }\r\n }\r\n pstmt.close();\r\n }\r\n\r\n sql.delete(0, sql.length());\r\n vals.clear();\r\n }\r\n }\r\n br.close();\r\n\r\n for(int i=0;i<fks.size();i++) {\r\n sql = (StringBuffer)fks.get(i);\r\n pstmt = conn.prepareStatement(sql.toString());\r\n try {\r\n pstmt.execute();\r\n }\r\n catch (SQLException ex4) {\r\n Logger.error(\"NONAME\", this.getClass().getName(), \"executeSQL\",\r\n \"Invalid SQL: \" + sql, ex4);\r\n }\r\n pstmt.close();\r\n }\r\n\r\n for(int i=0;i<indexes.size();i++) {\r\n sql = (StringBuffer)indexes.get(i);\r\n pstmt = conn.prepareStatement(sql.toString());\r\n try {\r\n pstmt.execute();\r\n }\r\n catch (SQLException ex3) {\r\n Logger.error(\"NONAME\", this.getClass().getName(), \"executeSQL\",\r\n \"Invalid SQL: \" + sql, ex3);\r\n }\r\n pstmt.close();\r\n }\r\n\r\n conn.commit();\r\n\r\n }\r\n catch (Throwable ex) {\r\n try {\r\n Logger.error(\"NONAME\", this.getClass().getName(), \"executeSQL\",\r\n \"Invalid SQL: \" + sql, ex);\r\n }\r\n catch (Exception ex2) {\r\n }\r\n throw ex;\r\n }\r\n finally {\r\n try {\r\n if (pstmt!=null)\r\n pstmt.close();\r\n }\r\n catch (SQLException ex1) {\r\n }\r\n }\r\n }", "public static void callEx942d() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"We will count all the products with a price greater than what you enter.\");\n System.out.println(\"Price: \");\n int price = input.nextInt();\n\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_942d(?)}\");\n cStmt.setInt(1, price);\n boolean hadResults = cStmt.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n /* process second result set */\n if (cStmt.getMoreResults()) {\n ResultSet rs2 = cStmt.getResultSet();\n ResultSetMetaData rsmd2 = rs2.getMetaData();\n System.out.println(\"Procdure \" + \"{call bobbykain_931a(?)}\");\n System.out.println(\"Procdure Result:\");\n int columnsNumber2 = rsmd2.getColumnCount();\n while (rs2.next()) {\n for (int i = 1; i <= columnsNumber2; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue2 = rs2.getString(i);\n System.out.print(columnValue2 + \" \" + rsmd2.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n /* process second third set */\n if (cStmt.getMoreResults()) {\n ResultSet rs3 = cStmt.getResultSet();\n ResultSetMetaData rsmd3 = rs3.getMetaData();\n System.out.println(\"Procdure \" + \"{call bobbykain_931a(?)}\");\n System.out.println(\"Procdure Result:\");\n int columnsNumber3 = rsmd3.getColumnCount();\n while (rs3.next()) {\n for (int i = 1; i <= columnsNumber3; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue3 = rs3.getString(i);\n System.out.print(columnValue3 + \" \" + rsmd3.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n System.out.println(\"test\");\n\n\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "public static void OraConnectionUsingNativeAPI() {\n Connection connection = null;\n try {\n\n // Static url variable\n Connection conn = DriverManager.getConnection(url, schema, password);\n Statement stmt = conn.createStatement();\n // The SQL Statement to execute.\n ResultSet rset = stmt.executeQuery(\"select text from dba_views where rownum < 3\");\n ResultSetMetaData rmd = rset.getMetaData();\n\n // Prints the Result Set\n while (rset.next()) {\n // (1): Prints The First Column in the \"rset\" [Result Set]\n System.out.println (rset.getString(1));\n System.out.println (rmd.getColumnTypeName(1));\n } \n rset.close();\n stmt.close();\n conn.close();\n } \n catch(SQLException e) {}\n }", "public void connect() throws NamingException, SQLException {\n if (con != null) disconnect();\n try {\n \tString url = \"jdbc:postgresql://localhost/stocksim\";\n \tProperties props = new Properties();\n props.setProperty(\"user\", \"ubuntu\");\n props.setProperty(\"password\", \"reverse\");\n con = DriverManager.getConnection(url, props);\n \n // Prepare statements:\n for (PreparedStatementID i: PreparedStatementID.values()) {\n PreparedStatement preparedStatement = con.prepareStatement(i.sql);\n _preparedStatements.put(i, preparedStatement);\n }\n } catch (SQLException e) {\n if (con != null) disconnect();\n throw e;\n }\n }", "public ResultSet appcomp(Long comp_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from company where comp_id=\"+comp_id+\"\");\r\n\treturn rs;\r\n}", "private static void testOracle10() throws Exception {\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.5.74:1521:orcl\", \"rtmartvts\", \"comwave\");\r\n\r\n\t\t// Query the employee names\r\n\t\tStatement stmt = conn.createStatement();\r\n\t\t// stmt.execute(\"create table TEST1(A1 VARCHAR2(50) NOT NULL,A2 DATE, A3 NUMBER(10,2))\");\r\n\t\t// ResultSet rset = stmt.executeQuery(\"SELECT owner, table_name FROM dba_tables\");\r\n\r\n\t\t// String sql = \"SELECT column_name FROM cols WHERE table_name LIKE 'AA%'\";\r\n\t\tResultSet rset = stmt.executeQuery(\"SELECT * FROM CITY\");\r\n\t\t// ResultSet rset = stmt.executeQuery(sql);\r\n\t\t// Print the name out\r\n\t\twhile (rset.next())\r\n\t\t\tSystem.out.println(rset.getString(1));\r\n\r\n\t\t// System.out.println(rset.getString(1) + \":\" + rset.getString(2));\r\n\r\n\t}", "public static void callEx942c() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter a model, speed, ram, hd, and price of a new pc. If it already exists we will let you know.\");\n System.out.println(\"Model: \");\n int model = input.nextInt();\n System.out.println(\"Speed: \");\n float speed = input.nextFloat();\n System.out.println(\"Ram: \");\n int ram = input.nextInt();\n System.out.println(\"HD: \");\n int hd = input.nextInt();\n System.out.println(\"Price:\");\n int price = input.nextInt();\n\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_942c(?, ?, ?, ?, ?)}\");\n cStmt.setInt(1, model);\n cStmt.setFloat(2, speed);\n cStmt.setInt(3, ram);\n cStmt.setInt(4, hd);\n cStmt.setInt(5, price);\n boolean hadResults = cStmt.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n\n\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "public native static void jniprintMiraDB();", "public static void callEx931d() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Please enter a budget (total price of a PC and printer, and a minimum speed of the PC.)\");\n System.out.println(\"Budget: \");\n float budget = input.nextFloat();\n System.out.println(\"Min Speed: \");\n float speed = input.nextFloat();\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_931d(?, ?)}\");\n cStmt.setFloat(1, budget);\n cStmt.setFloat(2, speed);\n rs = cStmt.getResultSet();\n\n String pc_model = rs.getString(1);\n int pc_price = rs.getInt(2);\n\n float restBudget = budget - pc_price;\n CallableStatement cStmt2 = conn.prepareCall(\"{call bobbykain_931da(?)}\");\n cStmt.setFloat(1, restBudget);\n\n boolean hadResults = cStmt2.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n cStmt.close();\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "public ResultSet Brus(Long broker_id) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\" \");\r\n\treturn rs;\r\n\t\r\n}", "public static void main(String[] args) {\r\n\t\tStatement stmt =null;\r\n\t\tResultSet rs = null;\r\n\t\tConnection con = null;\r\n\t\tString sql=\"select distro from sp_app where userid='220'\";\r\n\t\ttry {\r\n\r\n\t\t\tString url=\"jdbc:mysql://rds92rpo26irqpw1ev1q.mysql.rds.aliyuncs.com:3306/partnersdk?useUnicode=true&characterEncoding=UTF-8\";\r\n\t\t\tString user = \"fqy\";\r\n\t\t\tString password= \"fqy1234\";\r\n\t\t\tcon = DriverManager.getConnection(url, user, password);\r\n\t\t\tstmt = con.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\tList<String> distroes = new ArrayList<>();\r\n\t\t\tList<String> newdistroes = new ArrayList<>();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tString distro = rs.getString(1);\r\n\t\t\t\tdistroes.add(distro);\r\n\t\t\t}\r\n\t\t\tfor (String distro : distroes) {\r\n\t\t\t\tif(distro.startsWith(\"0\")){\r\n\t\t\t\t\twhile(distro.startsWith(\"0\")){\r\n\t\t\t\t\t\tdistro = distro.substring(1);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(!distroes.contains(distro)){\r\n\t\t\t\t\t\tnewdistroes.add(distro);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tfor (String distro : newdistroes) {\r\n\t\t\t\tSystem.out.println(distro);\r\n//\t\t\t\tString insert=\"INSERT into sp_app(gamename,gameid,userid,distro,distroname,type) VALUES('TV','013','220','\"+distro+\"','明鹏光易','SP')\";\r\n//\t\t\t\tboolean isInert = stmt.execute(insert);\r\n//\t\t\t\tSystem.out.println(isInert);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tif(rs !=null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(null != stmt){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(con != null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tString jdbc_driver = \"com.mysql.cj.jdbc.Driver\"; \r\n\t\tString jdbc_url = \"jdbc:mysql://localhost:3306/databasetest2?serverTimezone=UTC\"; \r\n\t\ttry { \r\n \t\t\tClass.forName(jdbc_driver).newInstance(); \r\n \t\t\tConnection con = DriverManager.getConnection(jdbc_url, \"root\", \"123456\"); \r\n \t\t\t\r\n \t\t\t//과제 1\r\n \t\t\t/*\r\n \t\t\tStatement st = con.createStatement();\r\n \t\t\tString sql =\"CREATE TABLE addressbook(id INT not null primary key,name VARCHAR(45) not null,tel VARCHAR(45) not null,email VARCHAR(60) not null,address VARCHAR(60) not null)\";\r\n \t\t\tst.executeUpdate(sql);\r\n \t\t\t*/\r\n \t\t\t\r\n \t\t\t//과제 2\r\n \t\t\t/*\r\n \t\t\tPreparedStatement pst = con.prepareStatement(\"insert into databasetest2.addressbook VALUES(?, ?, ?, ?, ?)\");\r\n\t\t\tpst.setInt(1,1);\r\n\t\t\tpst.setString(2, \"서미현\");\t//이름\r\n\t\t\tpst.setString(3, \"010-8615-0345\");\t//전화번호\r\n\t\t\tpst.setString(4, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setString(5, \"seoul\");\t//주소\r\n\t\t\tpst.executeUpdate();\r\n\t\t\tpst.setInt(1,2);\r\n\t\t\tpst.setString(2, \"김가나\");\t//이름\r\n\t\t\tpst.setString(3, \"010-1234-1234\");\t//전화번호\r\n\t\t\tpst.setString(4, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setString(5, \"seoul\");\t//주소\r\n\t\t\tpst.executeUpdate();\r\n\t\t\tpst.setInt(1,3);\r\n\t\t\tpst.setString(2, \"나주아\");\t//이름\r\n\t\t\tpst.setString(3, \"010-1212-1212\");\t//전화번호\r\n\t\t\tpst.setString(4, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setString(5, \"incheon\");\t//주소\r\n\t\t\tpst.executeUpdate();\r\n\t\t\tpst.setInt(1,4);\r\n\t\t\tpst.setString(2, \"다팔아\");\t//이름\r\n\t\t\tpst.setString(3, \"010-5555-1255\");\t//전화번호\r\n\t\t\tpst.setString(4, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setString(5, \"incheon\");\t//주소\r\n\t\t\tpst.executeUpdate();\r\n\t\t\tpst.setInt(1,5);\r\n\t\t\tpst.setString(2, \"마자요\");\t//이름\r\n\t\t\tpst.setString(3, \"010-5943-1253\");\t//전화번호\r\n\t\t\tpst.setString(4, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setString(5, \"gyeonggi\");\t//주소\r\n\t\t\tpst.executeUpdate();\r\n \t\t\t*/\r\n \t\t\t\r\n \t\t\t//과제2 -1 ( 결과 출력)\r\n \t\t\t/*\r\n \t\t\tStatement st = con.createStatement();\r\n \t\t\tString sql = \"SELECT * FROM databasetest2.addressbook\";\r\n \t\t\tResultSet rs = st.executeQuery(sql);\r\n \t\t\t\r\n \t\t\twhile(rs.next()) {\r\n \t\t\t\tint id = rs.getInt(\"id\");\r\n \t\t\t\tString name = rs.getString(\"name\");\r\n \t\t\t\tString tel = rs.getString(\"tel\");\r\n \t\t\t\tString email = rs.getString(\"email\");\r\n \t\t\t\tString address = rs.getString(\"address\");\r\n \t\t\t\tSystem.out.printf(\"id: %d, name: %s, tel: %s, email: %s, address: %s\" + \"\\n\", id, name, tel, email, address);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\trs.close();\r\n \t\t\t*/\r\n \t\t\t\r\n \t\t\t//과제3\r\n \t\t\t/*\r\n \t\t\tPreparedStatement pst = con.prepareStatement(\"update databasetest2.addressbook set email=? where id = ?\");\r\n\t\t\tpst.setString(1, \"[email protected]\");\t//이메일\r\n \t\t\tpst.setInt(2,1);\r\n\t\t\tpst.executeUpdate();\r\n\t\t\t\r\n\t\t\tpst.setString(1, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setInt(2,2);\r\n\t\t\tpst.executeUpdate();\r\n\t\t\t\r\n\t\t\tpst.setString(1, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setInt(2,3);\r\n\t\t\tpst.executeUpdate();\r\n\t\t\t\r\n\t\t\tpst.setString(1, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setInt(2,4);\r\n\t\t\tpst.executeUpdate();\r\n\t\t\t\r\n\t\t\tpst.setString(1, \"[email protected]\");\t//이메일\r\n\t\t\tpst.setInt(2,5);\r\n\t\t\tpst.executeUpdate();\r\n \t\t\t\r\n\t\t\tStatement st = con.createStatement();\r\n \t\t\tString sql = \"SELECT * FROM databasetest2.addressbook\";\r\n \t\t\tResultSet rs = st.executeQuery(sql);\r\n \t\t\t\r\n \t\t\twhile(rs.next()) {\r\n \t\t\t\tint id = rs.getInt(\"id\");\r\n \t\t\t\tString name = rs.getString(\"name\");\r\n \t\t\t\tString tel = rs.getString(\"tel\");\r\n \t\t\t\tString email = rs.getString(\"email\");\r\n \t\t\t\tString address = rs.getString(\"address\");\r\n \t\t\t\tSystem.out.printf(\"id: %d, name: %s, tel: %s, email: %s, address: %s\" + \"\\n\", id, name, tel, email, address);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\trs.close();\r\n \t\t\t*/\r\n \t\t\t\r\n \t\t\t//과제4\r\n \t\t\tPreparedStatement pst = con.prepareStatement(\"delete from databasetest2.addressbook where id = ?\");\r\n \t\t\tpst.setInt(1,4);\r\n\t\t\tpst.executeUpdate();\r\n\t\t\tpst.setInt(1, 5);\r\n\t\t\tpst.executeUpdate();\r\n\r\n\t\t\tStatement st = con.createStatement();\r\n \t\t\tString sql = \"SELECT * FROM databasetest2.addressbook\";\r\n \t\t\tResultSet rs = st.executeQuery(sql);\r\n \t\t\t\r\n \t\t\twhile(rs.next()) {\r\n \t\t\t\tint id = rs.getInt(\"id\");\r\n \t\t\t\tString name = rs.getString(\"name\");\r\n \t\t\t\tString tel = rs.getString(\"tel\");\r\n \t\t\t\tString email = rs.getString(\"email\");\r\n \t\t\t\tString address = rs.getString(\"address\");\r\n \t\t\t\tSystem.out.printf(\"id: %d, name: %s, tel: %s, email: %s, address: %s\" + \"\\n\", id, name, tel, email, address);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\trs.close();\r\n \t\t\tpst.close(); \r\n \t\t\tcon.close();\t\t\t \r\n \t\t} catch (Exception e) { \r\n \t\t\te.printStackTrace(); \r\n \t\t} \r\n \t}", "public static Connection CrearConexion(){\n String clave=\"inacap\";\r\n String usuario=\"inacap\";\r\n String url=\"jdbc:derby://localhost:1527/aereopuerto\";\r\n \r\n //crear conexion a la Base de datos\r\n \r\n try{\r\n Connection conn=DriverManager.getConnection(url,usuario,clave);\r\n return conn;\r\n }\r\n catch(SQLException e){\r\n System.out.println(\"Excepcion de sql:\"+e);\r\n return null;\r\n }\r\n \r\n \r\n }", "public static void main(String[] args) {\n\n try { //Same Methods as in the Main class; SOme of the Initial steps will remain the same!!\n\n //2nd, We are going to load and register the oracle driver\n Class.forName(\"oracle.jdbc.driver.OracleDriver\"); //We have to put a try catch block if not we will get an error\n\n //3rd Now, we have to create a connection\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521/Rklamadji1\", \"hr\", \"11\");\n //getConnectionMethod takes 3 parameters which are (\"URl\", \"Username\", \"Password\")\n\n\n Statement st = conn.createStatement(); // 4th Here, we are creating our Statement Object!!\n\n //Now, I am updating some records that I mistakly insert twice\n\n st.executeUpdate(\"UPDATE emp SET id = 1 WHERE id = 2\"); // Here, I am changing the data from the emp table;\n\n\n conn.close(); //To close our connection Method!!\n\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "private void conntest() {\n\t\tDatabaseDao ddao = null;\r\n\t\tString url;\r\n\r\n\t\tif (dbType.getValue().toString().toUpperCase()\r\n\t\t\t\t.equals((\"oracle\").toUpperCase())) {\r\n\t\t\turl = \"jdbc:oracle:thin:@\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tSystem.out.println(\"?\");\r\n\t\t\tddao = new OracleDaoImpl();\r\n\t\t} else {\r\n\t\t\turl = \"jdbc:mysql://\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tddao = new MysqlDaoImpl();\r\n\t\t}\r\n\t\tSystem.out.println(url);\r\n\t\tString result = ddao.connection(url, logTxtId.getText(),\r\n\t\t\t\tlogTxtPw.getText());\r\n\t\tString resultSet;\r\n\t\tif (result.indexOf(\"오류\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"오류\"));\r\n\t\telse if (result.indexOf(\"ORA\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"ORA\"));\r\n\t\telse {\r\n\t\t\tresultSet = \"접속 테스트 성공\";\r\n\t\t}\r\n\t\tlogLblLogin.setText(resultSet);\r\n\t}", "private void cargarTipEmp(java.sql.Connection conn, java.sql.ResultSet rstExt) {\r\n Statement stmTipEmp;\r\n ResultSet rstEmp;\r\n String sSql;\r\n try {\r\n if (conn != null) {\r\n stmTipEmp = conn.createStatement();\r\n sSql = \"select b.co_tipper , b.tx_descor , round(a.nd_ivaVen,2) as porIva , bod.co_bod, a1.tx_dir, a1.tx_nom as nombod FROM tbm_emp as a \"\r\n + \" left join tbm_tipper as b on(b.co_emp=a.co_emp and b.co_tipper=a.co_tipper)\"\r\n + \" left join tbr_bodloc as bod on(bod.co_emp=a.co_emp and bod.co_loc=\" + rstExt.getString(\"co_loc\") + \" and bod.st_reg='P') \"\r\n + \" inner join tbm_bod as a1 on (a1.co_emp=bod.co_emp and a1.co_bod=bod.co_bod ) \"\r\n + \" where a.co_emp=\" + rstExt.getString(\"co_emp\");\r\n rstEmp = stmTipEmp.executeQuery(sSql);\r\n if (rstEmp.next()) {\r\n strTipPer_emp = rstEmp.getString(\"tx_descor\");\r\n intCodBodPre = rstEmp.getInt(\"co_bod\");\r\n intCodTipPerEmp = rstEmp.getInt(\"co_tipper\");\r\n strNomBodPtaPar = rstEmp.getString(\"tx_dir\");\r\n strNomBodPrv = rstEmp.getString(\"nombod\");\r\n bldivaEmp = objZafCtaCtb_dat.getPorIvaVen();\r\n dblPorIva = bldivaEmp;\r\n dblPorComSol = objZafCtaCtb_dat.getPorComSol();\r\n }\r\n rstEmp.close();\r\n stmTipEmp.close();\r\n stmTipEmp = null;\r\n rstEmp = null;\r\n }\r\n } \r\n catch (SQLException Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n } \r\n catch (Exception Evt) {\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n }\r\n }", "private static void testOracle7() throws Exception {\n\t\tClass.forName(\"jdbc.driver.oracle.Oracle7Driver\");\r\n\t\t//DriverManager.registerDriver(new Oracle7Driver());\r\n\r\n\t\t// Connect to the local database\r\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:oracle:thin:@192.168.5.168:1521:RT\", \"stdba\", \"stdba\");\r\n\r\n\t\t// Query the employee names\r\n\t\tStatement stmt = conn.createStatement();\r\n\t\t// stmt.execute(\"create table TEST1(A1 VARCHAR2(50) NOT NULL,A2 DATE, A3 NUMBER(10,2))\");\r\n\t\t// ResultSet rset = stmt.executeQuery(\"SELECT owner, table_name FROM dba_tables\");\r\n\r\n\t\t// String sql = \"SELECT column_name FROM cols WHERE table_name LIKE 'AA%'\";\r\n\t\tResultSet rset = stmt.executeQuery(\"select STAGE_NO,CLIENT_NO,POINT_START,POINT_ADD,POINT_USE from CLIENT_BONUS where STAGE_NO=2012 and CLIENT_NO=1056\");\r\n\t\t// ResultSet rset = stmt.executeQuery(sql);\r\n\t\t// Print the name out\r\n\t\twhile (rset.next())\r\n\t\t\tSystem.out.println(rset.getString(1));\r\n\r\n\t\t// System.out.println(rset.getString(1) + \":\" + rset.getString(2));\r\n\r\n\t}", "@Test\r\n\tpublic void testHiveJdbc(){\n\t\tString sql = \"select * from data limit 20\";\r\n\t\tQueryRunner runner = new QueryRunner(DbUtil.getConnection());\r\n\t\trunner.query(sql, rs->{\r\n\t\t\tResultSetMetaData metaData = rs.getMetaData();\r\n\t\t\tint columnCount = metaData.getColumnCount();\r\n\t\t\tfor (int i = 0; i < columnCount; i++) {\r\n\t\t\t\tSystem.out.print(rs.getObject(columnCount));\r\n\t\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\treturn null;});\r\n\t}", "public void conectar() {\n try {\n //Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n Class.forName(\"org.mariadb.jdbc.Driver\"); \n\n //con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\"); \n con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\");\n state = con.createStatement();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "private static Connection connectToDB() {\n\t\t\tConnection con = null;\n\t\t\ttry {\n\t\t\t\t// Carichiamo un driver di tipo 1 (bridge jdbc-odbc).\n\t\t\t\t//String driver = \"sun.jdbc.odbc.JdbcOdbcDriver\";\n\t\t\t\tClass.forName(DRIVER);\n\t\t\t\t// Creiamo la stringa di connessione.\n\t\t\t\t// Otteniamo una connessione con username e password.\n\t\t\t\tcon = DriverManager.getConnection (URL, USER, PSW);\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn con;\n\t\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n \tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n \t\n \t//2. Baglanti olusturmaliyiz\n \tString url = \"jdbc:oracle:thin:@localhost:1521/xe\";\n \tString kullanici = \"hr\";\n \tString sifre = \"hr\";\n \tConnection con = DriverManager.getConnection(url, kullanici, sifre);\n \t\n \t//3. SQL komutlari icin bir Statement nesnesi olustur\n \tStatement st = con.createStatement();\n \t\n \t//4. Bolumler tablosundaki tum kayitlari listeleyen bir sorgu\n \tString selectQuery = \"SELECT * FROM bolumler\";\n \tResultSet tablo1 = st.executeQuery(selectQuery);\n \t\n \t//5.\n \twhile(tablo1.next()) {\n \t\tSystem.out.println(tablo1.getInt(1)+ \" \" \n \t\t\t\t\t\t + tablo1.getString(2) + \" \"\n \t\t\t\t\t\t +tablo1.getString(3));\n \t}\n \t\n \tSystem.out.println(\"=========================\");\n \t/*=======================================================================\n \t\t\t ORNEK2: SATIS ve MUHASABE bolumlerinde calisan personelin isimlerini ve \n \t \t\t maaslarini maas sirali olarak listeleyiniz\n \t\t\t========================================================================*/\n \tString q2 = \"SELECT personel_isim, maas\"\n \t\t\t+ \" FROM personel\"\n \t\t\t+ \" WHERE bolum_id IN(10,30)\"\n \t\t\t+ \" ORDER BY maas DESC\";\n \t\n \tResultSet tablo2 = st.executeQuery(q2);\n \n \twhile(tablo2.next()) {\n \t\tSystem.out.println(\"Isim: \" + tablo2.getString(1)+ \"\\t\" \n \t\t\t\t\t\t+ \"Maas : \" + tablo2.getInt(2));\n \t} \t\n \t\nSystem.out.println(\"=========================================\");\n\t\t\n\t\t/*=======================================================================\n\t\t ORNEK 3: Tüm bolumlerde calisan personelin isimlerini, bolum isimlerini \n\t\t ve maaslarini, bolum ve maas siraali listeleyiniz. NOT: calisani olmasa \n\t\t bile bolum ismi gosterilmelidir.\n\t\t========================================================================*/\n\t\t\n\t\tString q3 = \"SELECT b.bolum_isim, p.personel_isim, p.maas\"\n\t\t\t\t+ \" FROM personel p\"\n\t\t\t\t+ \" FULL JOIN bolumler b\"\n\t\t\t\t+ \" ON b.bolum_id = p.bolum_id\"\n\t\t\t\t+ \" ORDER BY b.bolum_isim, p.maas\";\n\t\tResultSet sonuc1 = st.executeQuery(q3);\n\t\t\n\t\twhile(sonuc1.next()) {\n\t\t\tSystem.out.println(sonuc1.getString(1)+ \"\\t\" + sonuc1.getString(2) + \"\\t\" + sonuc1.getInt(3));\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\t\n\t\t/*=======================================================================\n\t\t\t\t ORNEK 4: Maasi en yuksek 10 kisinin bolumunu,adini ve maasini listeyiniz\n\t\t========================================================================*/\n\n\t\tString q4 =\"SELECT b.bolum_isim, p.personel_isim, p.maas\"\n\t\t\t\t+ \" FROM personel p\"\n\t\t\t\t+ \" JOIN bolumler b\"\n\t\t\t\t+ \" ON b.bolum_id = p.bolum_id\"\n\t\t\t\t+ \" ORDER BY p.maas DESC\"\n\t\t\t\t+ \" FETCH NEXT 10 ROWS ONLY\";\n\t\t\n\t\t\n\t\tResultSet sonuc2 = st.executeQuery(q4);\n\t\t\n\t\twhile(sonuc2.next()) {\n\t\t\tSystem.out.println(sonuc2.getString(1)+ \" \" + sonuc2.getString(2) + \" \" + sonuc2.getInt(3));\n\t\t}\n \t\n \t//6. Olusturlan nesneleri silelim\n\t\tcon.close();\n\t\tst.close();\n\t\ttablo1.close();\n\t\tsonuc1.close();\n\t\tsonuc2.close();\n \ttablo2.close();\n \t\n\n\t}", "public void insertBillFood(Bill billFood) {\nString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n \ntry {\n\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t \n\t\n\t\tps.setInt(1, billFood.getIdF());\n\t\tps.setString(2,null);\n\t ps.setInt(3, billFood.getIdE());\n\t\tps.setDouble(4, billFood.getPrice());\n\t\tps.setString(5, billFood.getSerialNumber());\n\t\tps.setDouble(6, billFood.getTotal());\n\t\tps.execute();\n\t\t\n\t\n\t \n} catch (SQLException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n}\n\n\t\n\t\n}", "private boolean cotizacionReservaDespachoAntesFactura(java.sql.Connection conExt, int CodEmp, int CodLoc, int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n try{\n if(conExt!=null){\n stmLoc = conExt.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc,a1.co_cot,a1.fe_cot, ROUND(a1.nd_tot,2) as nd_tot, a1.st_reg,a1.st_solResInv,a1.co_tipSolResInv, a1.fe_solResInv, \\n\";\n strSql+=\" a1.st_pedOtrBod, a1.st_solEnvPed, a1.st_autSolResInv, a1.st_autEnvPed, a5.tx_desLar, a5.tx_tipResInv, a5.st_facPriDiaLabSigMes,a5.tx_momDes \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \";\n strSql+=\" INNER JOIN tbm_tipSolResInv as a5 ON (a1.co_tipSolResInv=a5.co_tipSolResInv AND a5.st_reg='A') \";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" AND (a1.st_solResInv IS NOT NULL) AND \";\n strSql+=\" a1.st_autSolResInv LIKE ('A') AND a5.tx_momDes='A' \";\n strSql+=\" ORDER BY a1.co_emp,a1.co_loc,a1.co_cot \";\n System.out.println(\"cotizacionReservaDespachoAntesFactura \" + strSql);\n rstLoc=stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n blnRes=true;\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "private static Connection baglan() {\n Connection baglanti = null;\n try {\n baglanti = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/SogutucuKontrolCihazi\",\n \"postgres\", \"159753\");\n if (baglanti != null) //bağlantı varsa\n System.out.println(\"Veritabanına bağlandı!\");\n else\n System.out.println(\"Bağlantı girişimi başarısız!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return baglanti;\n }", "public static SqlUtil forOracle() {\r\n return new SqlUtil(ORACLE);\r\n }", "public static void main(String[] args) {\n\t\tConnection conn = null; // DB연결된 상태(세션)을 담은 객체\n PreparedStatement pstm = null; // SQL 문을 나타내는 객체\n ResultSet rs = null; // 쿼리문을 날린것에 대한 반환값을 담을 객체\n\t\ttry {\t\n\t\t\tint count =0;\n\t\t\tBUYTBL[] buytbl = new BUYTBL[50];\n//\t\t\t Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n//\t\t\t Connection con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"hr\",\"123456\");\n\t\t\tconn = DBConnection.getConnection();\n\t\t\t // 프로시저 호출\n\t\t\t CallableStatement cs = conn.prepareCall(\"begin add_buytbl(?,?,?,?,?,?,?); end;\");\n\t\t\t // 입력 파라메터\n\t\t\t cs.setInt(1, 30);\n\t\t\t cs.setString(2, \"SSK\");\n\t\t\t cs.setString(3, \"운동화\");\n\t\t\t cs.setString(4, null);\n\t\t\t cs.setInt(5, 100);\n\t\t\t cs.setInt(6, 3);\n\t\t\t cs.setString(7, \"코멘트\");\n\t\t\t cs.execute();\n\t\t\t int seq= cs.executeUpdate();\n//\t\t\t ResultSet rs = (ResultSet)cs.getObject(1);\n\t\t\t \n\t\t\t if ( seq ==0 )\n\t\t\t {\n\t\t\t\t System.out.println(seq+\"값\");\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t System.out.println(seq+\"값\");\n\t\t\t }\n\t\t\t \n//\t\t\t rs.close();\n\t\t\t cs.close();\n\t\t\t conn.close();\n\t\t\t } catch(Exception e){\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t}", "public Connection getConn() {\n\ttry {\n\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\tcn=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521/pocdb\",\"PL\",\"PL\");\n\t\t\n\t}\n\tcatch(ClassNotFoundException ce)\n\t{\n\t\tce.printStackTrace();\n\t\t\n\t}\n\tcatch(SQLException se)\n\t{\n\t\tse.printStackTrace();\n\t\t\n\t}\n\t\n\t\n\treturn cn;\n\t\n\n}", "private Connection getConnction() {\r\n\t\tConnection connection = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url = \"jdbc:mysql://192.168.201.120:3306/erp_purchase?zeroDateTimeBeHavior=convertToNull\";\r\n\t\t\tString user = \"xuduo\";\r\n\t\t\tString passwor = \"000000\";\r\n\t\t\tconnection = DriverManager.getConnection(url, user, passwor);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(JdbcExample.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t\t\r\n\t\treturn connection;\r\n\t}", "public D4mDbQuerySql(String url, String user, String pword) {\n super();\n try {\n conn = DriverManager.getConnection(url, user, pword);\n } catch (SQLException e) {\n log.warn(\"\",e);\n }\n\n }", "private boolean consultarCotizacionesParaFacturar(java.sql.Connection conn, int intCodSeg){\r\n boolean blnRes=false;\r\n java.sql.Statement stmLoc,stmLoc01;\r\n stbDocRelEmpRem = new StringBuffer();\r\n arlDocGenDat = new ArrayList();\r\n objZafGenOD = new GenOD.ZafGenOdPryTra() ;\r\n objModDatGenFac = new Librerias.ZafGenFacAut.ZafModDatGenFac(objParSis, jifCnt);\r\n objStkInv = new Librerias.ZafStkInv.ZafStkInv(objParSis);\r\n objCnfDoc = new Librerias.ZafCnfDoc.ZafCnfDoc(objParSis,null);\r\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\r\n java.sql.ResultSet rstLoc,rstLoc01;\r\n String strMerIngEgr=\"\",strTipIngEgr=\"\";\r\n blnIsComSol = false;\r\n try{\r\n stmLoc=conn.createStatement();\r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_seg, a3.tx_corEle, \\n\";\r\n strSql+=\" a1.co_emp, a1.co_loc, a1.co_cot, a1.fe_cot, a1.co_cli, a1.co_ven, a1.tx_ate, a1.co_forpag, \\n\";\r\n strSql+=\" a1.nd_sub, a1.nd_poriva, a1.nd_valdes, a1.tx_obs1, a1.tx_obs2, a1.st_reg, a1.fe_ing, \\n\";\r\n strSql+=\" a1.fe_ultmod, a1.co_usring, a1.co_usrmod, a1.nd_tot, a1.ne_val, a1.nd_valiva, a1.tx_numped, \\n\";\r\n strSql+=\" a1.st_regrep, a1.tx_obssolaut, a1.tx_obsautsol, a1.st_aut, a1.tx_nomcli, a1.fe_procon, \\n\";\r\n strSql+=\" a1.co_locrelsoldevven, a1.co_tipdocrelsoldevven, a1.co_docrelsoldevven, \\n\";\r\n strSql+=\" a1.st_docconmersaldemdebfac, a1.fe_val, a1.co_tipcre, a1.tx_dirclifac, a1.tx_dircliguirem, \\n\";\r\n strSql+=\" a1.co_forret, a1.tx_vehret, a1.tx_choret, \\n\";\r\n strSql+=\" CASE WHEN a1.tx_momgenfac IS NULL THEN 'M' ELSE a1.tx_momgenfac END as tx_momgenfac, \\n\";\r\n strSql+=\" a1.nd_valComSol,a1.nd_subIvaCer,a1.nd_subIvaGra,a1.nd_porComSol,a1.st_solFacPar, a1.tx_tipCot \\n\";\r\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a2 ON (a1.co_emp=a2.co_empRelCabCotVen AND a1.co_loc=a2.co_locRelCabCotVen AND \\n\";\r\n strSql+=\" a1.co_cot=a2.co_cotRelCabCotVen) \\n\";\r\n strSql+=\" INNER JOIN tbm_usr as a3 ON (a1.co_usrIng=a3.co_usr) \\n\";\r\n strSql+=\" WHERE a2.co_seg=\"+intCodSeg+\" AND a2.co_empRelCabCotVen IS NOT NULL AND a1.st_reg!='F' \\n\"; /* LISTO PARA FACTURAR */\r\n strSql+=\" AND a1.st_autSolResInv IS NULL \";\r\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc \\n\";\r\n System.out.println(\"consultarCotizacionesParaFacturar... \\n\" + strSql);\r\n rstLoc=stmLoc.executeQuery(strSql);\r\n while(rstLoc.next()){\r\n CodEmpGenFac = rstLoc.getInt(\"co_emp\");\r\n if(rstLoc.getInt(\"co_emp\")==2 && rstLoc.getInt(\"co_loc\")==4){\r\n blnIsComSol=true;\r\n }\r\n// dblPorComSol=objUti.redondear(rstLoc.getDouble(\"nd_porComSol\"), objParSis.getDecimalesMostrar());\r\n// dblBaseIva=objUti.redondear(rstLoc.getDouble(\"nd_subIvaGra\"), objParSis.getDecimalesMostrar());\r\n\r\n obtenerDatosFactura(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"),rstLoc.getInt(\"co_cot\"));\r\n objZafCtaCtb_dat = new ZafCtaCtb_dat(objParSis,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle);\r\n cargarTipEmp(conn, rstLoc);\r\n Configurartabla();\r\n configurarTablaPago();\r\n refrescaDatos2(conn,rstLoc, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"));\r\n CalculoPago(conn, rstLoc); // TOTALES CARGADO????? \r\n CalculoPago2(conn, rstLoc);\r\n// refrescaDatos2(conn,rstLoc, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"));\r\n FormaRetencion(conn, rstLoc.getInt(\"co_emp\"));\r\n stmLoc01=conn.createStatement();\r\n strSql = \"SELECT st_meringegrfisbod, tx_natdoc FROM tbm_cabtipdoc WHERE co_emp=\" + rstLoc.getInt(\"co_emp\") + \" \"\r\n + \" and co_loc=\"+rstLoc.getInt(\"co_loc\")+\" and co_tipDoc=\" + intCodTipDocFacEle;\r\n rstLoc01 = stmLoc01.executeQuery(strSql);\r\n if (rstLoc01.next()) {\r\n strMerIngEgr = rstLoc01.getString(\"st_meringegrfisbod\");\r\n strTipIngEgr = rstLoc01.getString(\"tx_natdoc\");\r\n }\r\n rstLoc01.close();\r\n rstLoc01=null;\r\n stmLoc01.close();\r\n stmLoc01=null;\r\n //dblPorComSol=0.00,dblBaseIva=0.00;\r\n\r\n System.out.println(\"st_reg= \" + rstLoc.getString(\"st_reg\").toString());\r\n\r\n if(rstLoc.getString(\"st_reg\").equals(\"L\") && (rstLoc.getString(\"tx_momGenFac\").equals(\"F\") || rstLoc.getString(\"tx_momGenFac\").equals(\"M\") )){ // INMACONSA SE FACTURA POR AKI\r\n if(insertarCabFac(conn,rstLoc)){\r\n if (insertarDetFac(conn,rstLoc,intCodSeg)) {\r\n calculaPag(conn, rstLoc);\r\n if (insertarPagFac(conn,rstLoc, intCodTipDocFacEle, intCodDoc)) {\r\n if(insertarDiario(conn,rstLoc, intCodTipDocFacEle, intCodDoc)) {\r\n if (objInvItm._getExiItmSer(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)) {\r\n if(asignaNumeroFac(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc, rstLoc.getInt(\"co_cot\") )){\r\n if(insertarTablaSeguimiento(conn,rstLoc,intCodTipDocFacEle,intCodDoc)){\r\n if(prepararEgreso(conn,rstLoc,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc) ){\r\n// if(objModDatGenFac.cuadraStockSegunMovimientos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.err.println(\"<----- antes costear ----->\");\r\n if(objUti.costearDocumento(jifCnt, objParSis, conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.err.println(\"<----- despues costear ----->\");\r\n if(revisarInvBodNegativos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.out.println(\"ANTES OD \");\r\n if(objZafGenOD.generarODLocal(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc,true)){\r\n if(objDatItm.preLiberarItems(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), rstLoc.getInt(\"co_cot\"))){\r\n blnRes=true;\r\n guardaDocumentosGenerado(rstLoc,intCodTipDocFacEle,intNumFacElec,intCodDoc,rstLoc.getString(\"tx_corEle\")); // PARA EL CORREO ELECTRONICO\r\n System.out.println(\"GENERO: \"+rstLoc.getInt(\"co_emp\")+\" - \"+rstLoc.getInt(\"co_loc\")+\" - \"+rstLoc.getInt(\"co_cot\")+\"FACTURA: \"+intCodTipDocFacEle+\"-\"+intCodDoc);\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{System.out.println(\"costeo Error\"); blnRes=false; }\r\n// }else{ System.out.println(\"cuadraStockSegunMovimientos Error\"); blnRes = false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n\r\n if(blnRes==false){\r\n objCorEle.enviarCorreoMasivo(strCorEleTo,\"ERROR.... \",\"Revisar Seguimiento: \"+rstLoc.getInt(\"co_seg\")+\"cotizacion Emp:\"+rstLoc.getInt(\"co_emp\")+\" Loc:\"+rstLoc.getInt(\"co_loc\")+\" Cot:\" + rstLoc.getInt(\"co_cot\"));\r\n }\r\n }\r\n else if(rstLoc.getString(\"tx_momGenFac\").equals(\"P\")){\r\n// if(obtenerFacturaSeguimiento(conn,intCodSeg)){\r\n// if(actualizarDetFac(conn,rstLoc)){\r\n// if(prepararEgreso(conn,rstLoc,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc) ){\r\n// if(!objZafGenOD.validarODExs(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// if(objZafGenOD.generarNumODFacIni(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// if(revisarInvBodNegativos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// blnRes=true;\r\n// }else{blnRes=false;}\r\n// }else{blnRes=false;}\r\n// }else{ blnRes=true; }\r\n// }\r\n// }\r\n// }\r\n blnRes=false;\r\n }\r\n else{\r\n objCorEle.enviarCorreoMasivo(strCorEleTo, \"FACTURA AUTOMATICA ESTADO INCORRECTO.... \",\"Revisar Seguimiento: \"+rstLoc.getInt(\"co_seg\"));\r\n }\r\n\r\n\r\n\r\n\r\n if(blnRes==false){\r\n System.out.println(\"FALLO!!! \"+rstLoc.getInt(\"co_emp\")+\" - \"+rstLoc.getInt(\"co_loc\")+\" - \"+rstLoc.getInt(\"co_cot\"));\r\n }\r\n objZafCtaCtb_dat = null;\r\n }\r\n if(blnRes){\r\n enviaCorreosElectronicos();\r\n// enviaImprimirOdLocal(conn);\r\n enviarPulsoFacturacionElectronica();\r\n System.err.println(\"GUARDA!!!! \");\r\n }\r\n else{\r\n System.err.println(\"ERROR!!!! \");\r\n }\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n rstLoc.close();\r\n rstLoc=null;\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }", "private void open_db() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); \n Con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projectlaundry\",\"root\",\"\");\n stm = Con.createStatement();\n }\n catch (Exception e){\n JOptionPane.showMessageDialog(null,\"Koneksi gagal\");\n System.out.println(e.getMessage());\n }\n }", "public int getJdbcType();", "public static void callEx931b() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Please enter the minimun values of the speed, RAM, hard-disk size, and screen size that you will accept for a Laptop.\");\n System.out.println(\"Min Speed: \");\n float speed = input.nextFloat();\n System.out.println(\"Min RAM: \");\n int ram = input.nextInt();\n System.out.println(\"Min hard-disk size: \");\n int hd = input.nextInt();\n System.out.println(\"Min Screen Size: \");\n float screen = input.nextFloat();\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_931b(?, ?, ?, ?)}\");\n cStmt.setFloat(1, speed);\n cStmt.setInt(2, ram);\n cStmt.setInt(3, hd);\n cStmt.setFloat(4, screen);\n boolean hadResults = cStmt.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "float getCPM() throws SQLException;", "private void mbushetabelen() {\n try {\n Statement stmt = LidhjaMeDb.hapelidhjen();\n //CallableStatement stmt = conn.prepareCall(\"{call procedura1(?)}\");\n //stmt.setInt(1, 1);\n //ResultSet rs=stmt.executeQuery();\n String sql = \"SELECT kerkesat.kompania AS 'Kompania', llojet_lejes.lloji_lejes AS 'Lloji i Lejes'\"\n + \" ,kerkesat.adresa AS 'Adresa', kerkesat.tel AS 'Tel',kerkesat.data_pranimit AS 'Data e Pranimit'\"\n + \" ,kerkesat.nr_protokollit AS 'Numri i Protokollit', aktivitetet.aktiviteti AS 'Aktiviteti'\"\n + \" ,komunat.komuna AS 'Komuna', kerkesat.taksa AS 'Taksa', kerkesat.statusi_lendes AS 'Statusi i Lendes'\"\n + \" ,kerkesat.data_leshimit AS 'Data e Leshimit'\"\n + \" ,pergjigjjet_komisionit.pergjigjja AS 'Pergjigjja e Komisionit' FROM kerkesat \"\n + \" JOIN llojet_lejes ON kerkesat.idlloji = llojet_lejes.idlloji \"\n + \" JOIN aktivitetet ON kerkesat.idaktiviteti = aktivitetet.idaktiviteti \"\n + \" JOIN pergjigjjet_komisionit ON kerkesat.idpergjigjja = pergjigjjet_komisionit.idpergjigjja \"\n + \" JOIN komunat ON kerkesat.idkomuna=komunat.idkomuna \"\n + \"WHERE kompania LIKE '%\" + txtkompania.getText() + \"%' \"\n + \"AND aktiviteti like '%\" + (String) kmbaktiviteti.getSelectedItem() + \"%' \"\n + \"AND komuna like '%\" + (String) kmbkomunat.getSelectedItem() + \"%' \"\n + \"AND pergjigjja like '%\" + (String) kmbpergjigjja.getSelectedItem() + \"%' \"\n + \"AND data_pranimit >= '\" + new java.sql.Date(jdataprej.getDate().getTime()) + \"' AND data_pranimit <= '\" + new java.sql.Date(jdataderi.getDate().getTime()) + \"' \";\n System.out.println(sql);\n ResultSet rs = stmt.executeQuery(sql);\n tblkerkesat.setModel(DBUtils.resultSetToTableModel(rs));\n//boolean Zgjedhur=false;jTable1.addColumn(Zgjedhur);\n LidhjaMeDb.mbyllelidhjen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void abrirConexao() throws SQLException {\n\t\tDriverManager.registerDriver(new FBDriver());\n\t\tobjcon = DriverManager.getConnection(\n\t\t\t\t\"jdbc:firebirdsql:server1b/3050:D:/PROGRAM FILES/FIREBIRD/LTP4/BDPRODUTOS.GDB\", \n\t\t\t\t\"SYSDBA\", \"masterkey\");\n\t}", "public static Statement getConnection(){\n\t\tConnection jdbc = null;\n\t\tStatement stmt = null;\n\t\ttry {\n\t Class.forName(\"org.postgresql.Driver\");\n\t jdbc = DriverManager\n\t .getConnection(\"jdbc:postgresql://localhost:5432/MA\",\n\t \"postgres\", \"\");\n\t stmt = jdbc.createStatement();\n\t\t}\n\t catch ( Exception e ) {\n\t System.err.println( e.getClass().getName()+\": \"+ e.getMessage() );\n\t System.exit(0);\n\t }\n\t\t\n\t\treturn stmt;\n\t}", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public static Connection createConnection() throws SQLException {\n\t\t// DriverManager.setLogStream( System.out );\n\t\ttry {\n\t\t\tClass.forName(\"smallsql.jdbc.SSDriver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn DriverManager.getConnection(JDBC_URL + \"?create=true;locale=en\");\n\t}", "private boolean moverInvBodReservado(java.sql.Connection conExt,int intCodEmp,int intCodLoc,int intCodCot){\n boolean blnRes=false, blnIns=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n double dblCanDis=0.00, dblCanSolRes=0.00;\n String strIns=\"\";\n try{\n if(conExt!=null){\n stmLoc = conExt.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp,a1.co_loc,a1.co_cot,a1.co_reg,a1.nd_canAut, a2.co_emp as co_empInvBod,a2.co_bod as co_bodInvBod,a2.co_itm,a2.nd_stkAct, \\n\";\n strSql+=\" CASE WHEN a2.nd_canDis IS NULL THEN 0 ELSE a2.nd_canDis END as nd_canDis \\n\";\n strSql+=\" FROM tbm_pedOtrBodCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_invBod as a2 ON (a1.co_empRel=a2.co_emp AND a1.co_bodRel=a2.co_bod AND a1.co_itmRel=a2.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+intCodEmp+\" AND a1.co_loc=\"+intCodLoc+\" AND a1.co_cot=\"+intCodCot+\" \\n\";\n System.out.println(\"moverInvBodReservado: \\n\" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n dblCanDis = rstLoc.getDouble(\"nd_canDis\");\n dblCanSolRes = rstLoc.getDouble(\"nd_canAut\");\n if(dblCanSolRes<=dblCanDis){\n strSql=\"\";\n strSql+=\" UPDATE tbm_invBod SET nd_canDis=(nd_canDis-\"+dblCanSolRes+\"), nd_canRes=((CASE WHEN nd_canRes IS NULL THEN 0 ELSE nd_canRes END) + \" + dblCanSolRes+\") \";\n strSql+=\" WHERE co_emp=\"+rstLoc.getInt(\"co_empInvBod\")+\" AND co_bod=\"+rstLoc.getInt(\"co_bodInvBod\");\n strSql+=\" AND co_itm=\"+rstLoc.getInt(\"co_itm\")+\";\\n\";\n strIns+=strSql;\n }else{\n blnIns=false;\n System.out.println(\"NO DISPONIBLE \" + rstLoc.getInt(\"co_itm\"));\n //return false; CONTENEDOR PARA MOSTRAR ITEMS DE PROBLEMAS\n }\n }\n rstLoc.close();\n rstLoc=null;\n \n if(blnIns){\n System.out.println(\"moverInvBodReservado: \" + strIns);\n stmLoc.executeUpdate(strIns);\n blnRes=true;\n }\n else{\n blnRes=false;\n }\n stmLoc.close();\n stmLoc=null;\n\t\n \n }\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }", "public void createCon(){\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\tcon=DriverManager.getConnection(\"jdbc:oracle:thin:@172.26.132.40:1521:ORCLILP\", \"a63d\", \"a63d\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\n\t}", "private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }", "public static void callEx942b() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter a maker and model and we will return the price.\");\n System.out.println(\"Maker: \");\n String maker = input.nextLine();\n System.out.println(\"Model: \");\n int model = input.nextInt();\n\n Properties properties = new Properties();\n properties.setProperty(\"user\", USER);\n properties.setProperty(\"password\", PASS);\n properties.setProperty(\"useSSL\", \"false\");\n properties.setProperty(\"autoReconnect\", \"true\");\n\n Connection conn = null;\n Statement stmt = null;\n ResultSet rs = null;\n try{\n // Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n // Open a connection\n System.out.println(\"Connecting to database...\");\n //conn = DriverManager.getConnection(DB_URL, USER, PASS);\n conn = DriverManager.getConnection(DB_URL, properties);\n System.out.println(\"Connected Successfully.\");\n\n // Execute a query\n System.out.println(\"Executing Procedure...\");\n stmt = conn.createStatement();\n\n CallableStatement cStmt = conn.prepareCall(\"{call bobbykain_942b(?, ?)}\");\n cStmt.setString(1, maker);\n cStmt.setInt(2, model);\n boolean hadResults = cStmt.execute();\n if (hadResults) {\n rs = cStmt.getResultSet();\n ResultSetMetaData rsmd = rs.getMetaData();\n System.out.println(\"Procdure Result:\");\n int columnsNumber = rsmd.getColumnCount();\n while (rs.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n String columnValue = rs.getString(i);\n System.out.print(columnValue + \" \" + rsmd.getColumnName(i));\n }\n System.out.println(\"\");\n }\n }\n\n\n System.out.println(\"Procedure Exexuted Successfully.\");\n }catch(SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n // finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2) {\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se) {\n se.printStackTrace();\n }// end finally try\n }// end try\n System.out.println(\"Goodbye!\");\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\tConnection con=null;\r\n\t\tStatement stmt=null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"oracle.jdbc.OracleDriver\");\r\n\t\t\tcon=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"srujan\");\r\n\t\t\tcon.setAutoCommit(false);\r\n\t\t\tstmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE ,ResultSet.TYPE_SCROLL_INSENSITIVE);\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from student\");\r\n\t\t\trs.absolute(3);\r\n\t\t\tSystem.out.println(rs.getInt(1)+\" \"+rs.getString(2)+\" \"+rs.getInt(3));\r\n\t\t\t\r\n\t\t\t}catch (Exception e) {\r\n\t\t\te.getMessage();// TODO: handle exception\r\n\t}\r\n\t}", "@Override\r\n public PreparedStatement prepareStatement(DatabaseQueryBuilder query) throws SQLException {\r\n final PreparedStatement ps = super.prepareStatement(query);\r\n ps.setQueryTimeout(OracleERPUtil.ORACLE_TIMEOUT);\r\n return ps;\r\n }", "public static void main(String[] args) {\n\t\tString dbur1 = \"jdbc:oracle:thin:@localhost:1521:xe\";// 로컬호스트 본인컴퓨터~ 포트 1521 sid(I) XE\n//\t\tString dbuser = \"C##BITUSER\";\n//\t\tString dbpass = \"bituser\";\n\n\t\tString dbpass = \"hr\";\n\t\tString dbuser = \"hr\";\n\t\tStatement stmt = null;\n\t\tResultSet re = null;\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\tconn = DriverManager.getConnection(dbur1, dbuser, dbpass);\n\t\t\tSystem.out.println(conn);\n\t\t\tSystem.out.println(\"접속성공!\");\n\t\t\tstmt = conn.createStatement();\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tSystem.out.print(\"검색할 이름 혹은 성을 입력해주세요 :>\");\n\t\t\tString scc = sc.next();\n\t\t\t\n\t\t\tString sql = \"SELECT first_name|| ' ' || last_name name, email, hire_date \"\n\t\t\t\t\t+ \"FROM employees \"\n\t\t\t\t\t+ \"WHERE first_name LIKE '%\"+scc+\"%'\"\n\t\t\t\t\t\t\t+ \"OR last_name LIKE '%\"+scc+\"%'\";\n\t\t\tre = stmt.executeQuery(sql);\n\n\t\t\twhile (re.next()) {\n\t\t\t\tString deptId = re.getString(\"name\");\n\t\t\t\tString deptName = re.getNString(\"email\");\n\t\t\t\tString date = re.getString(\"hire_date\");\n\t\t\t\tSystem.out.println(deptId + \" \" + deptName + \" \" + date);\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.err.println(\"드라이버로드 실패\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t} catch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\n\t}", "public boolean writePlicSnapshotToFile(File f, String dbSchema, String dataSource){\n try{\n //Obtener la conexion JDBC del proyecto\n InitialContext ctx = new InitialContext();\n DataSource ds = (DataSource) ctx.lookup(dataSource);\n Connection connection = ds.getConnection();\n\n\t String query = \"SELECT '\\\"'||REPLACE(COALESCE(globaluniqueidentifier,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(scientificname,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(institutioncode,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||COALESCE(to_char(datelastmodified,'YYYY-MM-DD HH24:MI:SS'),'')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(taxonrecordid,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(language,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(creators,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(distribution,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(abstract,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(kingdomtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(phylumtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(classtaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(ordertaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(familytaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(genustaxon,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(synonyms,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(authoryearofscientificname,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(speciespublicationreference,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(commonnames,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(typification,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(contributors,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||COALESCE(to_char(datecreated,'YYYY-MM-DD'),'')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(habit,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(lifecycle,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(reproduction,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(annualcycle,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(scientificdescription,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(briefdescription,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(feeding,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(behavior,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(interactions,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(chromosomicnumbern,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(moleculardata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(populationbiology,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(threatstatus,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(legislation,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(habitat,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(territory,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(endemicity,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(theuses,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(themanagement,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(folklore,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(thereferences,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(unstructureddocumentation,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(otherinformationsources,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(papers,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(identificationkeys,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(migratorydata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(ecologicalsignificance,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(unstructurednaturalhistory,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(invasivenessdata,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(targetaudiences,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(version,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage1,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage1,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage2,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage2,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(urlimage3,''),'\\r\\n', ' ')||'\\\"' || ','\"+\n\t\t\t \"|| '\\\"'||REPLACE(COALESCE(captionimage3,''),'\\r\\n', ' ')||'\\\"'\"+\n\t\t\t \" AS aux \"+\n\t\t\t \"FROM \"+dbSchema+\".plic_snapshot;\";\n\n System.out.println(query);\n\n\t\t\tStatement st = connection.createStatement();\n\t\t\tResultSet rs = st.executeQuery(query); \n\n //Imprimir los datos en el archivo\n BufferedWriter out = new BufferedWriter(new FileWriter(f));\n\t\t\twhile (rs.next()) {\n\t\t\t\tout.write(rs.getString(\"aux\")+\"\\n\");\n\t\t\t}\n out.close();\n\n //Cerrar el resultset y el statement\n rs.close();\n\t\t\tst.close();\n\n //Resultado\n return true;\n }\n catch(Exception e){\n e.printStackTrace();\n return false;}\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DBDataType dBDataType0 = DBDataType.getInstance((-503007620), \"pw?(g[&h!X$;C/\");\n Integer integer0 = new Integer(22);\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn((String) null, (DBTable) null, dBDataType0, integer0);\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"PW?(G[&H!X$;C/(22)\", stringBuilder0.toString());\n }", "private boolean validaFechasMAX(int indice, String strTipSol,boolean isSol){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n String strFechaSol=\"\";\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc!=null){\n stmLoc=conLoc.createStatement();\n if(isSol){\n strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n strSql=\"SELECT '\"+strFechaSol+\"' - CURRENT_DATE as dias \";\n System.out.println(\"dias... \"+ strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n rstLoc.getInt(\"dias\");\n if(strTipSol.equals(\"R\")){\n if(rstLoc.getInt(\"dias\")<=intDiasMaximoReserva){\n blnRes=true;\n }\n }\n else{\n if(rstLoc.getInt(\"dias\")<=intDiasMaximoFacturaAutomatica){ /* JM: Solicitado por LSC y WCampoverde 2019-Jul-16 */\n blnRes=true;\n }\n }\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null; \n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "protected void OpenDBConnection() throws SQLException {\n\n connection = DriverManager.getConnection(\n \"jdbc:mysql://107.180.47.119:3306/ConcessionStand?useUnicode=true&characterEncoding=utf-8\" ,\n \"ConcessionWorker\" , \"CWoonrck066#\");\n\n System.out.println(\"Connected to database.\");\n stmt = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n stmt2 = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n System.out.println(\"Created statement.\");\n }", "public static void main(String[] args)throws ClassNotFoundException,SQLException,InterruptedException \n\t{\n\t\tSystem.out.println(\"driver Loaded Succcessfully\");\n\t\tDriver d= new JdbcOdbcDriver();\n\t\tDriverManager.registerDriver(d);\n\t\t\n\t\tConnection con = DriverManager.getConnection(\"jdbc:odbc:loki\",\"scott\",\"tiger\");\n\t\tSystem.out.println(d);\n\t\tSystem.out.println(con);\n\t\tStatement st=con.createStatement();\n\t\t\n\t\t//String ddl=\"create table Stud(id number,sname varchar2(10),smarks number)\";\n\t\t//st.execute(ddl);\n\t\t//System.out.println(\"Table created Successfully\");\n\t\t/*String s1=\"insert into Stud(id,sname,smarks)values(111,'LOkesh',2000)\";\n\t\tString s2=\"insert into Stud(id,sname,smarks)values(222,'Kranthi',3000)\";\n\t\tString s3=\"insert into Stud(id,sname,smarks)values(333,'Raju',4000)\";\n\t\tst.executeUpdate(s1);\n\t\tst.executeUpdate(s2);\n\t\tst.executeUpdate(s3);*/\n\t\t\n\t\t\n\t\tString s4=\"select * from Stud\";\n\t\tResultSet set=st.executeQuery(s4);\n\t\t//ResultSetMetadata kk=set.getResultSetMetadata();\n\t\twhile(set.next())\n\t\t{\n\t\t\tSystem.out.println(set.getInt(1) + \"--------\" + set.getString(2)+\"--------\" +set.getInt(3));\n\t\t\tThread.sleep(1000);\n\t\t}\n\t\tThread.sleep(30000);\n\t\tString s5=\"drop table Stud\";\n\t\tst.execute(s5);\n\t\tSystem.out.println(\"table is sucessfully Dropped\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*System.out.println(\"created connection to database successfully\");\n\t\t//Statement st=con.createStatement();\n\t\tSystem.out.println(con);\n\t\tStatement st=con.createStatement();\n\t\t\n\t\tString s1=\"create table raju(eno number,ename varchar2(10),esal number )\";\n\t\tst.execute(s1);\n\t\tSystem.out.println(\"table raju is created\");\n\t\t\n\t\tSystem.out.println(\"data Insertion started\");\n\t\tString s2=\"insert into raju(eno,ename,esal)values('222','raju','35')\";\n\t\tString s3=\"insert into raju(eno,ename,esal)values('233','Lokesh','45')\";\n\t\t\n\t\tString s4=\"insert into raju(eno,ename,esal)values('444','Subbu','55')\";\n\t\tSystem.out.println(\"data Insertion completed\");\n\tThread p2= Thread.currentThread();\n\t\tThread p1=new Thread();\n\t\tp1.setPriority(10);\n\t\tp1.sleep(1000);\n\t\tp1.join();\n\t\t\n\t\tSystem.out.println(\"data retreving started\");\n\t\t\n\t\tString s6= \"select * from raju\";\n\t\tResultSet set=st.executeQuery(s6);\n\t\twhile(set.next())\n\t\t{\n\t\t\tSystem.out.println(set.getInt(1)+ \"---------\" + set.getString(2) + \"----------\" +set.getInt(3));\n\t\t//Thread.sleep(1000);\n\t\t}\n\t\tSystem.out.println(\"data Insertion complete\");\n\t\t//Thread.sleep(30000);\n\t\t//String s5= \"drop table raju\";\n\t\t//st.execute(s5);\n\t\tSystem.out.println(\"table raju dropped succesfully\");\n\t\t\n\t\t\n\t\tString s1=\"select from emp\";\n\t\tResultSet set=st.executeQuery(s1);\n\t\twhile(set.next())\n\t\t{\n\t\t\tSystem.out.println(set.getInt(1)+\"---\"+set.getString(2)+\"---\"+set.getString(3));\n\t\t\t\n\t\t}*/\n\t\t\n\t\t\n\t\t\n\n\t}", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public static void main(String[] args) {\n Connection con;\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n Statement stmt;\n\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n con = DriverManager.getConnection(url, \"hr\", \"hr\");\n stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"select * from employees\");\n while(rs.next())\n {\n System.out.println(rs.getString(1)+\" \"+rs.getString(2)+\" \"+rs.getString(3)+\" \"+rs.getString(4)+\" \"+rs.getString(5));\n }\n\n } catch (ClassNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n Class.forName(\"jdbc.oracle.driver.OracleDriver\"); //Throws ClassNotFoundException\n //Step 2 Create Connection Object\n Connection connection = DriverManager.getConnection(\n \"jdbc:oracle:thin:@localhost:1521:xe\",\"system\",\"oracle\");\n //Throws SQL Excpetion\n //Step 3 create statement Object\n Statement statement = connection.createStatement();\n\n //step 4 excecute query\n ResultSet resultSet = statement.executeQuery(\"select * from emp\");\n //Step 5 close the connection\n resultSet.close();\n\n statement.close();\n\n connection.close();\n\n }", "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "public java.sql.ResultSet consultapormedicofecha2(String CodigoMedico,String fecha){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \tSystem.out.println(\"SELECT phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo,su.usu_codigo,SUBSTRING(phm.horas,7,3) AS jornada FROM pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes,seg_datos_personales sdp,seg_usuario su WHERE pmd.codigo=\"+CodigoMedico+\" AND phm.fechas='\"+fecha+\"' AND phm.codMedico_fk = pmd.codigo AND pmd.codEspe_fk = pes.codigo AND sdp.numeroDocumento=pmd.numeroDocumento AND su.dat_codigo_fk=sdp.dat_codigo AND phm.fechas >= CURDATE() ORDER BY jornada,phm.horas \");\r\n \t\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultapormedicofecha \"+ex);\r\n }\t\r\n return rs;\r\n }", "public Connection conexion(){\n try {\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n conectar=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/poo\",\"root\",\"19931017\");\r\n \r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error ┐\"+e);\r\n }\r\n return conectar; \r\n }", "public void run(String JDBC_DRIVER, String DB_URL) {\n\n\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n //STEP 2: Open a connection\n //System.out.println(\"Connecting to database...\");\n\n //connection = DriverManager.getConnection(DB_URL,USER,PASS);\n Connection connection = DriverManager.getConnection(DB_URL);\n\n\n //STEP 3: Execute a query\n// try (Statement statement = connection.createStatement()) {\n// statement.executeUpdate(\"DROP TABLE CUSTOMER\");\n// statement.executeUpdate(\"DROP TABLE CAR\");\n// statement.executeUpdate(\"DROP TABLE COMPANY\");\n//// statement.executeUpdate(\"DELETE FROM CUSTOMER\");\n//// statement.executeUpdate(\"DELETE FROM CAR\");\n//// statement.executeUpdate(\"DELETE FROM COMPANY\");\n//\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n\n try (Statement statement = connection.createStatement()) {\n // drop all the table\n\n // First create table COMPANY if not exist\n// statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS COMPANY \" +\n// \"(id INTEGER, \" +\n// \" name VARCHAR(255))\");\n\n\n\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS COMPANY \" +\n \"(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, \" +\n \" name VARCHAR(255) UNIQUE NOT NULL \" +\n \")\");\n\n // alter the constrains\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ALTER COLUMN name VARCHAR(255) NOT NULL\");\n//\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ALTER COLUMN id {INT NOT NULL AUTO_INCREMENT}\");\n//\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ADD PRIMARY KEY (id)\");\n//\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ADD UNIQUE (name)\");\n//\n statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n \"ALTER COLUMN id RESTART WITH 1\");\n\n\n // Then create table CAR if not exist\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS CAR \" +\n \"(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, \" +\n \" name VARCHAR(255) UNIQUE NOT NULL, \" +\n \" company_id INT NOT NULL,\" +\n \" CONSTRAINT fk_company FOREIGN KEY (company_id)\" +\n \" REFERENCES COMPANY(id)\" +\n \")\");\n\n statement.executeUpdate(\"ALTER TABLE CAR \" +\n \"ALTER COLUMN id RESTART WITH 1\");\n\n // Then create table CUSTOMER if not exist\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS CUSTOMER \" +\n \"(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, \" +\n \" name VARCHAR(255) UNIQUE NOT NULL, \" +\n \" rented_car_id INT,\" +\n \" CONSTRAINT fk_car FOREIGN KEY (rented_car_id)\" +\n \" REFERENCES CAR(id)\" +\n \")\");\n\n statement.executeUpdate(\"ALTER TABLE CUSTOMER \" +\n \"ALTER COLUMN id RESTART WITH 1\");\n\n statement.executeUpdate(\"ALTER TABLE CUSTOMER \" +\n \"ALTER rented_car_id SET DEFAULT NULL\");\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n /* *********************************** */\n /* HERE THE MENU */\n /* *********************************** */\n\n try {\n while (true) {\n // main menu\n System.out.println(\"\\n1. Log in as a manager \\n2. Log in as a customer \\n3. Create a customer \\n0. Exit\");\n\n int mainMenuChoice = Integer.parseInt(scanner.nextLine());\n\n if (mainMenuChoice == 0) {\n break;\n } else if (mainMenuChoice == 1) {\n // log in as manager\n logInAsManager(connection);\n\n } else if (mainMenuChoice == 2) {\n logInAsCustomer(connection);\n } else if (mainMenuChoice == 3) {\n createACustomer(connection);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Enable the auto-commit mode so that all changes are automatically saved in the database file\n connection.setAutoCommit(true);\n\n // STEP 4: Clean-up environment\n // dont need if we use try-catch block\n// statement.close();\n// connection.close();\n\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }" ]
[ "0.6894095", "0.61826503", "0.6019269", "0.6010089", "0.598516", "0.59564", "0.5947188", "0.59437245", "0.5909322", "0.58852273", "0.58619004", "0.58564955", "0.57942843", "0.5761766", "0.5754466", "0.5743116", "0.5737718", "0.5737566", "0.5698475", "0.56740654", "0.5671181", "0.56586134", "0.5645819", "0.5625946", "0.5590711", "0.5584261", "0.5571679", "0.5568812", "0.5567967", "0.55675703", "0.55564976", "0.5551916", "0.5542872", "0.55420107", "0.55420107", "0.55295354", "0.55229604", "0.5514583", "0.5501976", "0.5500851", "0.549584", "0.5484648", "0.54806674", "0.54766", "0.5455882", "0.54524535", "0.54505634", "0.54470056", "0.5444652", "0.54263294", "0.5426074", "0.5413627", "0.540864", "0.54052866", "0.54039985", "0.54026735", "0.54017025", "0.5398446", "0.539536", "0.53950095", "0.5390195", "0.5389913", "0.5388098", "0.5384676", "0.53810084", "0.53797567", "0.5373715", "0.5365277", "0.53520596", "0.53503984", "0.53415394", "0.53355944", "0.5331197", "0.5327159", "0.5325588", "0.53248656", "0.5324315", "0.53202057", "0.5315011", "0.5312107", "0.5309881", "0.5309704", "0.53031915", "0.5297521", "0.5295111", "0.52945423", "0.5289583", "0.5289017", "0.52870244", "0.52850497", "0.5282773", "0.52815634", "0.5279879", "0.52797985", "0.52737796", "0.5272494", "0.5271741", "0.52704483", "0.52699643", "0.52679336" ]
0.6156945
2
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.satellite_cloud_imagery); init_titlebar(); init_webview(); startLoad(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@SuppressLint({ "SetJavaScriptEnabled", "NewApi" }) private void init_webview() { mWebView = (WebView) findViewById(R.id.webView1); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); mWebView.setHorizontalScrollBarEnabled(true); mWebView.getSettings().setSupportZoom(true); mWebView.getSettings().setBuiltInZoomControls(true); mWebView.setInitialScale(50); mWebView.setHorizontalScrollbarOverlay(true); mWebView.getSettings().setUseWideViewPort(true); mWebView.getSettings().setLoadWithOverviewMode(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void startLoad() { if (getIntent().getFlags()==8) { titleTv.setText(R.string.WXYT); mWebView.loadUrl(UrlLib.CLI); } else if (getIntent().getFlags()==5) { titleTv.setText(R.string.reservior); mWebView.loadUrl(UrlLib.CLI5); } mWebView.setWebViewClient(new WebViewClient() { /* * (non-Javadoc) * * @see * android.webkit.WebViewClient#shouldOverrideUrlLoading(android * .webkit.WebView, java.lang.String) */ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // TODO Auto-generated method stub view.loadUrl(url); return true; } /* * (non-Javadoc) * * @see * android.webkit.WebViewClient#onPageFinished(android.webkit.WebView * , java.lang.String) */ @Override public void onPageFinished(WebView view, String url) { // TODO Auto-generated method stub super.onPageFinished(view, url); } }); mWebView.setWebChromeClient(new WebChromeClient() { @Override public void onProgressChanged(WebView view, int newProgress) { // TODO Auto-generated method stub super.onProgressChanged(view, newProgress); progressBar.setProgress(newProgress); progressBar.postInvalidate(); if(newProgress==100) progressBar.setVisibility(View.GONE); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onProgressChanged(WebView view, int newProgress) { super.onProgressChanged(view, newProgress); progressBar.setProgress(newProgress); progressBar.postInvalidate(); if(newProgress==100) progressBar.setVisibility(View.GONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void init_titlebar() { backBtn = (Button) findViewById(R.id.titlebar_back); titleTv = (TextView) findViewById(R.id.titlebar_title); otherBtn = (Button) findViewById(R.id.titlebar_other); backBtn.setOnClickListener(this); titleTv.setText(R.string.WXYT); otherBtn.setVisibility(View.GONE); progressBar = (ProgressBar) findViewById(R.id.progressbar); progressBar .setScrollBarStyle(android.R.attr.progressBarStyleHorizontal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if (v == backBtn) finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.details_cliente_menu, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Ustaw czas ostatniego wykonania Taska.
protected void setLastTimeExecute(long lastTimeExecute) { this.lastTimeExecute = lastTimeExecute; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int createTask() {\n Calendar cal = Calendar.getInstance();\n String taskName = \"Task-\" + cal.getTimeInMillis();\n\n return TaskServiceClient.createTask(\n projObjKey, // projObjKey-新建立工作項目所在的專案key值\n parentObjKey, // parentObjKey-新建立工作項目所屬的子專案/專案key值\n \"工作敘述永不變\", // taskDesc-工作Memo區,\n 100, // taskOwnerKey-工作項目負責人, 填入使用者Key值 ,\n 0, // udaSet-在何組工作之下\n 0, // sdaSet-套用哪一組預設欄位,填0即可\n \"\", // sda0-系統預設欄位\n \"\", // sda1-系統預設欄位\n \"\", // sda2-系統預設欄位\n \"\", // sda3-系統預設欄位\n \"\", // sda4-系統預設欄位\n \"\", // sda5-系統預設欄位\n \"\", // sda6-系統預設欄位\n \"\", // sda7-系統預設欄位\n \"\", // sda8-系統預設欄位\n taskName, // sda9-系統預設欄位\n \"\", // sda10-系統預設欄位\n \"\", // sda11-系統預設欄位\n \"\", // sda12-系統預設欄位\n \"\", // sda13-系統預設欄位\n \"\", // sda14-系統預設欄位\n \"\", // sda15-系統預設欄位\n \"\", // sda16-系統預設欄位\n \"\", // sda17-系統預設欄位\n \"\", // sda18-系統預設欄位\n \"\", // sda19-系統預設欄位\n \"\", // uda0-自定欄位\n \"\", // uda1-自定欄位\n \"\", // uda2-自定欄位\n \"\", // uda3-自定欄位\n \"\", // uda4-自定欄位\n \"\", // uda5-自定欄位\n \"\", // uda6-自定欄位\n \"\", // uda7-自定欄位\n \"\", // uda8-自定欄位\n \"\", // uda9-自定欄位\n \"\", // uda10-自定欄位\n \"\", // uda11-自定欄位\n \"\", // uda12-自定欄位\n \"\", // uda13-自定欄位\n \"\", // uda14-自定欄位\n \"\", // uda15-自定欄位\n \"\", // uda16-自定欄位\n \"\", // uda17-自定欄位\n \"\", // uda18-自定欄位\n \"\", // uda19-自定欄位\n \"\", // uda60-自定欄位\n \"\", // uda61-自定欄位\n \"\", // uda62-自定欄位\n \"\", // uda63-自定欄位\n \"\", // uda64-自定欄位\n \"\", // uda65-自定欄位\n \"\", // uda66-自定欄位\n \"\", // uda67-自定欄位\n \"\", // uda68-自定欄位\n \"\", // uda69-自定欄位\n \"\", // uda70-自定欄位\n \"\", // uda71-自定欄位\n \"\", // uda72-自定欄位\n \"\", // uda73-自定欄位\n \"\", // uda74-自定欄位\n \"\", // uda75-自定欄位\n \"\", // uda76-自定欄位\n \"\", // uda77-自定欄位\n \"\", // uda78-自定欄位\n \"\", // uda79-自定欄位\n \"\", // accessList-存取成員,(userID,userID,userID)\n \"\", // userGroupAccessList-存取群組, (群組ID,群組ID)\n \"\", // subTeamAccessList-存取子團隊,(subTeamObjKey,subTeamObjKey)\n \"N\", // isMilestoneFlag-里程碑 (Y/N)\n 999999, // seqNO-序列編號\n \"admin\" // userID-建立者ID\n );\n }", "int getTask() {\n return task;\n }", "Task(String name) {\n this.name = name;\n }", "public void setTask(Task task) {\n this.task = task;\n }", "public Task getTask() { return task; }", "public String getTask(){\n\treturn task;\n}", "public Task(){}", "public String getTask() {\n return task;\n }", "public String getTask() {\n return task;\n }", "@Override\n public String toString() {\n return \"Task no \"+id ;\n }", "public void updateTask() {}", "public void setTask(TaskDTO task) {\n\t\tthis.task = task;\r\n\t\t\r\n\t\t\r\n\t}", "public Task(){\n super();\n }", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "public void setTask(Task inTask){\n punchTask = inTask;\n }", "public Task(String name) {\n\t\tthis.name=name;\n\t}", "public Task(String description){\n this.description = description;\n this.isDone = false;\n }", "public Task(String description){\n this.description = description;\n this.isDone = false;\n }", "Object getTaskId();", "public TimedTask(String task) {\n this.task = task;\n timeStart = System.currentTimeMillis();\n }", "public Task getTask() {\n return task;\n }", "@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}", "public AnemoCheckTask() {\n }", "Task createTask();", "Task createTask();", "Task createTask();", "public void showTask(View v) {\n String taskIdStr = txtId.getText().toString();\n if (taskIdStr.isEmpty() || taskIdStr == null) {\n Toast.makeText(this, \"Please Insert task ID\", Toast.LENGTH_LONG).show();\n } else {\n try {\n int taskId = Integer.parseInt(taskIdStr);\n TaskModel taskmodel = taskManager.getTaskById(taskId);\n txtTaskName.setText(taskmodel.getTaskName());\n txtTaskDescription.setText(taskmodel.getTaskDescription());\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }", "public int getCustTask()\n\t{\n\t\treturn task;\n\t}", "TaskStatus getStatus();", "public abstract void task();", "public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }", "String getTaskId();", "public ITask getTask() {\n \t\treturn task;\n \t}", "private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }", "public Task getTask(Integer tid);", "public Task() {\n\t}", "public Task() {\r\n }", "@Override\n public Class<? extends Task> taskClass() {\n return AmpoolSourceTask.class;\n }", "@Override\n public String getTaskType() {\n return \"T\";\n }", "@Override\n\t\t\tpublic void setTaskName(String name) {\n\t\t\t\t\n\t\t\t}", "public void checkTask(String task){\r\n\t\t\r\n\t}", "void refreshTaskInformation();", "public Task getTask(){\n return punchTask;\n }", "public void startTask() {\n\t}", "boolean updateActiveTask(Task task);", "public Task(String name) {\n this.name = name;\n this.isDone = false;\n }", "public TaskCurrent() {\n\t}", "public Task() { }", "protected Task<Void> createTask() {\n\n\t\t\treturn new Task<Void>() {\n\n\t\t\t\tprotected Void call() {\n\t\t\t\t\t_button.setDisable(true);\n\t\t\t\t\tTaskScheduler.executeAlgorithm(_digraph);\n\n\t\t\t\t\treturn null;\n\n\n\t\t\t\t}\n\t\t\t};\n\t\t}", "private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }", "public String getTaskName();", "@Override\n public void taskStarting() {\n\n }", "public ToDoTask(String description, int id, int status) {\n super(description, id);\n super.isDone = status > 0;\n }", "Task(String description, boolean isDone) throws DateTimeException {\n this.description = description;\n this.isDone = isDone;\n }", "@Override\n\tpublic void preExecuteTask(Task t,Map context) {\n\t\tlog.info(\"Task Id:\"+t.getTaskId()+\"--Task Name:\"+t.getTaskName()+\"--Task begin execute!\");\n\t}", "public interface Task extends Runnable {\n\n /**\n * Get the task name\n *\n * @return\n */\n public String getTaskName();\n\n /**\n *\n * @return true if the task is in active, else false\n */\n public boolean isActive();\n\n /**\n * @return priority of the task\n */\n public int getPriority();\n\n /**\n *\n * @return the sequence number of the task. If two tasks has same priority,\n * then the task with less sequence number executes first.\n */\n public int getSequenceNumber();\n}", "public void setTaskName(String name) {\n\r\n\t}", "public Task() {\n }", "boolean setTask(UUID uuid, IAnimeTask task);", "public Task(String task, boolean isDone) {\n this.task = task;\n this.isDone = isDone;\n }", "public String getTaskId() {\n return this.taskId;\n }", "@Override\r\n\tpublic void doTask() {\n\t}", "public void subTask(String tr) {\n\t\t\n\t}", "private void displayTask() {\n this.task = new Task();\n Color color = this.task.getColor();\n this.taskPanel.displayColor(color);\n }", "@Override\n\t\tprotected String doInBackground(Task... arg0) {\n\t\t\tString taskID = TfTaskRepository.addTask(arg0[0], \n\t\t\t getApplicationContext());\n\t\t\t\n\t\t\ttaskID = taskID + \"\\n\";\n\t\t\t\n\t\t\t//saving the ID local\n\t\t\tlt.saveTaskId(taskID, getApplicationContext());\n\t\t\t\n\t\t\treturn null;\n\t\t}", "public AddCommand(Task task){\r\n this.task = task;\r\n }", "public void beginTask(String tr) {\n\t\t\n\t}", "TaskStatistics(String name) {\n this.name = name;\n this.taskId = \"\";\n }", "public interface Task {\n\t\t/** Insertion tuples */\n\t\tpublic TupleSet insertions();\n\n\t\t/** Deletion tuples. */\n\t\tpublic TupleSet deletions();\n\n\t\t/** The program name that should evaluate the tuples. */\n\t\tpublic String program();\n\n\t\t/** The name of the table to which the tuples belong. */\n\t\tpublic TableName name();\n\t}", "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskReturnType Run();\n\n}", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.logo = \"N\";\n }", "public abstract String getTaskName();", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.taskType = \"\";\n }", "protected abstract void createTasks();", "public TaskList(){}", "public String getTaskId(){\r\n\t\treturn this.taskId;\r\n\t}", "public Tasks() {\n }", "@Override\r\n\tpublic void subTask(String name) {\n\t}", "WorkingTask getWorkingTask();", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "String addTask(Task task);", "public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n this.completed = \"0\";\n }", "public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }", "public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}", "public Task(String name) {\r\n this(name, false);\r\n }", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "private static void executeTask02() {\n }", "public String GiveTask(){\n return \"[\" + getStatusIcon() + \"] \" + this.description;\n }", "@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}", "public interface ITask extends PropertyChangeListener{\n\tvoid execute();\n\tvoid interrupt();\n\tboolean toBeRemoved();\n\n\t//Using update tick\n\tboolean updateTick();\n\n\t//Using time\n\t//long getWaittime();\n\t//long getEndtime();\n\n\n}", "protected void setupTask(Task task) {\n }", "@Override\n public void saveTask(TaskEntity task) {\n this.save(task);\n }", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "public void printTask() {\r\n\t\tSystem.out.println(\"ID: \" + this.id + \" | Description: \" + this.description + \" | Processor: \" + this.processor);\r\n\t\tSystem.out.println(\"Status: \" + this.status + \" | Fälligkeitsdatum: \" + this.formatedDueDate);\r\n\t\tSystem.out.println(\"----------\");\r\n\t}", "@Override\n\t\tpublic void setTaskName(String arg0) {\n\n\t\t}", "boolean hasTask();", "Task1(String c){\n\t\n}", "@Override\n public void execute(final Task<T> task) {\n }", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n }", "public Task(String description) {\n this.description = description;\n this.isDone = false;\n }", "public CompletedTask(Task task, String date)\r\n\t{\r\n\t\tsuper(task.ID, task.description, task.priority, task.order, STATUS_COMPLETE);\r\n\t\tthis.date = date;\r\n\t}" ]
[ "0.6533482", "0.64929724", "0.6460155", "0.64444244", "0.63968545", "0.6392323", "0.6392007", "0.6390246", "0.6390246", "0.63847226", "0.6329037", "0.6293907", "0.62915987", "0.6281265", "0.6276985", "0.62655103", "0.6202641", "0.6202641", "0.61874723", "0.61619496", "0.6157609", "0.61572516", "0.61572176", "0.61538655", "0.61538655", "0.61538655", "0.6149117", "0.6140311", "0.6133455", "0.61296713", "0.6115453", "0.61087507", "0.6098689", "0.6098429", "0.60968393", "0.60925484", "0.6079056", "0.6076161", "0.6059935", "0.6037229", "0.6035317", "0.6034684", "0.60301054", "0.6022482", "0.6008042", "0.60034394", "0.6002943", "0.6001492", "0.598409", "0.59694564", "0.59681463", "0.59675974", "0.59645283", "0.59594536", "0.59530866", "0.59525436", "0.59499687", "0.5944954", "0.59448993", "0.5932496", "0.5931672", "0.5921616", "0.59196174", "0.5919494", "0.5918426", "0.59141356", "0.5912905", "0.590896", "0.59010446", "0.59002006", "0.58857465", "0.58749837", "0.5873864", "0.5866019", "0.58646", "0.58595604", "0.58581996", "0.58519036", "0.58474106", "0.58465284", "0.58451056", "0.58369166", "0.5836647", "0.58338547", "0.58323216", "0.58289284", "0.58196855", "0.58171654", "0.581535", "0.5811826", "0.58078873", "0.58074415", "0.5802922", "0.579986", "0.5799636", "0.57992744", "0.5799103", "0.5796082", "0.5787231", "0.5787231", "0.5784768" ]
0.0
-1
ex : ACD contient "AC" ou "CD" int count = 0;
public boolean usesItem(Item item){ for (char c : item.getName().toCharArray()){ if(!content.contains( String.valueOf(c) )){ return false; }else { // count++; } } // System.out.println(item + " est utilisé " + count + " fois"); return true; // return content.contains(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int countABC(String str) {\n int x = 0;\n char[] chars = str.toCharArray();\n for (char c : chars) {\n if (c == 'a' || c == 'b' || c == 'c') {\n x += 1;\n }\n }\n return x;\n }", "public static int countABC(String str) {\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'a'){\n count++;\n }\n else if(str.charAt(i) == 'b'){\n count++;\n }\n else if(str.charAt(i) == 'c'){\n count++;\n\n }\n }\n return count;\n }", "public static int count(String str, char a) {\r\n\t\tint counter = 0;\r\n\t\tchar b = ' ';\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tb = str.toLowerCase().charAt(i);\t// string prebaciti u mala slova\r\n\t\t\tif (b == a) {\r\n\t\t\t\tcounter++;\t\t\t// brojac ponavljanja karaktera\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "public static void main(String[] args) {\n\t\tString str=\"You have no choice other than following me!\";\r\n\t\tchar[] ch = str.toCharArray();\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<ch.length;i++) {\r\n\t\t\tif(ch[i]=='o') {\r\n\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Occurance of o is :\"+ count);\r\n\t}", "public int countAbc(String str) {\n//Solution to problem coming soon\n}", "private static int countOccurrences(String amount, char c) {\n int cnt = 0;\n for(int i = 0; i < amount.length(); i++){\n if(amount.charAt(i) == c){\n cnt++;\n }\n }\n return cnt;\n }", "include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}", "public static void main(String[] args) \n{\nScanner scan=new Scanner(System.in);\n \nSystem.out.println(\"Please Enter the String here\");\n \n// It will accept String from user and will store in variable\nString str1=scan.next();\n \nSystem.out.println(\"enter the letter to count\");\n \n// It will accept char from user and will store in variable\nString str2=scan.next();\n \n// Now from Second String get the value using charAt method\nchar cha = str2.charAt(0);\n \n// take count variable\nint count=0;\n \n// Run a for loop that will run based on String length\nfor(int i=0;i<=str1.length()-1;i++)\n{\n \n// This will check if match found\nif(str1.charAt(i)==cha)\n \n{\n \n// It will increment the counter\ncount++;\n \n}\n \n}\n \n// Finally print the count\nSystem.out.println(count);\n \n}", "@Test\n public void charCount() {\n final int expectedEight = 8;\n final int expectedFour = 4;\n\n CharCount charCounter = new CharCount();\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'z'));\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'Z'));\n assertEquals(expectedFour, charCounter.characterCounter(\"FIZZBUZZ\", 'z'));\n assertEquals(0, charCounter.characterCounter(\"TEdff fdjfj 223\", '1'));\n assertEquals(expectedFour, charCounter.characterCounter(\"TE00df0f f0djfj 223\", '0'));\n assertEquals(0, charCounter.characterCounter(\"RRuyt 111000AAdda\", (char) 0));\n }", "static void getCharCountArray(String str) {\n for (int i = 0; i < str.length(); i++)\n count[str.charAt(i)]++;\n }", "public int strCount(String str, String sub) {\n//Solution to problem coming soon\n}", "public int count() {\n return count(\"\");\n }", "private static int countOccurrences(String input, char c) {\n int count = 0;\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == c) {\n count++;\n }\n }\n return count;\n }", "public static void main(String[] args) {\n\n int counter = 0;\n\n for (int num = 1; num <= 100; num++) {\n\n if (num % 15 == 0) {\n System.out.println(num);\n //counter = counter + 1 ; counter +=1;\n ++counter;\n }\n }\n\n System.out.println(\"counter = \" + counter);\n\n /// given a string with value\n // find out how many \"a\" showed in this String\n\n String name = \"Esra Fidan\";\n\n //System.out.println( name.charAt(0) =='a');\n\n int countOfA = 0;\n for (int x = 0; x < name.length(); x++) {\n\n //System.out.println(name.charAt(x));\n if (name.charAt(x) == 'a') {\n System.out.println(\"BINGO FOUND IT !!\");\n ++countOfA;\n\n }\n\n\n }\n\n System.out.println(\"countOfA = \" + countOfA);\n\n\n\n }", "public static int count(String str, char a) {\r\n\t\t\r\n\t\tint brojac = 0;\r\n\t\t // petlja koja prolazi kroz uneseni string\r\n\t\tfor(int i=0; i<str.length(); i++) {\r\n\t\t\t// ako je bilo koji karakter u unesenom stringu jednak trazenom karakteru\r\n\t\t\tif(Character.toString(str.charAt(i)).contains(Character.toString(a))) {\r\n\t\t\t\tbrojac++; // onda brojac broji koliko se trazeni karakter puta nalazi u stringu\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn brojac; // vraca se ukupan broj ponavljanja trazenog karaktera u stringu\r\n\t}", "public void getOccuringChar() \n\t\t {\n\t\t \tint count[] = new int[MAX_CHAR]; \n\t\t \t \n\t\t int len = str.length(); \n\t\t \n\t\t // Initialize count array index \n\t\t for (int i = 0; i < len; i++) \n\t\t count[str.charAt(i)]++; \n\t\t \n\t\t // Create an array of given String size \n\t\t char ch[] = new char[str.length()]; \n\t\t for (int i = 0; i < len; i++) { \n\t\t ch[i] = str.charAt(i); \n\t\t int find = 0; \n\t\t for (int j = 0; j <= i; j++) { \n\t\t \n\t\t // If any matches found \n\t\t if (str.charAt(i) == ch[j]) \n\t\t find++; \n\t\t } \n\t\t \n\t\t if (find == 1) \n\t\t System.out.println(\"Number of Occurrence of \" + \n\t\t str.charAt(i) + \" is:\" + count[str.charAt(i)]); \n\t\t } \n\t\t }", "public int doCount(String s){\r\n\t\tint count = 0;\r\n\t\tint i;\r\n\t\tfor(i = 0; i < s.length(); i++){\r\n\t\t\tif ( s.charAt(i) == Letter )\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString str = \"welcome to chennai\";\r\n\t\tchar search='e';\r\n\t\tint count=0;\r\n\t\tchar ch[]=str.toCharArray();\r\n\t\tint len=ch.length;\r\n\t\tfor(int i=0;i<len;i++)\r\n\t\t{\r\n\t\t\tif(search==(ch[i]))\r\n\t\t\t{\r\n\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\r\n\r\n\t}", "public int count (String a, String b) {\n return 0;\n }", "public static void main(String[] args)\n{\n\tString str=\"like like rcb\";\n String[] Spl = str.split(\" \");\n\tint count=0;\n\tfor(int i=0;i<Spl.length;i++)\n\t{\n\t\tif(Spl[i].equals(\"like\"))\n\t\t{\n\t\tcount++;\n\t\t}\n\t}\n\tSystem.out.println(\"number of like present in given String are \"+count);\n}", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a word:\");\n String word = scan.next();\n System.out.println(\"Enter character:\");\n char character = scan.next().charAt(0);\n\n int count=0; //count frequency of character\n for (int i =0; i<word.length(); i++) {\n char each = word.charAt(i); //each character by given string word\n\n if (each == character) { //if each character in str is matching with ch\n count++; //count increase the frequency of ch by 1\n\n }\n }\n System.out.println(count);\n\n System.out.println(\"===========================\");\n\n\n\n }", "public int _count() {\n return _count(\"\");\n }", "private static void charCount(String str) {\n\t\t\n\t\tHashMap<Character, Integer> mp = new HashMap<Character, Integer>();\n\t\t\n\t\tchar[] cr=str.toCharArray();\n\t\t\n\t\tSystem.out.println(cr);\n\t\t\n\t\tfor(char c: cr) {\n\t\t\t\n\t\t\tif(mp.containsKey(c)) {\n\t\t\t\tmp.put(c, mp.get(c)+1);\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tmp.put(c, 1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(Map.Entry<Character, Integer> ent: mp.entrySet()) {\n\t\t\tSystem.out.println(ent.getKey() + \" \" + ent.getValue());\n\t\t}\n\t\t\n\t}", "private int countVals( String val )\r\n\t{\r\n\t\treturn 0;\r\n\t}", "void countCharByCategory(String inputstr) {\n\n\t\tint digitcount = 0;\n\t\tint lowercasecount = 0;\n\t\tint uppercasecount = 0;\n\t\tint specialcharcount = 0;\n\n\t\tfor (int i = 0; i < inputstr.length(); i++) {\n\n\t\t\tif (Character.isLowerCase(inputstr.charAt(i)))\n\t\t\t\tlowercasecount++;\n\t\t\telse if (Character.isUpperCase(inputstr.charAt(i)))\n\t\t\t\tuppercasecount++;\n\n\t\t\telse if (Character.isDigit(inputstr.charAt(i)))\n\t\t\t\tdigitcount++;\n\t\t\telse\n\t\t\t\tspecialcharcount++;\n\t\t}\n\t\tSystem.out.println(\"Total Digits: \" + digitcount + \"\\nTotal letters: \" + (lowercasecount+uppercasecount) + \"\\nTotal Uppercase: \"\n\t\t\t\t+ uppercasecount + \"\\nTotal lowercase: \" + lowercasecount + \"\\nTotal Special character: \"\n\t\t\t\t+ specialcharcount);\n\n\t}", "int getStrValuesCount();", "public int countConsonants(String str){\n\t\tint count=str.replaceAll(\"[^A-Za-z0-9_]\", \"\").length()\n\t\t\t\t-str.toLowerCase().replaceAll(\"[^aeiouy]\",\"\").length();\n\t\treturn count;\n\t}", "public static int frequency(String str, char ch){\n//will return frequency of char from the string\n int count = 0; //to save the frequency of char\n/*each character is a char : and need to compare it with str.\nevery time it matches we add frequency to count*/\n\n for(char each : str.toCharArray() ){\n if(each == ch){//every time this is true, count will increase to 1\n count++;\n }\n }\n //return the frequency of one character from the string\n return count;\n }", "private static int[] countLetters (String msg) {\n int[] counts = new int[26];\n for (char c : msg.toCharArray()) {\n char cuc = Character.toUpperCase(c);\n if (Character.isAlphabetic(cuc)) counts[ALPHABET.indexOf(cuc)]++;\n }\n \n return counts;\n }", "@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}", "public static void letterCount(String[] s, int[] count){\n\t\t//Checks if s or count is null. Only continues if both are false\n\t\tif (s != null && count != null){\n\t\t\t//Loops through each index of s\n\t\t\tfor (int j = 0; j < s.length; j++){\n\t\t\t\t//Only continues if index is not null\n\t\t\t\tif (s[j] != null){\n\t\t\t\t\t//Loops through each letter of the String at index j\n\t\t\t\t\tfor (int k = 0; k < s[j].length(); k++){\n\t\t\t\t\t\t//Loops through alphabet until the character at s[j].charAt(k) equals h\n\t\t\t\t\t\tfor (char h = 'a', i = 0; h <= 'z'; h++, i++){\n\t\t\t\t\t\t\t//If the character at k in s[j] equals h, add 1 to the corresponding position to the alphabet in count[]\n\t\t\t\t\t\t\tif (Character.toLowerCase(s[j].charAt(k)) == h || Character.toUpperCase(s[j].charAt(k)) == h){\n\t\t\t\t\t\t\t\th = 'z';\n\t\t\t\t\t\t\t\tcount[i] += 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int patikrinimas(String z) {\n int result = 0;\n for (int i = 0; i < z.length(); i++) {\n if (z.charAt(i) == 'a') {\n result++;\n }\n }\n System.out.println(\"Ivestas tekstas turi simboliu a. Ju suma: \" + result);\n return result;\n }", "public int countX(String str) {\n\t\t if(str.length() == 0 ){\n\t\t // return count;\n\t\t\t return 0;\n\t\t }\n\t\t if(str.charAt(0) == 'x'){\n\t\t // count++;\n\t\t //return count + countX(str.substring(1));\n\t\t return 1 + countX(str.substring(1));\n\t\t }\n\t\t return countX(str.substring(1));\n\t\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int T = scan.nextInt();\n scan.nextLine();\n for(int i = 0 ; i < T ; i++){\n int count = 0;\n String text = scan.nextLine();\n char[] letters = text.toCharArray();\n\n if(letters.length > 0){\n char character = letters[0];\n\n for(int j = 1 ; j < letters.length ; j++){\n\n if(character == letters[j]){\n count++;\n }else{\n character = letters[j];\n }\n }\n }\n System.out.println(count);\n }\n scan.close();\n }", "public static void main(String[] args) {\n\t\tString sentence = \"I think it's fair to say practice can be heplful in learning. \"\r\n\t\t\t\t+ \"Just about anything it can be true.\";\r\n\t\tchar myChar = 'a';\r\n\t\tint counter = 0;\r\n\t\t\r\n\t\tfor(int i=0; i<sentence.length(); i++)\r\n\t\t{\t//if you find the char value, count it in the if block\r\n\t\t\tif(sentence.charAt(i)==myChar)\r\n\t\t\t{\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurences of 'a' is \"+counter);\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter String::\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString str = sc.next().toLowerCase();\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<str.length();i++) {\r\n\t\t\tif(str.charAt(i)=='a' || str.charAt(i)=='e' || str.charAt(i)=='i' ||str.charAt(i)=='o' || str.charAt(i)=='u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"No of vovels:: \"+count);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Im a Java Developer\";\r\n\t\tSystem.out.println(str);\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the character for which you want to find occurrance\");\r\n\t\tchar c = s.next().charAt(0);\r\n\t\tint count = 0;\r\n\t\tfor(int i=0;i<str.length();i++){\r\n\t\t\tif (str.charAt(i) == c ){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Number of occurrances are : \"+count);\r\n\t}", "private static int characterCount(String expr, Character c) {\n\t\tint count = 0;\n\t\tfor(Character ch : expr.toCharArray()) if(ch == c) count ++;\n\t\treturn count;\n\t}", "public int countXX(String str) {\n\n int index = str.indexOf(\"xx\");\n int numOfX = 0;\n\n while (index != -1) {\n numOfX++;\n str = str.substring(index + 1);\n index = str.indexOf(\"xx\");\n }\n return numOfX;\n }", "public int count(String word);", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"enter a string\");\n\t\tString str=sc.nextLine();\n\t\tint count=0;\n\t\tchar ar[]=str.toCharArray();\n\t\tfor(char c:ar) {\n\t\t\tcount++;\n\t\t}\nSystem.out.println(count);\n\t}", "public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }", "public int count(char c){\n int counting = 0;\n \n if(isEmpty()){\n return counting; \n }else if(c == this.top){\n return counting += rest.count(c) + 1 ;\n }else{\n return counting = rest.count(c);\n }\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t int n = sc.nextInt();\r\n\t int k=0;\r\n\t int count = 0;\r\n\t String []str = new String[n];\r\n\t for(int i=0;i<str.length;i++) {\r\n\t \tstr[i] = sc.next();\r\n\t }\r\n\t while( k<n-1) {\r\n\t \tif(k > str.length-3) {\r\n\t \t\tk+=1;\r\n\t \t}else {\r\n\t \t\tk+=2;\r\n\t \t}\r\n\t \tif(!str[k].equals(\"B\")) {\r\n\t \t\tcount++;\r\n\t \t}else {\r\n\t \t\tk -=1;\r\n\t \t\tcount++;\r\n\t \t}\r\n\t }\r\n\t \tSystem.out.println(count);\r\n\t \tsc.close();}", "public static void main(String[] args){\n\t\tString str=\"Automation\";\r\n\t\tint count=0;\r\n\t\tchar[] ch=str.toCharArray();//ch={w,3,S,c,h,o,o,l,s}\r\n\t\tSystem.out.println(ch);\r\n\t\tfor(int i=0; i<ch.length-1; i++){\r\n\t\tfor(int j=i+1; j<=ch.length-1; j++){\r\n\t\t\tif(ch[i]==ch[j]){\r\n\t\t\t\tSystem.out.print(\"Duplicate chars are : \" +ch[i]);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\r\n\t\tcount++;\r\n\t\t\r\n\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\t\r\n\t\tSystem.out.println(\"The no of duplicate chars are: \" +count);\r\n\t}", "static int countingValleys(int n, String s) {\n int count = 0;\n int altitude = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'U' && altitude == -1) {\n count++;\n }\n altitude += s.charAt(i) == 'U' ? 1 : -1;\n }\n return count;\n }", "int getLettersCount();", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "static int size_of_adi(String passed){\n\t\treturn 2;\n\t}", "public static int sub_seq_count(String Ques, String ans) {\n\t\tif(Ques.length()==0) {\n\t\t\t//System.out.print(ans+\" \");\n\t\t\treturn 1;\n\t\t}\n\t\tchar ch = Ques.charAt(0);\n\t\tint c1 =sub_seq_count(Ques.substring(1), ans + ch);// char\n\t\tint c2= sub_seq_count(Ques.substring(1), ans);// No\n\t\tint c3 =sub_seq_count(Ques.substring(1), ans + (int)(ch));// Ascii\n\n\t\treturn c1+c2+c3;\n\n\t}", "public boolean check(String str)\n {\n\n int count=0;\n int arr[] = new int[26];\n int i;\n boolean flag=false;\n str = str.replaceAll(\"[^a-zA-Z]\", \"\");\n str.toLowerCase();\n if(str==null) {\n System.out.println(\"string can't be null\");\n }\n else\n {\n if(str.length()==26) {\n for (i = 0; i < str.length(); i++) {\n if (count == 26) {\n flag = true;\n break;\n }\n char k = str.charAt(i);\n int j = (int) k - 'a';\n if (arr[j] == 0) {\n count++;\n arr[j] = 1;\n }\n }\n }\n else\n break;\n\n }\n return flag;\n }", "static int countCharacters2(String[] words, String chars) {\n int count = 0;\n int[] seen = new int[26];\n //Count char of Chars String\n for (char c : chars.toCharArray())\n seen[c - 'a']++;\n // Comparing each word in words\n for (String word : words) {\n // simple making copy of seen arr\n int[] tSeen = Arrays.copyOf(seen, seen.length);\n int Tcount = 0;\n for (char c : word.toCharArray()) {\n if (tSeen[c - 'a'] > 0) {\n tSeen[c - 'a']--;\n Tcount++;\n }\n }\n if (Tcount == word.length())\n count += Tcount;\n }\n return count;\n }", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the string\");\r\n\t\tString a = s.nextLine().toLowerCase();\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < a.length(); i++) {\r\n\t\t\tif (a.charAt(i) == 'a' || a.charAt(i) == 'e' || a.charAt(i) == 'i' || a.charAt(i) == 'o'\r\n\t\t\t\t\t|| a.charAt(i) == 'u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t}System.out.println(count);\r\n\t}", "public static int char_count(String y, char c){\r\n\tint count = 0;\r\n\tfor(int i = 0; i < y.length(); i++){\r\n\t\tif(y.charAt(i) == c){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t}\r\n\treturn count;\r\n}", "public static int duplicateCount(String text) {\n \r\n int count=0; \r\n \r\n \r\n \r\n int l=text.length(); int index=0; String s1=\"\"; char [] c= new\r\n char [text.length()] ; for (int i=0;i <text.length();i++) {\r\n c[i]=text.toLowerCase().charAt(index++);\r\n \r\n System.out.println(\"Character at c[\"+i+\"] is\"+c[i]);\r\n \r\n }\r\n \r\n System.out.println(\"Character array is \"+Arrays.toString(c));\r\n \r\n int charSize=c.length; int index2=1;\r\n \r\n HashMap h =new HashMap();\r\n for (int i=0;i<charSize;i++)\r\n {\r\n for(int j=i+1;j<charSize;j++)\r\n {\r\n if (c[i]==c[j])\r\n {\r\n count++;\r\n //s1=s1+c[j];\r\n \r\n h.put(c[j],count);\r\n }\r\n }\r\n }\r\n \r\n \r\n System.out.println(h);\r\n \r\n int hsize= h.size();\r\n \r\n return hsize;\r\n }", "public static int [] countChar(String str) {\n char data [] = str.toCharArray();\n \n int count [] = new int [2];\n \n for (int i = 0; i < data.length; i++) {\n if (data[i] == 'n' || data[i] == 'N')\n count[0]++;\n if (data[i] == 'm' || data[i] == 'M')\n count[1]++;\n }\n return count;\n }", "String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }", "public static void main(String[] args) {\n\n String s = \"Java Programming Java oops\";\n\n int fullLenght = s.length();\n\n int lengthWithoutas = s.replace(\"a\", \"\").length();\n\n int numOfas = fullLenght - lengthWithoutas;\n\n System.out.println(\"Number of a's in the string = \" + numOfas);\n\n\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str= scan.nextLine();\n\n int count =0;\n for(int i =0; i <=str.length()-2; i++){\n String s= str.substring(i,i+2);\n if(s.equals(\"hi\")){\n count +=1;\n }\n\n }\n\n System.out.println(count);\n\n\n\n }", "public static void main(String[] args) {\nsub_seq(\"abc\", \"\");\nSystem.out.println();\nSystem.out.println(sub_seq_count(\"ab\", \"\"));\n\t}", "static int size_of_cnc(String passed){\n\t\treturn 3;\n\t}", "static int size_of_cz(String passed){\n\t\treturn 3;\n\t}", "public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String str=sc.nextLine();\n int len=str.length();\n int stat[]=new int[26];\n for(int i=0;i<len;i++)\n {\n if((str.charAt(i)>='a') && ( str.charAt(i)<='z'))\n {\n int offset=str.charAt(i) - 'a';\n stat[offset]++; \n }\n if((str.charAt(i)>='A') && ( str.charAt(i)<='Z'))\n {\n int offset=str.charAt(i) - 'A';\n stat[offset]++; \n }\n }\n for(int i=0;i<26;i++)\n {\n \n if( stat[i]==0)\n {\n char ch=(char)('a'+i);\n System.out.print(ch+\" \");\n \n \n \n }\n }\n}", "static int size_of_aci(String passed){\n\t\treturn 2;\n\t}", "@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }", "public static void main(String[] args) {\n\t\tString s = \"malala got nobel price for peace, in swiz.\";\r\n\t\ts = s.toLowerCase();\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') && \r\n\t\t\t\t\t!(s.charAt(i) == 'a' || s.charAt(i) == 'e'\r\n\t\t\t\t\t|| s.charAt(i) == 'i' || s.charAt(i) == 'o' || s.charAt(i) == 'u')) {\r\n\t\t\t\tcount = count + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of consonants \" + count);\r\n\t}", "public int [] getCharCount(String str){\n\t\tint CHAR_ARRAY = 26;\n\t\tint [] count = new int [CHAR_ARRAY];\n\t\tfor(char c: str.toCharArray()){\n\t\t\tcount[c-'a']++;\n\t\t}\n\t\treturn count;\n\t}", "public static int numberOfOccurences(String str1,String str2) {\n\tint count=0;\n\tfor (int i=0; i<=str1.length()-str2.length(); i++) {//(int i=0; i<str1.length()-str2.length()+1; i++)\n\t\tString currentString=str1.substring(i,i+str2.length());\n\t //char charChar=str1.charAt(i);//2.solution\n\tif (currentString.equals(str2)) {\n\t\tcount++;\n\t }\n }\n\t\t\n\treturn count;\n}", "private static int ones(String s)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++)\r\n\t\t{\r\n\t\t\tif(s.charAt(i) == '1')\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tString str = \"learning automation is fun\";\r\n\t\tstr = str.replace(\" \", \"\");\r\n\t\tchar letters[] = str.toCharArray();\r\n\t\t\r\n\t\tfor(int i = 0;i<letters.length;i++) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor(int j=0;j<letters.length;j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (j<i&&(letters[j]==letters[i])) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(letters[i]==letters[j]) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (count>0)\r\n\t\t\tSystem.out.println(\"Occurrence of \"+letters[i]+\" is \"+count);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void numOfBook2() {\n\t\t/*\n\t\t 1. write a java program that can count how many time \n\t\t \tthe word \"book\" is appeared in a String\n\t\t Ex:\n\t\t\tinput: I like books, I have books, I need book\n\t\t\toutput: 3\n\t\t */\n\t\t\n\t\tString a = \"Book is very Book. I like to read Book and I like to give Boroky. And I like to sell Book\";\n\t\tint counter=0;\n\t\t\n\t\twhile(a.contains(\"Book\")) {\n\t\t\ta = a.replaceFirst(\"Book\", \"\");\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n\t\t\n\t}", "private static int countForInitialization(String initialization) {\n return countStringMatches(initialization, \",\");\n }", "public static void main(String[] args) {\n String str = \"abcDaaafmOO\";\n String uniques = \"\";//lets use string str to find unique characters\n // int count = frequency(str,'a');//return type is int, therefore assign to int variable\n // System.out.println(count);//print the frequency of char 'a'\n//This step is use to identify if the character is unique, let's use loop for this\n for (char each : str.toCharArray()){\n // char ch = str.charAt(i); //to get char as a data type\n int count = frequency(str, each);\n //this is a frequency\n if(count == 1){//if count is equal to 1, concat it to unique variable\n uniques += each;\n }\n }\n System.out.println(\"unique values are: \"+uniques);\n System.out.println(\"========================\");\n String str2 = \"ppppoifugggggsxL\";\n String uniques2 = uniques(str2);\n System.out.println(\"unique values are: \"+uniques2);\n }", "public static void numOfBook() {\n\t\t\n\t\tString a = \"Book is very Book. I like to read Book and I like to give Boroky. And I like to sell Book\";\n\t\tint counter=0;\n\t\tfor(int i=0; i<a.length()-3; i++) {\n\t\t\tif(a.substring(i,i+4).contains(\"Book\")) {\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(counter);\n\t\t\n\t}", "public static int count(String str){\r\n\t\tString[] splitStr = str.trim().split(\"\\\\s+\"); //split according to spaces and tabs.\r\n\t\treturn splitStr.length;\r\n\t}", "int getNumCyc();", "static int countingValleys(int n, String s) {\n int valleyCounter =0;\n byte vorm = 0;\n int curLevel=0;\n for(int i=0;i<s.length();i++){\n String cur = s.substring(i,i+1);\n int posNeg = cur.equals(\"U\")?1:-1;\n curLevel+=posNeg;\n if(curLevel == -1 && posNeg == -1){\n valleyCounter++;\n }\n }\n return valleyCounter;\n }", "public static void main(String[] args){\n\n int counter = 0;\n for (int i=1;i<=100;i++) {\n if (i%15==0) {\n System.out.print(i+\" \");\n ++counter;\n }\n\n }\n System.out.println(\"counter = \" + counter);\n\n\n // Given a String with value, find out how many a showed up in this String\n\n String name = \"Fariza Madieva\";\n\n //System.out.println( name.charAt(0) == 'a');\n\n int countOfA = 0;\n\n for (int x = 0; x <name.length() ; x++) { // startin from the beginning, till the last letter of the name,\n// moving up each time...\n System.out.println(name.charAt( x )); // print every character you go through\n\n if ( name.charAt(x) == 'a' ){ // if the character is equal to 'a'\n System.out.println(\"Bingo!\"); //then print bingo\n ++countOfA; // every time you get a, keep it in this basket\n }\n }\n System.out.println(\"count of A \" + countOfA); // print out how many a in the name\n\n\n\n }", "public static int eCounter (String string) {\r\n int count = 0;\r\n \r\n if (string.length() == 0) {\r\n return count;\r\n }\r\n \r\n if (string.substring(0,1).equalsIgnoreCase(\"e\")) {\r\n count = 1 + eCounter(string.substring(1));\r\n return count;\r\n }\r\n \r\n count = eCounter(string.substring(1));\r\n return count;\r\n }", "public void doCount(ArrayList<String> liste){\n\t\tint j;\n\t\t\n\t\tfor (int i = 0; i < liste.size(); i++) {\n\t\t\t// check if string already exists\n\t\t\tif(!map.containsKey(liste.get(i))){\n\t\t\t\t// check frequency of the given string\n\t\t\t\tj = Collections.frequency(liste, liste.get(i));\t\n\t\t\t\t\n\t\t\t\t// underscore instead of blank space\n\t\t\t\tif(liste.get(i).equals(\" \"))\n\t\t\t\t\tmap.put(\"_\", j);\t\n\t\t\t\telse\n\t\t\t\t\tmap.put(liste.get(i), j);\t// (char, frequency)\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t\n\t\t//return map;\n\t}", "public static int[] countChar(String str) {\n\t\tint[] charSet = new int[256];\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tcharSet[str.charAt(i)]++;\n\t\t}\n\t\treturn charSet;\n\t}", "public int f1(List<Book> a) {\r\n int count = 0;\r\n for (Book o : a) {\r\n int demchu = 0;\r\n int demso = 0;\r\n for (int i = 0; i < o.getCode().length(); i++) {\r\n char c = o.getCode().charAt(i);\r\n if (Character.isDigit(c)) {\r\n demso++;\r\n }\r\n if (Character.isLetter(c)) {\r\n demchu++;\r\n }\r\n }\r\n if (demchu != 0 && demso != 0) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n\r\n }", "public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n String str1=in.nextLine();\n String str2=in.nextLine();\n int slen1=str1.length();\n \n int slen2=str2.length();\n int count=0;\n for(int i=0;i<(slen1-slen2+1);i++)\n {\n int num=1;\n for(int j=0;j<slen2;j++)\n {\n if(str1.charAt(i+j)!=(str2.charAt(j)))\n {\n num=0;\n }\n \n } \n if(num==1)\n {\n count++;\n }\n \n }\n System.out.println(count); \n }", "@Override\n\tpublic int countCase() {\n\t\treturn proSystemHeadMapper.selectCountCase()+proMultiMapper.selectCountMul()+proAppMapper.selectCountApp()+proItMapper.selectCountIt();\n\t}", "public int countBydescricao(String descricao);", "public static void main(String[] args) {\n\t\tString str=\"aabcccccaaaa\";\n\t\tString str2=\"\";\n\t\tint freq=1;\n\t\tfor(int i=0;i<str.length()-1;i++){\n\t\t\tif(str.charAt(i)==str.charAt(i+1)){\n\t\t\t\tfreq++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstr2=str2+str.charAt(i)+freq;\n\t\t\t\tfreq=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(str2+str.charAt(str.length()-1)+freq);\n\t}", "public int countSpecificString(String str)\n\t{\n\t\tif (str == null)\n\t\t\treturn 0;\n\n\t\tstr = str.toLowerCase();\n\t\tNode wizard = this.root; // Temporary node variable.\n\n\t\tfor (int i = 0; i < str.length(); i++)\n\t\t{\n\t\t\tif (!(Character.isLetter(str.charAt(i)))) continue;\n\t\t\tint index = str.charAt(i) - 'a';\n\t\t\t\n\t\t\tif (wizard.children[index] == null) return 0;\n\t\t\twizard = wizard.children[index];\n\t\t}\n\n\t\treturn wizard.count;\n\t}", "public static void main(String[] args) {\n\t\t String S = \"aacaacca\";\n\t\t String T = \"ca\";\n\t\tSystem.out.println(numDistinct(S, T));\n\t}", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "static int size_of_cnz(String passed){\n\t\treturn 3;\n\t}", "public int countDistinct(String s) {\n\t\tTrie root = new Trie();\n\t\tint result = 0;\n for (int i = 0; i < s.length(); i++) {\n \tTrie cur = root;\n \tfor (int j = i; j < s.length(); j++) {\n \t\tint idx = s.charAt(j) - 'a';\n \t\tif (cur.arr[idx] == null) {\n \t\t\tresult++;\n \t\t\tcur.arr[idx] = new Trie();\n \t\t}\n \t\tcur = cur.arr[idx];\n \t}\n }\n return result;\n }", "static int size_of_cpe(String passed){\n\t\treturn 3;\n\t}", "public int count(String st) {\n\t\tboolean ans = Search(st);\n\t\tif (ans) {\n\t\t\tint stIndex = table[hashFunction(st,m)].indexOf(st);\n\t\t\tint count = table[hashFunction(st,m)].get(stIndex).GetCount();\n\t\t\treturn count;\n\n\t\t} else\n\t\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tString str=s.nextLine();\r\n\t\tint count=0;\r\n\t\tchar ch[]=str.toCharArray();\r\n\t\tfor(char c:ch)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(count);\r\n\t}", "public static void getOccuringChar(String inPutString) {\n HashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();\n /* converting given string to char Array*/\n char[] strArray = inPutString.toCharArray();\n /*Checking each char in strArray*/\n for (char c : strArray) {\n if (charCountMap.containsKey(c)) {\n //If char 'c' is present in charCountMap, incrementing it's count by 1\n charCountMap.put(c, charCountMap.get(c) + 1);\n } else {\n /*If char 'c' is not present in charCountMap,putting 'c' into charCountMap with 1 as it's value\n */\n charCountMap.put(c, 1);\n }\n }\n /*Printing input String*/\n System.out.println(\"The frequency of Character is \" + charCountMap);\n }", "@Override //old methd for letter count\n public Integer letterCount(String inputString) {\n char[] characterArray = inputString.toCharArray();\n Map<Character, Integer> wordFrequencyMap = new HashMap<Character, Integer>();\n\n for (char character : characterArray) {\n if (wordFrequencyMap.containsKey(character)) {\n\n Integer wordCount = (Integer) wordFrequencyMap.get(character);\n wordFrequencyMap.put(character, wordCount + 1);\n\n } else {\n wordFrequencyMap.put(character, 1);\n\n }\n }\n return null; //iterateWordCount(wordFrequencyMap);\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.nextLine();\n\t\tint maxcount=0;\n\t\tint count=0;\n\t\tchar ch='a';\n\t\tfor(int i=0;i<st.length();i++)\n\t\t{\t\n\t\t\tcount=0;\n\t\t\tfor(int j=i+1;j<st.length();j++)\n\t\t\t{\n\t\t\t\tif(st.charAt(i)==st.charAt(j))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count>maxcount)\n\t\t\t{\n\t\t\t\tmaxcount=count;\n\t\t\t\tch=st.charAt(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ch);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}", "static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }", "public static void main(String[] args) {\n\t\tString original=\"Java is Programming Language Java asdf Java ghjhfj\";\r\n\t\tString occurence=\"Java\";\r\n\t\t\r\n\t\tint count=0;\r\n\t\tint fromIndex=0;\r\n\t\t\r\n\t\twhile ((fromIndex = original.indexOf(occurence, fromIndex)) != -1 )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Fount at index: \"+fromIndex);\r\n\t\t\tcount++;\r\n\t\t\tfromIndex++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurence of Java: \"+count);\r\n\t}" ]
[ "0.7212601", "0.72024435", "0.7084817", "0.6980777", "0.6976103", "0.6900494", "0.68134785", "0.6728318", "0.6725789", "0.66979873", "0.66705954", "0.66681737", "0.6659999", "0.66366786", "0.6628187", "0.66238433", "0.66201824", "0.6618931", "0.65457565", "0.65372", "0.65204465", "0.65183115", "0.6507643", "0.64819866", "0.6472204", "0.6457947", "0.6448726", "0.64278233", "0.64187056", "0.6408942", "0.6371621", "0.6369554", "0.6345955", "0.6330976", "0.6319236", "0.63130635", "0.6303646", "0.62895066", "0.62875426", "0.62874717", "0.62622637", "0.6252891", "0.62528074", "0.62479556", "0.6234248", "0.62237406", "0.6214481", "0.6203819", "0.6201", "0.6200263", "0.6198535", "0.6198526", "0.619822", "0.61941963", "0.61887914", "0.6187007", "0.6175726", "0.6167134", "0.61641634", "0.61590004", "0.6154756", "0.614433", "0.61360514", "0.61346036", "0.6132688", "0.6125176", "0.61240536", "0.61128277", "0.6100388", "0.6093925", "0.6089478", "0.6089335", "0.60782933", "0.60771966", "0.60767263", "0.60750115", "0.60725254", "0.60703945", "0.606079", "0.6057152", "0.60554504", "0.6046405", "0.6035861", "0.60351014", "0.60347486", "0.6017726", "0.60176605", "0.6017086", "0.60166436", "0.6016438", "0.60147476", "0.60090846", "0.600745", "0.6005889", "0.6005062", "0.5987471", "0.5960449", "0.59578395", "0.5939723", "0.59316367", "0.59316355" ]
0.0
-1
Get the student details based on the their year and call assign() method Call writeOutput() method to write the data
public void assignCourses() { // Check for Third Year Student queue and if its not empty assign course while (!tyStudents.isEmpty()) { Student student = tyStudents.poll(); assign(student); } // Check for Second Year Student queue and if its not empty assign course while (!syStudents.isEmpty()) { Student student = syStudents.poll(); assign(student); } // Check for First Year Student queue and if its not empty assign course while (!fyStudents.isEmpty()) { Student student = fyStudents.poll(); assign(student); } finalAverage = sumOfStudents / numberofStudents; sb.append("\n"); sb.append("AverageSatisfactionRating = " + finalAverage); results.writeOutput(sb, outputFilePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return \"StudentYear: ...\"; }", "public RegisteredStudent getStudentAndRegistration(int stID, String year) {\r\n RegisteredStudent reg = null;\r\n DBConnectionManager cm = new DBConnectionManager(this.dbMgr.getDBConnectionData(DBManager.MYSQL));\r\n ResultSet rs = cm.getResultsSQL(\"select * from TRegistration where STUDENT_ID = \" + stID + \" and YEAR = '\" + year + \"'\");\r\n reg = new RegisteredStudent();\r\n try {\r\n if (rs.next()) {\r\n reg.setRegistrationID(rs.getInt(\"REGISTRATION_ID\"));\r\n reg.setStudentID(rs.getInt(\"STUDENT_ID\"));\r\n reg.setYear(rs.getString(\"YEAR\"));\r\n reg.setLocationID(rs.getInt(\"LOCATION_ID\"));\r\n reg.setSessionID(rs.getInt(\"SESSION_ID\"));\r\n reg.setStatus(rs.getInt(\"STATUS\"));\r\n reg.setLevel(rs.getString(\"LEVEL\"));\r\n if ( reg.getLevel() != null && !reg.getLevel().trim().equals(\"\"))\r\n {\r\n reg.setLevelCode(Integer.parseInt(reg.getLevel()));\r\n }\r\n reg.setContactPhone1(rs.getString(\"CONTACT_PHONE1\"));\r\n reg.setContactPhone2(rs.getString(\"CONTACT_PHONE2\"));\r\n reg.setPaymentID(rs.getString(\"PP_PAYMENT_ID\"));\r\n reg.setPaymentAmount(rs.getDouble(\"PAYMENT_AMOUNT\"));\r\n reg.setTransactionID(rs.getString(\"PP_TRANSACTION_ID\"));\r\n reg.setTshirtSize(rs.getString(\"TSHIRT_SIZE\"));\r\n reg.setTshirtSizeCode(this.commonData.getTshirtCode(reg.getTshirtSize()));\r\n try {\r\n reg.setLastUpdated(\"\" + rs.getTimestamp(\"LAST_UPDATED\"));\r\n } catch (SQLException se) {\r\n reg.setLastUpdated(\"\");\r\n }\r\n reg.setAdCode(rs.getInt(\"AD_CODE\"));\r\n reg.setAdNote(rs.getString(\"AD_NOTE\"));\r\n reg.setStateOfResidency(rs.getString(\"RESIDENCY_STATE\"));\r\n reg.setDiscountCodeId(rs.getInt(\"DISCOUNT_CODE_ID\"));\r\n reg.setDiscountTypeId(rs.getInt(\"DISCOUNT_TYPE_ID\"));\r\n reg.setDiscountTypeName(rs.getString(\"DISCOUNT_TYPE_NAME\"));\r\n if (reg.getDiscountTypeName() == null) {\r\n reg.setDiscountTypeName(\"\");\r\n }\r\n try {\r\n reg.setDateTime(\"\" + rs.getTimestamp(\"REG_DATE\"));\r\n } catch (SQLException se) {\r\n reg.setDateTime(\"\");\r\n }\r\n String memo = rs.getString(\"MEMO\");\r\n if (memo == null) {\r\n memo = \"\";\r\n }\r\n reg.setParentNote(memo);\r\n String adminMemo = rs.getString(\"ADMIN_MEMO\");\r\n if (adminMemo == null) {\r\n adminMemo = \"\";\r\n }\r\n reg.setAdminNote(adminMemo);\r\n reg.setUpdatedBy(rs.getInt(\"UPDATED_BY\"));\r\n // get location and session info\r\n Location l = this.getLocationByID(reg.getLocationID());\r\n if ( l != null )\r\n {\r\n reg.setLocationCode(l.getLocationCode());\r\n LocationSession ls = l.getSession(reg.getSessionID());\r\n if ( ls != null )\r\n {\r\n reg.setSessionName(ls.getSessionInfo());\r\n }\r\n }\r\n \r\n }\r\n rs = cm.getResultsSQL(\"select * from TStudents where STUDENT_ID = \" + stID);\r\n if (rs.next()) {\r\n reg.setStudentID(rs.getInt(\"STUDENT_ID\"));\r\n reg.setStudentIdentificationCode(rs.getString(\"STUDENT_IDENTIFICATION_CD\"));\r\n reg.setAddress1(rs.getString(\"ADDRESS1\"));\r\n reg.setAddress2(rs.getString(\"ADDRESS2\"));\r\n reg.setCity(rs.getString(\"CITY\"));\r\n reg.setEthnicGroupCode(rs.getInt(\"ETHNIC_GROUP\"));\r\n reg.setEthnicGroupName(commonData.getEthnicGroupName(reg.getEthnicGroupCode()));\r\n reg.setFirstName(rs.getString(\"FIRST_NAME\"));\r\n reg.setGenderCode(rs.getInt(\"GENDER\"));\r\n reg.setGender(commonData.getGenderName(reg.getGenderCode()));\r\n reg.setLastName(rs.getString(\"LAST_NAME\"));\r\n reg.setMiddleName(rs.getString(\"MIDDLE_NAME\"));\r\n reg.setParentGuardianEmail(rs.getString(\"PARENT_GUARDIAN_EMAIL\"));\r\n reg.setSchoolName(rs.getString(\"SCHOOL_NAME\"));\r\n reg.setState(rs.getString(\"STATE\"));\r\n reg.setStudentEmail(rs.getString(\"STUDENT_EMAIL\"));\r\n reg.setTeacherEmail(rs.getString(\"TEACHER_EMAIL\"));\r\n reg.setTeacherFirstName(rs.getString(\"TEACHER_FIRST_NAME\"));\r\n reg.setTeacherLastName(rs.getString(\"TEACHER_LAST_NAME\"));\r\n reg.setZipcode(rs.getString(\"ZIPCODE\"));\r\n reg.setCountryOfOrigin(rs.getString(\"COUNTRY_OF_ORIGIN\"));\r\n }\r\n\r\n } catch (SQLException se) {\r\n System.out.println(\"Error in BusinessProcessControl [getStudentAndRegistration()]: \" + se);\r\n } finally {\r\n DBConnectionManager.dropConnObject(rs);\r\n cm.freeConnection();\r\n cm = null;\r\n }\r\n return reg;\r\n }", "public static void main(String[] args){\n\t\tPersonalData data1= new PersonalData(1982,01,11,234567890);\n\t\tPersonalData data2= new PersonalData(1992,10,19,876543210);\n\t\tPersonalData data3= new PersonalData(1989,04,27,928374650);\n\t\tPersonalData data4= new PersonalData(1993,07,05,819463750);\n\t\tPersonalData data5= new PersonalData(1990,11,03,321678950);\n\t\tPersonalData data6= new PersonalData(1991,11,11,463728190);\n\t\tStudent student1=new Student(\"Ali Cantolu\",5005,50,data1);\n\t\tStudent student2=new Student(\"Merve Alaca\",1234,60,data2);\n\t\tStudent student3=new Student(\"Gizem Kanca\",5678,70,data3);\n\t\tStudent student4=new Student(\"Emel Bozdere\",8902,70,data4);\n\t\tStudent student5=new Student(\"Merter Kazan\",3458,80,data5);\n\n\t\t//A course (let us call it CSE141) with a capacity of 3 is created\n\t\tCourse CSE141=new Course(\"CSE141\",3);\n\n\t\t//Any 4 of the students is added to CSE141.\n\t\tif (!CSE141.addStudent(student1)) System.out.println(student1.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student2)) System.out.println(student2.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student3)) System.out.println(student3.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student4)) System.out.println(student4.toString()+ \" is not added\");\n\n\n\t\t//All students of CSE141 are printed on the screen.\n System.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n CSE141.list();\n\n //The capacity of CSE141 is increased.\n CSE141.increaseCapacity();\n\n //Remaining 2 students are added to CSE141.\n\t \tCSE141.addStudent(student4);\n\t \tCSE141.addStudent(student5);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Student with ID 5005 is dropped from CSE141.\n\t \tCSE141.dropStudent(student1);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Number of students enrolled to CSE141 is printed.\n\t \tSystem.out.println(\"\\nNumber of students enrolled to \"+CSE141.getCourseName()+\": \" + CSE141.getNumberOfStudents());\n\n\t \t//Birth year of best student of CSE141 is printed on the screen. (You should use getYear() method of java.util.Date class.)\n\t \tSystem.out.println(\"\\nBirth year of best student of CSE141 is \"+CSE141.getBestStudent().getPersonalData().getBirthDate().getYear());\n\n\t \t//A new course (let us call it CSE142) is created.\n\t \tCourse CSE142=new Course(\"CSE142\");\n\n\t \t//All students currently enrolled in CSE141 are added to CSE142. (You should use getStudents() method).\n\t \tStudent[] students = CSE141.getStudents();\n\t \tfor(int i=0;i<CSE141.getNumberOfStudents();i++)\n\t \t\tCSE142.addStudent(students[i]);\n\n\t \t//All students of CSE141 are removed from the course.\n\t \tCSE141.clear();\n\n\t \t//Student with ID 5005 is dropped from CSE141 and result of the operation is printed on the screen.\n\t \tSystem.out.println(\"\\nThe result of the operation 'Student with ID 5005 is dropped from \"+CSE141.getCourseName()+\"' is: \"+CSE141.dropStudent(student1));\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//Best student of CSE142 is dropped from CSE142.\n\t \tCSE142.dropStudent(CSE142.getBestStudent());\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//GPA of youngest student of CSE142 is printed on the screen.\n\t\tSystem.out.println(\"\\nThe Youngest Student's (\"+CSE142.getYoungestStudent()+\") GPA is \"+CSE142.getYoungestStudent().GPA());\n\n\t \t//Courses CSE141 and CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE141.getCourseName()+\":\\n\" + CSE141.toString());\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE142.getCourseName()+\":\\n\" + CSE142.toString());\n\t }", "public void setYear(String year)\r\n {\r\n this.year = year; \r\n }", "public void setYear(int _year) { year = _year; }", "public void setYear(int year)\n {\n this.year = year;\n }", "public void setYear (int yr) {\n year = yr;\n }", "public void displayGrade(String name,int year){\n try{\n \n List<List<String>>displayAll = new ArrayList<>();\n List<String> displayRecord = new ArrayList<>();\n \n //Retriving value form 'grade' table\n System.out.println(name);\n String query = \"SELECT * from grade WHERE studentName = '\"+ name +\"' AND stuYear = '\"+year+\"'\";\n rs = st.executeQuery(query);\n \n while (rs.next()){\n String displaySubject = rs.getString(\"subjectName\");\n String displayYear = rs.getString(\"asseName\");\n String displayGrade = rs.getString(\"grade\");\n String displaySkill = rs.getString(\"skill\");\n String displayKnowledge = rs.getString(\"knowledge\");\n \n Assessment newRecord = new Assessment();\n displayRecord = newRecord.displayRecord(displaySubject, displayYear, displayGrade, displaySkill, displayKnowledge);\n \n displayAll.add(displayRecord);\n \n }\n this.displayAll = displayAll;\n \n }catch(Exception ex){\n System.out.println(\"Error in display grade \"+ ex);\n }\n }", "public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}", "public void setYear(int year) {\r\n this.year = year;\r\n }", "public void setYear(int year) {\n this.year = year;\n }", "public void getstudentInformation(int house) throws IOException {\r\n\t\tBoolean studentYearValidity = true, studentNameValidity = true;\r\n\t\tString studentName = \"\";\r\n\t\tString studentYear = \"\";\r\n\t\tstudentYearValidity = isNumber(this.enrollStudentYear.getText());\r\n\t\tstudentNameValidity = isValidInput(this.enrollStudentName.getText());\r\n\t\tif (studentYearValidity == false) {\r\n\t\t\tthis.enrolledMessage.setFill(Color.RED);\r\n\t\t\tthis.studentYearLabel.setStyle(\"-fx-text-fill: red\");\r\n\t\t\tthis.enrolledMessage.setText(\"Invalid student information, please try again.\");\r\n\t\t}\r\n\t\tif (studentNameValidity == false) {\r\n\t\t\tthis.enrolledMessage.setFill(Color.RED);\r\n\t\t\tthis.studentNameLabel.setStyle(\"-fx-text-fill: red\");\r\n\t\t\tthis.enrolledMessage.setText(\"Invalid student information, please try again.\");\r\n\t\t} else if (studentNameValidity == true && studentYearValidity == true) {\r\n\t\t\tsetValid();\r\n\t\t\tthis.enrolledMessage.setFill(Color.web(\"rgb(8, 122, 46)\"));\r\n\t\t\tstudentName = this.enrollStudentName.getText();\r\n\t\t\tstudentYear = this.enrollStudentYear.getText();\r\n\t\t\tswitch (house) {\r\n\t\t\tcase 0:\r\n\t\t\t\twriteTofile(\"Gryffindor.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\twriteTofile(\"Slytherin.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\twriteTofile(\"Hufflepuff.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\twriteTofile(\"Ravenclaw.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tthis.enrolledMessage.setText(\"Student successfully enrolled: \" + this.enrollStudentName.getText()\r\n\t\t\t\t\t+ \", year \" + this.enrollStudentYear.getText());\r\n\t\t\tthis.enrollStudentName.clear();\r\n\t\t\tthis.enrollStudentYear.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic List<AASTranscriptSemester> getAASTranscriptSemester(String stuId, String acaYear, String semesterId) {\n\t\tList<AASTranscriptSemester> arr = new ArrayList<>();\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = oConnection.getOracleConnection();\n\t\t\t//If semesterId == 4, it means it's SPRING semester, we have to change it into 1 because numYears variable bellow \n\t\t\t//which is the concatenation between academic year and semester Id (Ex: 20184, 20173,...) cannot be\n\t\t\t//like 20181, 20171, 20151, etc. it has to be like 20184, 20174, 20154, etc. \n\t\t\tif (semesterId.equals(\"4\"))\n\t\t\t\tsemesterId = \"1\";\n\t\t\tString numYear = acaYear + semesterId;\n\t\t\tString sql = \n\t\t\t\t\t\"select id_student,semester_name,aca_year,semester,term_gpa_aas,cum_gpa_aas\"+ \n\t\t\t\t\t\" from v_cum_gpa_aas\"+ \n\t\t\t\t\t\" where id_student = ?\" +\n\t\t\t\t\t\" and num_semester_year < ?\"+\n\t\t\t\t\t\" order by num_semester_year\"; \n\t\t\tstatement = conn.prepareStatement(sql);\n\t\t\tstatement.setString(1, stuId);\n\t\t\tstatement.setString(2, numYear);\n\t\t\trs = statement.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tarr.add(new AASTranscriptSemester(rs.getString(\"id_student\"),rs.getString(\"semester_name\"),rs.getString(\"aca_year\")\n\t\t\t\t\t\t, rs.getString(\"semester\"), rs.getDouble(\"term_gpa_aas\"), rs.getDouble(\"cum_gpa_aas\")));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstatement.close();\n\t\t\tconn.close();\n\t\t\treturn arr;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry {\n\t\t\t\tif (rs != null)\n\t\t\t\t\trs.close();\n\t\t\t\tif (statement != null)\n\t\t\t\t\tstatement.close();\n\t\t\t\tif (conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@RequestMapping(value = \"/getAllEmployeeAnnualProductivity\", method = RequestMethod.POST)\r\n public @ResponseBody String getAllEmployeeAnnualProductivity(@RequestParam(\"year\") int year) {\r\n logger.info(\"inside ReportGenerationController getAllEmployeeAnnualProductivity()\");\r\n logger.info(\"data received: year: \" + year);\r\n\r\n return reportGenerationService.getAllEmployeeAnnualProductivity(year);\r\n\r\n }", "public static void main (String [] args) {\n Address school = new Address(\"800 Lancaster Ave.\", \"Villanova\",\n \"PA\", 19085);\n //create home address objects for a number of students\n Address home1 = new Address(\"21 Jump Street\", \"Blacksburg\",\n \"VA\", 24551);\n Address home2 = new Address(\"123 Main Street\", \"Euclid\", \"OH\", \n 44132);\n Address home3 = new Address(\"5248 Fortress Circle\", \"Valdosta\",\n \"GA\", 31605);\n Address home4 = new Address(\"505 Cedar Drive\", \"Nashville\",\n \"GA\", 31639);\n //create students\n Student student1 = new Student(\"Rick\",\"Sanchez\",home1,school,99,100,97,94);\n Student student2 = new Student(\"Morty\",\"Smith\" ,home2,school,14,28,37,55); \n Student student3 = new Student(\"Zach\",\"Spencer\",home3,school,98,89,86,95);\n Student student4 = new Student(\"Arron\",\"Croft\" ,home4,school,84,99,90,75);\n //create a CS1301 A course\n Course cs1301A = new Course(\"CS1301 A\");\n //create a CS1301 B course\n Course cs1301B = new Course(\"CS1301 B\"); \n //assign some students to CS1301 A\n cs1301A.addStudent(student1);\n cs1301A.addStudent(student2);\n //assign some students to CS1301 B\n cs1301B.addStudent(student3); \n cs1301B.addStudent(student4);\n //get the averages of the 2 courses\n System.out.println(\"*** Averages of CS1301 Courses ***\");\n System.out.println(\"CS1301 A: \"+cs1301A.average());\n System.out.println(\"CS1301 B: \"+cs1301B.average());\n //display the roll for the 2 courses\n System.out.println(\"\\n*** Roll Call ***\");\n cs1301A.roll();\n cs1301B.roll(); \n }", "public void setYear(int year) {\n\tthis.year = year;\n}", "public void setYear(String year) {\n this.year = year;\n }", "public void setYear(String year) {\n this.year = year;\n }", "public void setYear(int Year) {\n\t this.year= Year;\n\t}", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "private void setStudentID() {\n\t\tid++;\n\t\tthis.studentId = gradeYear + \"\" + id;\n\t\tSystem.out.println(this.studentId);\n\t}", "public void setYear(int value) {\r\n this.year = value;\r\n }", "public void university(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Registry:\");\n\t\tString registry = reader.nextLine();\n\t\tSystem.out.println(\"Number of years accredited:\");\n\t\tint accreditedYears = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Rector name:\");\n\t\tString rectorName = reader.nextLine();\n\t\tSystem.out.println(\"Number of students in stratum 1 and 2:\");\n\t\tint studentsStratum = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Number of students:\");\n\t\tint students = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Position in the saberPro test:\");\n\t\tint nationalPositionPro = reader.nextInt();\n\t\treader.nextLine();\n\t\tUniversity toAdd = new University(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, registry, accreditedYears, rectorName, studentsStratum, students, nationalPositionPro);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}", "public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}", "public void SetCheckoutRegistrationestablished_year(String estyear){\r\n\t\tString Establishedyear = getValue(estyear);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration Tile should be selected as \"+Establishedyear);\r\n\t\ttry{\r\n\r\n\t\t\tselectList(locator_split(\"dpRegistrationBusinessFoundation\"),Establishedyear);\r\n\t\t\tSystem.out.println(\"Registration Tile is selected as \"+Establishedyear);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Registration Tile is selected as \"+Establishedyear);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Registration Tile is not selected as \"+Establishedyear);\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"dpRegistrationBusinessFoundation\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void setYear(int year) {\n\t\tthis.year = year;\n\t}", "public void setYear(int year) {\n\t\tthis.year = year;\n\t}", "private void setStudentId() {\n\t id++;\n\t this.studentId=gradeYear+\"\"+id;\n }", "@Test\n\tvoid testExtractStudentName() {\n\t\t\n\t\t// Create a result object and set the assignment name\n\t\tResult result = new Result();\n\t\tresult.setAssignmentName(\"last_first_a1.docx\");\n\t\t\n\t\t// Extract the student name from the assignment name\n\t\tresult.extractStudentName();\n\t\t\n\t\t// Assert first name\n\t\tassertTrue(\"first\".equals(result.getStudentFirstName()));\n\t\t\n\t\t// Assert last name\n\t\tassertTrue(\"last\".equals(result.getStudentLastName()));\n\t\t\n\t}", "@RequestMapping(value = \"/getEmployeeAnnualProductivity\", method = RequestMethod.POST)\r\n public @ResponseBody String getEmployeeAnnualProductivity(\r\n @RequestParam(\"employeeId\") int employeeId, @RequestParam(\"year\") int year) {\r\n logger.info(\"inside ReportGenerationController getEmployeeAnnualProductivity()\");\r\n logger.info(\"data received: employee id: \" + employeeId + \" year: \" + year);\r\n\r\n return reportGenerationService.getEmployeeAnnualProductivity(employeeId, year);\r\n\r\n }", "public void setYear(Integer year) {\r\n this.year = year;\r\n }", "public void setYear(Integer year) {\r\n this.year = year;\r\n }", "public int getStudentNum(){//return student Number\r\n \treturn studentNum;\r\n }", "public static void main(String[] args) {\n Scanner myScanner;\n myScanner = new Scanner(System.in);\n \n // prompt the user to enter the course number\n System.out.print (\"Enter a six digit number giving the course semester- \");\n int coursenumber = myScanner.nextInt();\n int year = (int) (coursenumber / 100);\n int semester = coursenumber - year * 100;\n \n // start of if (year is within rage)\n if (year >= 1865 && year <= 2014) {\n \n // start of if (semester is legitimate)\n if (semester == 10 || semester == 20 || semester == 30 || semester == 40) {\n \n // start of if (spring semester)\n if (semester == 10) {\n System.out.println (\"The course was offered in the Spring semester of \" + year);\n } // end of if (spring semester)\n \n // start of else if (summer 1 semester)\n else if (semester == 20) {\n System.out.println (\"The course was offered in Summer 1 semester of \" + year);\n } // end of else if (summer 1 semester)\n \n // start of if (summer 2 semester)\n else if (semester == 30) {\n System.out.println (\"The course was offered in the Summer 2 semester of \" + year);\n } // end of else if (summer 2 semester)\n \n // start of else (fall semester)\n else {\n System.out.println (\"The course was offered in the Fall semester of \" + year);\n } // end of else (Fall semester)\n \n } // end of if (semester is legitimate)\n \n // start of else (semester is not legitimate)\n else {\n System.out.println (semester + \" is not a legitimate semester\");\n return;\n } // end of else (semester is not legitimate)\n\n } // end of if (year is within rage)\n \n // start of else (year is outside the range)\n else {\n System.out.println (\"The number was outside the range [186510,201440]\");\n } // end of else (year is outside the range)\n \n }", "public void setYear(String year) {\n\t\tthis.year = year;\n\t}", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public void highSchool(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Registry:\");\n\t\tString registry = reader.nextLine();\n\t\tSystem.out.println(\"Number of years accredited:\");\n\t\tint accreditedYears = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Rector name:\");\n\t\tString rectorName = reader.nextLine();\n\t\tSystem.out.println(\"Number of students in stratum 1 and 2:\");\n\t\tint studentsStratum = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Number of students:\");\n\t\tint students = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Position in the saber11 test:\");\n\t\tint nationalPosition11 = reader.nextInt();\n\t\treader.nextLine();\n\t\tHighSchool toAdd = new HighSchool(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, registry, accreditedYears, rectorName, studentsStratum, students, nationalPosition11);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}", "private List<StudentProgramInfo> getStudentProgramInfoList(\r\n\t\t\tProgramOfStudyResponse programOfStudyResponse,Student student) {\r\n\t\tList<StudentProgramInfo> studentProgramList = new ArrayList<StudentProgramInfo>();\r\n\t\tSimpleDateFormat dateFormat =new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\t\tif(programOfStudyResponse!=null && programOfStudyResponse.size()>0){\r\n\t\t\tfor(ProgramOfStudy pos:programOfStudyResponse){\r\n\t\t\t\tStudentProgramInfo stdProgramInfo = new StudentProgramInfo();\r\n\t\t\t\tstdProgramInfo.setProgramOfStudyId(pos.getProgramOfStudyId());\r\n\t\t\t\tstdProgramInfo.setEnrollmentStatus(pos.getEnrollmentStatus());\r\n\t\t\t\tstdProgramInfo.setProgramCode(pos.getProgramCode());\r\n\t\t\t\tstdProgramInfo.setProgramVersionCode(pos.getProgramVersionCode());\r\n\t\t\t\t//Using ProgramVersion from the service for the programName\r\n\t\t\t\tstdProgramInfo.setProgramName(pos.getProgramVersion());\r\n\t\t\t\tstdProgramInfo.setStudentCrmId(student.getCrmId());\r\n\t\t\t\tstdProgramInfo.setProgramOfStudyStatus(pos.getProgramOfStudyStatus());\r\n \t\t\t if(pos.getExpectedStartDate()!=null){\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tstdProgramInfo.setExpectedStartDate(dateFormat.parse(pos.getExpectedStartDate()));\r\n\t\t\t\t\t} catch (ParseException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//\r\n\t\t\t\t//need to see how to get catalogcode and state code\r\n\t\t\t\tstudentProgramList.add(stdProgramInfo);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t/*TODO: ADDING THIS BECAUSE THERE ARE PLACES WE ARE JUST ASSUMING PROGRAM IS AVAILABLE. FIX ME */\r\n\t\t\tStudentProgramInfo stdProgramInfo= new StudentProgramInfo();\r\n\t\t\t \r\n\t\t\tstdProgramInfo.setProgramOfStudyId(\"N/A\");\r\n\t\t\tstdProgramInfo.setEnrollmentStatus(\"N/A\");\r\n\t\t\tstdProgramInfo.setProgramCode(\"N/A\");\r\n\t\t\tstdProgramInfo.setProgramVersionCode(\"N/A\");\r\n\t\t\t//Using ProgramVersion from the service for the programName\r\n\t\t\tstdProgramInfo.setProgramName(\"N/A\");\r\n\t\t\t//stdProgramInfo.setStudentCrmId(student.getCrmId());\r\n\t\t\t//stdProgramInfo.setProgramOfStudyStatus(pos.getProgramOfStudyStatus());\r\n\t\t\t//stdProgramInfo.setExpectedStartDate(pos.getExpectedStartDate());\r\n\t\t\t//need to see how to get catalogcode and state code\r\n\t\t\tstudentProgramList.add(stdProgramInfo);\r\n\r\n\t\t}\r\n \t\treturn studentProgramList;\r\n\t}", "@Override\n\tpublic List<AASTranscriptCourse> getAASTranscriptCourse(String stuId, String acaYear, String semesterId) {\n\t\tList<AASTranscriptCourse> arr = new ArrayList<>();\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = oConnection.getOracleConnection();\n\t\t\tString sql =\"select aca_year,subjectid,subjectname,credits,credits_earn,letter_mark\"+ \n\t\t\t\t\t\" from v_course\"+ \n\t\t\t\t\t\" where id_student= ?\"+ \n\t\t\t\t\t\" and aca_year= ?\"+\n\t\t\t\t\t\" and semester= ?\"+\n\t\t\t\t\t\" and aas_sgt= 0\"+ \n\t\t\t\t\t\" order by subjectid\";\n\t\t\tstatement = conn.prepareStatement(sql);\n\t\t\tstatement.setString(1, stuId);\n\t\t\tstatement.setString(2, acaYear);\n\t\t\tstatement.setString(3, semesterId);\n\t\t\trs = statement.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tarr.add(new AASTranscriptCourse(rs.getString(\"aca_year\"),rs.getString(\"subjectid\"),rs.getString(\"subjectname\")\n\t\t\t\t\t\t, rs.getString(\"credits\"), rs.getString(\"credits_earn\"), rs.getString(\"letter_mark\")));\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstatement.close();\n\t\t\tconn.close();\n\t\t\treturn arr;\n\t\t} catch (SQLException e) {\n\t\t\treturn null;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry {\n\t\t\t\tif (rs != null)\n\t\t\t\t\trs.close();\n\t\t\t\tif (statement != null)\n\t\t\t\t\tstatement.close();\n\t\t\t\tif (conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void setYear(int value) {\n\tthis.year = value;\n }", "public static void main(String[] args) {\n\n//declare and instance of the scanner object\nScanner myScanner;\n\n//Tell scanner you're creating an instance that\n// will take input from STDIN\nmyScanner=new Scanner( System.in );\n\n//Prompt user for 6 digit number giving the course semester\n System.out.print(\n \"Enter a 6 digit number giving the course semester- \");\n//Accept user input\nint nSix=myScanner.nextInt();\n\nint year= (nSix/100);\nint course= nSix % 100;\n\n if (year > 2014 || year <1865) {\n System.out.println(\n \"The number was outside the range [186510,201440]\");\n return;\n \n }\n \n\n if (course == 10) {\n System.out.println(\n \"The course was offered in the Spring semester of \"+year+\"\");\n }\n\n else if (course == 20) {\n System.out.println(\n \"The course was offered in the Summer 1 semester of \"+year+\"\");\n }\n\n else if (course == 30) {\n System.out.println(\n \"The course was offered in the Summer 2 semester of \"+year+\"\");\n }\n\n else if (course == 40) {\n System.out.println(\n \"The course was offered in the Fall semester of \"+year+\"\");\n }\n else{\n System.out.println(+course+\" is not a legitimate semester\");\n }\n\n\n }", "public int getYear(){\n\t return this.year;\n }", "public Publication(String title, int year)\n {\n // this is the constructor that iniates the variables \n name = title;\n yr = year;\n }", "public void setYearSemester(String yearSemester)\r\n\t{\r\n\t\tthis.yearSemester = yearSemester;\r\n\t}", "public void setYear(int y){\n\t\tyear = y ; \n\t}", "public void setDocumentYear(int documentYear);", "public java.lang.String getStudent_schoolYear() {\n\t\treturn _primarySchoolStudent.getStudent_schoolYear();\n\t}", "Year createYear();", "public int getYear() { return year; }", "public int getYear() { return year; }", "public void whatIsNameInYear(String name, int year, int newYear, String gender){\n FileResource oldFr = new FileResource();\n //String newFileName = \"yob\"+year+\".csv\";\n //FileResource newFr = new FileResource(newFileName);\n FileResource newFr = new FileResource();\n \n int rank = 0;\n int rankInNew = 0;\n boolean isPresent = false;\n boolean isPresentinNew = false;\n for (CSVRecord rec : oldFr.getCSVParser(false)){\n if (rec.get(1).equals(gender)){\n rank++;\n if(rec.get(0).equals(name)) isPresent = true;\n }\n }\n if (isPresent){\n for (CSVRecord rec : newFr.getCSVParser(false)){\n if (rec.get(1).equals(gender)){\n rankInNew++;\n if (rec.get(1).equals(\"M\")){\n String sex = \"he\";\n if(rankInNew == rank) {\n isPresentinNew = true;\n System.out.println(name + \" born in \" \n + year + \" would be \" + rec.get(0) + \n \" if \"+sex+\" was born in \"+ newYear);\n }\n } else {\n String sex = \"she\";\n if(rankInNew == rank) {\n isPresentinNew = true;\n System.out.println(name + \" born in \" \n + year + \" would be \" + rec.get(0) + \n \" if \"+sex+\" was born in \"+ newYear);\n }\n }\n \n }\n }\n if(!isPresentinNew){\n System.out.println(\"No such rank in year \"+newYear);\n }\n \n } \n \n else {\n System.out.println(\"No match found in first record\");\n }\n }", "public String getYear()\r\n {\r\n return year;\r\n }", "@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}", "static void loadAttendanceData(String year) {\r\n\t\tJSONArray jsona = null;\r\n\t\ttry {\r\n\t\t\tString data = Engine.db.getCollection(\"Students\").find(eq(\"sid\", Personal.tsid.getText())).first().toJson();\r\n\t\t\tjsona = new JSONObject(data).getJSONArray(year.toLowerCase());\r\n\t\t} catch (JSONException e) {\r\n\t\t}\r\n\t\tIterator<?> it = jsona.iterator();\r\n\t\tatsem1.getItems().clear();\r\n\t\tatsem2.getItems().clear();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tJSONObject json = (JSONObject) it.next();\r\n\t\t\tString name = json.getString(\"name\");\r\n\t\t\tint at = json.getInt(\"attended\");\r\n\t\t\tint att = json.getInt(\"attendedTotal\");\r\n\t\t\tint sem = json.getInt(\"sem\");\r\n\r\n\t\t\tPlatform.runLater(() -> {\r\n\t\t\t\tif (sem % 2 == 1) {\r\n\t\t\t\t\tatsem1.setTooltip(new Tooltip(\"Semester: \" + Integer.toString(sem)));\r\n\t\t\t\t\tatrbsem1.setText(\"Semester: \" + Integer.toString(sem));\r\n\t\t\t\t\tatsem1.getItems().add(new AttendanceData(name, at, att));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tatsem2.setTooltip(new Tooltip(\"Semester: \" + Integer.toString(sem)));\r\n\t\t\t\t\tatsem2.getItems().add(new AttendanceData(name, at, att));\r\n\t\t\t\t\tatrbsem2.setText(\"Semester: \" + Integer.toString(sem));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\t}", "public static void setSemester() {\r\n\t\tarrays = ReadingAndWritingInFile.readObject(\"MarketingDepartment.txt\");\r\n\t\taverageandidofemployees = (ArrayList<ArrayList<Double>>) arrays[0];\r\n\t\tdegreespersemester = (ArrayList<ArrayList<Double>>) arrays[1];\r\n\t\tidperemployee = (ArrayList<Double>) arrays[2];\r\n\t\tObject[] arrays2 = ReadingAndWritingInFile.readObject(\"HRDepartment.txt\");\r\n\t\tArrayList<ArrayList<Double>> averageandidofemployees2 = (ArrayList<ArrayList<Double>>) arrays2[0];\r\n\t\tArrayList<ArrayList<Double>> degreespersemester2 = (ArrayList<ArrayList<Double>>) arrays2[1];\r\n\t\tArrayList<Double> idperemployee2 = (ArrayList<Double>) arrays2[2];\r\n\t\tObject[] arrays3 = ReadingAndWritingInFile.readObject(\"AccountingDepartment.txt\");\r\n\t\tArrayList<ArrayList<Double>> averageandidofemployees3 = (ArrayList<ArrayList<Double>>) arrays3[0];\r\n\t\tArrayList<ArrayList<Double>> degreespersemester3 = (ArrayList<ArrayList<Double>>) arrays3[1];\r\n\t\tArrayList<Double> idperemployee3 = (ArrayList<Double>) arrays3[2];\r\n\t\tObject[] arrays4 = ReadingAndWritingInFile.readObject(\"ITDepartment.txt\");\r\n\t\tArrayList<ArrayList<Double>> averageandidofemployees4 = (ArrayList<ArrayList<Double>>) arrays4[0];\r\n\t\tArrayList<ArrayList<Double>> degreespersemester4 = (ArrayList<ArrayList<Double>>) arrays4[1];\r\n\t\tArrayList<Double> idperemployee4 = (ArrayList<Double>) arrays4[2];\r\n\t\tint times = ReadingAndWritingInFile.readNumber(\"Times.txt\");\r\n\t\tif (times == 1) {\r\n\t\t\t++times;\r\n\t\t\ttry {\r\n\t\t\t\tnew FileWriter(\"Times.txt\").close();\r\n\t\t\t\tFileOutputStream wr = new FileOutputStream(\"Times.txt\");\r\n\t\t\t\twr.write(times);\r\n\t\t\t\twr.close();\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees.size() - 1; i++) {\r\n\t\t\t\tidperemployee.add(i, averageandidofemployees.get(i).get(1));\r\n\t\t\t\tdegreespersemester.add(new ArrayList<Double>());\r\n\t\t\t\tdegreespersemester.get(i).add(0, averageandidofemployees.get(i).get(0));\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees2.size() - 1; i++) {\r\n\t\t\t\tidperemployee2.add(i, averageandidofemployees2.get(i).get(1));\r\n\t\t\t\tdegreespersemester2.add(new ArrayList<Double>());\r\n\t\t\t\tdegreespersemester2.get(i).add(0, averageandidofemployees2.get(i).get(0));\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees3.size() - 1; i++) {\r\n\t\t\t\tidperemployee3.add(i, averageandidofemployees3.get(i).get(1));\r\n\t\t\t\tdegreespersemester3.add(new ArrayList<Double>());\r\n\t\t\t\tdegreespersemester3.get(i).add(0, averageandidofemployees3.get(i).get(0));\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees4.size() - 1; i++) {\r\n\t\t\t\tidperemployee4.add(i, averageandidofemployees4.get(i).get(1));\r\n\t\t\t\tdegreespersemester4.add(new ArrayList<Double>());\r\n\t\t\t\tdegreespersemester4.get(i).add(0, averageandidofemployees4.get(i).get(0));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tint count2;\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees.size() - 1; i++) {\r\n\t\t\t\tcount2 = 1;\r\n\t\t\t\tfor (int j = 0; j <= idperemployee.size() - 1; j++) {\r\n\t\t\t\t\tif (String.valueOf(averageandidofemployees.get(i).get(1))\r\n\t\t\t\t\t\t\t.equals(String.valueOf(idperemployee.get(j)))) {\r\n\t\t\t\t\t\tdegreespersemester.get(j).add(degreespersemester.get(j).size(),\r\n\t\t\t\t\t\t\t\taverageandidofemployees.get(i).get(0));\r\n\t\t\t\t\t\tcount2 = 0;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (count2 == 1) {\r\n\t\t\t\t\tidperemployee.add(idperemployee.size(), averageandidofemployees.get(i).get(1));\r\n\t\t\t\t\tdegreespersemester.add(new ArrayList<Double>());\r\n\t\t\t\t\tdegreespersemester.get(degreespersemester.size() - 1).add(0, averageandidofemployees.get(i).get(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees2.size() - 1; i++) {\r\n\t\t\t\tcount2 = 1;\r\n\t\t\t\tfor (int j = 0; j <= idperemployee2.size() - 1; j++) {\r\n\t\t\t\t\tif (String.valueOf(averageandidofemployees2.get(i).get(1))\r\n\t\t\t\t\t\t\t.equals(String.valueOf(idperemployee2.get(j)))) {\r\n\t\t\t\t\t\tdegreespersemester2.get(j).add(degreespersemester2.get(j).size(),\r\n\t\t\t\t\t\t\t\taverageandidofemployees2.get(i).get(0));\r\n\t\t\t\t\t\tcount2 = 0;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (count2 == 1) {\r\n\t\t\t\t\tidperemployee2.add(idperemployee2.size(), averageandidofemployees2.get(i).get(1));\r\n\t\t\t\t\tdegreespersemester2.add(new ArrayList<Double>());\r\n\t\t\t\t\tdegreespersemester2.get(degreespersemester2.size() - 1).add(0,\r\n\t\t\t\t\t\t\taverageandidofemployees2.get(i).get(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees3.size() - 1; i++) {\r\n\t\t\t\tcount2 = 1;\r\n\t\t\t\tfor (int j = 0; j <= idperemployee3.size() - 1; j++) {\r\n\t\t\t\t\tif (String.valueOf(averageandidofemployees3.get(i).get(1))\r\n\t\t\t\t\t\t\t.equals(String.valueOf(idperemployee3.get(j)))) {\r\n\t\t\t\t\t\tdegreespersemester3.get(j).add(degreespersemester3.get(j).size(),\r\n\t\t\t\t\t\t\t\taverageandidofemployees3.get(i).get(0));\r\n\t\t\t\t\t\tcount2 = 0;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (count2 == 1) {\r\n\t\t\t\t\tidperemployee3.add(idperemployee3.size(), averageandidofemployees3.get(i).get(1));\r\n\t\t\t\t\tdegreespersemester3.add(new ArrayList<Double>());\r\n\t\t\t\t\tdegreespersemester3.get(degreespersemester3.size() - 1).add(0,\r\n\t\t\t\t\t\t\taverageandidofemployees3.get(i).get(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= averageandidofemployees4.size() - 1; i++) {\r\n\t\t\t\tcount2 = 1;\r\n\t\t\t\tfor (int j = 0; j <= idperemployee4.size() - 1; j++) {\r\n\t\t\t\t\tif (String.valueOf(averageandidofemployees4.get(i).get(1))\r\n\t\t\t\t\t\t\t.equals(String.valueOf(idperemployee4.get(j)))) {\r\n\t\t\t\t\t\tdegreespersemester4.get(j).add(degreespersemester4.get(j).size(),\r\n\t\t\t\t\t\t\t\taverageandidofemployees4.get(i).get(0));\r\n\t\t\t\t\t\tcount2 = 0;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (count2 == 1) {\r\n\t\t\t\t\tidperemployee4.add(idperemployee4.size(), averageandidofemployees4.get(i).get(1));\r\n\t\t\t\t\tdegreespersemester4.add(new ArrayList<Double>());\r\n\t\t\t\t\tdegreespersemester4.get(degreespersemester4.size() - 1).add(0,\r\n\t\t\t\t\t\t\taverageandidofemployees4.get(i).get(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tfor (int i = averageandidofemployees.size() - 1; i >= 0; i--) {\r\n\t\t\taverageandidofemployees.remove(i);\r\n\t\t}\r\n\t\tfor (int i = averageandidofemployees2.size() - 1; i >= 0; i--) {\r\n\t\t\taverageandidofemployees2.remove(i);\r\n\t\t}\r\n\t\tfor (int i = averageandidofemployees3.size() - 1; i >= 0; i--) {\r\n\t\t\taverageandidofemployees3.remove(i);\r\n\t\t}\r\n\t\tfor (int i = averageandidofemployees4.size() - 1; i >= 0; i--) {\r\n\t\t\taverageandidofemployees4.remove(i);\r\n\t\t}\r\n\t\tReadingAndWritingInFile.writeObject(\"MarketingDepartment.txt\", averageandidofemployees, degreespersemester,\r\n\t\t\t\tidperemployee);\r\n\t\tReadingAndWritingInFile.writeObject(\"HRDepartment.txt\", averageandidofemployees2, degreespersemester2,\r\n\t\t\t\tidperemployee2);\r\n\t\tReadingAndWritingInFile.writeObject(\"AccountingDepartment.txt\", averageandidofemployees3, degreespersemester3,\r\n\t\t\t\tidperemployee3);\r\n\t\tReadingAndWritingInFile.writeObject(\"ITDepartment.txt\", averageandidofemployees4, degreespersemester4,\r\n\t\t\t\tidperemployee4);\r\n\t}", "public int getYear(){\r\n\t\treturn year;\r\n\t}", "public int getYear() {\r\n return year;\r\n }", "public int getYear() {\n\t\treturn year;\n\t}", "public int getYear(){\n\t\treturn year; \n\t}", "static void initializeStudentSystem() {\r\n\r\n Course math = new Course(\"1000\", \"Mathematics\", \"College of Science\");\r\n Course computing = new Course(\"1001\", \"Computing\", \"College of Engineering\");\r\n Course english = new Course(\"1002\", \"English\", \"College of Liberal Arts\");\r\n Course history = new Course(\"1003\", \"History\", \"College of Liberal Arts\");\r\n Course biology = new Course(\"1004\", \"Biology\", \"College of Science\");\r\n courses.put(math.getCRN(), math);\r\n courses.put(computing.getCRN(), computing);\r\n courses.put(english.getCRN(), english);\r\n courses.put(history.getCRN(), history);\r\n courses.put(biology.getCRN(), biology);\r\n //\r\n User admin = new User();\r\n admin.setUsername(\"admin\");\r\n admin.setPassword(\"admin\");\r\n admin.setAccountType(4);\r\n accounts.put(admin.getUsername(), admin);\r\n //\r\n Student defaultStudent = new Student();\r\n defaultStudent.setName(\"Jose Cabrera\");\r\n defaultStudent.setUsername(\"John1\");\r\n defaultStudent.setPassword(\"123\");\r\n defaultStudent.setId(\"80539934\");\r\n defaultStudent.setMajor(\"CS\");\r\n defaultStudent.setAccountType(1);\r\n defaultStudent.setGraduationStatus(21);\r\n accounts.put(\"John1\", defaultStudent);\r\n //\r\n Student defaultStudent2 = new Student();\r\n defaultStudent2.setName(\"Raul Hinostroza\");\r\n defaultStudent2.setUsername(\"John2\");\r\n defaultStudent2.setPassword(\"123\");\r\n defaultStudent2.setId(\"805393\");\r\n defaultStudent2.setMajor(\"CS\");\r\n defaultStudent2.setAccountType(1);\r\n accounts.put(\"John2\", defaultStudent2);\r\n //\r\n Student defaultStudent3 = new Student();\r\n defaultStudent3.setName(\"Max Morales\");\r\n defaultStudent3.setUsername(\"John3\");\r\n defaultStudent3.setPassword(\"123\");\r\n defaultStudent3.setId(\"8053923\");\r\n defaultStudent3.setMajor(\"CS\");\r\n defaultStudent3.setAccountType(1);\r\n accounts.put(\"John3\", defaultStudent3);\r\n defaultStudent.addCourses(\"1000\");\r\n defaultStudent2.addCourses(\"1000\");\r\n defaultStudent3.addCourses(\"1000\");\r\n //\r\n Faculty defaultFaculty = new Faculty();\r\n defaultFaculty.setAccountType(2);\r\n defaultFaculty.setName(\"Smith\");\r\n defaultFaculty.setUsername(\"Smith1\");\r\n defaultFaculty.setPassword(\"123\");\r\n accounts.put(defaultFaculty.getUsername(), defaultFaculty);\r\n //\r\n Staff defaultStaff = new Staff();\r\n defaultStaff.setAccountType(3);\r\n defaultStaff.setName(\"Smith\");\r\n defaultStaff.setUsername(\"Smith2\");\r\n defaultStaff.setPassword(\"123\");\r\n accounts.put(defaultStaff.getUsername(), defaultStaff);\r\n }", "public int getYear()\n {\n return year;\n }", "int getYear();", "public void setYear(final int year) {\n\t\tthis.year = year;\n\t}", "@Override\n\tpublic void save(StudentSectionYear theStudentSectionYear) {\n\n\t\tSection section = sectionRepository.findByStandard(theStudentSectionYear.getSection().getStandard());\n\t\tif(section!=null)\n\t\t{\n\t\t\ttheStudentSectionYear.setSection(section);\n\t\t}\n\t\t\n\t\tYear year = yearRepository.findByYear(theStudentSectionYear.getYear().getYear());\n\t\tif (year != null) {\n\t\t\ttheStudentSectionYear.setYear(year);\n\t\t}\n \n\t\tstudentSectionYearRepository.save(theStudentSectionYear);\n\t}", "public void setYearInformation(YearInformation yearInformation) {\n\t\tthis.yearInformation = yearInformation;\n\t}", "public int getYear() {\n\treturn year;\n }", "public void accountantSection() throws NumberFormatException, IOException, ClassNotFoundException, SQLException, DocumentException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStudentDetailsDao std = new StudentDetailsDao();\n\t\tFeeDetailsDao fdd = new FeeDetailsDao();\n\t\tValidation val = new Validation();\n\t\tStudentPojo st = new StudentPojo();\n\t\t\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"------ACCOUNTANT SECTION------\");\n\t\t\tSystem.out.println(\" 1: Add Student \");\n\t\t\tSystem.out.println(\" 2: view Student \");\n\t\t\tSystem.out.println(\" 3: Delete Student \");\n\t\t\tSystem.out.println(\" 4: Update Student \");\n\t\t\tSystem.out.println(\" 5: Export Student Fee Report pdf\");\n\t\t\tSystem.out.println(\" 6: Logout \");\n\t\t\tint opt = 0;\n\t\t\ttry {\n\t\t\t\topt = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tSystem.out.println(\" \\nSelect from above given respective inputs.\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//------------------ADD STUDENT-----------------------------------------------------\n\t\t\tif(opt == 1) {\n\t\t\t\tSystem.out.println(\"------ADD STUDENT-------\");\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Roll NO. : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t id = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"You have entered wrong input only numbers will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\tst.setId(id);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Name : \");\n\t\t\t\t\tString name = br.readLine();\n\t\t\t\t\tboolean check = val.name(name);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setName(name);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You have entered wrong input only Alphabets will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student DOB(ex:25-10-1990) : \");\n\t\t\t\t\tString dob = br.readLine();\n\t\t\t\t\tboolean check = val.dob(dob);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setDob(dob);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\" Not a valid DOB see example\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" Enter Student Address : \");\n\t\t\t\tString address = br.readLine();\n\t\t\t\tst.setAddress(address);\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Branch : \");\n\t\t\t\t\tString branch = br.readLine();\n\t\t\t\t\tboolean check = val.name(branch);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setBranch(branch);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\" Invalid input \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" Enter Student Batch year(ex:1990) : \");\n\t\t\t\tint year = 0;\n\t\t\t\twhile(true) {\n\t\t\t\t\ttry {\n\t\t\t\t\tyear = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Not a valid input only numbers will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tString reg = \"^\\\\d{4}$\";\n\t\t\t\t\tboolean e = Pattern.compile(reg).matcher(Integer.toString(year)).matches();\n\t\t\t\t\tif(e == true) {\n\t\t\t\t\t\tst.setYear(year);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\" Please Enter valid input, see example.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Gender : \");\n\t\t\t\t\tString gender = br.readLine();\n\t\t\t\t\tboolean check = val.gender(gender);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setGender(gender);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\" Invalid input \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\tSystem.out.println(\" Enter Student contact(ex: +91 (789){1} (947982384){9}) : \");\n\t\t\t\tString contact = br.readLine();\n\t\t\t\tboolean check = val.contact(contact);\n\t\t\t\tif(check == true) {\n\t\t\t\t\tst.setContact(contact);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\" Invalid input,see example \");\n\t\t\t\t\tcontinue;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\tstd.addStudent(st);\n\t\t\t\t\n\t\t\t\t//-----------------ADD STUDENT FEE DETAILS--------------------------\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" ---ADD STUDENT FEE DETAILS---\");\n\t\t\t\tSystem.out.println(\" Total fees is : 40,000 .\");\n\t\t\t\twhile(true) {\n\t\t\t\t\tint paidfees =0;\n\t\t\t\t\tSystem.out.println(\" Enter Student paid fees : \");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpaidfees = Integer.parseInt(br.readLine());\n\t\t\t\t\t\tif(paidfees>40000) {\n\t\t\t\t\t\t\tSystem.out.println(\" You just have to pay 40,000.\");\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Not a valid input only numbers will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tst.setPaidfees(paidfees);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfdd.addStudentFeeDetails(st);\n\t\t\t}\n\t\t\telse if(opt ==2) {\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------View Student Details----------\\n \");\n\t\t\t\t\tSystem.out.println(\" 1. : View Student personal Details \");\n\t\t\t\t\tSystem.out.println(\" 2. : View Student Fee Details \");\n\t\t\t\t\tSystem.out.println(\" 3. : Exit\");\n\t\t\t\t\t\n\t\t\t\t\tint ch=0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tch= Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\" Select from above given respective inputs.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(ch == 1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tstd.viewStudent();\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch ==2) {\n\t\t\t\t\t\tfdd.viewFeeDetails();\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch ==3) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\n please enter above listed valid inputs\\n\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t//------------------DELETE STUDENT-----------------------------------------------------\n\t\t\telse if(opt ==3) {\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------Delete Student Details----------\\n \");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\" Enter Student ID : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Please enter a valid input..\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tstd.deleteStudent(id);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//------------------UPDATE STUDENT-----------------------------------------------------\n\t\t\telse if(opt ==4) {\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------Update Student Details----------\\n \");\n\t\t\t\t\tSystem.out.println(\" ==Update Student Fee Details== \");\n\t\t\t\t\tSystem.out.println(\" Enter Student Roll NO. : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Please enter a valid input..\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tfdd.updateFeeDetails(id);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//------------------Export STUDENT Fee Details-----------------------------------------------------\n\t\t\telse if(opt ==5) {\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------Export STUDENT Fee Details----------\\n \");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\" Enter Student Roll NO. : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Please enter a valid input..\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExportPdf epd = new ExportPdf();\n\t\t\t\t\tepd.ExportPdf(id);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(opt ==6) {\n\t\t\t\tSystem.out.println(\"\\n\\t.....Successfully Accountant Logging Out......\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\n....You have entered a wrong input...\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "public int getYear(){\n\t\treturn year;\n\t}", "public int getYear() {\r\n return year;\r\n }", "public void fill_PreAdmission_StudentCountReportForm_YearWise_TransferstudentAdmissionConfirm(String academicYear)\r\n\t\t\tthrows Exception {\r\n\t\tisDisplayed(rdBtn_Transferstudent);\r\n\t\tif (!rdBtn_Transferstudent.isSelected()) {\r\n\t\t\trdBtn_Transferstudent.click();\r\n\t\t\tlog(\"Transfer student(Admission Confirm) radio button is selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_Transferstudent.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Transfer student(Admission Confirm) radio button is already selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_Transferstudent.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_YearWise);\r\n\t\tif (!rdBtn_YearWise.isSelected()) {\r\n\t\t\trdBtn_YearWise.click();\r\n\t\t\tlog(\"Year Wise radio button is selected and object is:-\" + rdBtn_YearWise.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Year Wise radio button is already selected and object is:-\" + rdBtn_YearWise.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\r\n\t\tselectElementFromDropDown(sel_AcademicYear, academicYear);\r\n\t\tlog(\"selected Academic Year: \" + academicYear + \" and object is:- \" + sel_AcademicYear.toString());\r\n\r\n\t}", "public int getYear() {\r\n return this.year;\r\n }", "public int getYear()\n {\n return yr;\n }", "public Student(String name, int ID, int year) {\n\t\tthis.feesPayed = 0;\n\t\tthis.setID(ID);\n\t\tthis.setName(name);\n\t\tthis.setYear(year);\n\t}", "public int getYear() \n\t{\n\t\treturn year;\n\t}", "@Test\n public void getStudentWorkingFullTimeYearTest() throws SQLException, ParseException {\n ParamsObject paramsobj = new ParamsObject();\n List<String> campus = new ArrayList<>();\n campus.add(\"SEATTLE\");\n paramsobj.setCampus(campus);\n paramsobj.setYear(null);\n Response TopBachelorResponse;\n TopBachelorResponse = adminFacing.getStudentWorkingFullTime(paramsobj);\n Assert.assertEquals(200, TopBachelorResponse.getStatus());\n }", "public String getYear()\n {\n return year;\n }", "public int getYear () {\n return year;\n }", "public void update(){\n\t\tif ( crm.addedNewStudent()){\n\t\t\tList<Student> students = crm.getStudents();\n\t\t\tStudent newest = students.get(students.size()-1);\n\t\t\tint ID = newest.ID();\n\t\t\tString name = newest.name();\n\t\t\tint GradYear = newest.GradYear();\n\t\t\tsv.addStudent(ID, name, GradYear);\n\t\t}\n\t}", "@Override\r\n\tpublic void seCourse() {\n\t\tString coursename = \"\";\r\n int teacherid = 0;\r\n String inputStr = \"\";\r\n System.out.println(\"是否需要输入教师编号关键词(y/n):\");\r\n inputStr = input.next();\r\n if(inputStr.equals(\"y\")) {\r\n System.out.println(\"请输入教师编号关键词:\");\r\n teacherid = input.nextInt();\r\n }\r\n System.out.println(\"是否需要输入课程名称关键词(y/n):\");\r\n inputStr = input.next();\r\n if(inputStr.equalsIgnoreCase(\"y\")) {\r\n System.out.println(\"请输入课程名称关键词:\");\r\n coursename = input.next();\r\n }\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.seCourse(coursename, teacherid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n\t}", "public static void main(String[] args) {\n Student s1 = new Student(\"Azat\");\n Student s2 = new Student(\"Saida\");\n Student s3 = new Student(\"Adil\");\n Student s4 = new Student(\"Sabira\");\n Student s5 = new Student(\"Saniya\");\n\n\n List<Student> cybertekStudents = new ArrayList<>(Arrays.asList(s1, s2, s3, s4, s5));\n\n School cybertek = new School(\"Cybertek\", cybertekStudents);\n\n cybertekStudents.add(new Student(\"Denis\"));\n cybertekStudents.add(new Student(\"Irina\"));\n\n System.out.println(cybertek);\n System.out.println(cybertek.schoolName);\n System.out.println(cybertek.allStudentsList);\n\n Student[] students = {new Student(\"Gulnaz\"),\n new Student(\"Sardar\")};\n cybertek.addNewStudent(students);\n System.out.println(cybertek.allStudentsList);\n\n for (Student each : cybertekStudents) {\n System.out.println(each.studentName);\n //347-785-9417 munavvar\n //donna fro Wic, how she is share info 718 616 4338\n\n\n }\n }", "public void printStudentInfo(){\r\n System.out.println(\"Name: \" + getName());\r\n System.out.println(\"Student Id: \" + getId());\r\n printMarks();\r\n System.out.println(\"\\nAverage \" + getAverage() + \"%\");\r\n printNumberOfCoursesInEachLetterGradeCategory();\r\n }", "abstract public void getStudent();", "public YearInformation getYearInformation() {\n\t\treturn yearInformation;\n\t}", "public void setYears(int years) {\n this.years = years;\n }", "public int getYear() {\n return year;\n }", "public int getYear() {\n return year;\n }", "public void setSelectedYear(int selectedYear) {\n this.selectedYear = selectedYear;\n }", "public int getYear() {\n\treturn year;\n}", "public static void main(String[] args) {\n String [][]table1 = new String[][]{{\"Real World Mathematics\", \"ECM0002\"}, {\"Programming\", \"ECM1400\"}, {\"Data Structures\", \"ECM1406\"}, {\"Object-Oriented Programming\", \"ECM1410\"}, {\"Information Systems\", \"BEM2027\"}, {\"Thermal Physics\", \"PHY2023\"}};\n \n double [][]table1Doubles = new double[][]{{0.1, 0.3, 0.6},{0.25, 0.25, 0.25, 0.25},{0.25, 0.25, 0.5},{0.2, 0.3, 0.5},{0.1, 0.3, 0.3, 0.3},{0.4, 0.6}}; \n \n ModuleDescriptor ECM0002 = new ModuleDescriptor(table1[0][0], table1[0][1], table1Doubles[0]);\n ModuleDescriptor ECM1400 = new ModuleDescriptor(table1[1][0], table1[1][1], table1Doubles[1]);\n ModuleDescriptor ECM1406 = new ModuleDescriptor(table1[2][0], table1[2][1], table1Doubles[2]);\n ModuleDescriptor ECM1410 = new ModuleDescriptor(table1[3][0], table1[3][1], table1Doubles[3]);\n ModuleDescriptor BEM2027 = new ModuleDescriptor(table1[4][0], table1[4][1], table1Doubles[4]);\n ModuleDescriptor PHY2023 = new ModuleDescriptor(table1[5][0], table1[5][1], table1Doubles[5]);\n \n //%%%%%%%%%%maing student objects%%%%%%%%%%%%%%%%%%%%%%%%\n int []IDs = new int[]{1000,1001,1002,1003,1004,1005,1006,1007,1008,1009};\n String []names = new String[]{\"Ana\", \"Oliver\", \"Mary\", \"John\", \"Noah\", \"Chico\", \"Maria\", \"Mark\", \"Lia\", \"Rachel\"};\n char []genders = new char[]{'F', 'M', 'F', 'M', 'M', 'M', 'F', 'X', 'F', 'F'};\n \n Student []students_ = new Student[10];\n for (int i=0;i<10;i++){\n students_[i] = new Student(IDs[i], names[i], genders[i]);\n //System.out.println(students_[i]);\n }\n \n //%%%%%%%%%%%%making the module object%%%%%%%%%%%%%%%%%%%%%%%\n Module ECM0002Module = new Module(2020, (byte) 2, ECM0002);\n Module ECM1400Module = new Module(2019, (byte) 2, ECM1400);\n Module ECM1406Module = new Module(2020, (byte) 1, ECM1406);\n Module ECM1410Module = new Module(2020, (byte) 1, ECM1410);\n Module BEM2027Module = new Module(2019, (byte) 2, BEM2027);\n Module PHY2023Module = new Module(2019, (byte) 1, PHY2023);\n \n //%%%%%%%%%%%%%%%making module student and marks objects%%%%%%%%%%%%%%%%%%%%%%%%%%\n double [][]Marks = new double[][]{{9, 10, 10, 10}, {8, 8, 8, 9}, {5, 5, 6, 5}, {6, 4, 7, 9}, {10, 9, 10, 9}, {9, 9}, {6, 9}, {5, 6}, {9, 7}, {8, 5}, {10, 10, 9.5, 10}, {7, 8.5, 8.2, 8}, {6.5, 7.0, 5.5, 8.5}, {5.5, 5, 6.5, 7}, {7, 5, 8, 6}, {9, 10, 10, 10}, {8, 8, 8, 9}, {5, 5, 6, 5}, {6, 4, 7, 9}, {10, 9, 8, 9}, {10, 10, 10}, {8, 7.5, 7.5}, {9, 7, 7}, {9, 8, 7}, {2, 7, 7}, {10, 10, 10}, {8, 7.5, 7.5}, {10, 10, 10}, {9, 8, 7}, {8, 9, 10}, {10, 9, 10}, {8.5, 9, 7.5}, {10, 10, 5.5}, {7, 7, 7}, {5, 6, 10}, {8, 9, 8}, {6.5, 9, 9.5}, {8.5, 10, 8.5}, {7.5, 8, 10}, {10, 6, 10}};\n \n byte []term_ = new byte[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2};\n \n int []years_ = new int[]{2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020};\n \n Module []Modules_ = new Module[]{ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, PHY2023Module, PHY2023Module, PHY2023Module, PHY2023Module, PHY2023Module, BEM2027Module, BEM2027Module, BEM2027Module, BEM2027Module, BEM2027Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1410Module, ECM1410Module, ECM1410Module, ECM1410Module, ECM1410Module, ECM0002Module, ECM0002Module, ECM0002Module, ECM0002Module, ECM0002Module};\n \n Student []Students = new Student[]{students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9], students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9], students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9], students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9]};\n \n \n //%%%%%%%%%%%making the student record object%%%%%%%%%%%%%%%%%%\n StudentRecord []studentRecords_ = new StudentRecord[40];\n double []finalmark = new double[40];\n for (int i=0;i<40;i++){\n for (int j=0;j<Marks[i].length;j++){\n double []weights = Modules_[i].getCAweightsm();\n finalmark[i] = finalmark[i] + (Marks[i][j] * weights[j] * 10);\n }\n studentRecords_[i] = new StudentRecord(Students[i], Modules_[i], Marks[i], finalmark[i]);\n }\n \n double []gpa = new double[10];\n int j=0;\n for (int i=0;i<10;j=j+10){\n gpa[i] = gpa[i] + studentRecords_[j].getfinalScore();\n if (j>=30){\n gpa[i] = gpa[i]/4;\n i++;\n j=i;\n }\n }\n \n Student []CompleteStudents_ = new Student[10];\n for (int i=0;i<10;i++){\n StudentRecord []studentsrecords_ = new StudentRecord[4];\n int p = 0;\n for (j=0;j<40;j++){\n if (studentRecords_[j].getStudent() == students_[i]){\n studentsrecords_[p] = studentRecords_[j];\n p++;\n }\n }\n CompleteStudents_[i] = new Student(IDs[i], names[i], genders[i], studentsrecords_, gpa[i]);\n }\n //%%%%%%%%%%%%%%%Creating new module objects with the student records and average scores%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n \n ModuleDescriptor []modulestoadd = new ModuleDescriptor[]{ECM0002, ECM1400, ECM1406, ECM1410, BEM2027, PHY2023};\n StudentRecord [][]moduleStudents = new StudentRecord[6][10];\n double []averageScore = new double[]{0,0,0,0,0,0};\n for (j=0;j<6;j++){\n int p=0;\n for (int i=0;i<40;i++){\n if (studentRecords_[i].getModule().getmoduled().getcode() == modulestoadd[j].getcode()){\n moduleStudents[j][p] = studentRecords_[i];\n averageScore[j] = averageScore[j] + studentRecords_[i].getfinalScore();\n p++;\n }\n }\n averageScore[j] = averageScore[j]/p;\n }\n Module ECM0002ModuleNew = new Module(2020, (byte) 2, ECM0002, moduleStudents[0], averageScore[0]);\n Module ECM1400ModuleNew = new Module(2019, (byte) 2, ECM1400, moduleStudents[1], averageScore[1]);\n Module ECM1406ModuleNew = new Module(2020, (byte) 1, ECM1406, moduleStudents[2], averageScore[2]);\n Module ECM1410ModuleNew = new Module(2020, (byte) 1, ECM1410, moduleStudents[3], averageScore[3]);\n Module BEM2027ModuleNew = new Module(2019, (byte) 2, BEM2027, moduleStudents[4], averageScore[4]);\n Module PHY2023ModuleNew = new Module(2019, (byte) 1, PHY2023, moduleStudents[5], averageScore[5]);\n \n //%%%%%%%%%%%%creating the university object%%%%%%%%%%%%%%%%%%%%%%%%\n \n ModuleDescriptor []moduledescriptors = new ModuleDescriptor[]{ECM0002, ECM1400, ECM1406, ECM1410, BEM2027, PHY2023};\n \n Module []modules_ = new Module[]{ECM0002ModuleNew, ECM1400ModuleNew, ECM1406ModuleNew, ECM1410ModuleNew, BEM2027ModuleNew, PHY2023ModuleNew};\n \n University university = new University(moduledescriptors, CompleteStudents_, modules_);\n \n // You need to create and instantiate university object\n // this can be done in several ways, for instance, you can create an \"empty\" university and add\n // module descriptors, students, and modules, or you can create a university object already \"complete\".\n \n // These decisions about how and where to implement each functionality is part of your OO design.\n // Regardless of your choice, in the end you need to have the university object loaded with the given\n // input data.\n \n // TODO create and initialise the university\n \n // Print Reports \n System.out.println();\n System.out.println(\"The UoK has \" + university.getTotalNumberStudents() + \" students.\");\n\n // best module\n System.out.println(\"\\nThe best module is:\");\n System.out.println(university.getBestModule());\n\n // best student\n System.out.println(\"\\nThe best student is:\");\n System.out.println(university.getBestStudent().printTranscript());\n System.out.println();\n\t}", "public Student( String name , String address ){//constructor with arguments \r\n \tID_COUNTER++;\r\n \tstudentNum = ID_COUNTER;\r\n getFirstAndLastName( name );\r\n this.address = address ;\r\n loginID = makeLoginID() ;\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public int getYear() {\n return year;\n }", "public void fill_PreAdmission_StudentCountReportForm_YearWise_RegisteredList(String academicYear) throws Exception {\r\n\t\tisDisplayed(rdBtn_RegisteredList);\r\n\t\tif (!rdBtn_RegisteredList.isSelected()) {\r\n\t\t\trdBtn_RegisteredList.click();\r\n\t\t\tlog(\"Registered List radio button is selected and object is:-\" + rdBtn_RegisteredList.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Registered List radio button is already selected and object is:-\" + rdBtn_RegisteredList.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_YearWise);\r\n\t\tif (!rdBtn_YearWise.isSelected()) {\r\n\t\t\trdBtn_YearWise.click();\r\n\t\t\tlog(\"Year Wise radio button is selected and object is:-\" + rdBtn_YearWise.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Year Wise radio button is already selected and object is:-\" + rdBtn_YearWise.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\r\n\t\tselectElementFromDropDown(sel_AcademicYear, academicYear);\r\n\t\tlog(\"selected Academic Year: \" + academicYear + \" and object is:- \" + sel_AcademicYear.toString());\r\n\r\n\t}", "public int getYear() {\n\t return year;\n\t}", "public void enterYearField(String year) {\n Reporter.addStepLog(\" Enter year \" + year + \" to year field \" + _yearField.toString());\n sendTextToElement(_yearField, year);\n log.info(\" Enter year \" + year + \" to year field \" + _yearField.toString());\n }", "public ArrayList<Student> retrieveAllCurrent() {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE users.type LIKE 'Student';\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(date);\r\n\t\t\r\n\t\tint currYear = cal.get(cal.YEAR);\r\n\t\tint currMth = cal.get(cal.MONTH);\r\n\t\t\r\n\t\tint year = 0;\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamId \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tint matricYear = Integer.parseInt(username.substring(username.length() - 4, username.length()));\r\n\t\t\t\t\r\n\t\t\t\tyear = currYear - matricYear;\r\n\t\t\t\t\r\n\t\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamId, prefRole);\r\n\t\t\t\t\r\n\t\t\t\tif(currMth > 8){\r\n\t\t\t\t\tyear++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(year == 3 || year == 4){\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}", "public void setYear(int year) {\n\t\tthis.date.setYear(year);\n\t}", "public void setStudentName() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// setter method initialized\r\n System.out.println(\"Name Of The Student : \"+studentName);}", "public String startYear(int year) throws IOException {\r\n File file = new File(\"evidence.ods\");\r\n SpreadSheet spreadSheet = SpreadSheet.createFromFile(file);\r\n \r\n if (checkIfYearExist(spreadSheet, year)) {\r\n System.err.println(\"Evidence for year: \" + year + \" already started\");\r\n return \"STARTED\";\r\n }\r\n if(checkIfYearContinue(spreadSheet.getSheet(spreadSheet.getSheetCount()-1))){\r\n return \"PREVIOUS\";\r\n }\r\n \r\n Sheet newSheet = spreadSheet.addSheet(year + \"\");\r\n addHeading(newSheet);\r\n saveFile(newSheet);\r\n createXmlYear(year);\r\n return \"OK\";\r\n }" ]
[ "0.62317306", "0.6140014", "0.6136434", "0.60324806", "0.59662914", "0.5923123", "0.5900499", "0.5865806", "0.58463806", "0.58453995", "0.5819738", "0.58187556", "0.58077663", "0.5806555", "0.5802068", "0.57873374", "0.57741004", "0.57741004", "0.57731295", "0.5766124", "0.57444406", "0.57363695", "0.5735809", "0.5733204", "0.57050854", "0.56454396", "0.56454396", "0.5641449", "0.563713", "0.5630065", "0.56284076", "0.56284076", "0.5625674", "0.5622522", "0.5618239", "0.56166124", "0.56166124", "0.56166124", "0.5605695", "0.55599034", "0.55593103", "0.55447257", "0.5543247", "0.55344707", "0.55340433", "0.552208", "0.5503737", "0.5492039", "0.5489397", "0.5471665", "0.5468148", "0.5468148", "0.5448758", "0.544786", "0.54450935", "0.5444111", "0.54373485", "0.54237986", "0.54196507", "0.5417276", "0.5415692", "0.5411168", "0.54094183", "0.54076475", "0.5397774", "0.53870076", "0.53862447", "0.53776056", "0.53775734", "0.5377539", "0.5376191", "0.5374468", "0.53719306", "0.53713155", "0.53673136", "0.5365709", "0.5363865", "0.5358525", "0.5357365", "0.5355965", "0.5340069", "0.5337701", "0.53319126", "0.5331169", "0.5327851", "0.5320965", "0.5312503", "0.53091705", "0.53088504", "0.5296736", "0.5293956", "0.5293487", "0.52897173", "0.52876294", "0.52854496", "0.5268805", "0.52642304", "0.525964", "0.5255579", "0.5253932" ]
0.63094103
0
This method will check for addtion/deletion/modifications of smart connector
public static List<ReviewReportResponse> smartConnectorComparision(List<Connection> sourceConnections, List<Connection> targetConnections) { List<ReviewReportResponse> operatorList = new ArrayList<>(); List<Fields> fieldsList = new ArrayList<>(); try { ArrayList<Connection> deletedSmartConnector = new ArrayList<>(); boolean isConnectionDeleted; boolean isConnectionAdded; for (Connection sourceConnection : sourceConnections) { isConnectionDeleted = true; if (StringUtils.equalsIgnoreCase(sourceConnection.getUiAttributes().getType(), BPConstant.SMART)) { for (Connection targetConnection : targetConnections) { if (StringUtils.equalsIgnoreCase(sourceConnection.getUiAttributes().getKey(), targetConnection.getUiAttributes().getKey())) { isConnectionDeleted = false; break; } } if (isConnectionDeleted) { deletedSmartConnector.add(sourceConnection); } } } if (!deletedSmartConnector.isEmpty()) { for (Connection sourceConnection : deletedSmartConnector) { fieldsList = smartConnectorLinkPropertyCheck(sourceConnection.getLinkProperties(), new LinkProperties(), false, true); smartConnectorAttributeCheck(sourceConnection.getUiAttributes(), new UIAttributes(), false, true, fieldsList); if (!fieldsList.isEmpty()) { ReviewReportResponse operators = new ReviewReportResponse(); operators.setKey(sourceConnection.getUiAttributes().getKey()); operators.setName(BPConstant.CONNECTIONS); operators.setType(sourceConnection.getUiAttributes().getType()); operators.setStatus(BPConstant.DELETED); operators.setFields(fieldsList); operatorList.add(operators); } } } for (Connection targetConnection : targetConnections) { if (StringUtils.equalsIgnoreCase(targetConnection.getUiAttributes().getType(), BPConstant.SMART)) { isConnectionAdded = true; for (Connection sourceConnection : sourceConnections) { if (StringUtils.equalsIgnoreCase(sourceConnection.getUiAttributes().getType(), BPConstant.SMART)) { if (StringUtils.equalsIgnoreCase(targetConnection.getUiAttributes().getKey(), sourceConnection.getUiAttributes().getKey())) { isConnectionAdded = false; fieldsList = smartConnectorLinkPropertyCheck(sourceConnection.getLinkProperties(), targetConnection.getLinkProperties(), false, false); smartConnectorAttributeCheck(sourceConnection.getUiAttributes(), targetConnection.getUiAttributes(), false, false, fieldsList); if (!fieldsList.isEmpty()) { ReviewReportResponse operators = new ReviewReportResponse(); operators.setKey(targetConnection.getUiAttributes().getKey()); operators.setName(BPConstant.CONNECTIONS); operators.setType(targetConnection.getUiAttributes().getType()); operators.setStatus(BPConstant.MODIFIED); operators.setFields(fieldsList); operatorList.add(operators); } } } } if (isConnectionAdded) { fieldsList = smartConnectorLinkPropertyCheck(new LinkProperties(), targetConnection.getLinkProperties(), true, false); smartConnectorAttributeCheck(new UIAttributes(), targetConnection.getUiAttributes(), true, false, fieldsList); if (!fieldsList.isEmpty()) { ReviewReportResponse operators = new ReviewReportResponse(); operators.setKey(targetConnection.getUiAttributes().getKey()); operators.setName(BPConstant.CONNECTIONS); operators.setType(targetConnection.getUiAttributes().getType()); operators.setStatus(BPConstant.ADDED); operators.setFields(fieldsList); operatorList.add(operators); } } } } return operatorList; } catch (Exception exception) { LOGGER.error("Error occurred in smart connector"+exception); throw new BPException(exception.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void checkUpdateClient() {\n\t}", "private boolean isValidConnectors() {\n\n\t\tint countBoardCardInConnectors = 0;\n\n\t\tfor (CardModel cardModel : boardModel.getCards()) {\n\t\t\tif (connectors.contains(cardModel)) {\n\t\t\t\tcountBoardCardInConnectors++;\n\t\t\t}\n\t\t}\n\n\t\treturn (countBoardCardInConnectors == 2);\n\t}", "private boolean checkEssentialConnects() {\r\n\t\treturn (animalsHash != null && questionChooser != null);\r\n\t}", "private void checkDatabaseStructure(DatabaseUpdateType update) {\n }", "final void checkForComodification() {\n\t}", "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "private void checkConnectivity() throws NotConnected\n\t{\n\t\tif (!s_ctx.isConnected())\n\t\t{\n\t\t\tthrow new NotConnected(\"Cannot operate: not conected to context\");\n\t\t}\n\t}", "public static Boolean sync(Management management) {\n final List<Relay> relays = RelayConfigReader.getRelayList();\n if (!relays.isEmpty()) {\n for (Relay relay : relays) {\n final String appId = relay\n .getCustomPropertyByName(management.getAppType().toString().toLowerCase() + \"Id\");\n if (OpenHabRestApiClient.checkItemExists(management, appId)) {\n OpenHabRestApiClient.updateItemState(management, appId,\n translateOutputState(relay, Gpio.digitalRead(relay.getPin()) == 0));\n IoTLogger.getInstance().info(\"Item with id (\" + appId + \") exists in OpenHAB. Synced.\");\n } else {\n IoTLogger.getInstance().error(\"No item with id (\" + appId + \") in OpenHAB\");\n }\n }\n }\n // Sync contact states known to agent\n final List<ContactSensor> contactSensors = ContactsConfigReader.getContacts();\n if (!contactSensors.isEmpty()) {\n for (ContactSensor contactSensor : contactSensors) {\n final String appId = contactSensor\n .getCustomPropertyByName(management.getAppType().toString().toLowerCase() + \"Id\");\n if (OpenHabRestApiClient.checkItemExists(management, appId)) {\n OpenHabRestApiClient.updateItemState(management, appId,\n translateContactState(contactSensor, Gpio.digitalRead(contactSensor.getPin()) == 1));\n IoTLogger.getInstance().info(\"Item with id (\" + appId + \") exists in OpenHAB. Synced.\");\n } else {\n IoTLogger.getInstance().error(\"No item with id (\" + appId + \") in OpenHAB\");\n }\n }\n }\n // Sync temperature sensors known to agent\n final List<TemperatureSensor> tempSensors = TemperatureConfigReader.getTemperatureSesorList();\n if (!tempSensors.isEmpty()) {\n for (TemperatureSensor tempSensor : tempSensors) {\n final String appId = tempSensor\n .getCustomPropertyByName(management.getAppType().toString().toLowerCase() + \"Id\");\n if (OpenHabRestApiClient.checkItemExists(management, appId)) {\n try {\n OpenHabRestApiClient.updateItemState(management, appId,\n Float.toString(TemperatureSensorControllerFactory.getTemperatureSensorReader()\n .readTemperature(tempSensor)));\n } catch (ThingException e) {\n IoTLogger.getInstance().error(\"Failed to read temperature sensor value.\");\n }\n IoTLogger.getInstance().info(\"Item with id (\" + appId + \") exists in OpenHAB. Synced.\");\n } else {\n IoTLogger.getInstance().error(\"No item with id (\" + appId + \") in OpenHAB\");\n }\n }\n }\n return true;\n }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void CheckConnection() {\n\t\tconn = SqlConnection.DbConnector();\n\t\tif (conn == null) {\n\t\t\tSystem.out.println(\"Connection Not Successful\");\n\t\t\tSystem.exit(1);\n\t\t} else {\n\t\t\tSystem.out.println(\"Connection Successful\");\n\t\t}\n\t}", "public boolean isConsistent() throws OperationNotSupportedException, FMReasoningException {\n\t\tthrow new OperationNotSupportedException(\"Reasoning Operation Not Supported\");\n\t}", "ISModifyConnector createISModifyConnector();", "protected boolean checkCompatibility() {\n IDatabaseAdapter adapter = getDbAdapter(dbType, connectionPool);\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n return adapter.checkCompatibility(this.adminSchemaName);\n }\n }", "private boolean managingConnections() {\n\n if (configWrapper.getConfig().getConnectionInfo().getDataSource() == null) {\n return false;\n }\n\n return true;\n\n }", "public void check() {\r\n logger.info(\"ADIT monitor - Checking database and application.\");\r\n\r\n checkApplication();\r\n\r\n checkDBConnection();\r\n checkDBRead(this.getMonitorConfiguration().getTestDocumentId());\r\n }", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "@Override\r\n\tprotected void checkUpdate(Fingerprint entity) throws BusinessException {\n\t}", "public boolean validate_connection() {\n throw new NO_IMPLEMENT(reason);\n }", "private boolean updateConnectors() {\n boolean changed = false;\n //caller stubs will only have one parent\n Block parent = Block.getBlock(getParents().iterator().next());\n if (parent != null) {\n // get list of parent arg sockets\n ArrayList<BlockConnector> parentArgSockets =\n new ArrayList<BlockConnector>();\n for (BlockConnector parentSocket : parent.getSockets()) {\n if (ProcedureBlockManager.isArgSocket(parentSocket) &&\n !BlockUtilities.invalidBlockID(parentSocket.getBlockID())) {\n parentArgSockets.add(parentSocket);\n }\n }\n if (getNumSockets() <= parentArgSockets.size()) {\n // Synchronize names of initial sockets. If parent has more, add\n // them at the end. Want to avoid disconnecting any already\n // connected blocks if possible\n int i = 0; // socket index\n for (BlockConnector parentSocket : parentArgSockets) {\n if (i < getNumSockets()) {\n BlockConnector con = getSocketAt(i);\n Block parentArgBlock = Block.getBlock(parentSocket.getBlockID());\n if (parentArgBlock != null) {\n String parentLabel = parentArgBlock.getBlockLabel();\n if (!con.getLabel().equals(parentLabel)) {\n con.setLabel(parentLabel);\n changed = true;\n }\n } else {\n System.out.println(\"updateConnectors: cant find parent arg block \"\n + parentSocket.getBlockID());\n }\n } else {\n addSocket(parentSocket.getKind(), BlockConnector.PositionType.SINGLE,\n Block.getBlock(parentSocket.getBlockID()).getBlockLabel(),\n false, false, false, Block.NULL);\n changed = true;\n }\n i++;\n }\n } else {\n // Parent had sockets removed. Try to determine the missing ones by\n // name and remove those from our set if possible.\n int myIndex = 0; // index into my sockets\n while (myIndex < getNumSockets() && myIndex < parentArgSockets.size()) {\n BlockConnector mySocket = getSocketAt(myIndex);\n BlockConnector parentSocket = parentArgSockets.get(myIndex);\n myIndex++;\n String parentLabel =\n Block.getBlock(parentSocket.getBlockID()).getBlockLabel();\n if (!parentLabel.equals(mySocket.getLabel())) {\n removeSocket(mySocket);\n changed = true;\n myIndex--;\n }\n }\n // remove any extra sockets we have at the end\n while (getNumSockets() > parentArgSockets.size()) {\n removeSocket(getSocketAt(parentArgSockets.size()));\n changed = true;\n }\n if (getNumSockets() != parentArgSockets.size()) {\n // we somehow ended up with the wrong number of sockets. Give up :(\n // TODO(sharon): Is this ever possible?\n FeedbackReporter.showSystemErrorMessage(\n \"The blocks world is confused.\" +\n \" We ended up with \" + getNumSockets() + \" sockets in caller and \" +\n parentArgSockets.size() + \" sockets in parent for \" +\n getBlockLabel());\n\n }\n }\n }\n return changed;\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private void checkForUpdates() {\n UpdateManager.register(this);\n }", "private void checkForUpdates() {\n UpdateManager.register(this);\n }", "private boolean isRedundant( Connector connector ) {\n // Local connector\n if ( connector.getSegment().equals( getNode().getSegment() ) ) {\n Part connectingPart = connector.getInnerFlow().getLocalPart();\n return getNode().isConnectedTo( isSend(), connectingPart, getFlow().getName() );\n // external connector\n } else if ( getFlow().hasConnector() ) {\n // Tested connector is from another segment -> would lead to an external flow\n Flow flow = getFlow();\n // only a target connector (externalized connector) registers the external flows\n // external flows are to a part which is itself the target of an internal flow\n // with another (internalized) connector as source\n Connector externalizedConnector = (Connector) ( isSend() ? flow.getTarget() : connector );\n final Connector internalizedConnector = (Connector) (\n isSend()\n ? connector :\n flow.isExternal()\n ? ( (ExternalFlow) flow ).getConnector()\n : flow.getSource() );\n return CollectionUtils.exists(\n IteratorUtils.toList( externalizedConnector.externalFlows() ),\n new Predicate() {\n @Override\n public boolean evaluate( Object object ) {\n ExternalFlow externalFlow = (ExternalFlow) object;\n return externalFlow.getPart()\n .equals( internalizedConnector.getInnerFlow().getContactedPart() );\n }\n }\n );\n } else {\n return false;\n }\n }", "private void checkDeleteable() {\n \t\tboolean oldIsDeleteable = isDeleteable;\n \t\tisDeleteable = isDeleteEnabled();\n \t\tif (oldIsDeleteable != isDeleteable) {\n \t\t\tfireEnablementChanged(DELETE);\n \t\t}\n \t}", "private void checkValid()\n {\n synchronized (lock)\n {\n if (!valid)\n {\n throw new RuntimeException(\"MessageClient has been invalidated.\"); // TODO - localize\n }\n }\n }", "boolean hasConfigConnectorConfig();", "void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }", "public IllegalConnectionCheck() {\n listener = new LinkedHashSet<CheckListener>();\n active = true;\n }", "private void checkAndUpdate() {\n if (csProposeEnter.get()) {\n if (numRepliesReceived.get() == (config.getNumNodes() - 1)\n && requestQueue.peek().getFromID().equals(nodeID)) {\n csProposeEnter.set(false);\n csAllowEnter.set(true);\n }\n }\n }", "private static boolean checkIfToUpdateAfterCreateFailed(LocalRegion rgn, EntryEventImpl ev) {\n boolean doUpdate = true;\n if (ev.oldValueIsDestroyedToken()) {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n doUpdate = false;\n }\n if (ev.isConcurrencyConflict()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"basicUpdate failed with CME, not to retry:\" + ev);\n }\n doUpdate = false;\n }\n return doUpdate;\n }", "@Override\n public void check(Connection connection) throws RemotingException {\n\n }", "public boolean canSaveChanges() {\n return this.additionalRequirementsAdapter.hasChanged(this.controller.getListing());\n }", "public void checkWriteLock() {\n checkNotDeleted();\n super.checkWriteLock();\n }", "private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}", "private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }", "private static void checkModelData(Connection connection) throws ServiceException {\n // model validate\n ValidationUtil.validateModel(connection);\n LOGGER.info(\"Check connection model OK, name = \" + connection.getName());\n }", "@Override\n\t\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\t\tMZLog.e(\"J\", \"同步到购物车失败\");\n\t\t\t\t\t}", "public abstract void check(ArrayList<Connection> c_list) throws Exception ;", "@Override\r\n\tpublic void validateUpdate() throws Exception {\n\r\n\t}", "boolean hasTransactionChangesPending() {\n// System.out.println(transaction_mod_list);\n return transaction_mod_list.size() > 0;\n }", "private void checkConnectivity() {\n ConnectivityManager conMan = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo.State mobile = conMan.getNetworkInfo(0).getState();\n NetworkInfo.State wifi = conMan.getNetworkInfo(1).getState();\n if (!(mobile == NetworkInfo.State.CONNECTED || wifi == NetworkInfo.State.CONNECTED)) {\n Toast.makeText(context, R.string.data_error_message, Toast.LENGTH_LONG).show();\n }\n }", "private static void checkConn() {\n try {\n if (conns.isClosed()) conns = Connect.getConnect();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "protected abstract void checkRemoved();", "public void checkConnections() {\n Boolean updateCanvas = false;\n\n // Find new connections set within a node and creates them\n for (DrawableNode node : nodes) {\n if (node instanceof LogicNode) {\n String src = ((LogicNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this LogicNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TestCaseNode) {\n String src = ((TestCaseNode) node).getLogic().getLogic();\n\n for (DrawableNode endNode : getNodes()) {\n int nodeConnectionType = NodeConnection.NO_CONNECTION;\n\n // Here we are checked to see if any connections are linked from this TestCaseNode\n if (src.contains(\"run(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndWait(\\\"\" + endNode.getContainedText() + \"\\\"\") ||\n src.contains(\"runAndJoin(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.DYNAMIC_CONNECTION;\n } else if (src.contains(\"getNode(\\\"\" + endNode.getContainedText() + \"\\\"\")) {\n nodeConnectionType = NodeConnection.GET_NODE_CONNECTION;\n }\n\n // If we find a possible connection and it doesn't already exist, we create that connection with the correct type\n if (!connectionExists(node, endNode) && nodeConnectionType != -1) {\n NodeConnection newConnection = new NodeConnection(node, endNode, nodeConnectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) node).getSwitches();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n Boolean enabledConnection = false;\n\n for (Switch aSwitch : aSwitches) {\n if ((aSwitch.getTarget().equals(endNode.getContainedText()))) {\n enabledConnection = aSwitch.isEnabled();\n createConnection = true;\n }\n }\n\n if (createConnection && !connectionExists(node, endNode)) {\n Integer connectionType = NodeConnection.DYNAMIC_CONNECTION;\n if (!enabledConnection) {\n connectionType = NodeConnection.DISABLED_CONNECTION;\n }\n\n NodeConnection newConnection = new NodeConnection(node, endNode, connectionType);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n } else if (node instanceof TriggerNode) {\n List<Trigger> triggers = ((TriggerNode) node).getTriggers();\n\n for (Trigger trigger : triggers) {\n String watchName = trigger.getWatch();\n\n for (DrawableNode endNode : getNodes()) {\n Boolean createConnection = false;\n\n if (watchName.equals(endNode.getContainedText())) {\n createConnection = true;\n }\n\n // This connection has the start and end the other way around, the target is specified in the trigger but\n // we want it to look like the watched node is connecting to the trigger as that is the order that they are run\n if (createConnection && !connectionExists(endNode, node)) {\n NodeConnection newConnection = new NodeConnection(endNode, node, NodeConnection.TRIGGER_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n\n // Find connection that are set using the Next node input box\n if (node != null && !node.getNextNodeToRun().isEmpty()) {\n for (DrawableNode endNode : getNodes()) {\n if (node.getNextNodeToRun().equals(endNode.getContainedText())) {\n if (!connectionExists(node, endNode)) {\n NodeConnection newConnection = new NodeConnection(node, endNode, NodeConnection.MAIN_CONNECTION);\n connections.add(newConnection);\n updateCanvas = true;\n }\n }\n }\n }\n }\n\n // Checks old connections and removes ones that don't exist\n List<NodeConnection> listToRemove = new ArrayList<>();\n List<NodeConnection> connectionsLoopTemp = new ArrayList<>(); // We make a copy the list here so that we can the original while iterating over this one\n connectionsLoopTemp.addAll(connections);\n for (NodeConnection nodeConnection : connectionsLoopTemp) {\n if (nodeConnection.getConnectionType().equals(NodeConnection.DYNAMIC_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"run(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndWait(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"runAndJoin(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n }\n } else if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || !aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create a disabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DISABLED_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.TRIGGER_CONNECTION)) {\n if (nodeConnection.getConnectionEnd() instanceof TriggerNode) { // Here the start and end connections are reversed\n List<Trigger> triggers = ((TriggerNode) nodeConnection.getConnectionEnd()).getTriggers();\n String endContainedText = nodeConnection.getConnectionStart().getContainedText();\n Integer removeCount = 0;\n for (Trigger trigger : triggers) {\n if ((!trigger.getWatch().equals(endContainedText))) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(triggers.size())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.GET_NODE_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof LogicNode) {\n if (!((LogicNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n } else if (nodeConnection.getConnectionStart() instanceof TestCaseNode) {\n if (!((TestCaseNode) nodeConnection.getConnectionStart()).getLogic().getLogic().contains(\"getNode(\\\"\" + nodeConnection.getConnectionEnd().getContainedText() + \"\\\"\")) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n } else if (nodeConnection.getConnectionType().equals(NodeConnection.DISABLED_CONNECTION)) {\n if (nodeConnection.getConnectionStart() instanceof SwitchNode) {\n List<Switch> aSwitches = ((SwitchNode) nodeConnection.getConnectionStart()).getSwitches();\n String endContainedText = nodeConnection.getConnectionEnd().getContainedText();\n Integer removeCount = 0;\n for (Switch aSwitch : aSwitches) {\n if ((!aSwitch.getTarget().equals(endContainedText) || aSwitch.isEnabled())) {\n removeCount++;\n }\n }\n\n if (removeCount.equals(aSwitches.size())) {\n // Create an enabled connection between these two nodes to give appearance of toggling\n NodeConnection newConnection = new NodeConnection(nodeConnection.getConnectionStart(), nodeConnection.getConnectionEnd(), NodeConnection.DYNAMIC_CONNECTION);\n connections.add(newConnection);\n\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n if (nodeConnection.getConnectionType().equals(NodeConnection.MAIN_CONNECTION)) {\n if (!nodeConnection.getConnectionStart().getNextNodeToRun().equals(nodeConnection.getConnectionEnd().getContainedText())) {\n listToRemove.add(nodeConnection);\n updateCanvas = true;\n }\n }\n }\n\n connections.removeAll(listToRemove);\n if (updateCanvas) {\n Controller.getInstance().updateCanvasControllerLater();\n }\n }", "private void checkout() {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void checkWayBillChange(String id) {\n\t\t\n\t}", "private boolean validateConnection() {\n boolean success = _vcVlsi.testConnection();\n if (!success) {\n _log.log(Level.WARNING, \"Found VC connection dropped; reconnecting\");\n return connect();\n }\n return success;\n }", "private static void checkResourceInConn(Connection conn) throws ServiceException {\n // Check weather OverlayVpn exist\n ResultRsp<OverlayVpn> overlayVpnRsp =\n new InventoryDao<OverlayVpn>().query(OverlayVpn.class, conn.getCompositeVpnId(), null);\n if(!overlayVpnRsp.isValid()) {\n ThrowOverlayVpnExcpt.throwResNotExistAsBadReq(\"OverlayVpn\", conn.getCompositeVpnId());\n }\n\n BaseMappingPolicy mappingPolicy = getMappingPolicy(conn.getTechnology(), conn.getMappingPolicyId());\n\n if(null != mappingPolicy) {\n validateTypeConsistency(conn.getTechnology(), mappingPolicy.getType());\n }\n }", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "private void checkStructure() {\n for (DatabaseUpdateType updateType : DatabaseUpdateType.values()) {\n checkDatabaseStructure(updateType);\n }\n }", "private boolean handleSync(RESTCommand restCommand, SyncResult syncResult)\n {\n try {\n RESTMethod.getInstance().handleRequest(restCommand);\n } catch (WebServiceConnectionException e) {\n\n Logger.Logi(TAG, \"Web service not available.\");\n\n if (e.isRetry()) {\n // soft error\n syncResult.stats.numIoExceptions = 1;\n return true;\n } else {\n // hard error\n syncResult.databaseError = true;\n return false;\n }\n\n } catch (WebServiceFailedException e) {\n Logger.Loge(TAG, \"Error returned from web service.\");\n return true;\n } catch (DeviceConnectionException e) {\n Logger.Loge(TAG, \"Device cannot connect to the network.\");\n if (e.isRetry()) {\n // soft error\n syncResult.stats.numIoExceptions = 1;\n return true;\n } else {\n // hard error\n syncResult.databaseError = true;\n return false;\n }\n } catch (NetworkSystemException e) {\n Logger.Loge(TAG, \"Error configuring http request.\", e);\n // hard error\n syncResult.databaseError = true;\n return false;\n } catch (AuthenticationFailureException e) {\n Logger.Loge(TAG, \"Authentication failure.\", e);\n // hard error\n syncResult.stats.numAuthExceptions = 1;\n return false;\n }\n return true;\n }", "@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}", "private boolean checkValidateToAdd() {\n\n Long count;\n HttpServletRequest req = getRequest();\n\n String name = this.saleChannelTypeForm.getName().trim();\n\n Long status = this.saleChannelTypeForm.getStatus();\n\n\n if ((name == null) || name.equals(\"\")) {\n req.setAttribute(\"returnMsg\", \"channelType.error.invalidName\");\n return false;\n }\n if (status == null) {\n req.setAttribute(\"returnMsg\", \"channelType.error.invalidStatus\");\n return false;\n }\n\n String strQuery = \"select count(*) from ChannelType as model where model.name=?\";\n Query q = getSession().createQuery(strQuery);\n q.setParameter(0, name);\n count = (Long) q.list().get(0);\n\n if ((count != null) && (count.compareTo(0L) > 0)) {\n req.setAttribute(\"returnMsg\", \"channelType.add.duplicateName\");\n return false;\n }\n return true;\n\n }", "private void checkIntentInformation() {\n Bundle extras = getIntent().getExtras();\n Gson gson = new Gson();\n if (extras != null) {\n Curso aux;\n aux = (Curso) getIntent().getSerializableExtra(\"addCurso\");\n if (aux == null) {\n aux = (Curso) getIntent().getSerializableExtra(\"editCurso\");\n if (aux != null) {//Accion de actualizar\n //found an item that can be updated\n String cursoU = \"\";\n cursoU = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=updateC\" +\"&cursoU=\"+cursoU +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n } else {//Accion de agregar\n //found a new Curso Object\n String cursoA = \"\";\n cursoA = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=addC\" +\"&cursoA=\"+cursoA +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n }\n }", "@Override\n\tpublic void check() throws Exception {\n\t}", "protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}", "private void checkForCarServiceConnection() {\r\n synchronized (mLock) {\r\n if (mCarService != null) {\r\n return;\r\n }\r\n }\r\n IBinder iBinder = ServiceManager.checkService(\"car_service\");\r\n if (iBinder != null) {\r\n if (DBG) {\r\n Slog.d(TAG, \"Car service found through ServiceManager:\" + iBinder);\r\n }\r\n handleCarServiceConnection(iBinder);\r\n }\r\n }", "public boolean checkConnection() {\n\treturn getBoolean(ATTR_CONNECTION, false);\n }", "public boolean isConnected(){\r\n return (id!=-1 && matlabEng!=null); \r\n }", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "@Test(dependsOnMethods = {\"testAddConnection\"})\n public void testGetStoredConnections() {\n System.out.println(\"getStoredConnections\");\n instance.addConnection(testConnection);\n Set result = instance.getStoredConnections();\n assertTrue(result.contains(testConnection));\n }", "protected synchronized boolean updateConnection() \n {\n if (!enabled) \n {\n \td(\"is disabled\");\n return false;\n }\n if (mpd == null) \n {\n \td(\"no MPD! \");\n return false;\n }\n mpdconnection = mpd.getMpdConnection();\n if (mpdconnection == null) \n {\n \td(\"no MPDConnection! \");\n return false;\n }\n if (this.server == null) \n {\n this.server = mpdconnection.getHostAddress().getHostName();\n this.port = mpdconnection.getHostPort();\n this.filesdir = MPD.getApplicationContext().getCacheDir();\n d(\"server \" + server + \" port \" + port + \" dir \" + filesdir);\n if (!load()) \n {\n refresh(true);\n }\n }\n return true;\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "@Override\n\tprotected boolean isExist(AbnormalDevice record) {\n\t\treturn false;\n\t}", "public void processCanAddCallWhenServiceConnected() {\n Boolean bool = this.mCurrentCanAddCall;\n if (bool != null) {\n HiLog.info(LOG_LABEL, \"processCanAddCallWhenServiceConnected:onCanAddCallChanged %{public}s\", new Object[]{bool.toString()});\n onCanAddCallChanged(this.mCurrentCanAddCall.booleanValue());\n }\n }", "private void checkChanges() {\n CertificationStyleWrapper wrapper = (CertificationStyleWrapper) cbCertificationStyle.getSelectedItem();\n if (wrapper != null && settings.getCertificationStyle() != wrapper.style) {\n settings.setCertificationStyle(wrapper.style);\n }\n\n // set NFO filenames\n settings.clearNfoFilenames();\n if (chckbxTvShowNfo1.isSelected()) {\n settings.addNfoFilename(TvShowNfoNaming.TV_SHOW);\n }\n\n settings.clearEpisodeNfoFilenames();\n if (chckbxEpisodeNfo1.isSelected()) {\n settings.addEpisodeNfoFilename(TvShowEpisodeNfoNaming.FILENAME);\n }\n }", "@Override\n\tpublic boolean checkSeatsForRestAvailableDAO(EventSignUp e) {\n\t\treturn false;\n\t}", "public boolean checkChangeSavedAction(){\n ((AccountDetailFragment) getFragment(AccountDetailFragment.class)).syncData();\n if(mLastSaveAccount != null){\n return mLastSaveAccount.equalAllFields(mCurrentAccount);\n }else{\n return true;\n }\n }", "public boolean hasChanges();", "protected void checkConnectionProvider() {\n\t\tfinal Connection connection = connectionProvider.getConnection();\n\t\ttry {\n\t\t\tfinal DatabaseMetaData databaseMetaData = connection.getMetaData();\n\t\t\tfinal String name = databaseMetaData.getDatabaseProductName();\n\t\t\tfinal String version = databaseMetaData.getDatabaseProductVersion();\n\n\t\t\tif (log.isInfoEnabled()) {\n\t\t\t\tlog.info(\"Connected to database: \" + name + \" v\" + version);\n\t\t\t}\n\t\t} catch (final SQLException sex) {\n\t\t\tlog.error(\"DB connection failed: \", sex);\n\t\t} finally {\n\t\t\tconnectionProvider.closeConnection(connection);\n\t\t}\n\t}", "public void checkSaveObjectData() {\r\n\t\tif (this.objectDescriptionTabItem != null) this.objectDescriptionTabItem.checkSaveObjectData();\r\n\t}", "protected abstract boolean supportsForUpdate();", "protected boolean afterDelete() throws DBSIOException{return true;}", "boolean hasNewConfig();", "boolean hasUpdate();", "boolean hasUpdate();", "private void checkStatus() {\n if (switchOff) {\n String msg = \"Locker is switched off - no data source accessible.\";\n log.error(msg);\n throw new IllegalStateException(msg);\n }\n }", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "public void verifyBugerList()\n\t{\n\t\t\n\t}", "public boolean isConnectorRuntimeInitialized() {\n List<ServiceHandle<ConnectorRuntime>> serviceHandles =\n connectorRuntimeHabitat.getAllServiceHandles(ConnectorRuntime.class);\n for(ServiceHandle<ConnectorRuntime> inhabitant : serviceHandles){\n // there will be only one implementation of connector-runtime\n return inhabitant.isActive();\n }\n return true; // to be safe\n }", "public abstract boolean isDataConnectionAsDesired();", "private void checkIfAlive() {\n synchronized (this) {\n if (!mIsAlive) {\n Log.e(LOG_TAG, \"use of a released dataHandler\", new Exception(\"use of a released dataHandler\"));\n //throw new AssertionError(\"Should not used a MXDataHandler\");\n }\n }\n }", "private Boolean saveChanges() {\n int rowId = ticketGui.getSelectedRowId();\n\n // getting all the text fields for any possible changes\n String clientName = clientNameTextField.getText().strip();\n String starID = starIdTextField.getText().strip();\n String email = emailTextField.getText().strip();\n String phoneNumber = phoneNumberTextField.getText().strip();\n String machineModel = deviceModelTextField.getText().strip();\n String description = descriptionTextArea.getText().strip();\n String memberName = clubMemberNameTextField.getText().strip();\n String resolution = resolutionTextArea.getText().strip();\n\n // making sure all the required fields are still filled out\n boolean valid = ticketGui.fieldValidation(clientName,starID,email,phoneNumber,machineModel,description,\n memberName,resolution);\n\n if (valid){\n if (JOptionPane.showConfirmDialog(this, \"Are you sure you want to save these changes?\",\n \"Save\", JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION) {\n\n // adding all of this to a new ticket and passing it to the tiketstore to update the ticket\n Ticket ticket = new Ticket(clientName, starID, email, phoneNumber, machineModel, description, memberName, resolution);\n ticket.setTicketId(rowId);\n\n controller.updateTicket(ticket);\n ticketGui.showAllTickets();\n return true;\n }\n }\n return false;\n }", "public void checkReadLock() {\n checkNotDeleted();\n super.checkReadLock();\n }", "@Override\n protected void validateRegisteredDevice(MultifactorDevice device) throws Exception {\n assertThat(device.getBackup(), is(Boolean.TRUE));\n }", "Boolean isConsumeDelete();", "private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }", "private boolean checkCanModifyStatus() {\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n try{\r\n requesterBean.setFunctionType('c');\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/rolMntServlet\";\r\n AppletServletCommunicator ascomm = new AppletServletCommunicator(connectTo,requesterBean);\r\n ascomm.setRequest(requesterBean);\r\n ascomm.send();\r\n responderBean = ascomm.getResponse(); \r\n \r\n }catch(Exception e) {\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n return (Boolean)responderBean.getDataObject();\r\n }", "public boolean sync() throws VlException \n\t{\n\t return false; \n\t}", "public void mo33395e() {\n if (XGPushConfig.enableDebug) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action -> checkAndSetupClient( tpnsClient = \");\n sb.append(this.f23297x);\n sb.append(\", isClientCreating = \");\n sb.append(this.f23298y);\n sb.append(\")\");\n C6864a.m29286a(\"TpnsChannel\", sb.toString());\n }\n synchronized (this) {\n if (this.f23297x == null && !this.f23298y) {\n this.f23298y = true;\n try {\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e) {\n C6864a.m29302d(\"TpnsChannel\", \"createOptimalSocketChannel error\", e);\n }\n } else if (!this.f23298y && this.f23297x != null && !this.f23297x.mo33374d()) {\n C6864a.m29308i(\"TpnsChannel\", \"The socket Channel is unconnected\");\n try {\n this.f23297x.mo33373c();\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e2) {\n C6864a.m29302d(Constants.ServiceLogTag, \"createOptimalSocketChannel error\", e2);\n }\n }\n }\n }", "public boolean haveOperationsToDo (Session connect)\n {\n String req = \"from \" + OperationAbstract.class.getSimpleName () + \" where achieved='false' and smd='\" + this.id + \"'\";\n List<OperationAbstract> lst = connect.createQuery (req).list ();\n\n System.out.println (lst);\n return !lst.isEmpty ();\n }", "@Override\n\tprotected List<Message> validateUpdate(SecUser entity) {\n\t\treturn null;\n\t}", "boolean needUpdate();", "private boolean checkForChangeAndSaveData(int icon, String content, Bitmap largeIcon,\n String contentTitle, int state, int notificationType, Uri ringtone,\n /** M: need check video state too @{ */\n int videoState, int color) {\n /** @} */\n ///M: OP18Plugin <Status bar modification of vowifi quality >@{\n// if(ExtensionManager.getStatusBarExt().needUpdateNotification()) {\n// return true;\n// }\n /// @}\n // The two are different:\n // if new title is not null, it should be different from saved version OR\n // if new title is null, the saved version should not be null\n final boolean contentTitleChanged =\n (contentTitle != null && !contentTitle.equals(mSavedContentTitle)) ||\n (contentTitle == null && mSavedContentTitle != null);\n ///M:[VideoCall]when call is waiting for upgrade to video call , we should\n //update the timer for 20 seconds. //@{\n final boolean countDownChanged = mSavedCountDown !=\n InCallPresenter.getInstance().getAutoDeclineCountdown();\n\n // any change means we are definitely updating\n boolean retval = (mSavedIcon != icon) || !Objects.equals(mSavedContent, content)\n || (mCallState != state) || (mSavedLargeIcon != largeIcon)\n || contentTitleChanged || !Objects.equals(mRingtone, ringtone)\n || countDownChanged\n /// need update notification for video state changed during SRVCC.\n || (mVideoState != videoState)\n /// M: [1A1H2W] add check 2W state and Call color\n /*|| (mIsTwoIncoming != InCallUtils.isTwoIncomingCalls()) || (mSavedColor != color)*/;\n mIsTwoIncoming = false;//InCallUtils.isTwoIncomingCalls();\n mSavedColor = color;\n mVideoState = videoState;\n ///@}\n\n /**\n * M: Need update notification after InCall activity shown or hidden.\n * For new incoming call, when user back to InCallActivity while the notification\n * not update and the notification still in FullScreen mode. @{\n */\n final boolean isInCallShown = InCallPresenter.getInstance().isShowingInCallUi();\n if (mIsCallUiShown != isInCallShown){\n mIsCallUiShown = isInCallShown;\n retval = true;\n }\n /** @} */\n\n // If we aren't showing a notification right now or the notification type is changing,\n // definitely do an update.\n if (mCurrentNotification != notificationType) {\n if (mCurrentNotification == NOTIFICATION_NONE) {\n Log.d(this, \"Showing notification for first time.\");\n }\n retval = true;\n }\n\n mSavedIcon = icon;\n mSavedContent = content;\n mCallState = state;\n mSavedLargeIcon = largeIcon;\n mSavedContentTitle = contentTitle;\n mRingtone = ringtone;\n\n ///[video call] store the countdown time\n mSavedCountDown = InCallPresenter.getInstance().getAutoDeclineCountdown();\n if (retval) {\n Log.d(this, \"Data changed. Showing notification\");\n }\n\n return retval;\n }", "private void hockeyAppCheckForUpdates() {\n UpdateManager.register(this);\n }", "private static void checkConfiguration() {\n try {\n ClientManager.rebuildSocket();\n ClientManager.closeSocket();\n } catch (IOException e) {\n new NetworkNotAvailableErrorStarter(NetworkNotAvailableError.class, null);\n }\n }", "boolean consistencyCheck(){\n\n String jbbInstdir = (String)typeToDir.get(\"jbbinst\");\n String simInstdir = (String)typeToDir.get(\"siminst\");\n String jbbColldir = (String)typeToDir.get(\"jbbcoll\");\n String simColldir = (String)typeToDir.get(\"simcoll\");\n if(simInstdir != null){\n simInstdir += \"/p01\";\n }\n if(simColldir != null){\n simColldir += \"/p01\";\n }\n return readAndCompare(jbbInstdir,simInstdir,jbbColldir,simColldir);\n }" ]
[ "0.6095171", "0.57101643", "0.5707268", "0.5647516", "0.56301844", "0.562278", "0.5562954", "0.5534038", "0.5511652", "0.5480252", "0.5427215", "0.5424863", "0.53910327", "0.53829896", "0.53824294", "0.53728426", "0.53372663", "0.5295464", "0.5294137", "0.52924705", "0.52924705", "0.5290849", "0.5290849", "0.52809936", "0.5275227", "0.52514637", "0.5248768", "0.5232225", "0.52309775", "0.52242756", "0.5199801", "0.5197203", "0.51945674", "0.51857793", "0.5172473", "0.5158022", "0.51442325", "0.5143187", "0.51307136", "0.51177406", "0.5096445", "0.5096171", "0.509278", "0.50824714", "0.50681937", "0.50545377", "0.50443584", "0.50443584", "0.5037034", "0.5023139", "0.5016656", "0.50165015", "0.50150543", "0.5008675", "0.5002804", "0.50025046", "0.49952897", "0.4990501", "0.49890134", "0.49815193", "0.4979412", "0.49778643", "0.49759108", "0.49752438", "0.49703974", "0.49689835", "0.4968383", "0.49627417", "0.49603844", "0.49578375", "0.49549702", "0.49535894", "0.49466938", "0.4942654", "0.49359018", "0.49258387", "0.49220288", "0.49200332", "0.49166164", "0.49166164", "0.49157113", "0.49153435", "0.4913714", "0.49005002", "0.49004614", "0.48946306", "0.48933873", "0.48902634", "0.4889278", "0.48888958", "0.48883957", "0.48826513", "0.48809808", "0.4880874", "0.48791233", "0.48743895", "0.48735583", "0.48725313", "0.48705032", "0.48685098", "0.48670322" ]
0.0
-1
This method will compare UI attributes for smart connector.
private static void smartConnectorAttributeCheck(UIAttributes sourceUIAttributes, UIAttributes targetUIAttributes, boolean isAdded, boolean isDeleted, List<Fields> fieldsList) { try { if (isAdded) { if (!StringUtils.isEmpty(targetUIAttributes.getName())) fieldsList.add( BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES, BPConstant.NAME, BPConstant.EMPTY_STRING, targetUIAttributes.getName())); if (!StringUtils.isEmpty(targetUIAttributes.getDecisionName())) fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES, BPConstant.DECISION_NAME, BPConstant.EMPTY_STRING, targetUIAttributes.getDecisionName())); } else if (isDeleted) { if (!StringUtils.isEmpty(sourceUIAttributes.getName())) fieldsList.add( BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES, BPConstant.NAME, sourceUIAttributes.getName(), BPConstant.EMPTY_STRING)); if (!StringUtils.isEmpty(sourceUIAttributes.getDecisionName())) fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES, BPConstant.DECISION_NAME, sourceUIAttributes.getDecisionName(), BPConstant.EMPTY_STRING)); } else { if (!StringUtils.equalsIgnoreCase(sourceUIAttributes.getDecisionName(), targetUIAttributes.getDecisionName())) { fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES, BPConstant.DECISION_NAME, sourceUIAttributes.getDecisionName(), targetUIAttributes.getDecisionName())); } if (!StringUtils.equalsIgnoreCase(sourceUIAttributes.getName(), targetUIAttributes.getName())) { fieldsList.add( BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES, BPConstant.NAME, sourceUIAttributes.getName(), targetUIAttributes.getName())); } } } catch (Exception exception) { LOGGER.error("Smart connector ui attributes error"+exception); throw new BPException(exception.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void setGUIAttributesHelper();", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings(), settings);\n }", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings().hashCode(), settings.hashCode());\n }", "private void createAttributesComposite() {\n GridLayout gl = new GridLayout(1, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, true);\n Group attributesGroup = new Group(shell, SWT.BORDER);\n attributesGroup.setText(\" Attributes \");\n attributesGroup.setLayout(gl);\n attributesGroup.setLayoutData(gd);\n\n /* The composite for the fields. */\n gl = new GridLayout(3, false);\n gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n final Composite attributesComp = new Composite(attributesGroup,\n SWT.NONE);\n attributesComp.setLayout(gl);\n attributesComp.setLayoutData(gd);\n\n /*\n * Message Type afosid field.\n */\n gd = new GridData(SWT.RIGHT, SWT.CENTER, false, false);\n Label msgTypeLabel = new Label(attributesComp, SWT.NONE);\n msgTypeLabel.setText(\"Message Type: \");\n msgTypeLabel.setLayoutData(gd);\n\n gd = new GridData(SWT.FILL, SWT.CENTER, false, false);\n gd.widthHint = 200;\n gd.horizontalSpan = 2;\n messageTypeTF = new Text(attributesComp, SWT.BORDER);\n messageTypeTF.setLayoutData(gd);\n messageTypeTF.setTextLimit(9);\n\n /*\n * Message Type title field.\n */\n gd = new GridData(SWT.RIGHT, SWT.CENTER, false, false);\n Label titleLabel = new Label(attributesComp, SWT.NONE);\n titleLabel.setText(\"Title: \");\n titleLabel.setLayoutData(gd);\n\n gd = new GridData(SWT.FILL, SWT.CENTER, false, false);\n gd.widthHint = 200;\n gd.horizontalSpan = 2;\n titleTF = new Text(attributesComp, SWT.BORDER);\n titleTF.setLayoutData(gd);\n titleTF.setTextLimit(40);\n\n /*\n * Message Type designation options.\n */\n gd = new GridData(SWT.RIGHT, SWT.CENTER, false, false);\n Label designationLabel = new Label(attributesComp, SWT.NONE);\n designationLabel.setText(\"Designation: \");\n designationLabel.setLayoutData(gd);\n\n gd = new GridData(SWT.FILL, SWT.CENTER, false, false);\n stationIdOption = new Button(attributesComp, SWT.RADIO);\n stationIdOption.setText(Designation.StationID.name());\n stationIdOption.setLayoutData(gd);\n stationIdOption.setSelection(true);\n\n gd = new GridData(SWT.FILL, SWT.CENTER, false, false);\n timeAnnouncementOption = new Button(attributesComp, SWT.RADIO);\n timeAnnouncementOption.setText(Designation.TimeAnnouncement.name());\n timeAnnouncementOption.setLayoutData(gd);\n }", "protected abstract int compareOnAttribute( U obj );", "private boolean show(AttributeModel am) {\n\t\t// never show invisible or LOB attributes\n\t\tif (!am.isVisible() || AttributeType.LOB.equals(am.getAttributeType())) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// show multiple value attributes only if they would normally show up in a table\n\t\tif (AttributeType.DETAIL.equals(am.getAttributeType())\n\t\t || AttributeType.ELEMENT_COLLECTION.equals(am.getAttributeType())) {\n\t\t\treturn am.isVisibleInTable();\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkAttributes(ExportPkg ep, ImportPkg ip) {\n /* Mandatory attributes */\n if (!ip.checkMandatory(ep.mandatory)) {\n return false;\n }\n /* Predefined attributes */\n if (!ip.okPackageVersion(ep.version) ||\n (ip.bundleSymbolicName != null &&\n !ip.bundleSymbolicName.equals(ep.bpkgs.bundle.symbolicName)) ||\n !ip.bundleRange.withinRange(ep.bpkgs.bundle.version)) {\n return false;\n }\n /* Other attributes */\n for (Iterator i = ip.attributes.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n String a = (String)ep.attributes.get(e.getKey());\n if (a == null || !a.equals(e.getValue())) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void byAttributesAndStylesTest() throws Exception {\n /* Navigate to the Checkboxes section */\n driver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/ul/li[5]/a\")).click();\n\n /* Using the standard devtools */\n WebElement checkedCheckboxByTagName;\n ArrayList<WebElement> checkboxesByTagName = new ArrayList<>();\n checkboxesByTagName.addAll(driver.findElements(By.tagName(\"input\")));\n Iterator<WebElement> it = checkboxesByTagName.iterator();\n while (it.hasNext()){\n checkedCheckboxByTagName = it.next();\n if(checkedCheckboxByTagName.getAttribute(\"checked\") == null){\n checkedCheckboxByTagName = null;\n }\n }\n\n /* Using the selenium OIC and the by attribute locator */\n WebElement checkedCheckboxByAttributes = driver.findElement(By.attribute(\"checked\", \"\"));\n\n /* This test demonstrates the byAttribute locator power :\n * It obviously add another way to locate elements\n * Enhance readability of code\n * Enhance dev-tester efficiency : find directly the item that has the correct attribute VS find all item and then implement a treatment to find the good one\n * */\n }", "public interface HasUiAttributes {\n}", "@Test\n\tpublic void ifAppropriateAttributesInDifferentMBeansHaveSameValueReturnsThatValue() throws Exception {\n\t\tMBeanWithSingleIntAttr mbean_1 = new MBeanWithSingleIntAttr(1);\n\t\tMBeanWithSingleIntAttr mbean_2 = new MBeanWithSingleIntAttr(1);\n\n\t\tDynamicMBean mbean = createDynamicMBeanFor(mbean_1, mbean_2);\n\n\t\tassertEquals(1, mbean.getAttribute(\"value\"));\n\t}", "@Test(timeout = 4000)\n public void test228() throws Throwable {\n Checkbox checkbox0 = new Checkbox((Component) null, \"unsupported feature \", \"unsupported feature \");\n String[] stringArray0 = new String[2];\n Component component0 = checkbox0.attributes(stringArray0);\n assertSame(component0, checkbox0);\n }", "private void handleCompareButtonPressed() {\n parseData(data);\n\n // Reset the \"Found\" parameter for all registered device as \"false\".\n resetAllFound();\n\n // Check if each received MAC address maps to a registered BLE device.\n BLEdevice device;\n for (int i = 0; i < MAC_Addresses.size(); i++) {\n device = regDevice_list.get( MAC_Addresses.get(i) );\n if(device != null) {\n device.Found();\n }\n }\n\n // Shows comparison result in CompareResultActivity\n startActivity(new Intent(this, CompareResultActivity.class));\n }", "@Test(timeout = 4000)\n public void test196() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Hidden hidden1 = (Hidden)hidden0.attribute(\"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n assertTrue(hidden1.isValid());\n }", "public boolean areBothFieldsSet()\r\n {\r\n if ((!(isEditText1Empty)) && (!(isEditText2Empty))) {\r\n this.button1.setImageResource(R.drawable.login); // THIS NEEDS DIFFERENT SRC\r\n return true;\r\n } else {\r\n this.button1.setImageResource(R.drawable.login);\r\n return false;\r\n }\r\n }", "@Override\n public boolean isDirty() {\n\n boolean dirty = false ;\n String tmp = null ;\n\n if( this.useProxy != super.useProxyCB.isSelected() ) {\n dirty = true ;\n }\n if( !dirty ) {\n tmp = super.proxyHostTF.getText() ;\n dirty = !UIHelper.isEqual( this.proxyHost, tmp ) ;\n }\n if( !dirty ) {\n tmp = super.proxyPortTF.getText() ;\n dirty = !UIHelper.isEqual( String.valueOf( this.proxyPort ), tmp ) ;\n }\n if( !dirty ) {\n if( this.useAuth != super.useProxyAuthCB.isSelected() ) {\n dirty = true ;\n }\n }\n if( !dirty ) {\n tmp = super.userIdTF.getText() ;\n dirty = !UIHelper.isEqual( this.userName, tmp ) ;\n }\n if( !dirty ) {\n tmp = new String( super.passwordTF.getPassword() ) ;\n dirty = !UIHelper.isEqual( String.valueOf( this.password ), tmp ) ;\n }\n\n return dirty ;\n }", "public void verifyUIElements(){\r\n\t\t\tisClickable(Txt_HomePage_Search);\r\n\t\t\tisClickable(Btn_HomePage_Search);\r\n\t\t}", "private boolean checkMultiplePlaneEdit(){\r\n\t\tboolean flag=false;\r\n\t\tfor(UiAirplaneModel model:uiAirplaneModel.getAirplaneList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "protected boolean sameMissingInputAttributes(Instance inst1,\r\n\t\t\tInstance inst2, InstanceAttributes atts) {\r\n\t\tboolean sameMVs = true;\r\n\r\n\t\tfor (int i = 0; i < atts.getInputNumAttributes() && sameMVs; i++) {\r\n\t\t\tif (inst1.getInputMissingValues(i) != inst2\r\n\t\t\t\t\t.getInputMissingValues(i))\r\n\t\t\t\tsameMVs = false;\r\n\t\t}\r\n\r\n\t\treturn sameMVs;\r\n\t}", "void createEqualizerControls();", "@Test\n public void testEquals_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n Object obj = new Object();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(false, result);\n }", "public AnnotateMotifsDialog(MotifLabGUI gui) {\n super(gui.getFrame(), true);\n setTitle(\"Update Motif Properties\");\n this.gui=gui;\n initComponents();\n \n // fix accelerators\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(motiflab.gui.MotifLabApp.class).getContext().getActionMap(AnnotateMotifsDialog.class, this);\n javax.swing.Action ac=actionMap.get(\"promptUseNewValue\"); \n promptUseNewValueButton.getActionMap().put(\"promptUseNewValue\", ac);\n promptUseNewValueButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('n'), \"promptUseNewValue\"); \n ac=actionMap.get(\"promptKeepOldValue\"); \n promptKeepCurrentValueButton.getActionMap().put(\"promptKeepOldValue\", ac);\n promptKeepCurrentValueButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('c'), \"promptKeepOldValue\"); \n ac=actionMap.get(\"promptMergeOrReplaceCurrent\"); \n promptMergeOrUseNewButton.getActionMap().put(\"promptMergeOrReplaceCurrent\", ac);\n promptMergeOrUseNewButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('m'), \"promptMergeOrReplaceCurrent\"); \n ac=actionMap.get(\"promptMergeOrKeepCurrent\"); \n promptMergeOrKeepCurrentButton.getActionMap().put(\"promptMergeOrKeepCurrent\", ac);\n promptMergeOrKeepCurrentButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('k'), \"promptMergeOrKeepCurrent\"); \n \n String[] userdefined=Motif.getAllUserDefinedProperties(gui.getEngine());\n String[] standard=Motif.getAllStandardProperties(false);\n String[] knownproperties=new String[standard.length+userdefined.length];\n System.arraycopy(standard, 0, knownproperties, 0, standard.length); // leave first position blank\n System.arraycopy(userdefined, 0, knownproperties, standard.length, userdefined.length);\n Arrays.sort(knownproperties); \n DefaultComboBoxModel propertyModel=new DefaultComboBoxModel(knownproperties);\n DefaultComboBoxModel combineStrategyModel=new DefaultComboBoxModel(new String[]{MERGE_OR_REPLACE_CURRENT,MERGE_OR_KEEP_CURRENT,REPLACE_CURRENT, INTERACTIVE_MODE});\n propertyCombobox.setModel(propertyModel);\n propertyCombobox.setEditable(true);\n propertyCombobox.setSelectedItem(standard[0]);\n combineStrategyCombobox.setModel(combineStrategyModel);\n ArrayList<DataFormat> dataformats=gui.getEngine().getDataInputFormats(MotifCollection.class);\n loadFromFilePanel=new LoadFromFilePanel(dataformats,gui,MotifCollection.class);\n importCollectionTab.add(loadFromFilePanel,BorderLayout.CENTER);\n pack();\n contextmenu=new ParseListContextMenu();\n parseListTextArea.addMouseListener(new MouseAdapter(){\n @Override\n public void mousePressed(MouseEvent e) {\n if (e.isPopupTrigger()) contextmenu.show(e.getComponent(),e.getX(),e.getY());\n }\n @Override\n public void mouseReleased(MouseEvent e) {\n if (e.isPopupTrigger()) contextmenu.show(e.getComponent(),e.getX(),e.getY());\n }\n });\n parseListTextArea.requestFocusInWindow();\n }", "public void swapEquivalVisivility() {\n EquSelectors.setVisibility(Equival.isChecked()? View.VISIBLE : View.GONE);\n if(EquSelectors.getVisibility() == View.GONE){\n EquWord.setChecked(false);\n EquTran.setChecked(false);\n }\n\n WordText.setHint(getText(Equival.isChecked()? R.string.hint_for_equ_word : R.string.hint_for_word));\n TranText.setHint(getText(Equival.isChecked()? R.string.hint_for_equ_tran : R.string.hint_for_tran));\n InfoText.setHint(getText(Equival.isChecked()? R.string.hint_for_equ_info : R.string.hint_for_info));\n syncronizeForEquivalence();\n }", "public java.lang.String getIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISCOMPARATION$2);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "private void updateUI() {\n if (mAccount != null) {\n signInButton.setEnabled(false);\n signOutButton.setEnabled(true);\n callGraphApiInteractiveButton.setEnabled(true);\n callGraphApiSilentButton.setEnabled(true);\n currentUserTextView.setText(mAccount.getUsername());\n } else {\n signInButton.setEnabled(true);\n signOutButton.setEnabled(false);\n callGraphApiInteractiveButton.setEnabled(false);\n callGraphApiSilentButton.setEnabled(false);\n currentUserTextView.setText(\"None\");\n }\n\n deviceModeTextView.setText(mSingleAccountApp.isSharedDevice() ? \"Shared\" : \"Non-shared\");\n }", "@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (objectToCompare == null || getClass() != objectToCompare.getClass())\n {\n return false;\n }\n ControlFlowElement that = (ControlFlowElement) objectToCompare;\n return Objects.equals(getControlFlowHeader(), that.getControlFlowHeader()) &&\n Objects.equals(getControlFlowProperties(), that.getControlFlowProperties()) &&\n Objects.equals(getCurrentStep(), that.getCurrentStep()) &&\n Objects.equals(getNextStep(), that.getNextStep());\n }", "public void setDiff(){\n diff=true;\n }", "public static void VerifyThreeItem_LessButton(String renderControl){\n\t\tString actualLessButton=\"\";\n\t\ttry{\n\t\t\tactualLessButton=sitecoreObj.aboutusThreeItemLessButton.getAttribute(\"class\");\n\t\t\tAssert.assertEquals(actualLessButton, expectedData.getProperty(\"ThreeItemLessButton\"));\n\t\t\tlog.info(\"The Actual AboutUs \" + renderControl + \" LessButton - \"+actualLessButton);\n\t\t\tlog.info(\"The Expected AboutUs \" + renderControl + \" LessButton - \"+expectedData.getProperty(\"ThreeItemLessButton\"));\n\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs \" + renderControl + \" LessButton are Same\");\n\t\t}catch(AssertionError e){\n\t\t\tlog.error(\"The Actual AboutUs \" + renderControl + \" LessButton - \"+actualLessButton);\n\t\t\tlog.error(\"The Expected AboutUs \" + renderControl + \" LessButton - \"+expectedData.getProperty(\"ThreeItemLessButton\"));\n\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs \" + renderControl + \" LessButton are NOT same\");\n\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\tlog.error(\"TEST FAILED: There is No LessButton On \" + renderControl + \" Container\");\n\t\t}\n\t}", "public void displayValueComparison()\n {\n System.out.println(\"Player card value \" + Card.valueOfCard(playerCard));\n System.out.println(\"Computer card value \" + Card.valueOfCard(computerCard));\n }", "public void setIsComparation(java.lang.String isComparation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ISCOMPARATION$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ISCOMPARATION$2);\n }\n target.setStringValue(isComparation);\n }\n }", "@Test\n public void equal() {\n assertTrue(commandItem.equals(commandItemCopy));\n assertTrue(commandItem.isSameCommand(commandItemCopy));\n //not commanditem return false\n assertFalse(commandItem.equals(commandWord));\n }", "@Test\n public void equals() {\n assertTrue(defaultGuiSettings.equals(defaultGuiSettings));\n assertTrue(userGuiSettings.equals(userGuiSettings));\n\n // same values -> return true\n assertTrue(defaultGuiSettings.equals(new GuiSettings()));\n assertTrue(userGuiSettings.equals(new GuiSettings(700, 900, 200, 300)));\n\n // null -> false\n assertFalse(defaultGuiSettings.equals(null));\n assertFalse(userGuiSettings.equals(null));\n\n // different type -> false\n assertFalse(defaultGuiSettings.equals(0.5f));\n assertFalse(userGuiSettings.equals(0.5f));\n\n // different window width -> false\n GuiSettings guiSettingsDifferentWindowWith = new GuiSettings(1234, 1234, 12, 34);\n assertFalse(userGuiSettings.equals(guiSettingsDifferentWindowWith));\n\n // different window coordinates -> false\n GuiSettings guiSettingsDifferentWindowCoordinate = new GuiSettings(700, 900, 20, 30);\n assertFalse(userGuiSettings.equals(guiSettingsDifferentWindowCoordinate));\n }", "private static void compareStyle(Attr modelAttr, Attr vpeAttr)\n\t\t\tthrows DOMComparisonException {\n\t\tMap<String, String> vpeStyle = CSSStyleManager\n\t\t\t\t.getStyleAttributes(vpeAttr.getNodeValue());\n\t\tMap<String, String> xmlStyle = CSSStyleManager\n\t\t\t\t.getStyleAttributes(modelAttr.getNodeValue());\n\t\t/*\n\t\t * Major condition is that\n\t\t * all styles from the xml file should present \n\t\t * in the style attribute of the vpe element. \n\t\t */\n\t\tif (xmlStyle.size() > vpeStyle.size()) {\n\t\t\tthrow new DOMComparisonException(\n\t\t\t\t\t\"VPE element has less style parameters [\" //$NON-NLS-1$\n\t\t\t\t\t\t\t+ vpeStyle.size()\n\t\t\t\t\t\t\t+ \"] than was specified [\" //$NON-NLS-1$\n\t\t\t\t\t\t\t+ xmlStyle.size() + \"].\" //$NON-NLS-1$ \n\t\t\t\t\t\t\t+ \"\\n Expected: \" + xmlStyle //$NON-NLS-1$ \n\t\t\t\t\t\t\t+ \"\\n Was: \" + vpeStyle, //$NON-NLS-1$ \n\t\t\t\t\tmodelAttr); \n\t\t} else {\n\t\t\tif ((xmlStyle.size() > 0) && (vpeStyle.size() > 0)) {\n\t\t\t\tfor (String key : xmlStyle.keySet()) {\n\t\t\t\t\tif (vpeStyle.containsKey(key)) {\n\t\t\t\t\t\tif (!areStylePropertiesEqual(xmlStyle.get(key), vpeStyle.get(key))) {\n\t\t\t\t\t\t\tthrow new DOMComparisonException(\n\t\t\t\t\t\t\t\t\t\"Style value for parameter [\" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t+ key\n\t\t\t\t\t\t\t\t\t+ \"] is different. Expected [\" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t+ xmlStyle.get(key)\n\t\t\t\t\t\t\t\t\t+ \"] but was [\" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t+ vpeStyle.get(key)\n\t\t\t\t\t\t\t\t\t+ \"]\", modelAttr); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new DOMComparisonException(\n\t\t\t\t\t\t\t\t\"Style parameter [\" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+ key\n\t\t\t\t\t\t\t\t+ \"] is missing in the VPE element\", //$NON-NLS-1$\n\t\t\t\t\t\t\t\tmodelAttr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (! (objectToCompare instanceof APIOperationResponse))\n {\n return false;\n }\n if (! super.equals(objectToCompare))\n {\n return false;\n }\n\n APIOperationResponse that = (APIOperationResponse) objectToCompare;\n\n if (headerAttributeCount != that.headerAttributeCount)\n {\n return false;\n }\n if (requestAttributeCount != that.requestAttributeCount)\n {\n return false;\n }\n if (responseAttributeCount != that.responseAttributeCount)\n {\n return false;\n }\n return apiOperation != null ? apiOperation.equals(that.apiOperation) : that.apiOperation == null;\n }", "private boolean actionChecker(Norm norm1, Norm norm2) {\n\t\tif (norm1.getBehavior() == null || norm2.getBehavior() == null) {\n\t\t\treturn false;\n\t\t}\n\t\tString actionName1 = norm1.getBehavior().getName();\n\t\tString actionName2 = norm2.getBehavior().getName();\n\t\t\n\t\tif (actionName1.equals(actionName2)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t//its missing new cases for new behaviors\n\t}", "public boolean equals(SimulationUIValues obj)\n {\n return ((host.equals(obj.host)) &&\n (sim.equals(obj.sim)) &&\n (name.equals(obj.name)) &&\n (ivalue == obj.ivalue) &&\n (svalue.equals(obj.svalue)) &&\n (enabled == obj.enabled));\n }", "public boolean equals(Object other) {\n if (other instanceof Attributes) {\n Attributes otherAttr = (Attributes) other;\n String otherNSTName = MonetUtil.getBBPName(otherAttr.attrNSTName);\n String thisNSTName = MonetUtil.getBBPName(this.attrNSTName);\n return (otherNSTName.equals(thisNSTName));\n }\n return false;\n }", "private void checkCombinedConfigAttrs(CombinedConfiguration cc)\n {\n assertTrue(\"Wrong delimiter parsing flag\",\n cc.isDelimiterParsingDisabled());\n assertTrue(\"Wrong reload check\", cc.isForceReloadCheck());\n assertTrue(\"Wrong ignore reload ex flag\", cc.isIgnoreReloadExceptions());\n }", "protected abstract boolean populateAttributes();", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }", "final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}", "@Test\n public void equals() {\n UpdateCommand.UpdateProfileDescriptor descriptorWithSameValues = new UpdateCommand\n .UpdateProfileDescriptor(UPDESC_1);\n assertTrue(UPDESC_1.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(UPDESC_1.equals(UPDESC_1));\n\n // null -> returns false\n assertFalse(UPDESC_1.equals(null));\n\n // different types -> returns false\n assertFalse(UPDESC_1.equals(5));\n\n // different values -> returns false\n assertFalse(UPDESC_1.equals(UPDESC_2));\n\n // different name -> returns false\n UpdateCommand.UpdateProfileDescriptor editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1)\n .withName(VALID_NAME_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different id -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withId(VALID_ID_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different height -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withHeight(VALID_HEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n\n // different weight -> returns false\n editedProfile = new UpdateProfileDescriptorBuilder(UPDESC_1).withWeight(VALID_WEIGHT_2).build();\n assertFalse(UPDESC_1.equals(editedProfile));\n }", "private boolean areCompatible( String id, AttributeType attributeType )\n {\n // First, get rid of the options, if any\n int optPos = id.indexOf( ';' );\n String idNoOption = id;\n\n if ( optPos != -1 )\n {\n idNoOption = id.substring( 0, optPos );\n }\n\n // Check that we find the ID in the AT names\n for ( String name : attributeType.getNames() )\n {\n if ( name.equalsIgnoreCase( idNoOption ) )\n {\n return true;\n }\n }\n\n // Not found in names, check the OID\n return Oid.isOid( id ) && attributeType.getOid().equals( id );\n }", "void compare(BufferedImage bi0, BufferedImage bi1, int biType, Color c) {\n for (int x=0; x<wid; x++) {\n for (int y=0; y<hgt; y++) {\n int rgb0 = bi0.getRGB(x, y);\n int rgb1 = bi1.getRGB(x, y);\n if (rgb0 == rgb1) continue;\n int r0 = (rgb0 & 0xff0000) >> 16;\n int r1 = (rgb1 & 0xff0000) >> 16;\n int rdiff = r0-r1; if (rdiff<0) rdiff = -rdiff;\n int g0 = (rgb0 & 0x00ff00) >> 8;\n int g1 = (rgb1 & 0x00ff00) >> 8;\n int gdiff = g0-g1; if (gdiff<0) gdiff = -gdiff;\n int b0 = (rgb0 & 0x0000ff);\n int b1 = (rgb1 & 0x0000ff);\n int bdiff = b0-b1; if (bdiff<0) bdiff = -bdiff;\n if (rdiff > 1 || gdiff > 1 || bdiff > 1) {\n throw new RuntimeException(\n \"Images differ for type \"+biType + \" col=\"+c +\n \" at x=\" + x + \" y=\"+ y + \" \" +\n Integer.toHexString(rgb0) + \" vs \" +\n Integer.toHexString(rgb1));\n }\n }\n }\n\n }", "@Test\n @CoversAttributes(\"orderable\")\n public void testOrderable() {\n pickListAttributes.set(PickListAttributes.orderable, Boolean.FALSE);\n assertNotPresent(pickList.advanced().getBottomButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getDownButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getTopButtonElement(), \"Button should not be present\");\n assertNotPresent(pickList.advanced().getUpButtonElement(), \"Button should not be present\");\n // then make sure that controls appear near pickList when allow ordering behavior\n pickListAttributes.set(PickListAttributes.orderable, Boolean.TRUE);\n assertVisible(pickList.advanced().getBottomButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getDownButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getTopButtonElement(), \"Button should be visible\");\n assertVisible(pickList.advanced().getUpButtonElement(), \"Button should be visible\");\n // then add some items to target list\n pickList.addMultiple(ChoicePickerHelper.byIndex().index(0).index(1).index(2));\n // all items should remain selected and in this case ordering controls should be disabled\n assertEquals(pickList.advanced().getTargetList().getItems().size(), 3);\n for (ListItem item : pickList.advanced().getTargetList().getItems()) {\n assertTrue(item.getRootElement().getAttribute(\"class\").contains(\"rf-pick-sel\"));\n }\n // so check ordering controls if they are disabled\n assertButtonDisabled(pickList.advanced().getBottomButtonElement());\n assertButtonDisabled(pickList.advanced().getDownButtonElement());\n assertButtonDisabled(pickList.advanced().getTopButtonElement());\n assertButtonDisabled(pickList.advanced().getUpButtonElement());\n // now is time to select one item. This should cause ordering controls enable\n pickList.advanced().getTargetList().getItem(0).select(true);\n // since it was first item, \"Down\" and \"Last\" buttons should be enabled\n assertButtonEnabled(pickList.advanced().getBottomButtonElement());\n assertButtonEnabled(pickList.advanced().getDownButtonElement());\n assertButtonDisabled(pickList.advanced().getTopButtonElement());\n assertButtonDisabled(pickList.advanced().getUpButtonElement());\n // move first item to last\n OrderingList orderingTargetList = pickList.advanced().getOrderTargetList();\n List<? extends ListItem> items = pickList.advanced().getTargetList().getItems();\n List<String> targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2)\n .getText());\n\n orderingTargetList.select(0).putItAfter(2);\n // verify that previously first item is now the last item (select 3rd item, and verify text)\n items = pickList.advanced().getTargetList().getItems();\n List<String> targetStringsAfter = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(),\n items.get(2).getText());\n targetStrings.add(targetStrings.remove(0));\n assertEquals(targetStringsAfter, targetStrings);\n // then move this item one step \"up\"\n orderingTargetList.select(2).putItBefore(1);\n // and then verify if all items are submitted in user defined order as well\n submitAjax();\n items = pickList.advanced().getTargetList().getItems();\n targetStrings = Lists.newArrayList(items.get(0).getText(), items.get(1).getText(), items.get(2).getText());\n assertEquals(output.getText(), targetStrings.toString());\n }", "@Test\n public void testEquals_3()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n Object obj = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n\n boolean result = fixture.equals(obj);\n\n assertEquals(true, result);\n }", "@Test\n public void equals2() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 1);\n SmartPlayer y = new SmartPlayer(0, 2);\n assertFalse(x.equals(y));\n }", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "private void testButtonsMnemonics(Component comp) {\n if (testSettings.AP_mnemonics) {\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testButtonsMnemonics(Component)> - Check mnemonics \");\n \n /* Check AbstractButtons have mnemonics */\n if(testSettings.AP_m_abstractButtons && (comp instanceof AbstractButton)) {\n AbstractButton button = (AbstractButton)comp;\n \n // LOG ONLY -/\n if(debugLog) System.err.print(LOG_CAPTION+\" - <testButtonsMnemonics(Component)> \\t - button Mnemonic=\"+button.getMnemonic());\n \n int mnemonic = button.getMnemonic();\n \n if (mnemonic <= 0){\n if (!testSettings.AP_m_defaultCancel && (button instanceof JButton)) {\n JButton jButton = (JButton)button;\n String tt;\n if(!(jButton.isDefaultButton() ||\n (((tt=jButton.getText()) != null) && tt.equals(testSettings.getCancelLabel() )))) // tt - hack for rising NPE if text is null\n noMnemonic.add(comp);\n }else\n noMnemonic.add(comp);\n }\n \n testMnemonics(button.getText(), mnemonic, comp);\n }\n \n }\n \n }", "@Override\n\tprotected void initWebObject()\n\t{\n\t\tlogger.debug( \"validating static elements for web object id: <{}>, name:<{}>...\",\n\t\t\t\tgetQualifier(), getLogicalName() );\n\n\t\tfinal String REASON = \"assert that element \\\"%s\\\" exits\";\n\n\t\tString REASON1 = \"Validate that comparison is among/between \" + comparingShips + \" ships\";\n\t\tString ACTUAL_RESULT_STR = getRoot().getAttribute( \"class\" );\n\t\tMatcher<String> EXPECTED_OF_STR = JMatchers.endsWith( String.format( \"comparing-%d\", comparingShips ) );\n\t\tgetDriver().assertThat( REASON1, ACTUAL_RESULT_STR, EXPECTED_OF_STR );\n\n\t\tJAssertion assertion = getRoot().createAssertion();\n\t\tOptional<HtmlElement> e = getRoot().childExists( By.cssSelector( \"div.compare-section.quick-preview\" ), FIVE_SECONDS );\n\t\tassertion.assertThat( String.format( REASON, \".compare-section.quick-preview\" ), e.isPresent(), is( true ) );\n\t}", "public void verifyApplyButtonInAboutMe() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Apply Button In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Apply Button In About Me\");\r\n\t\t\t\t\r\n\t\t// Assertion : Check Button is present on page\r\n\t\tString linkText=dataController.getPageDataElements(fileName, \"Apply Button Name In About Me\", \"Name\");\r\n\t\tSystem.out.println(linkText);\r\n // UIActions.waitForLinkText(linkText,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "public void test55() {\n //$NON-NLS-1$\n deployBundles(\"test55\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.API, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n //$NON-NLS-1$\n assertTrue(\"Different from NO_DELTA\", delta == ApiComparator.NO_DELTA);\n }", "public void addAttributesValue() {\r\n\t\t boolean flag=true;\r\n\t\t wsrdModel.setErrorMsg(\"\");\r\n\t\t List<UiAirplaneModel> modelList = new ArrayList<UiAirplaneModel>(uiAirplaneModel.getApNamesList());\t\r\n\t\t\tfor(UiAirplaneModel save:modelList) {\r\n\t\t\t\tif(save.isInputDisplayItem()) {\r\n\t\t\t\t\tflag = false;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(flag) {\r\n\t\t\t\tmodelList.add(emptyAttributesValue());\r\n\t\t\t\tuiAirplaneModel.setApNamesList(modelList);\r\n\t\t\t}else {\r\n\t\t\t\taddErrorMessage(\"wsrdAdmin:addAirplaneNamesPanelID\", \"edit.edit\");\r\n\t\t\t}\r\n\t\t}", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "private boolean checkMultipleUnitEdit() {\r\n\t\tboolean flag=false;\r\n\t\tfor(UIUnitType model:uiUnitType.getUnitValueList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "@Test\n public void testEquals_4()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n Object obj = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n\n boolean result = fixture.equals(obj);\n\n assertEquals(true, result);\n }", "public boolean areEqual(Element element1, Element element2, HashMap<String, Integer> lengthMap, GUIState state, GUIState currentState) throws MultipleListOrGridException {\n if (!isAttributeEqual(element1, element2)) {\n return false;\n }\n\n for (int i = 0; i < max(element1.elements().size(), element2.elements().size()); i++) {\n if (i == ((Element) element1).elements().size() || i == ((Element) element2).elements().size())\n return false;\n if (element1.attributeValue(NodeAttribute.Class) != null && element2.attributeValue(NodeAttribute.Class) != null &&\n (element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView)\n || element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView))) {\n\n if (state.getListSize() != currentState.getListSize() && state.getGridSize() != currentState.getGridSize()) {\n currentState.setIsDynamicListAndGrid(true);\n }\n if (currentState.isDynamicListAndGrid()) {\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) == null)\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), 0);\n\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n } else {\n int lengthValue = lengthMap.get(getCurrentXpath(element1, getStringList(element1))) + 1;\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), lengthValue);\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) >= maxListGridSizeThreshold) {\n this.totalListGridEquivalentStateCount++;\n state.setIsEquivalentState(true);\n if (!state.getImagelist().contains(currentState.getImagelist().get(0)))\n state.addImage(currentState.getImagelist().get(0));\n state.increaseEquivalentStateCount();\n state.setIsListAndGrid(true);\n return true;\n }\n }\n } else {\n return false;\n }\n\n } else {\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n }\n }\n }\n return true;\n }", "private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }", "private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected void onInitDataBindings()\n\t{\n IObservableValue serverNameTargetObservable = WidgetProperties.text(SWT.Modify).observe(this.txtServerName);\n IObservableValue serverNameModelObservable = BeanProperties.value(\"serverName\").observeDetail(value);\n\t\t\n IObservableValue vendorNameTargetObservable = ViewerProperties.singleSelection().observe(cboVendorName);\n IObservableValue vendorNameModelObservable = BeanProperties.value(\"vendorNameLookup\").observeDetail(value);\n \n IObservableValue isExpressTargetObservable = WidgetProperties.selection().observe(this.chkIsExpress);\n IObservableValue isExpressModelObservable = BeanProperties.value(\"isExpress\").observeDetail(value);\n\n IObservableValue userNameTargetObservable = WidgetProperties.text(SWT.Modify).observe(this.txtUserName);\n IObservableValue userNameModelObservable = BeanProperties.value(\"userName\").observeDetail(value);\n \n IObservableValue passwordTargetObservable = WidgetProperties.text(SWT.Modify).observe(this.txtPassword);\n IObservableValue passwordModelObservable = BeanProperties.value(\"password\").observeDetail(value);\n \n \n //IObservableValue portTargetObservable = ViewerProperties.singleSelection().observe(spPort); // WidgetProperties.text(SWT.Modify).observe(this.spPort.get);\n IObservableValue portTargetObservable = WidgetProperties.selection().observe(spPort);\n IObservableValue portModelObservable = BeanProperties.value(\"port\").observeDetail(value);\n \n \n sidTargetObservable = WidgetProperties.text(SWT.Modify).observe(this.txtSid);\n sidModelObservable = BeanProperties.value(\"sid\").observeDetail(value);\n \n IValidator serverNameValidator = this.viewHelper.getRequiredStringValidator(\"Host Name must be entered\");\n IValidator userNameValidator = this.viewHelper.getRequiredStringValidator(\"User name must be entered\");\n IValidator passwordValidator = this.viewHelper.getRequiredStringValidator(\"Password must be entered\");\n IValidator vendorNameValidator = this.viewHelper.getRequiredStringValidator(\"Vendor must be entered\");\n IValidator portValidator = this.viewHelper.getRequiredStringValidator(\"Port must be entered\");\n \n serverNameBinding = ctx.bindValue(serverNameTargetObservable, serverNameModelObservable, \n \t\tnew UpdateValueStrategy().setAfterConvertValidator(serverNameValidator), null);\n \n vendorNameBinding = ctx.bindValue(vendorNameTargetObservable, vendorNameModelObservable, \n \t\tnew UpdateValueStrategy().setAfterConvertValidator(vendorNameValidator), null);\n \n userNameBinding = ctx.bindValue(userNameTargetObservable, userNameModelObservable, \n \t\tnew UpdateValueStrategy().setAfterConvertValidator(userNameValidator), null);\n \n passwordBinding = ctx.bindValue(passwordTargetObservable, passwordModelObservable, \n \t\tnew UpdateValueStrategy().setAfterConvertValidator(passwordValidator), null);\n \n IConverter portConverter = IConverter.create(Integer.class, Integer.class, x -> (x == null) ? 0 : x);\n // new UpdateValueStrategy().setAfterConvertValidator(portValidator);\n\t\tportBinding = ctx.bindValue(portTargetObservable, portModelObservable, \n \t\t//UpdateValueStrategy.create(portConverter).setAfterConvertValidator(portValidator),\n\t\t\t\tnew UpdateValueStrategy().setAfterConvertValidator(portValidator),\n \t\tUpdateValueStrategy.create(portConverter));\n \t\n \n sidBinding = ctx.bindValue(sidTargetObservable, sidModelObservable);\n \n isExpressBinding = ctx.bindValue(isExpressTargetObservable, isExpressModelObservable);\n \n ControlDecorationSupport serverNameDecorator = ControlDecorationSupport.create(serverNameBinding, SWT.TOP | SWT.LEFT);\n ControlDecorationSupport vendorNameDecorator = ControlDecorationSupport.create(vendorNameBinding, SWT.TOP | SWT.LEFT);\n ControlDecorationSupport userNameDecorator = ControlDecorationSupport.create(userNameBinding, SWT.TOP | SWT.LEFT);\n ControlDecorationSupport passwordDecorator = ControlDecorationSupport.create(passwordBinding, SWT.TOP | SWT.LEFT);\n ControlDecorationSupport portDecorator = ControlDecorationSupport.create(portBinding, SWT.TOP | SWT.LEFT);\n \n \n final IObservableValue errorObservable = WidgetProperties.text().observe(lblError);\n Binding allValidationBinding = ctx.bindValue(errorObservable, new AggregateValidationStatus(ctx.getBindings(), AggregateValidationStatus.MAX_SEVERITY), null, null);\n IObservableList bindings = ctx.getValidationStatusProviders();\n\t}", "private void initializeAttributes() {\n\t language.setMinWidth(200);//250\n\t language.setAlignment(Pos.CENTER);\n\t language.getStyleClass().clear();\n\t language.getStyleClass().add(\"menuButton\");\n\t \n\t // Set history button properties\n\t history.setMinWidth(200);//250\n\t history.setAlignment(Pos.CENTER);\n\t history.getStyleClass().clear();\n\t history.getStyleClass().add(\"menuButton\");\n\t \n\t // Set closing button button properties\n\t closingButton.getStyleClass().clear();\n\t closingButton.getStyleClass().add(\"menuButton\");\n\t \n\t // Set reducing button button properties\n\t reducingButton.getStyleClass().clear();\n\t reducingButton.getStyleClass().add(\"menuButton\");\n\t \n\t // Close window/application on click\n\t closingButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent e) {\n \tgameMainStage.close();\n }\n });\n\t \n\t // Reduce window/application on click\n\t reducingButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent e) {\n \tgameMainStage.setIconified(true);\n }\n });\n\t \n\t // Switch to the language part of the application on click\n\t language.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent e) {\n if (currentTab == null || currentTab.equals(\"history\")) {\n \tcurrentTab = \"language\";\n \tupdateTabButtons();\n \twindowMainPane.setCenter(new Language());\n }\n }\n });\n\t \n\t\t// Switch to the history part of the application on click\n\t history.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent e) {\n \tif (currentTab == null || currentTab.equals(\"language\")) {\n \t\tcurrentTab = \"history\";\n \t\tupdateTabButtons();\n \t\twindowMainPane.setCenter(new History(0));\n \t}\n }\n });\n\t}", "private void manageStructNameAndSize(){\n\t\tString attrName = modelPanelStruct.inputAttributeName.getText();\n\t\tString beginString = \"u\"+(8*DataStore.getInstance().getAECstructureList().get(DataStore.getInstance().getAECattributeKey()).getAttributeSize());\n\t\tDouble size = Math.pow(2, modelPanelStruct.comboBoxType.getSelectedIndex());\n\t\tString newBeginString = \"u\"+(8*size.intValue());\n\t\t\n\t\tif(attrName.substring(0, beginString.length()).equals(beginString)){\n\t\t\tmodelPanelStruct.inputAttributeName.setText(modelPanelStruct.inputAttributeName.getText().substring(beginString.length()));\n\t\t\tDataStore.getInstance().getAECstructureList().get(DataStore.getInstance().getAECattributeKey()).setAttributeSize(size.intValue());\n\t\t\tmodelPanelStruct.inputAttributeName.setText(newBeginString+modelPanelStruct.inputAttributeName.getText());\n\t\t}else{\n\t\t\tSystem.out.println(newBeginString+modelPanelStruct.inputAttributeName.getText());\n\t\t\tboolean response = DialogStore.getInstance().displayChangeAECattributeStructureName(modelPanelStruct.inputAttributeName.getText(),newBeginString);\n\t\t\tif(response){\n\t\t\t\tmodelPanelStruct.inputAttributeName.setText(newBeginString+modelPanelStruct.inputAttributeName.getText());\n\t\t\t}\n\t\t}\n\t}", "public void unsetIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ISCOMPARATION$2);\n }\n }", "boolean isUniqueAttribute();", "private void updateControlButtonStatus(boolean isNetworkConnected) {\n\t\tif (isNetworkConnected) {\r\n\t\t\t// if (mPlayShareButton.getVisibility() == View.VISIBLE) {\r\n\t\t\t// mPlayShareButton.requestFocus();\r\n\t\t\t//\r\n\t\t\t// } else {\r\n\t\t\t// mPlayerStartButton.requestFocus();\r\n\t\t\t// }\r\n\t\t\t// if (mVideoContrl != null && !mVideoContrl.isVOD()) {\r\n\t\t\t// mPlayerSaveButton.setEnabled(false);\r\n\t\t\t// mPlayerSaveButton.setFocusable(false);\r\n\t\t\t// }\r\n\t\t}\r\n\r\n\t\t// mPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setFocusable(isNetworkConnected);\r\n\t}", "private boolean notEqualFeatures(Instance inst1, Instance inst2) {\n\n for(int i = 0; i < m_Train.numAttributes(); i++){\n if(i == m_Train.classIndex())\n\tcontinue;\n if(inst1.value(i) != inst2.value(i))\n\treturn true;\n }\n return false;\n }", "@Test\n public void testColumnControlInitialUpdateInsetsUIResource() {\n ColumnControlButton control = new ColumnControlButton(new JXTable());\n // PENDING JW: why not same? insets can be shared - or not?\n // probably setMargin interferes - is doing some things ... \n assertEquals(\"columnControl must have margin from ui\", \n UIManager.getInsets(ColumnControlButton.COLUMN_CONTROL_BUTTON_MARGIN_KEY),\n control.getMargin());\n }", "@Override\n public java.lang.Object getUilButtonSeparation() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_SEPARATION_);\n return (java.lang.Object)retnValue;\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "boolean isAttribute();", "public boolean isSetIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ISCOMPARATION$2) != null;\n }\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void createCompareScreen(Card card1, Card card2){\n//\t\t\n//\t\tJTextPane cons1 = new JTextPane();\n//\t\tcons1.setBounds(10 + frameWidth/2, 10, frameWidth/2 - 20, frameHeight/2 - 20);\n//\t\tgetContentPane().add(cons1);\n//\t\tpanel.add(cons1);\n//\t\t\n//\t\tJTextPane pros2 = new JTextPane();\n//\t\tpros2.setBounds(10, 10 + frameHeight/2, frameWidth/2 - 20, frameHeight/2 - 20);\n//\t\tgetContentPane().add(pros2);\n//\t\tpanel.add(pros2);\n//\t\t\n//\t\tJFormattedTextField cons2 = new JFormattedTextField();\n//\t\tcons2.setBounds(10 + frameWidth/2, 10 + frameHeight/2, frameWidth/2 - 20, frameHeight/2 - 20);\n//\t\tgetContentPane().add(cons2);\n//\t\tpanel.add(pros1);\n\t\t\n\t\tJLabel lblPros = new JLabel(\"Pros\");\n\t\tlblPros.setBounds(10, 11, 194, 88);\n\t\tgetContentPane().add(lblPros);\n\t\t\n\t\tJLabel lblCons = new JLabel(\"Cons\");\n\t\tlblCons.setBounds(230, 11, 194, 88);\n\t\tgetContentPane().add(lblCons);\n\t\t\n\t\tJLabel lblPros_1 = new JLabel(\"Pros\");\n\t\tlblPros_1.setBounds(10, 113, 194, 82);\n\t\tgetContentPane().add(lblPros_1);\n\t\t\n\t\tJLabel lblCons_1 = new JLabel(\"Cons\");\n//\t\tlblCons_1.setBackground(Color.CYAN);\n\t\tlblCons_1.setBounds(230, 110, 194, 88);\n\t\tgetContentPane().add(lblCons_1);\n\t\t\n\t\tbtnChoose1 = new JButton(\"Choose 1\");\n\t\tbtnChoose1.addActionListener(this);\n\t\tbtnChoose1.setBounds(63, 206, 89, 23);\n\t\tgetContentPane().add(btnChoose1);\n\t\t\n\t\tbtnChoose2 = new JButton(\"Choose 2\");\n\t\tbtnChoose2.addActionListener(this);\n\t\tbtnChoose2.setBounds(275, 209, 89, 23);\n\t\tgetContentPane().add(btnChoose2);\n\t}", "public boolean is_equal_to (RelayConfig other) {\n\t\tif (mode_timestamp == other.mode_timestamp\n\t\t\t&& relay_mode == other.relay_mode\n\t\t\t&& configured_primary == other.configured_primary) {\n\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean comparePathAttribute(String value, List<String> includePaths) {\n\t\treturn false;\r\n\t}", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "public void VerifyMainMenuItems() {\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Dashboard);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Initiatives);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_LiveMediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_MediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Audiences);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Offers);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_CreativeAssets);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Reports);\n\t}", "boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }", "public String getUiStatus() {\n\t\tif (switchInfo.getType().compareTo(\"thermostat\") == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 2;\r\n\t\t\t\treturn tmp.toString();\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t} else if ((switchInfo.getType().compareTo(\"light\") == 0)\r\n\t\t\t\t|| (switchInfo.getType().compareTo(\"circulator\") == 0)) {\r\n\t\t\ttry {\r\n\t\t\t\tDouble tmp = new Double((String) myISY.getCurrValue(myISY.getNodes().get(switchInfo.getSwitchAddress()),\r\n\t\t\t\t\t\tInsteonConstants.DEVICE_STATUS));\r\n\t\t\t\ttmp = tmp / 255 * 100;\r\n\t\t\t\tif (tmp == 0)\r\n\t\t\t\t\treturn \"OFF\";\r\n\t\t\t\telse if (tmp == 100)\r\n\t\t\t\t\treturn \"ON\";\r\n\t\t\t\treturn \"ON \" + tmp + \"%\";\r\n\t\t\t} catch (NoDeviceException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private void setButtonVisibilities(){\n\n if(eventType.equals(EventType.ORGANISE)){\n btnUpdateOrSignIn.setVisibility(View.VISIBLE);\n btnUpdateOrSignIn.setText(R.string.update);\n }\n else if(timeType.equals(TimeType.ONGOING) && eventType.equals(EventType.ATTEND)){\n btnUpdateOrSignIn.setVisibility(View.VISIBLE);\n btnUpdateOrSignIn.setText(R.string.sign_in);\n }\n else{\n btnUpdateOrSignIn.setVisibility(View.GONE);\n }\n }", "@After\n \tpublic void confirm() {\n \t\tcheckGlobalStatus();\n \n \t\tIterator<CyNetworkView> viewIt = viewManager.getNetworkViewSet().iterator();\n \n \t\tCyNetworkView view = viewIt.next(); \n \t\tCyNetwork network = view.getModel();\n \t\t\n \t\tcheckNetwork(network);\n \t\tcheckNetworkView(network);\n \t\tcheckAttributes(network);\n \t}", "private boolean compareChatUsers(ID id1, ID id2) {\n IChatID cid1 = (IChatID) id1.getAdapter(IChatID.class);\n IChatID cid2 = (IChatID) id2.getAdapter(IChatID.class);\n if (cid1 == null || cid2 == null)\n return false;\n return (cid1.getUsername().equals(cid2.getUsername()) && cid1.getHostname().equals(cid2.getHostname()));\n }", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "@Override //function was implemented as abstract in super class\n public boolean Equals(Instruction toCompare){\n if(toCompare == null)\n return false;\n Extra temp = (Extra) toCompare; //downcast for valid comparison\n if(this.Price != temp.Price || this.Allergens != temp.Allergens || !this.Notes.equals(temp.Notes) || this.Density != temp.Density || !this.Topping.equals(temp.Topping) || this.Vegetarian != Vegetarian)\n return false;\n return true;\n }", "@Test(priority = 6)\n public void elementsOnDifferentElementsPageTest() {\n List<WebElement> checkboxesList = driver.findElements(By.className(\"label-checkbox\"));\n assertEquals(checkboxesList.size(), 4);\n List<WebElement> radioList = driver.findElements(By.className(\"label-radio\"));\n assertEquals(radioList.size(), 4);\n assertTrue(driver.findElement(By.className(\"colors\")).isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"button[name='Default Button']\"))\n .isDisplayed());\n assertTrue(driver.findElement(By.cssSelector(\"input[value='Button']\"))\n .isDisplayed());\n }", "@Test(enabled = false)\n public void DCAEAssetInstancesInputScreenTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n CanvasManager vfCanvasManager = CanvasManager.getCanvasManager();\n\n Map<String, String> elementsIntancesMap = new HashMap<String, String>();\n for (LeftPanelCanvasItems element : Arrays.asList(LeftPanelCanvasItems.DATABASE)) {\n CanvasElement elementOnCanvas = vfCanvasManager.createElementOnCanvas(element);\n vfCanvasManager.clickOnCanvaElement(elementOnCanvas);\n String selectedInstanceName = CompositionPage.getSelectedInstanceName();\n elementsIntancesMap.put(selectedInstanceName, element.getValue());\n }\n\n CompositionPage.moveToInputsScreen();\n int canvasElementsSize = vfCanvasManager.getCanvasElements().size() + 2;\n List<String> inputsNamesFromTable = InputsPage.getVFCInstancesNamesFromTable();\n assertTrue(String.format(\"Instances count is not as Expected: %s Actual: %s\", canvasElementsSize, inputsNamesFromTable.size()), inputsNamesFromTable.size() == canvasElementsSize);\n\n for (String instanceName : inputsNamesFromTable) {\n String resourceName = instanceName.split(\" \")[0];\n ResourceReqDetails resource = new ResourceReqDetails();\n resource.setName(resourceName);\n resource.setVersion(\"1.0\");\n if (resourceName.equals(\"Port\")) {\n resource.setResourceType(ResourceTypeEnum.CP.toString());\n } else {\n resource.setResourceType(ResourceTypeEnum.VFC.toString());\n }\n RestResponse restResponse = RestCDUtils.getResource(resource, getUser());\n Map<String, String> propertiesNameTypeJson = ResponseParser.getPropertiesNameType(restResponse);\n\n List<WebElement> propertyRowsFromTable = InputsPage.getInstancePropertiesList(resourceName);\n assertTrue(\"Some properties are missing in table. Instance name is : \" + resourceName, propertyRowsFromTable.size() == propertiesNameTypeJson.size());\n VfVerificator.verifyVfInputs(instanceName, propertiesNameTypeJson, propertyRowsFromTable);\n\n GeneralUIUtils.clickOnElementByText(resourceName);\n }\n }", "@Test(timeout = 4000)\n public void test344() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Map<String, String> map0 = hidden0.getAttributes();\n assertEquals(1, map0.size());\n }", "public boolean equals(AMRStitchCellAttributes obj)\n {\n return ((CreateCellsOfType == obj.CreateCellsOfType));\n }", "@Test\n public void equals() {\n EditReminderDescriptor descriptorWithSameValues = new EditReminderDescriptor(DESC_REMINDER_MATHS);\n assertTrue(DESC_REMINDER_MATHS.equals(descriptorWithSameValues));\n\n // same object -> returns true\n assertTrue(DESC_REMINDER_MATHS.equals(DESC_REMINDER_MATHS));\n\n // null -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(null));\n\n // different types -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(5));\n\n // different values -> returns false\n assertFalse(DESC_REMINDER_MATHS.equals(DESC_REMINDER_SCIENCE));\n\n // different desc -> returns false\n EditReminderDescriptor editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withDescription(VALID_REMINDER_DESC_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n\n // different date -> returns false\n editedMaths = new EditReminderDescriptorBuilder(DESC_REMINDER_MATHS)\n .withReminderDate(VALID_REMINDER_DATE_TWO).build();\n assertFalse(DESC_REMINDER_MATHS.equals(editedMaths));\n }", "public void test5() {\n //$NON-NLS-1$\n deployBundles(\"test5\");\n IApiBaseline before = getBeforeState();\n IApiBaseline after = getAfterState();\n IApiComponent beforeApiComponent = before.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", beforeApiComponent);\n IApiComponent afterApiComponent = after.getApiComponent(BUNDLE_NAME);\n //$NON-NLS-1$\n assertNotNull(\"no api component\", afterApiComponent);\n IDelta delta = ApiComparator.compare(beforeApiComponent, afterApiComponent, before, after, VisibilityModifiers.ALL_VISIBILITIES, null);\n //$NON-NLS-1$\n assertNotNull(\"No delta\", delta);\n //$NON-NLS-1$\n assertTrue(\"Not empty\", delta.isEmpty());\n //$NON-NLS-1$\n assertTrue(\"Different from NO_DELTA\", delta == ApiComparator.NO_DELTA);\n }", "@Test\n public void testPasswordAgingAttributesWithUpdate() {\n if (getConnection().isNis()) {\n log.info(\"skipping test 'testPasswordAgingAttributesWithUpdate' for NIS configuration, as it is not supported there.\");\n return;\n }\n\n String username = getUsername();\n Set<Attribute> passwordAgingAttrs =\n CollectionUtil.newSet(AttributeBuilder.build(AccountAttribute.MIN.getName(), 2),\n AttributeBuilder.build(AccountAttribute.MAX.getName(), 5), AttributeBuilder\n .build(AccountAttribute.WARN.getName(), 4));\n getFacade().update(ObjectClass.ACCOUNT, new Uid(username), passwordAgingAttrs, null);\n\n ToListResultsHandler handler = new ToListResultsHandler();\n getFacade().search(\n ObjectClass.ACCOUNT,\n FilterBuilder.equalTo(AttributeBuilder.build(Name.NAME, username)),\n handler,\n new OperationOptionsBuilder().setAttributesToGet(\n CollectionUtil.newSet(AccountAttribute.MAX.getName(), AccountAttribute.MIN\n .getName(), AccountAttribute.WARN.getName())).build());\n\n assertTrue(handler.getObjects().size() >= 1);\n ConnectorObject result = handler.getObjects().get(0);\n assertTrue(controlAttributeValue(2, AccountAttribute.MIN, result));\n assertTrue(controlAttributeValue(5, AccountAttribute.MAX, result));\n assertTrue(controlAttributeValue(4, AccountAttribute.WARN, result));\n }", "private void installAttributeEditors(Element element, GridBagConstraints gbcLeft, GridBagConstraints gbcRight, UMLAttributeModificationListener listener, boolean readonly, boolean attributes, boolean documentationOnly, JButton okButton)\n {\n for (EClass cls : new UMLHierarchyFinder(element).findSortedHierarchy())\n {\n // see if we can find any attributes here\n List<EAttribute> attrs = new ArrayList<EAttribute>();\n if (attributes)\n for (TreeIterator iter = cls.eAllContents(); iter.hasNext();)\n {\n Object obj = iter.next();\n if (obj instanceof EAttribute)\n {\n EAttribute attr = (EAttribute) obj;\n if (!rejectAttribute(attr, documentationOnly))\n attrs.add((EAttribute) obj);\n }\n }\n \n List<EReference> refs = new ArrayList<EReference>();\n if (!attributes)\n for (TreeIterator iter = cls.eAllContents(); iter.hasNext();)\n {\n Object obj = iter.next();\n if (obj instanceof EReference)\n {\n EReference ref = (EReference) obj;\n if (!rejectReference(ref))\n refs.add(ref);\n }\n }\n \n // only add a category if it has a valid attribute\n if (!attrs.isEmpty() || !refs.isEmpty())\n {\n String name = cls.getName();\n if (name.equals(\"J_DiagramHolder\"))\n name = \"Diagram information\";\n\n if (!documentationOnly)\n {\n JLabel cat = new JLabel(name);\n cat.setFont(cat.getFont().deriveFont(Font.BOLD));\n gbcLeft.gridwidth = 2;\n insetPanel.add(cat, gbcLeft);\n gbcLeft.gridwidth = 1;\n \n // increment\n gbcLeft.gridy++;\n gbcRight.gridy++;\n }\n \n for (EAttribute attr : attrs)\n {\n UMLAttributeViewer viewer = makeAttributeViewer(element, attr, listener, documentationOnly, okButton);\n viewers.add(viewer);\n viewer.installAttributeEditor(\"from \" + cls.getName(), insetPanel, gbcLeft, gbcRight, !documentationOnly, okButton);\n if (readonly)\n viewer.getEditor().setEnabled(false);\n }\n for (EReference ref : refs)\n {\n UMLAttributeViewer viewer = makeAttributeViewer(element, ref, listener, documentationOnly, okButton);\n viewers.add(viewer);\n viewer.installAttributeEditor(\"from \" + cls.getName(), insetPanel, gbcLeft, gbcRight, !documentationOnly, okButton);\n if (readonly)\n viewer.getEditor().setEnabled(false);\n }\n }\n }\n }", "public static void VerifyCommonComponent_ImageShape(int ImageShape){\n\t\t\tString actualCommonComponentDataImage=\"\";\n\t\t\ttry{\n\t\t\t\tactualCommonComponentDataImage=sitecoreObj.commonComponentImageShape.getAttribute(\"class\");\n\t\t\t\tAssert.assertEquals(actualCommonComponentDataImage, \"common--component \" + expectedData.getProperty(\"FourItemsWithInset_InsetImageShape\"+ImageShape));\n\t\t\t\tlog.info(\"The Actual AboutUs CommonComponent Data Image- \"+actualCommonComponentDataImage);\n\t\t\t\tlog.info(\"The Expected AboutUs CommonComponent Data Image- \"+ \"common--component \" + expectedData.getProperty(\"FourItemsWithInset_InsetImageShape\"+ImageShape));\n\t\t\t\tlog.info(\"TEST PASSED: The Actual and Expected AboutUs CommonComponent Inset Images are Same\");\n\t\t\t}catch(AssertionError e){\n\t\t\t\tlog.error(\"The Actual AboutUs CommonComponent Data Image- \"+actualCommonComponentDataImage);\n\t\t\t\tlog.error(\"The Expected AboutUs CommonComponent Data Image- \"+ \"common--component \" + expectedData.getProperty(\"FourItemsWithInset_InsetImageShape\"+ImageShape)); \n\t\t\t\tlog.error(\"TEST FAILED: The Actual and Expected AboutUs CommonComponent Inset Images are NOT same\");\n\t\t\t}catch(org.openqa.selenium.NoSuchElementException e){\n\t\t\t\tlog.error(\"TEST FAILED: There is No Inset Images and On CommonComponent Container\");\n\t\t\t}\n\t\t}", "public static void main(String[] args){\n\t\tString[] BaseVoltageAttribute = {\"cim:BaseVoltage.nominalVoltage\"};\n\t\tString[] SubstationAttribute = {\"cim:IdentifiedObject.name\",\"cim:Substation.Region\"};\n\t\tString[] VolatgeLevelAttribute = {\"cim:IdentifiedObject.name\",\"cim:VoltageLevel.Substation\",\"cim:VoltageLevel.BaseVoltage\"};\n\t\tString[] GeneratingUnitAttribute = {\"cim:IdentifiedObject.name\",\"cim:GeneratingUnit.maxOperatingP\",\"cim:GeneratingUnit.minOperatingP\",\"cim:Equipment.EquipmentContainer\"};\n\t\tString[] SynchronousMachineAttribute = {\"cim:IdentifiedObject.name\",\"cim:RotatingMachine.ratedS\",\"cim:RotatingMachine.p\",\"cim:RotatingMachine.q\",\"cim:RotatingMachine.GeneratingUnit\",\n\t\t\t\t\"cim:RegulatingCondEq.RegulatingControl\", \"cim:Equipment.EquipmentContainer\",\"baseVoltage\"};\n\t\tString[] RegulatingControlAttribute = {\"cim:IdentifiedObject.name\",\"cim:RegulatingControl.targetValue\"};\n\t\tString[] PowerTransformerAttribute = {\"cim:IdentifiedObject.name\",\"cim:Equipment.EquipmentContainer\"};\n\t\tString[] EnergyConsumerAttribute = {\"cim:IdentifiedObject.name\",\"cim:EnergyConsumer.p\",\"cim:EnergyConsumer.q\",\"cim:Equipment.EquipmentContainer\",\"baseVoltage\"};\n\t\tString[] PowerTransformerEndAttribute = {\"cim:IdentifiedObject.name\",\"cim:PowerTransformerEnd.r\",\"cim:PowerTransformerEnd.x\",\n\t\t\t\t\"cim:PowerTransformerEnd.PowerTransformer\",\"cim:TransformerEnd.BaseVoltage\"};\n\t\tString[] BreakerAttribute = {\"cim:IdentifiedObject.name\",\"cim:Switch.open\",\"cim:Equipment.EquipmentContainer\",\"baseVoltage\"};\n\t\tString[] RatioTapChangerAttribute = {\"cim:IdentifiedObject.name\",\"cim:TapChanger.step\"};\n\t\t\n\t\t// Create an array list with all the attributes\n\t\tArrayList<String[]> AttList = new ArrayList<String[]>();\n\t\tAttList.add(BaseVoltageAttribute);\n\t\tAttList.add(SubstationAttribute);\n\t\tAttList.add(VolatgeLevelAttribute);\n\t\tAttList.add(GeneratingUnitAttribute);\n\t\tAttList.add(SynchronousMachineAttribute);\n\t\tAttList.add(RegulatingControlAttribute);\n\t\tAttList.add(PowerTransformerAttribute);\n\t\tAttList.add(EnergyConsumerAttribute);\n\t\tAttList.add(PowerTransformerEndAttribute);\n\t\tAttList.add(BreakerAttribute);\n\t\tAttList.add(RatioTapChangerAttribute);\n\t\t\t\t\n\t\ttry{\n\t\t\t\n\t\t\t// Read XML file EQ\n\t\t\tFile XmlFileEQ = new File (\"C:\\\\Users\\\\Matteo\\\\Documents\\\\Kic InnoEnergy\\\\KTH\\\\Computer application\\\\Assignment 1\\\\MicroGridTestConfiguration_T1_BE_EQ_V2.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc_eq = dBuilder.parse(XmlFileEQ);\n\t\t\t\n\t\t\t// Read XML file SSH\n\t\t\tFile XmlFileSSH = new File (\"C:\\\\Users\\\\Matteo\\\\Documents\\\\Kic InnoEnergy\\\\KTH\\\\Computer application\\\\Assignment 1\\\\MicroGridTestConfiguration_T1_BE_SSH_V2.xml\");\n\t\t\tDocument doc_SSH = dBuilder.parse(XmlFileSSH);\n\t\t\t\n\t\t\t// normalize CIM XML file\n\t\t\tdoc_eq.getDocumentElement().normalize();\n\t\t\tdoc_SSH.getDocumentElement().normalize();\n\t\t\t\n\t\t\tArrayList<NodeList> NodeListList = new ArrayList<NodeList>();\n//\t\t\tString[] nodeListNames = {\"bvList\",\"subList\",\"volList\",\"guList\",\"genList\",\"rcList\",\"ptList\",\"ecList\",\"pteList\",\"bList\",\"rtcList\"};\n\t\t\t// Array with all the CIM objects tags\n\t\t\tString[] tagList = {\"cim:BaseVoltage\",\"cim:Substation\",\"cim:VoltageLevel\",\"cim:GeneratingUnit\",\"cim:SynchronousMachine\",\n\t\t\t\t\t\"cim:RegulatingControl\",\"cim:PowerTransformer\", \"cim:EnergyConsumer\",\"cim:PowerTransformerEnd\",\"cim:Breaker\",\"cim:RatioTapChanger\"};\n\t\t\t// It fill out the ArrayList \"NodeListList\", where each object is a list of nodes characterized by the same tag, i.e. newNodeList\n\t\t\tfor(int i=0; i<tagList.length; i++){\n\t\t\t\t// Node list obtained looking for tags in EQ document\n\t\t\t\tNodeList newNodeList1 = doc_eq.getElementsByTagName(tagList[i]);\n\t\t\t\t// Node list obtained looking for tags in SSH document\n\t\t\t\tNodeList newNodeList2 = doc_SSH.getElementsByTagName(tagList[i]);\n\t\t\t\t// Some tags are not present in the SSH file, hence, we fill that list we the same not of list1, just to avoid handling an empty list\n\t\t\t\tif(newNodeList2 == null || newNodeList2.getLength() == 0 ){\n\t\t\t\t\tnewNodeList2 = newNodeList1;\n\t\t\t\t}\n\t\t\t\t// both lists are added to the same ArrayList\n\t\t\t\t// even position are then relative to NodeList1\n\t\t\t\t// odd positions are relative to NodeList2\n\t\t\t\tNodeListList.add(newNodeList1);\n\t\t\t\tNodeListList.add(newNodeList2);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// … cycle through each list to extract required data\n\t\t\tfor(int k = 0; k < NodeListList.size(); k +=2){\n\t\t\t\t// It extracts each element of NodeListList, called newNodeList, which is a list of nodes having the same tag \n\t\t\t\tSystem.out.println(\"\\n\" + \"---------------------------------------\" + \"\\n\" + tagList[k/2] + \"\\n\" + \"---------------------------------------\" + \"\\n\");\n\t\t\t\tNodeList newNodeList1 = NodeListList.get(k);\n\t\t\t\tNodeList newNodeList2 = NodeListList.get(k+1);\n\t\t\t\n\t\t\t\tfor (int i = 0; i < newNodeList1.getLength(); i++) {\n\t\t\t\t\t// From the node list newNodeList, it extracts each node and invokes extractNode method\n\t\t\t\t\t// newNodeList1 and newNodeList2 have the same length, because they are referred to the same CIM objects.\n\t\t\t\t\tNode node1 = newNodeList1.item(i); \n\t\t\t\t\tNode node2 = newNodeList2.item(i);\n\t\t\t\t\textractNode(node1,node2,k,i,AttList,doc_eq);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private List<Comparison> doCompare(VM vm, Row row, String vmType) {\r\n List<Comparison> results = new ArrayList<Comparison>();\r\n\r\n for (String param : ReadFile.parametersToCompare.stringPropertyNames()) {\r\n\r\n if (paramIndexes.get(param) != null) {\r\n String resValue = getCellValue(row.getCell(paramIndexes.get(param)));\r\n\r\n if (resValue != null && datastoreUsageValues.get(param) != null) {\r\n resValue = datastoreUsageValues.get(param);\r\n if (\"Backuptool\".equals(param) && \"vm5\".equals(vm.getVm_name())) {\r\n resValue = datastoreUsageValues.get(\"NFSBackup\");\r\n }\r\n }\r\n\r\n if (resValue == null) {\r\n continue;\r\n }\r\n String vConfValue = getVConfValue(param, vm, ReadFile.parametersToCompare.getProperty(param));\r\n Comparison comparison = new Comparison();\r\n comparison.setAttribute(param);\r\n if (\"Datastore\".equals(param)) {\r\n matchStringValues(vConfValue, resValue, comparison);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \", Resource sheet value: \" + resValue);\r\n } else if (\"Ext rep\".equals(param) && !openStack && !is3XL) {\r\n if (vmType.contains(\"Small\") || vmType.contains(\"Mainstream\")) {\r\n resValue = Double.toString(Double.parseDouble(resValue) / 2);\r\n } else {\r\n resValue = Double.toString(Double.parseDouble(resValue) / 4);\r\n }\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" MB, Resource sheet value: \" + resValue + \" GB\");\r\n } else if (\"vCPU\".equals(param)) {\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" GB, Resource sheet value: \" + resValue + \" GB\");\r\n } else {\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" MB, Resource sheet value: \" + resValue + \" GB\");\r\n }\r\n results.add(comparison);\r\n }\r\n }\r\n\r\n return results;\r\n }", "@Test\n\tpublic void test_equals2() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"NotSherlock\",\"BBC\");\n\tassertFalse(t1.equals(t2));\n }", "@Test\n public void testEquals_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n Object obj = null;\n\n boolean result = fixture.equals(obj);\n\n assertEquals(false, result);\n }", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void test085() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \">}\\\"_\", \">}\\\"_\");\n String[] stringArray0 = new String[6];\n Checkbox checkbox1 = (Checkbox)checkbox0.attributes(stringArray0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertFalse(checkbox1._isGeneratedId());\n }", "private void actionChangedEstimatorON ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(true);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\r\n\t\t//---- Switch on if manual mode on\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t\t}\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(true);\r\n\t}" ]
[ "0.55895096", "0.5516496", "0.5320261", "0.5150665", "0.51352483", "0.50854063", "0.49744827", "0.49578854", "0.4924581", "0.4911273", "0.48977345", "0.48942974", "0.48768592", "0.48747683", "0.4845888", "0.4797395", "0.47509298", "0.47266367", "0.47201437", "0.47063646", "0.47010046", "0.46799025", "0.4674722", "0.46566352", "0.46402475", "0.46302602", "0.46302179", "0.46298844", "0.46272436", "0.4624906", "0.46154293", "0.46092573", "0.46051246", "0.46027538", "0.45994437", "0.4595313", "0.45842835", "0.4579945", "0.45783043", "0.45737505", "0.45717278", "0.45669833", "0.45607507", "0.4552555", "0.45481017", "0.454297", "0.45425004", "0.45369202", "0.45313415", "0.45243207", "0.4518468", "0.45179078", "0.45176354", "0.45170835", "0.45164523", "0.45113397", "0.4505429", "0.45040324", "0.4494982", "0.44928366", "0.44894096", "0.44874504", "0.44854715", "0.44843847", "0.44838262", "0.44831565", "0.44818592", "0.4471919", "0.4455369", "0.44535205", "0.4446331", "0.44357413", "0.4432577", "0.44323227", "0.44265896", "0.44231296", "0.4422929", "0.44224536", "0.44143182", "0.44101563", "0.44100615", "0.44094643", "0.44084954", "0.44065094", "0.4393535", "0.438683", "0.438412", "0.4383326", "0.43829173", "0.43826455", "0.43745205", "0.4369918", "0.4366049", "0.4361537", "0.43565348", "0.43564698", "0.43533388", "0.43515432", "0.4350691", "0.43459943" ]
0.57480043
0
This method will compare linkProperties for smart connector.
private static List<Fields> smartConnectorLinkPropertyCheck(LinkProperties sourceLinkProperty, LinkProperties targetLinkProperty, boolean isAdded, boolean isDeleted) { List<Fields> fieldsList = new ArrayList<>(); try { BusinessSettings sourceBusinessSettings = sourceLinkProperty.getBusinessSettings(); BusinessSettings targetBusinessSettings = targetLinkProperty.getBusinessSettings(); if (isAdded) { if (!StringUtils.isEmpty(targetBusinessSettings.getInputBeType())) fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.BUSINESS_SETTINGS, BPConstant.INPUTBETYPE, BPConstant.EMPTY_STRING, targetBusinessSettings.getInputBeType())); if (!StringUtils.isEmpty(targetBusinessSettings.getOutputBeType())) fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.BUSINESS_SETTINGS, BPConstant.OUTPUTBETYPE, BPConstant.EMPTY_STRING, targetBusinessSettings.getOutputBeType())); BPDesignerServiceImpl.operatorPropertiesComparision(sourceLinkProperty.getProperties(), targetLinkProperty.getProperties(), fieldsList, true, false); BPDesignerServiceImpl.operatorCommentsCheck(sourceLinkProperty.getComments(), targetLinkProperty.getComments(), fieldsList, true, false); } else if (isDeleted) { if (!StringUtils.isEmpty(sourceBusinessSettings.getInputBeType())) fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.BUSINESS_SETTINGS, BPConstant.INPUTBETYPE, sourceBusinessSettings.getInputBeType(), BPConstant.EMPTY_STRING)); if (!StringUtils.isEmpty(sourceBusinessSettings.getOutputBeType())) fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.BUSINESS_SETTINGS, BPConstant.OUTPUTBETYPE, sourceBusinessSettings.getOutputBeType(), BPConstant.EMPTY_STRING)); BPDesignerServiceImpl.operatorPropertiesComparision(sourceLinkProperty.getProperties(), targetLinkProperty.getProperties(), fieldsList, false, true); BPDesignerServiceImpl.operatorCommentsCheck(sourceLinkProperty.getComments(), targetLinkProperty.getComments(), fieldsList, false, true); } else { if (!StringUtils.equalsIgnoreCase(sourceBusinessSettings.getInputBeType(), targetBusinessSettings.getInputBeType())) { fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.BUSINESS_SETTINGS, BPConstant.INPUTBETYPE, sourceBusinessSettings.getInputBeType(), targetBusinessSettings.getInputBeType())); } if (!StringUtils.equalsIgnoreCase(sourceBusinessSettings.getOutputBeType(), targetBusinessSettings.getOutputBeType())) { fieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.BUSINESS_SETTINGS, BPConstant.OUTPUTBETYPE, sourceBusinessSettings.getOutputBeType(), targetBusinessSettings.getOutputBeType())); } BPDesignerServiceImpl.operatorPropertiesComparision(sourceLinkProperty.getProperties(), targetLinkProperty.getProperties(), fieldsList, false, false); BPDesignerServiceImpl.operatorCommentsCheck(sourceLinkProperty.getComments(), targetLinkProperty.getComments(), fieldsList, false, false); } return fieldsList; } catch (Exception exception) { LOGGER.error("Smart connector link property error"+exception); throw new BPException(exception.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean compareProperties (Properties props1 , Properties props2){\n boolean propertiesAreEqual = true;\n Properties props2Clone = (Properties)props2.clone();\n Iterator<Object> itProps1Name = props1.keySet().iterator();\n while (propertiesAreEqual && itProps1Name.hasNext()){\n String propertyName = (String)itProps1Name.next();\n if (props2Clone.containsKey(propertyName)){\n propertiesAreEqual = props1.getProperty(propertyName).trim()\n .equals(props2Clone.getProperty(propertyName).trim());\n // Remove checked property from props2Clone properties\n props2Clone.remove(propertyName);\n }\n else{\n propertiesAreEqual = false;\n }\n }\n // If there are left properties in CSS file then files are not equal\n if (props2Clone.size() > 0){\n propertiesAreEqual = false;\n }\n \n return propertiesAreEqual;\n \n }", "public boolean connect( Properties props ) {\n\n //get the subset for the properties\n Properties subset = CommonProperties.matchingSubset( props, PROPERTY_PREFIX, false );\n mLogger.log( \"MRC Properties are \" + subset , LogManager.DEBUG_MESSAGE_LEVEL );\n\n //container for properties for each of the different catalogs\n Map propertiesMap = new HashMap();\n\n //put each of the keys in the correct bin\n for( Iterator it = subset.entrySet().iterator(); it.hasNext(); ){\n Map.Entry entry = ( Map.Entry )it.next();\n String key = ( String ) entry.getKey();\n String value = ( String ) entry.getValue();\n String name = getName( key ); //bin stores the user defined name specified\n //now determine the key\n key = getKey( key, name );\n\n //store the key, value in the correct properties object\n Properties p;\n if( propertiesMap.containsKey( name ) ){\n p = ( Properties )propertiesMap.get( name );\n }\n else{\n p = new Properties( );\n propertiesMap.put( name, p );\n }\n p.setProperty( key, value );\n }\n\n //now that we have all the properties sorted accd to individual catalogs\n //try connecting to them one by one\n boolean result = true;\n for( Iterator it = propertiesMap.entrySet().iterator(); it.hasNext() ; ){\n Map.Entry entry = ( Map.Entry )it.next();\n result &= connect( (String)entry.getKey(), ( Properties )entry.getValue() );\n\n //if unable to connect to any single\n //break out and exit\n if( !result ){\n mLogger.log( \"MRC unable to connect to replica catalog backend \" + entry.getKey() + \" with connection properties \" + entry.getValue() , \n LogManager.ERROR_MESSAGE_LEVEL );\n break;\n }\n mLogger.log( \"MRC Successfully connect to replica catalog backend \" + entry.getKey() + \" with connection properties \" + entry.getValue() , \n LogManager.DEBUG_MESSAGE_LEVEL );\n }\n\n //if the result is false, then disconnect from\n //already connected replica catalogs\n if( !result ){\n close();\n }\n\n return result;\n }", "boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }", "private void verifyLinks(String[][] linkSelfO1O2IDs) {\n // fill expectedLinkIDs\n List expectedLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n for (int linkIdx = 0; linkIdx < linkSelfO1O2IDs.length; linkIdx++) {\n String[] linkIDs = linkSelfO1O2IDs[linkIdx];\n String linkID = linkIDs[0];\n String o1ID = linkIDs[1];\n String o2ID = linkIDs[2];\n expectedLinkIDs.add(linkID + o1ID + o2ID);\n }\n\n // fill actualLinkIDs\n List actualLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n NST linkNST = DB.getLinkNST();\n ResultSet resultSet = linkNST.selectRows(); // \"o1_id\", \"o2_id\"\n while (resultSet.next()) {\n int linkID = resultSet.getOID(1);\n int o1ID = resultSet.getOID(2);\n int o2ID = resultSet.getOID(3);\n actualLinkIDs.add(linkID + \"\" + o1ID + \"\" + o2ID);\n }\n\n // compare\n assertEquals(expectedLinkIDs.size(), actualLinkIDs.size());\n assertTrue(expectedLinkIDs.containsAll(actualLinkIDs));\n }", "@Test\n\tpublic void testGetLinksOtherProperties() {\n\t\tList<String> results = helper.getLinks(\"drop tables; <A target=\\\"self\\\" href=\\\"test.com\\\"> junk junk\",\n\t\t\t\t\"http://www.bobbylough.com\");\n\t\tassertEquals(1, results.size());\n\t\tassertEquals(\"test.com\", results.get(0));\n\t}", "private boolean linkMappingCoreSeparate( VirtualLink vLink, SubstrateSwitch edgeSwitch1,\n\t\t\tSubstrateSwitch edgeSwitch2, Topology topo) {\n\t\tMap<SubstrateSwitch, LinkedList<SubstrateSwitch>> listAggConnectEdge = topo.getListAggConnectEdge();\n\t\tMap<SubstrateSwitch, LinkedList<SubstrateSwitch>> listCoreConnectAggMap = topo.getListCoreConnectAgg();\t\n\t\tLinkedList<LinkPhyEdge> listPhyEdge = topo.getListLinkPhyEdge();\n\t\tLinkedList<SubstrateLink> listLinkBandwidth = topo.getLinkBandwidth();\n\t\tLinkedList<SubstrateSwitch> listAggSort1 = new LinkedList<>();\n\t\tLinkedList<SubstrateSwitch> listAggSort2 = new LinkedList<>();\n\t\tLinkedList<SubstrateSwitch> listCoreSort1 = new LinkedList<>();\n\t\tLinkedList<SubstrateSwitch> listCoreSort2 = new LinkedList<>();\n\t\t\n\t\tService sService = vLink.getsService();\n\t\tService dService = vLink.getdService();\n\t\t\n\t\tdouble bandwidthDemand = vLink.getBandwidthRequest();\n\t\tint count = 0;\n\t\t\n\t\tSubstrateSwitch edge1 = null, edge2 = null;\n\t\tSubstrateSwitch agg1 = null, agg2 = null;\n\t\tSubstrateSwitch core = null;\n\t\t\n\t\tLinkPhyEdge linkEdge1 = null, linkEdge2 = null;\n\t\t\n\t\tSubstrateLink linkAggEdge1a = null, linkAggEdge1b = null;\n\t\tSubstrateLink linkAggEdge2a = null, linkAggEdge2b = null;\n\t\tSubstrateLink linkCoreAgg1a = null, linkCoreAgg1b = null;\n\t\tSubstrateLink linkCoreAgg2a = null, linkCoreAgg2b = null;\n\t\t//===get edge switch connect to server=====================================//\n\t\tfor (LinkPhyEdge linkPhyEdge: listPhyEdge) { \n\t\t\t\n\t\t\tif(linkPhyEdge.getPhysicalServer().equals(sService.getBelongToServer())){\n\t\t\t\tedge1 = linkPhyEdge.getEdgeSwitch();\n\t\t\t\tif(linkPhyEdge.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\treturn false;\n\t\t\t\t}else {\n\t\t\t\t\tlinkEdge1 = linkPhyEdge;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(linkPhyEdge.getPhysicalServer().equals(dService.getBelongToServer())) {\n\t\t\t\tedge2 = linkPhyEdge.getEdgeSwitch();\n\t\t\t\tif(linkPhyEdge.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\treturn false;\n\t\t\t\t}else {\n\t\t\t\t\tlinkEdge2 = linkPhyEdge;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlistAggSort1 = sortListSwitch(listAggConnectEdge.get(edge1));\n\t\tlistAggSort2 = sortListSwitch(listAggConnectEdge.get(edge2));\n\t\n\t\t//=== find link connect Agg to Edge ======================================//\n\t\tAGG_EDGE_LOOP1:\n\t\tfor(int index = 0; index < listAggSort1.size(); index++) {\n\t\t\tagg1 = listAggSort1.get(index);\n\t\t\tfor (SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch() == edge1 && link.getEndSwitch() == agg1) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge1a = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(link.getStartSwitch() == agg1 && link.getEndSwitch() == edge1) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge1b = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == 2) break AGG_EDGE_LOOP1;\n\t\t\t}\t\n\t\t} // end for loop 1\n\t\tcount = 0;\n\t\tAGG_EDGE_LOOP2:\n\t\tfor(int index = 0; index < listAggSort2.size(); index++) {\n\t\t\tagg2 = listAggSort2.get(index);\n\t\t\tfor (SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch() == edge2 && link.getEndSwitch() == agg2) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge2a = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == agg2 && link.getEndSwitch() == edge2) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge2b = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == 2) break AGG_EDGE_LOOP2;\n\t\t\t}\t\n\t\t} // end for loop 2\n\t\t//=== find link connect Agg to Core ======================================//\n\t\tlistCoreSort1 = sortListSwitch(listCoreConnectAggMap.get(agg1));\n\t\tlistCoreSort2 = sortListSwitch(listCoreConnectAggMap.get(agg2));\n\t\t\n\t\tif(!listCoreSort1.equals(listCoreSort2)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int index = 0; index < listCoreSort1.size(); index++) {\n\t\t\tcore = listCoreSort1.get(index);\n\t\t\tfor (SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch() == agg1 && link.getEndSwitch() == core) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg1a = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == core && link.getEndSwitch() == agg1) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg1b = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == agg2 && link.getEndSwitch() == core) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg2a = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == core && link.getEndSwitch() == agg2) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg2b = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//===set up bandwidth for all found links above ========//\n\t\tlinkEdge1.setBandwidth(linkEdge1.getBandwidth() - bandwidthDemand);\n\t\tlinkEdge1.getEdgeSwitch().setPort(linkEdge1.getEdgeSwitch(), bandwidthDemand);\n\t\tlinkEdge2.setBandwidth(linkEdge2.getBandwidth() - bandwidthDemand);\n\t\tlinkEdge2.getEdgeSwitch().setPort(linkEdge2.getEdgeSwitch(), bandwidthDemand);\n\t\tvLink.getLinkPhyEdge().add(linkEdge1);\n\t\tvLink.getLinkPhyEdge().add(linkEdge2);\n\t\tlinkAggEdge1a.setBandwidth(linkAggEdge1a.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge1a.getStartSwitch().setPort(linkAggEdge1a.getEndSwitch(), bandwidthDemand);\n\t\tlinkAggEdge1b.setBandwidth(linkAggEdge1b.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge1b.getStartSwitch().setPort(linkAggEdge1b.getEndSwitch(), bandwidthDemand);\n\t\tlinkAggEdge2a.setBandwidth(linkAggEdge2a.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge2a.getStartSwitch().setPort(linkAggEdge2a.getEndSwitch(), bandwidthDemand);\n\t\tlinkAggEdge2b.setBandwidth(linkAggEdge2b.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge2b.getStartSwitch().setPort(linkAggEdge2b.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg1a.setBandwidth(linkCoreAgg1a.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg1a.getStartSwitch().setPort(linkCoreAgg1a.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg1b.setBandwidth(linkCoreAgg1b.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg1b.getStartSwitch().setPort(linkCoreAgg1b.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg2a.setBandwidth(linkCoreAgg2a.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg2a.getStartSwitch().setPort(linkCoreAgg2a.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg2b.setBandwidth(linkCoreAgg2b.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg2b.getStartSwitch().setPort(linkCoreAgg2b.getEndSwitch(), bandwidthDemand);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge1a);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge1b);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge2a);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge2b);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg1a);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg1b);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg2a);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg2b);\n\t\treturn true;\n\t}", "private void validateOutboundProvisioningConnectorProperties(IdentityProvider newIdentityProvider)\n throws IdentityProviderManagementException {\n\n ProvisioningConnectorConfig[] provisioningConnectorConfigs =\n newIdentityProvider.getProvisioningConnectorConfigs();\n if (!ArrayUtils.isEmpty(provisioningConnectorConfigs)) {\n for (ProvisioningConnectorConfig connectorConfig : provisioningConnectorConfigs) {\n Property[] properties = connectorConfig.getProvisioningProperties();\n\n // If no properties have specified, validation needs to stop.\n if (ArrayUtils.isEmpty(properties) || properties.length < 2) {\n break;\n }\n Set<Property> connectorProperties = new HashSet<>();\n for (Property property : properties) {\n if (!connectorProperties.add(property)) {\n throw IdPManagementUtil.handleClientException(\n IdPManagementConstants.ErrorMessage.DUPLICATE_OUTBOUND_CONNECTOR_PROPERTIES,\n newIdentityProvider.getIdentityProviderName());\n }\n }\n }\n }\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (obj instanceof Link) {\r\n\t\t\tLink other = (Link) obj;\r\n\t\t\treturn extendedId.equals(other.getExtendedId());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean isFunctionalLinkProperty();", "public int CompareTwoLinkedLists(MyLinkList l1, MyLinkList l2) {\n Node curr = l1.head;\n Node curr2 = l2.head;\n while (curr != null) {\n if ((curr.next != null && curr2.next == null) || (curr.next == null && curr2.next != null)) {\n return 0;\n }\n if (curr.data != curr2.data) {\n return 0;\n }\n System.out.printf(\"Data : \" + curr.data + \"--\" + curr2.data + \"\\n\");\n curr = curr.next;\n curr2 = curr2.next;\n }\n return 1;\n }", "private boolean linkMappingAggSeparate(VirtualLink vLink, SubstrateSwitch edgeSwitch1, SubstrateSwitch edgeSwitch2, \n\t\t\tLinkedList<SubstrateSwitch> listAggConnectStartEdge, Topology topo) {\n\t\tboolean success = false;\n\t\tboolean checkAgg = false;\n\t\tboolean checkEdge = false;\n\t\tdouble bandwidth = vLink.getBandwidthRequest();\n\t\t\n\t\tLinkedList<LinkPhyEdge> listPhyEdge = topo.getListLinkPhyEdge();\n\t\tLinkedList<SubstrateLink> listLinkBandwidth = topo.getLinkBandwidth();\n\t\t\n\t\tPhysicalServer phy1 = vLink.getsService().getBelongToServer();\n\t\tPhysicalServer phy2 = vLink.getdService().getBelongToServer();\n\t\t\n\t\tSubstrateLink linkAggEdge01 = new SubstrateLink();\n\t\tSubstrateLink linkAggEdge10 = new SubstrateLink();\n\t\tSubstrateLink linkAggEdge02 = new SubstrateLink();\n\t\tSubstrateLink linkAggEdge20 = new SubstrateLink();\n\t\t\n\t\tLinkPhyEdge linkPhyEdge1 = new LinkPhyEdge();\n\t\tLinkPhyEdge linkPhyEdge2 = new LinkPhyEdge();\n\t\t\n\t\tSubstrateSwitch aggSW = new SubstrateSwitch();\n\t\t\n\t\t\n\t\tfor(SubstrateSwitch sw : listAggConnectStartEdge) {\n\t\t\tint count = 0;\n\t\t\tfor(SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch().equals(sw) && link.getEndSwitch().equals(edgeSwitch1) && link.getBandwidth() >= bandwidth) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tlinkAggEdge01 = link;\n\t\t\t\t} else if(link.getStartSwitch().equals(edgeSwitch1) && link.getEndSwitch().equals(sw) && link.getBandwidth() >= bandwidth) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tlinkAggEdge10 = link;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(link.getStartSwitch().equals(sw) && link.getEndSwitch().equals(edgeSwitch2) && link.getBandwidth() >= bandwidth) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tlinkAggEdge02 = link;\n\t\t\t\t} else if(link.getStartSwitch().equals(edgeSwitch2) && link.getEndSwitch().equals(sw) && link.getBandwidth() >= bandwidth) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tlinkAggEdge20 = link;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(count == 4) {\n\t\t\t\t\taggSW = sw;\n\t\t\t\t\tcheckAgg = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor(LinkPhyEdge link : listPhyEdge) {\n\t\t\tif(link.getEdgeSwitch().equals(edgeSwitch1) && link.getPhysicalServer().equals(phy1) && link.getBandwidth() >= bandwidth) {\n\t\t\t\tlinkPhyEdge1 = link;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(link.getEdgeSwitch().equals(edgeSwitch2) && link.getPhysicalServer().equals(phy2) && link.getBandwidth() >= bandwidth) {\n\t\t\t\tlinkPhyEdge2 = link;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 2) {\n\t\t\t\tcheckEdge = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(checkAgg == true && checkEdge == true) {\n\t\t\t\n\t\t\tsuccess = true;\n\t\t\t\n\t\t\tLinkedList<SubstrateSwitch> listSWUsed = topo.getListSwitchUsed();\n\t\t\tboolean checkContain = false;\n\t\t\tfor(SubstrateSwitch sw : listSWUsed) {\n\t\t\t\tif(sw.getNameSubstrateSwitch().equals(aggSW.getNameSubstrateSwitch())) {\n\t\t\t\t\tcheckContain = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(checkContain == false) {\n\t\t\t\tlistSWUsed.add(aggSW);\n\t\t\t\ttopo.setListSwitchUsed(listSWUsed);\n\t\t\t}\n\t\t\t\n\t\t\tlinkAggEdge01.setBandwidth(linkAggEdge01.getBandwidth() - bandwidth);\n\t\t\tlinkAggEdge01.getStartSwitch().setPort(linkAggEdge01.getEndSwitch(), bandwidth);\n\t\t\tlinkAggEdge10.setBandwidth(linkAggEdge10.getBandwidth() - bandwidth);\n\t\t\tlinkAggEdge10.getStartSwitch().setPort(linkAggEdge10.getEndSwitch(), bandwidth);\n\t\t\tlinkAggEdge02.setBandwidth(linkAggEdge02.getBandwidth() - bandwidth);\n\t\t\tlinkAggEdge02.getStartSwitch().setPort(linkAggEdge02.getEndSwitch(), bandwidth);\n\t\t\tlinkAggEdge20.setBandwidth(linkAggEdge20.getBandwidth() - bandwidth);\n\t\t\tlinkAggEdge20.getStartSwitch().setPort(linkAggEdge20.getEndSwitch(), bandwidth);\n\t\t\tvLink.getLinkSubstrate().add(linkAggEdge01);\n\t\t\tvLink.getLinkSubstrate().add(linkAggEdge10);\n\t\t\tvLink.getLinkSubstrate().add(linkAggEdge02);\n\t\t\tvLink.getLinkSubstrate().add(linkAggEdge20);\n\t\t\t\n\t\t\tlinkPhyEdge1.setBandwidth(linkPhyEdge1.getBandwidth() - bandwidth);\n\t\t\tlinkPhyEdge1.getEdgeSwitch().setPort(linkPhyEdge1.getEdgeSwitch(), bandwidth);\n\t\t\tlinkPhyEdge2.setBandwidth(linkPhyEdge2.getBandwidth() - bandwidth);\n\t\t\tlinkPhyEdge2.getEdgeSwitch().setPort(linkPhyEdge2.getEdgeSwitch(), bandwidth);\t\t\t\n\t\t\tvLink.getLinkPhyEdge().add(linkPhyEdge1);\n\t\t\tvLink.getLinkPhyEdge().add(linkPhyEdge2);\n\t\t\t\n\t\t} else {\n\t\t\tsuccess = false;\n\t\t}\n\t\t\n\t\treturn success;\n\t}", "@Override\n public boolean connected(Station station1, Station station2) {\n if (station1.id() >= links.length || station2.id() >= links.length) {\n return station1.id() == station2.id();\n }\n return links[station1.id()] == links[station2.id()];\n }", "@Override\n public boolean equivalent(ExampleProtocolConfiguration latest, ExampleProtocolConfiguration previous) {\n return latest.getStubData().equals(previous.getStubData());\n }", "@Override\n public void linkStatusChanged(String connectorId, boolean connected) {\n }", "private boolean isConfPropEqual(String prop, Configuration conf1,\n Configuration conf2) {\n if( (conf1 == null || conf2 == null) && (conf1 != conf2) ){\n return false;\n }\n String str1 = conf1.get(prop);\n String str2 = conf2.get(prop);\n if( (str1 == null || str2 == null) && (str1 != str2) ){\n return false;\n }\n return str1.equals(str2);\n }", "@org.testng.annotations.Test\n public void test_equals_Symmetric()\n throws Exception {\n CategorieClient categorieClient = new CategorieClient(\"denis\", 1000, 10.2, 1.1, 1.2, false);\n Client x = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Client y = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Assert.assertTrue(x.equals(y) && y.equals(x));\n Assert.assertTrue(x.hashCode() == y.hashCode());\n }", "@Override\n public boolean isStrongFormSynonymous(String link1, String link2){\n if(link1 == null || link2 == null) {\n return false;\n }\n\n Set<String> synonyms1 = new HashSet<>();\n Set<String> synonyms2 = new HashSet<>();\n\n synonyms1.addAll(linker.getUris(link1));\n synonyms2.addAll(linker.getUris(link2));\n\n // remove empty strings to avoid false positives\n synonyms1.remove(\"\");\n synonyms2.remove(\"\");\n\n for(String s : linker.getUris(link2)){\n if(synonyms1.contains(s)) return true;\n }\n for(String s : linker.getUris(link1)){\n if(synonyms2.contains(s)) return true;\n }\n\n return false;\n }", "@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tboolean equals = key1.equals(key2);\n\t\tSystem.out.println();\n\t\tAssert.assertTrue(equals);\n\t}", "@Test\r\n public void testObjectPropertyWithEqualOrSameList() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ObjectProperty<ObservableList<String>> otherPropertySameList = new SimpleObjectProperty<>(list);\r\n assertFalse(\"sanity: two properties with same list are not equal\", \r\n property.equals(otherPropertySameList));\r\n ObjectProperty<ObservableList<String>> otherPropertyEqualList =\r\n new SimpleObjectProperty(createObservableList(true));\r\n assertFalse(\"sanity: two properties with equal list are not equal\", \r\n property.equals(otherPropertyEqualList));\r\n }", "@Test\n\tpublic void hashCodeSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tAssert.assertEquals(key1.hashCode(), key2.hashCode());\n\t}", "@Test\n public void resolveSslProperties() throws Exception {\n properties.setProperty(ConfigurationProperties.SSL_KEYSTORE, \"keystore\");\n properties = connectCommand.resolveSslProperties(gfsh, false, null, null);\n assertThat(properties).hasSize(9);\n properties.clear();\n properties.setProperty(ConfigurationProperties.SSL_KEYSTORE, \"keystore\");\n properties = connectCommand.resolveSslProperties(gfsh, false, null, null, \"keystore2\", \"password\");\n assertThat(properties).hasSize(9);\n assertThat(properties.getProperty(ConfigurationProperties.SSL_KEYSTORE)).isEqualTo(\"keystore2\");\n assertThat(properties.getProperty(ConfigurationProperties.SSL_KEYSTORE_PASSWORD)).isEqualTo(\"password\");\n }", "private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isEquivalentTo(ComparableSubject subject) {\n\t\t\tboolean result = false;\n\n\t\t\tif (subject != null) {\n\n\t\t\t\tint countPropertiesS2inThis = 0; // Counts how many of the properties in subject are in this and have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the same value in both resources\n\n\t\t\t\t// For each property in subject, check if it is contained in this and if it has\n\t\t\t\t// the same value here\n\t\t\t\tfor (Entry<String, String> curProperty : subject.mapProperties.entrySet()) {\n\t\t\t\t\tString curEquivProperty = this.mapProperties.get(curProperty.getKey());\n\n\t\t\t\t\t// Compare the properties values using their string representation\n\t\t\t\t\tif (curEquivProperty != null && curEquivProperty.equals(curProperty.getValue())) {\n\t\t\t\t\t\tcountPropertiesS2inThis++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Consider both resources equivalent if they have the same number of properties\n\t\t\t\t// and all properties in r2\n\t\t\t\t// exist in r1 and have the same value in both resources\n\t\t\t\tif ((countPropertiesS2inThis == subject.mapProperties.size())\n\t\t\t\t\t\t&& (this.mapProperties.size() == countPropertiesS2inThis)) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}", "public static List<ReviewReportResponse> smartConnectorComparision(List<Connection> sourceConnections,\r\n\t\t\tList<Connection> targetConnections) {\r\n\t\tList<ReviewReportResponse> operatorList = new ArrayList<>();\r\n\t\tList<Fields> fieldsList = new ArrayList<>();\r\n\t\ttry {\r\n\t\t\tArrayList<Connection> deletedSmartConnector = new ArrayList<>();\r\n\t\t\tboolean isConnectionDeleted;\r\n\t\t\tboolean isConnectionAdded;\r\n\t\t\tfor (Connection sourceConnection : sourceConnections) {\r\n\t\t\t\tisConnectionDeleted = true;\r\n\t\t\t\tif (StringUtils.equalsIgnoreCase(sourceConnection.getUiAttributes().getType(), BPConstant.SMART)) {\r\n\t\t\t\t\tfor (Connection targetConnection : targetConnections) {\r\n\t\t\t\t\t\tif (StringUtils.equalsIgnoreCase(sourceConnection.getUiAttributes().getKey(),\r\n\t\t\t\t\t\t\t\ttargetConnection.getUiAttributes().getKey())) {\r\n\t\t\t\t\t\t\tisConnectionDeleted = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isConnectionDeleted) {\r\n\t\t\t\t\t\tdeletedSmartConnector.add(sourceConnection);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!deletedSmartConnector.isEmpty()) {\r\n\t\t\t\tfor (Connection sourceConnection : deletedSmartConnector) {\r\n\t\t\t\t\tfieldsList = smartConnectorLinkPropertyCheck(sourceConnection.getLinkProperties(),\r\n\t\t\t\t\t\t\tnew LinkProperties(), false, true);\r\n\t\t\t\t\tsmartConnectorAttributeCheck(sourceConnection.getUiAttributes(), new UIAttributes(), false, true,\r\n\t\t\t\t\t\t\tfieldsList);\r\n\t\t\t\t\tif (!fieldsList.isEmpty()) {\r\n\t\t\t\t\t\tReviewReportResponse operators = new ReviewReportResponse();\r\n\t\t\t\t\t\toperators.setKey(sourceConnection.getUiAttributes().getKey());\r\n\t\t\t\t\t\toperators.setName(BPConstant.CONNECTIONS);\r\n\t\t\t\t\t\toperators.setType(sourceConnection.getUiAttributes().getType());\r\n\t\t\t\t\t\toperators.setStatus(BPConstant.DELETED);\r\n\t\t\t\t\t\toperators.setFields(fieldsList);\r\n\t\t\t\t\t\toperatorList.add(operators);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (Connection targetConnection : targetConnections) {\r\n\t\t\t\tif (StringUtils.equalsIgnoreCase(targetConnection.getUiAttributes().getType(), BPConstant.SMART)) {\r\n\t\t\t\t\tisConnectionAdded = true;\r\n\t\t\t\t\tfor (Connection sourceConnection : sourceConnections) {\r\n\t\t\t\t\t\tif (StringUtils.equalsIgnoreCase(sourceConnection.getUiAttributes().getType(),\r\n\t\t\t\t\t\t\t\tBPConstant.SMART)) {\r\n\t\t\t\t\t\t\tif (StringUtils.equalsIgnoreCase(targetConnection.getUiAttributes().getKey(),\r\n\t\t\t\t\t\t\t\t\tsourceConnection.getUiAttributes().getKey())) {\r\n\t\t\t\t\t\t\t\tisConnectionAdded = false;\r\n\t\t\t\t\t\t\t\tfieldsList = smartConnectorLinkPropertyCheck(sourceConnection.getLinkProperties(),\r\n\t\t\t\t\t\t\t\t\t\ttargetConnection.getLinkProperties(), false, false);\r\n\t\t\t\t\t\t\t\tsmartConnectorAttributeCheck(sourceConnection.getUiAttributes(),\r\n\t\t\t\t\t\t\t\t\t\ttargetConnection.getUiAttributes(), false, false, fieldsList);\r\n\t\t\t\t\t\t\t\tif (!fieldsList.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tReviewReportResponse operators = new ReviewReportResponse();\r\n\t\t\t\t\t\t\t\t\toperators.setKey(targetConnection.getUiAttributes().getKey());\r\n\t\t\t\t\t\t\t\t\toperators.setName(BPConstant.CONNECTIONS);\r\n\t\t\t\t\t\t\t\t\toperators.setType(targetConnection.getUiAttributes().getType());\r\n\t\t\t\t\t\t\t\t\toperators.setStatus(BPConstant.MODIFIED);\r\n\t\t\t\t\t\t\t\t\toperators.setFields(fieldsList);\r\n\t\t\t\t\t\t\t\t\toperatorList.add(operators);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isConnectionAdded) {\r\n\t\t\t\t\t\tfieldsList = smartConnectorLinkPropertyCheck(new LinkProperties(),\r\n\t\t\t\t\t\t\t\ttargetConnection.getLinkProperties(), true, false);\r\n\t\t\t\t\t\tsmartConnectorAttributeCheck(new UIAttributes(), targetConnection.getUiAttributes(), true,\r\n\t\t\t\t\t\t\t\tfalse, fieldsList);\r\n\t\t\t\t\t\tif (!fieldsList.isEmpty()) {\r\n\t\t\t\t\t\t\tReviewReportResponse operators = new ReviewReportResponse();\r\n\t\t\t\t\t\t\toperators.setKey(targetConnection.getUiAttributes().getKey());\r\n\t\t\t\t\t\t\toperators.setName(BPConstant.CONNECTIONS);\r\n\t\t\t\t\t\t\toperators.setType(targetConnection.getUiAttributes().getType());\r\n\t\t\t\t\t\t\toperators.setStatus(BPConstant.ADDED);\r\n\t\t\t\t\t\t\toperators.setFields(fieldsList);\r\n\t\t\t\t\t\t\toperatorList.add(operators);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn operatorList;\r\n\t\t} catch (Exception exception) {\r\n\t\t\tLOGGER.error(\"Error occurred in smart connector\"+exception);\r\n\t\t\tthrow new BPException(exception.getMessage());\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean isSymmetricLink(Entity source, Entity target)\r\n\t{\r\n\t\treturn (directedGraph.findEdge(source, target) != null)\r\n\t\t\t\t&& (directedGraph.findEdge(target, source) != null);\r\n\t}", "private void normalizeLogicalLink(Collection<OfpConDeviceInfo> nodes, Collection<LogicalLink> links) {\n\t\tfinal String fname = \"normalizeLogicalLink\";\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(String.format(\"%s(nodes=%s, links=%s) - start\", fname, nodes, links));\n\t\t}\n\n\t\tList<LogicalLink> removalLinks = new ArrayList<LogicalLink>();\n\t\tfor (LogicalLink link : links) {\n\t\t\tList<PortData> ports = link.getLink();\n\t\t\tif (!OFPMUtils.nodesContainsPort(nodes, ports.get(0).getDeviceName(), null)) {\n\t\t\t\tremovalLinks.add(link);\n\t\t\t} else if (!OFPMUtils.nodesContainsPort(nodes, ports.get(1).getDeviceName(), null)) {\n\t\t\t\tremovalLinks.add(link);\n\t\t\t}\n\t\t}\n\t\tlinks.removeAll(removalLinks);\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(String.format(\"%s() - end\", fname));\n\t\t}\n\t}", "public boolean connect(Properties props) {\n boolean con = false;\n Object obj = props.remove(URL_KEY);\n mRLIURL = (obj == null) ? null : (String) obj;\n\n if (mRLIURL == null) {\n //nothing to connect to.\n mLogger.log(\"The RLI url is not specified\",\n LogManager.ERROR_MESSAGE_LEVEL);\n return con;\n }\n\n //try to see if a proxy cert has been specified or not\n String proxy = props.getProperty(PROXY_KEY);\n mConnectProps = props;//??\n \n mLogger.log( \"[RLI-RC] Connection properties passed are \" + props,\n LogManager.DEBUG_MESSAGE_LEVEL );\n\n mLRCIgnoreList = this.getRLSLRCIgnoreURLs( props );\n mLRCRestrictList = this.getRLSLRCRestrictURLs( props );\n\n\n //determine timeout\n mTimeout = getTimeout(props);\n\n //set the batch size for queries\n setBatchSize(props);\n\n return connect(mRLIURL, proxy);\n }", "private static boolean initializeDestination(DimLink link, DDProperties properties)\n \t{\n \t\tif (link.hasDestination())\n \t\t{\n \t\t\treturn true;\n \t\t}\n \n \t\t//Check the destination type and respond accordingly\n \t\t//FIXME: Add missing link types.\n \t\t//FIXME: Add code for restoring the destination-side door.\n \t\tswitch (link.linkType())\n \t\t{\n \t\t\tcase LinkTypes.DUNGEON:\n \t\t\t\treturn PocketBuilder.generateNewDungeonPocket(link, properties);\n \t\t\tcase LinkTypes.POCKET:\n \t\t\t\treturn PocketBuilder.generateNewPocket(link, properties);\n \t\t\tcase LinkTypes.NORMAL:\n \t\t\t\treturn true;\n \t\t\tdefault:\n \t\t\t\tthrow new IllegalArgumentException(\"link has an unrecognized link type.\");\n \t\t}\n \t}", "public static boolean equals(JSLProperties jslprops1, JSLProperties jslprops2) {\r\n\t\t//TODO: test cases\r\n\t\tif(jslprops1 == null && jslprops2 == null) return true;\r\n\t\tif(jslprops1 == null || jslprops2 == null) return false;\r\n\t\t\r\n\t\tboolean stillEqual = true;\r\n\t\tfor(Property prop1 : jslprops1.getPropertyList()) {\r\n\t\t\tboolean isListenerInOtherList = false;\r\n\t\t\tfor(Property prop2 : jslprops2.getPropertyList()) {\r\n\t\t\t\tif(equals(prop1, prop2))\r\n\t\t\t\t\tisListenerInOtherList = true;\r\n\t\t\t}\r\n\t\t\tstillEqual = stillEqual && isListenerInOtherList;\r\n\t\t}\r\n\t\treturn stillEqual;\r\n\t}", "public boolean isEqual(Card card) {\n\t\treturn imageLink.equals(card.getURL());\n\t}", "public boolean is_equal_to (RelayConfig other) {\n\t\tif (mode_timestamp == other.mode_timestamp\n\t\t\t&& relay_mode == other.relay_mode\n\t\t\t&& configured_primary == other.configured_primary) {\n\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "void updateLinks() {\n\t\tdouble x1, x2, y1, y2;\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tPNode node1 = links.get(i).getNode1();\n\t\t\tPNode node2 = links.get(i).getNode2();\n\t\t\tx1 = node1.getFullBoundsReference().getCenter2D().getX() + node1.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty1 = node1.getFullBoundsReference().getCenter2D().getY() + node1.getParent().getFullBounds().getOrigin().getY();\n\t\t\tx2 = node2.getFullBoundsReference().getCenter2D().getX() + node2.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty2 = node2.getFullBoundsReference().getCenter2D().getY() + node2.getParent().getFullBounds().getOrigin().getY();\n\t\t\t\n\t\t\t/*\n\t\t\tLine2D line = new Line2D.Double(x1,y1,x2,y2);\n\t\t\tlinks.get(i).getPPath().setPathTo(line);\n */\n\t\t\tsetPolyLine(links.get(i).getPPath(), (float)x1, (float)y1, (float)x2, (float)y2);\n\t\t\t}\n\t\t}", "@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings().hashCode(), settings.hashCode());\n }", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "@Test\n public void shouldMapSymmetrically() {\n for (NetworkParameters params: NetworkResolver.getParameters()) {\n final String name = NetworkResolver.getName(params);\n final NetworkResolver.NetworkCode code = NetworkResolver.getCode(params);\n assertEquals(params, NetworkResolver.getParameter(name));\n assertEquals(params, NetworkResolver.getParameter(code));\n }\n }", "private void checkConnection( SquareNode a , SquareNode b ) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSquareEdge edgeA = a.edges[i];\n\t\t\tif( edgeA == null )\n\t\t\t\tcontinue;\n\n\t\t\tSquareNode common = edgeA.destination(a);\n\t\t\tint commonToA = edgeA.destinationSide(a);\n\t\t\tint commonToB = CircularIndex.addOffset(commonToA,1,4);\n\n\t\t\tSquareEdge edgeB = common.edges[commonToB];\n\t\t\tif( edgeB != null && edgeB.destination(common) == b ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfail(\"Failed\");\n\t}", "private boolean linkIsViableWiFiComplex(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link viable debug: no GPS fix.\");\n\t\t\treturn true;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\n\t\t// Too far away (> 70m)\n\t\tif (distance > 70) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link not viable: %.1f meters apart. (>70)\", distance));\n\t\t\treturn false;\n\t\t}\n\n\t\t// Quite close together (< 20 m)\n\t\tif (v1.distanceTo(v2) < 20) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (<20m)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both stationary?\n\t\tif (v1.hasSpeed() && v1.getSpeed() < 2 && v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (low speed)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// One stationary and other moving towards it?\n\t\tif (v1.hasSpeed()\n\t\t\t\t&& v1.getSpeed() < 2\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& ((Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (other approaching)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\t\tif (v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& ((Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (approaching other)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both moving towards each other\n\t\tif (v1.distanceTo(v2) < 35\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& (Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 15)\n\t\t\t\t&& (Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 15)) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (mutual approach)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Moving together?\n\t\tif (v1.distanceTo(v2) < 35\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& v1.hasSpeed()\n\t\t\t\t&& v2.hasSpeed()\n\t\t\t\t&& (Math.abs(v1.getBearing() - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.getBearing() - v2.getBearing()) > 360 - 15)\n\t\t\t\t&& Math.abs(v1.getSpeed() - v2.getSpeed()) < 5) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (moving together)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// log_nodisplay(String.format(\n\t\t// \"Link viable: %.1f meters apart. (moving apart)\", distance));\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link not viable: %.1f meters apart. (moving apart)\", distance));\n\t\treturn false;\n\t}", "@Test\n\tpublic void hashCodeSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tAssert.assertEquals(key.hashCode(), key.hashCode());\n\t}", "@Test(enabled = true)\n public void checkLink() {\n System.out.println(\"We Are Now Testing 20 Test Cases On: \" + driver.getCurrentUrl());\n System.out.println(\"*****************************************************************\");\n\n String expectedLink = \"https://www.expedia.com/\";\n String actualLink = driver.getCurrentUrl();\n\n //Validate Links\n Assert.assertEquals(actualLink, expectedLink, \"Test Failed, Link Does Not Match\");\n\n }", "@Test\n public void equalsSameTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device, device2);\n }", "private String checkDirectLink(final DownloadLink downloadLink, final String property) {\r\n String dllink = downloadLink.getStringProperty(property);\r\n if (dllink != null) {\r\n URLConnectionAdapter con = null;\r\n try {\r\n final Browser br2 = br.cloneBrowser();\r\n br2.setFollowRedirects(true);\r\n con = br2.openHeadConnection(dllink);\r\n if (con.getContentType().contains(\"html\") || con.getLongContentLength() == -1) {\r\n downloadLink.setProperty(property, Property.NULL);\r\n dllink = null;\r\n }\r\n } catch (final Exception e) {\r\n downloadLink.setProperty(property, Property.NULL);\r\n dllink = null;\r\n } finally {\r\n try {\r\n con.disconnect();\r\n } catch (final Throwable e) {\r\n }\r\n }\r\n }\r\n return dllink;\r\n }", "@Test\n\tpublic void equalsSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tboolean equals = key.equals(key);\n\t\tAssert.assertTrue(equals);\n\t}", "List<ProductLink> links();", "@Override\n public boolean hardDiff(FObject o1, FObject o2, FObject diff) {\n if ( this.get(o1) == null ) {\n if ( this.get(o2) == null ) {\n return false;\n } else {\n //shadow copy, since we only use to print out diff entry in journal\n this.set(diff, this.get(o2));\n return true;\n }\n }\n //Both this.get(o1) and thid.get(o2) are not null\n //The propertyInfo is instance of AbstractObjectProperty, so that there is no way to do nested propertyInfo check\n //No matter if there are point to same instance or not, treat them as difference\n //if there are point to different instance, indeed there are different\n //if there are point to same instance, we can not guarantee if there are no difference comparing with record in the journal.\n //shodow copy\n this.set(diff, this.get(o2));\n return true;\n }", "void linkElementsAsPeerDuplicates(String userId,\n String metadataElement1GUID,\n String metadataElement2GUID,\n int statusIdentifier,\n String steward,\n String stewardTypeName,\n String stewardPropertyName,\n String source,\n String notes,\n boolean setKnownDuplicate) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Sanpham)) {\n return false;\n }\n Sanpham that = (Sanpham) other;\n Object myMasp = this.getMasp();\n Object yourMasp = that.getMasp();\n if (myMasp==null ? yourMasp!=null : !myMasp.equals(yourMasp)) {\n return false;\n }\n return true;\n }", "private void addDeclementLogicalLink(Connection conn, LogicalLink link, MultivaluedMap<String, SetFlowToOFC> reducedFlows) throws SQLException {\n\t\tPortData inPort = link.getLink().get(0);\n\n\t\t/* get route */\n\t\tMap<String, Object> logicalLinkMap = dao.getLogicalLinkFromNodeNamePortName(conn, inPort.getDeviceName(), inPort.getPortName());\n\t\tList<Map<String, Object>> routeMapList = dao.getRouteFromLogicalLinkId(conn, (String)logicalLinkMap.get(\"rid\"));\n\n\t\tif (routeMapList == null || routeMapList.isEmpty()) {\n\t\t\tthrow new RuntimeException(String.format(NOT_FOUND, \"route=\" + link));\n\t\t}\n\n\t\tMap<String, Object> txRouteMap = routeMapList.get(0);\n\t\tMap<String, Object> rxRouteMap = routeMapList.get(routeMapList.size() - 1);\n\n\t\t/* calc patch band width */\n\t\tlong bandOverHead = 0L;\n\t\tlong band = 0L;\n\t\t{\n\t\t\tMap<String, Object> txLinkMap = dao.getCableLinkFromInPortRid(conn, (String)txRouteMap.get(\"in_port_id\"));\n\t\t\tMap<String, Object> rxLinkMap = dao.getCableLinkFromInPortRid(conn, (String)rxRouteMap.get(\"out_port_id\"));\n\t\t\tlong txBand = this.getBandWidth(conn, (String)txLinkMap.get(\"inDeviceName\"), (String)txLinkMap.get(\"inPortName\"));\n\t\t\tlong rxBand = this.getBandWidth(conn, (String)rxLinkMap.get(\"inDeviceName\"), (String)rxLinkMap.get(\"inPortName\"));\n\t\t\tlong txOfpBand = this.getBandWidth(conn, (String)txLinkMap.get(\"outDeviceName\"), (String)txLinkMap.get(\"outPortName\"));\n\t\t\tlong rxOfpBand = this.getBandWidth(conn, (String)rxLinkMap.get(\"outDeviceName\"), (String)rxLinkMap.get(\"outPortName\"));\n\t\t\tband = (txBand < rxBand) ? txBand: rxBand;\n\t\t\tband = (band < txOfpBand)? band: txOfpBand;\n\t\t\tband = (band < rxOfpBand)? band: rxOfpBand;\n\t\t\tbandOverHead = this.calcVlanTagOverhead(band);\n\t\t}\n\n\t\t/* update link-used-value and make patch link for ofc */\n\t\tList<String> alreadyProcCable = new ArrayList<String>();\n\t\tfor (Map<String, Object> routeMap : routeMapList) {\n\t\t\tMap<String, Object> OfpsMap = dao.getNodeInfoFromDeviceName(conn, (String) routeMap.get(\"node_name\"));\n\t\t\tlong used = band + bandOverHead;\n\t\t\tString inPortRid = (String)routeMap.get(\"in_port_id\");\n\t\t\tMap<String, Object> inLink = dao.getCableLinkFromInPortRid(conn, inPortRid);\n\t\t\tString inCableRid = (String)inLink.get(\"rid\");\n\n\t\t\tif (!alreadyProcCable.contains(inCableRid) && (OfpsMap.get(\"type\").equals(\"Spine\") || OfpsMap.get(\"type\").equals(\"Leaf\"))) {\n\t\t\t\tlong newUsed = this.calcReduceCableLinkUsed(conn, inLink, used);\n\t\t\t\tdao.updateCableLinkUsedFromPortRid(conn, inPortRid, newUsed);\n\t\t\t\talreadyProcCable.add(inCableRid);\n\t\t\t}\n\n\t\t\tString outPortRid = (String)routeMap.get(\"out_port_id\");\n\t\t\tMap<String, Object> outLink = dao.getCableLinkFromOutPortRid(conn, outPortRid);\n\t\t\tString outCableRid = (String)outLink.get(\"rid\");\n\t\t\tif (!alreadyProcCable.contains(outCableRid) && (OfpsMap.get(\"type\").equals(\"Spine\") || OfpsMap.get(\"type\").equals(\"Leaf\"))) {\n\t\t\t\tlong newUsed = this.calcReduceCableLinkUsed(conn, outLink, used);\n\t\t\t\tdao.updateCableLinkUsedFromPortRid(conn, outPortRid, newUsed);\n\t\t\t\talreadyProcCable.add(outCableRid);\n\t\t\t}\n\t\t}\n\t\tMap<String, Object> txOfpsMap = dao.getNodeInfoFromDeviceName(conn, (String) txRouteMap.get(\"node_name\"));\n\t\tMap<String, Object> txInPortMap = dao.getPortInfoFromPortName(conn, (String) txRouteMap.get(\"node_name\"), (String) txRouteMap.get(\"in_port_name\"));\n\t\tMap<String, Object> txOutPortMap = dao.getPortInfoFromPortName(conn, (String) txRouteMap.get(\"node_name\"), (String) txRouteMap.get(\"out_port_name\"));\n\n\t\tMap<String, Object> rxOfpsMap = dao.getNodeInfoFromDeviceName(conn, (String) rxRouteMap.get(\"node_name\"));\n\t\tMap<String, Object> rxOutPortMap = dao.getPortInfoFromPortName(conn, (String) rxRouteMap.get(\"node_name\"), (String) rxRouteMap.get(\"out_port_name\"));\n\n\t\tOFCClient client = new OFCClientImpl();\n\n\t\tif (routeMapList.size() == 1 ) {\n\t\t\tString ofcIp = (String)txOfpsMap.get(\"ip\") + \":\" + Integer.toString((Integer)txOfpsMap.get(\"port\"));\n\n\t\t\tSetFlowToOFC requestData = client.createRequestData(Long.decode((String)txOfpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\tInteger inPortNumber = (Integer)txInPortMap.get(\"number\");\n\t\t\tclient.createMatchForInPort(requestData, inPortNumber.longValue());\n\t\t\treducedFlows.add(ofcIp, requestData);\n\n\t\t\tInteger outPortNumber = (Integer)txOutPortMap.get(\"number\");\n\t\t\trequestData = client.createRequestData(Long.decode((String)txOfpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\tclient.createMatchForInPort(requestData, outPortNumber.longValue());\n\t\t\treducedFlows.add(ofcIp, requestData);\n\n\n\t\t\t/* delete route */\n\t\t\tdao.deleteRouteFromLogicalLinkRid(conn, (String)logicalLinkMap.get(\"rid\"));\n\n\t\t\t/* delete logical link */\n\t\t\tdao.deleteLogicalLinkFromNodeNamePortName(conn, inPort.getDeviceName(), inPort.getPortName());\n\n\t\t\treturn;\n\t\t}\n\n\t\t/* make flow edge-switch tx side */\n\t\t{\n\t\t\tString ofcIp = (String)txOfpsMap.get(\"ip\") + \":\" + Integer.toString((Integer)txOfpsMap.get(\"port\"));\n\n\t\t\tSetFlowToOFC requestData = client.createRequestData(Long.decode((String)txOfpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\tInteger inPortNumber = (Integer)txInPortMap.get(\"number\");\n\t\t\tclient.createMatchForInPort(requestData, inPortNumber.longValue());\n\t\t\treducedFlows.add(ofcIp, requestData);\n\n\t\t\trequestData = client.createRequestData(Long.decode((String)txOfpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\tclient.createMatchForDlVlan(requestData, (Long)logicalLinkMap.get(\"nw_instance_id\"));\n\t\t\treducedFlows.add(ofcIp, requestData);\n\t\t}\n\n\t\t/* make flow edge-switch rx side */\n\t\t{\n\t\t\tString ofcIp = (String)rxOfpsMap.get(\"ip\") + \":\" + Integer.toString((Integer)rxOfpsMap.get(\"port\"));\n\n\t\t\tSetFlowToOFC requestData = client.createRequestData(Long.decode((String)rxOfpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\tInteger inPortNumber = (Integer)rxOutPortMap.get(\"number\");\n\t\t\tclient.createMatchForInPort(requestData, inPortNumber.longValue());\n\t\t\treducedFlows.add(ofcIp, requestData);\n\n\t\t\trequestData = client.createRequestData(Long.decode((String)rxOfpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\tclient.createMatchForDlVlan(requestData, (Long)logicalLinkMap.get(\"nw_instance_id\"));\n\t\t\treducedFlows.add(ofcIp, requestData);\n\t\t}\n\n\t\t/* make flow internal switch */\n\t\t{\n\t\t\tfor (int i = 1; i < routeMapList.size() - 1; i++) {\n\t\t\t\tString node_name = (String)routeMapList.get(i).get(\"node_name\");\n\n\t\t\t\tMap<String, Object> ofpsMap = dao.getNodeInfoFromDeviceName(conn, node_name);\n\n\t\t\t\tif(ofpsMap.get(\"type\").equals(NODE_TYPE_SPINE))\n\t\t\t\t{\n\t\t\t\t\tString ofcIp = (String)ofpsMap.get(\"ip\") + \":\" + Integer.toString((Integer)ofpsMap.get(\"port\"));\n\n\t\t\t\t\tSetFlowToOFC requestData = client.createRequestData(Long.decode((String)ofpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\t\t\tclient.createMatchForDlVlan(requestData, (Long)logicalLinkMap.get(\"nw_instance_id\"));\n\t\t\t\t\treducedFlows.add(ofcIp, requestData);\n\t\t\t\t}\n\t\t\t\telse if(ofpsMap.get(\"type\").equals(NODE_TYPE_AGGREGATE_SW))\n\t\t\t\t{\n\t\t\t\t\tString ofcIp = (String)ofpsMap.get(\"ip\") + \":\" + Integer.toString((Integer)ofpsMap.get(\"port\"));\n\n\t\t\t\t\tSetFlowToOFC requestData = client.createRequestData(Long.decode((String)ofpsMap.get(\"datapathId\")), OPENFLOW_FLOWENTRY_PRIORITY_NORMAL, null, null);\n\t\t\t\t\tclient.createMatchForDlVlan(requestData, (Long)logicalLinkMap.get(\"nw_instance_id\"));\n\t\t\t\t\treducedFlows.add(ofcIp, requestData);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* delete route */\n\t\tdao.deleteRouteFromLogicalLinkRid(conn, (String)logicalLinkMap.get(\"rid\"));\n\n\t\t/* delete logical link */\n\t\tdao.deleteLogicalLinkFromNodeNamePortName(conn, inPort.getDeviceName(), inPort.getPortName());\n\n\t\t/* delete Outer_tag table */\n\t\t//dao.DeleteOutertagflows(conn,(Long)logicalLinkMap.get(\"nw_instance_id\"));\n\n\n\t\treturn;\n\t}", "@Override\n public boolean equals(final Object o) {\n if (this == o) {\n return true;\n } else if (null == o) {\n return false;\n } else if (getClass() == o.getClass()) {\n // edges are bidirectional, so left and right don't matter for\n // equality\n final OverlayLink other = (OverlayLink) o;\n return (left.equals(other.getLeft()) && right.equals(other.getRight()))\n || (left.equals(other.getRight()) && right.equals(other.getLeft()));\n } else {\n return false;\n }\n }", "private static void checkMappingPolicyMatchesConn(Connection connection) throws ServiceException {\n mappingPolicyNullCheck(connection);\n\n String technologyType = connection.getTechnology();\n String mappingPolicyId = connection.getMappingPolicyId();\n if(StringUtils.isEmpty(mappingPolicyId)\n && (TechnologyType.GRE_OVER_IPSEC.getName().equals(technologyType)\n || TechnologyType.isIpsec(technologyType) || TechnologyType.isVxlanRelated(technologyType))) {\n ThrowOverlayVpnExcpt.throwNotHavingPolicyIdAsParmaterInvalid(connection.getName());\n }\n }", "@DOMSupport(DomLevel.ONE)\r\n @Property String getLinkColor();", "@Override\r\n\t\tpublic final boolean combinePropertyLists()\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "public boolean equals(Object o) {\n if (this == o) return true;\n if (!( o instanceof Link )) return false;\n\n final Link link = (Link) o;\n\n return new EqualsBuilder()\n .append(meaning, link.meaning)\n .append(type, link.type)\n .append(target, link.target)\n .isEquals();\n }", "protected boolean connects(R r1, R r2) {\n\t\t\treturn getPreviousOrSame(getLower(r1)).compareTo(getUpper(r2)) <= 0 ||\n\t\t\t\tgetPreviousOrSame(getLower(r2)).compareTo(getUpper(r1)) <= 0;\n\t\t}", "@Override\r\n\t\t\t\tpublic int compare(Property o1, Property o2) {\n\t\t\t\t\treturn Integer.compare(o1.getRealty().getRealtyID(),o2.getRealty().getRealtyID());\r\n\t\t\t\t}", "private boolean linkIsViableDSRCComplex(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link viable debug: no GPS fix.\");\n\t\t\treturn true;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\n\t\t// Too far away (> 250m)\n\t\tif (distance > 250) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link not viable: %.1f meters apart. (>250)\", distance));\n\t\t\treturn false;\n\t\t}\n\n\t\t// Quite close together (< 150 m)\n\t\tif (v1.distanceTo(v2) < 150) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (<100m)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both stationary?\n\t\tif (v1.hasSpeed() && v1.getSpeed() < 2 && v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (low speed)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// One stationary and other moving towards it?\n\t\tif (v1.hasSpeed()\n\t\t\t\t&& v1.getSpeed() < 2\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& ((Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (other approaching)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\t\tif (v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& ((Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (approaching other)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both moving towards each other\n\t\tif (v1.distanceTo(v2) < 200\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& (Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 15)\n\t\t\t\t&& (Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 15)) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (mutual approach)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Moving together?\n\t\tif (v1.distanceTo(v2) < 200\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& v1.hasSpeed()\n\t\t\t\t&& v2.hasSpeed()\n\t\t\t\t&& (Math.abs(v1.getBearing() - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.getBearing() - v2.getBearing()) > 360 - 15)\n\t\t\t\t&& Math.abs(v1.getSpeed() - v2.getSpeed()) < 5) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (moving together)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// log_nodisplay(String.format(\n\t\t// \"Link viable: %.1f meters apart. (moving apart)\", distance));\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link not viable: %.1f meters apart. (moving apart)\", distance));\n\t\treturn false;\n\t}", "public boolean addLink(LinkData link) {\n log.debug(\"Adding link {}\", link);\n\n KVLink rcLink = new KVLink(link.getSrc().getDpid(),\n link.getSrc().getPortNumber(),\n link.getDst().getDpid(),\n link.getDst().getPortNumber());\n\n // XXX This method is called only by discovery,\n // which means what we are trying to write currently is the truth\n // so we can force write here\n //\n // TODO: We need to check for errors\n rcLink.setStatus(KVLink.STATUS.ACTIVE);\n rcLink.forceCreate();\n\n return true; // Success\n }", "protected boolean equals(URL paramURL1, URL paramURL2) {\n/* 336 */ String str1 = paramURL1.getRef();\n/* 337 */ String str2 = paramURL2.getRef();\n/* 338 */ return ((str1 == str2 || (str1 != null && str1.equals(str2))) && \n/* 339 */ sameFile(paramURL1, paramURL2));\n/* */ }", "private static void smartConnectorAttributeCheck(UIAttributes sourceUIAttributes, UIAttributes targetUIAttributes,\r\n\t\t\tboolean isAdded, boolean isDeleted, List<Fields> fieldsList) {\r\n\t\ttry {\r\n\r\n\t\t\tif (isAdded) {\r\n\t\t\t\tif (!StringUtils.isEmpty(targetUIAttributes.getName()))\r\n\t\t\t\t\tfieldsList.add(\r\n\t\t\t\t\t\t\tBPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES,\r\n\t\t\t\t\t\t\t\t\tBPConstant.NAME, BPConstant.EMPTY_STRING, targetUIAttributes.getName()));\r\n\t\t\t\tif (!StringUtils.isEmpty(targetUIAttributes.getDecisionName()))\r\n\t\t\t\t\tfieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING,\r\n\t\t\t\t\t\t\tBPConstant.UI_ATTRIBUTES, BPConstant.DECISION_NAME, BPConstant.EMPTY_STRING,\r\n\t\t\t\t\t\t\ttargetUIAttributes.getDecisionName()));\r\n\t\t\t} else if (isDeleted) {\r\n\t\t\t\tif (!StringUtils.isEmpty(sourceUIAttributes.getName()))\r\n\t\t\t\t\tfieldsList.add(\r\n\t\t\t\t\t\t\tBPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES,\r\n\t\t\t\t\t\t\t\t\tBPConstant.NAME, sourceUIAttributes.getName(), BPConstant.EMPTY_STRING));\r\n\t\t\t\tif (!StringUtils.isEmpty(sourceUIAttributes.getDecisionName()))\r\n\t\t\t\t\tfieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING,\r\n\t\t\t\t\t\t\tBPConstant.UI_ATTRIBUTES, BPConstant.DECISION_NAME, sourceUIAttributes.getDecisionName(),\r\n\t\t\t\t\t\t\tBPConstant.EMPTY_STRING));\r\n\t\t\t} else {\r\n\t\t\t\tif (!StringUtils.equalsIgnoreCase(sourceUIAttributes.getDecisionName(),\r\n\t\t\t\t\t\ttargetUIAttributes.getDecisionName())) {\r\n\t\t\t\t\tfieldsList.add(BPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING,\r\n\t\t\t\t\t\t\tBPConstant.UI_ATTRIBUTES, BPConstant.DECISION_NAME, sourceUIAttributes.getDecisionName(),\r\n\t\t\t\t\t\t\ttargetUIAttributes.getDecisionName()));\r\n\t\t\t\t}\r\n\t\t\t\tif (!StringUtils.equalsIgnoreCase(sourceUIAttributes.getName(), targetUIAttributes.getName())) {\r\n\t\t\t\t\tfieldsList.add(\r\n\t\t\t\t\t\t\tBPDesignerServiceImpl.buildResponseJson(BPConstant.EMPTY_STRING, BPConstant.UI_ATTRIBUTES,\r\n\t\t\t\t\t\t\t\t\tBPConstant.NAME, sourceUIAttributes.getName(), targetUIAttributes.getName()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tLOGGER.error(\"Smart connector ui attributes error\"+exception);\r\n\t\t\tthrow new BPException(exception.getMessage());\r\n\t\t}\r\n\t}", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }", "@Test\n public void hashCodeTest2() {\n Device device2 = new Device(\"other\", token);\n assertNotEquals(device.hashCode(), device2.hashCode());\n }", "public boolean isLink(String str) { return link_to_line.keySet().contains(str); }", "boolean hasSameAs();", "protected boolean isMultiplePropertiesChanging() {\n return multiplePropertiesChanging;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Properties)) {\n return false;\n }\n Properties other = (Properties) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public void test_hk_02() {\n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM);\n spec.setReasoner(null);\n OntModel ontModel = ModelFactory.createOntologyModel(spec, null); // ProfileRegistry.OWL_LANG);\n ontModel.createAllDifferent();\n assertTrue(ontModel.listAllDifferent().hasNext());\n AllDifferent allDifferent = (AllDifferent) ontModel.listAllDifferent().next();\n //allDifferent.setDistinct(ontModel.createList());\n assertFalse(allDifferent.listDistinctMembers().hasNext());\n }", "public abstract boolean isMatching(Properties p);", "@Test\n\tpublic void TestTwoLinksAreHandledOkay() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://reddit.com http://google.com\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link = null;\n\t\ttry {\n\t\t\tlink = lh.convertMessageToLink(msg);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Couldnt convert message to link\");\n\t\t}\n\t\tif (link.getUrl().equals(\"http://reddit.com\") || link.getUrl().equals(\"http://google.com\")) {\n\t\t\t// pass\n\t\t}\n\t\telse {\n\t\t\tfail(\"Can't handle two URL's\");\n\t\t}\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof TMAdmin)) {\n return false;\n }\n TMAdmin other = (TMAdmin) object;\n if ((this.adminLinkId == null && other.adminLinkId != null) || (this.adminLinkId != null && !this.adminLinkId.equals(other.adminLinkId))) {\n return false;\n }\n return true;\n }", "public abstract Set<String> findPropertyKeysFromConnectURL(String connectUri, boolean allowUnknown);", "public void testProperties(){\n \n if (parent == null)\n return;\n \n tests(parent);\n \n if (testSettings.AP_mnemonics){\n \n //- LOG ONLY - list of conflicts before cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n cleanMnemonicsConflict();\n \n // LOG ONLY - list of conflicts after cleaning\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testProperties()> - CONFLICTS after clean up = \");\n Enumeration conf = mnemonicConflict.elements();\n while(conf.hasMoreElements()) System.err.println(LOG_CAPTION+\" - <testProperties()> - \"+conf.nextElement().toString());\n } // LOG ONLY -/\n \n }\n \n if (testSettings.AP_noLabelFor)\n checkLabelTextComponentPairs();\n }", "public Pair<Set<String>, Integer> getClosestCommonHypernym(List<String> links, int limitOfHops) {\n\n // The links for the next iteration, i.e. the concepts whose hypernyms will be looked for in the next\n //iteration.\n HashMap<String, HashSet<String>> linksForNextIteration = new HashMap<>();\n\n // All hypernyms\n HashMap<String, HashSet<String>> allHyperconcepts = new HashMap<>();\n int currentHops = 0;\n\n for (; currentHops < limitOfHops; currentHops++) {\n\n LOGGER.debug(\"\\n\\nIteration \" + (currentHops + 1));\n\n for (String link : links) {\n\n HashSet<String> nextNextIteration = new HashSet<>();\n if (!linksForNextIteration.containsKey(link)) {\n // there is no next lookup defined -> use root link\n\n nextNextIteration = (getHypernyms(link));\n\n // set links for next iteration\n linksForNextIteration.put(link, nextNextIteration);\n\n // set links all hypernyms\n addOrPut(allHyperconcepts, link, nextNextIteration);\n\n // simple logging\n if (nextNextIteration != null && nextNextIteration.size() > 0) {\n LOGGER.debug(\"\\nHyperconcepts for \" + link);\n for (String s : nextNextIteration) {\n LOGGER.debug(\"\\t\" + s);\n }\n }\n\n } else {\n // the next lookup iteration has been defined\n\n for (String nextConcept : linksForNextIteration.get(link)) {\n nextNextIteration.addAll(getHypernyms(nextConcept));\n }\n\n // set links for next iteration\n linksForNextIteration.put(link, nextNextIteration);\n\n // set links all hypernyms\n addOrPut(allHyperconcepts, link, nextNextIteration);\n\n // just logging:\n if (nextNextIteration.size() > 0) {\n LOGGER.debug(\"\\nNew hypernyms for \" + link);\n\n // just logging:\n for (String s : nextNextIteration) {\n LOGGER.debug(\"\\t\" + s);\n }\n }\n }\n }\n\n // check whether a common hypernym has been found\n Set<String> commonConcepts = determineCommonConcepts(allHyperconcepts);\n\n if (commonConcepts.size() > 0) {\n return new Pair<>(commonConcepts, currentHops + 1);\n }\n }\n // nothing found, return an empty set\n return null;\n }", "@Test\n public void hashCodeTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device.hashCode(), device2.hashCode());\n }", "@Override\n public boolean equals(Object o) {\n try {\n Pair p = (Pair) o;\n return (this.getSource().equals(p.source) && this.getDestination().equals(p.getDestination()));\n\n } catch (Exception ex) {\n return false;\n }\n }", "private boolean isCanLink(String[] strA1, String[] strA2) {\n\t\tboolean flag = true;\n\t\tif(strA1.length != strA2.length){\n\t\t\treturn false;\n\t\t}else {\n\t\t\tfor(int i = 0; i < strA1.length - 1; i++){\n\t\t\t\tif(!strA1[i].equals(strA2[i])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(strA1[strA1.length -1].equals(strA2[strA1.length -1])){\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "public boolean isValidLink(Link link, BandwidthMgmtService bandwidthMgmtService) {\n if (bandwidthMgmtService == null) {\n return false;\n }\n changedBwValue = requestBwValue;\n if (links.contains(link)) {\n changedBwValue = requestBwValue.isGreaterThan(sharedBwValue) ? requestBwValue.subtract(sharedBwValue)\n : Bandwidth.bps(0);\n }\n\n return bandwidthMgmtService.isBandwidthAvailable(link, changedBwValue.bps());\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<Order> orders = dao.getByPropertyEqual(\"description\", \"February Large Long-Sleeve\");\n assertEquals(1, orders.size());\n assertEquals(2, orders.get(0).getId());\n }", "boolean isInverseFunctionalLinkProperty();", "static boolean isValidLinkTarget(LWLink link, LWComponent linkSource, LWComponent linkTarget)\n {\n if (linkTarget == linkSource && linkSource != null) {\n if (DEBUG.LINK) reject(linkTarget, \"source == target\");\n return false;\n }\n // TODO: allow loop-back link if it's a CURVED link...\n\n // don't allow links between parents & children\n if (linkSource != null) {\n if (linkTarget.getParent() == linkSource ||\n linkSource.getParent() == linkTarget) {\n if (DEBUG.LINK) reject(linkTarget, \"parent-child link\");\n return false;\n }\n if (linkTarget != null) {\n if (!linkSource.canLinkTo(linkTarget)) {\n if (DEBUG.LINK) reject(linkTarget, \"source denies target; src=\" + linkSource);\n return false;\n }\n }\n }\n\n if (link != null && linkTarget == link.getParent()) {\n // if a link is inside something, don't link to it (?)\n if (DEBUG.LINK) reject(linkTarget, \"target is parent of the new link\");\n return false;\n }\n\n if (link != null && linkTarget instanceof LWLink && linkTarget.isConnectedTo(link)) {\n // Don't permit a link to link back to a link that's connected to it.\n if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n return false;\n }\n\n\n// New code, tho we don't actually need these constraints:\n// if (linkTarget instanceof LWLink) {\n// if (DEBUG.LINK) outln(\"target is link: \" + linkTarget);\n// if (linkTarget.isConnectedTo(linkSource)) {\n// if (DEBUG.LINK) reject(linkTarget, \"target link-to-link loop\");\n// return false;\n// } else if (link != null && linkTarget.isConnectedTo(link)) {\n// if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n// return false;\n// }\n// }\n \n// if (linkSource instanceof LWLink) {\n// if (linkSource.isConnectedTo(linkTarget)) {\n// if (DEBUG.LINK) reject(linkTarget, \"source link-to-link loop; src=\" + linkSource);\n// return false;\n// }// else if (link != null\n// }\n\n\n return true;\n\n\n// The old code: \n// boolean ok = true;\n// if (linkTarget instanceof LWLink) {\n// LWLink target = (LWLink) linkTarget;\n// ok &= (target.getHead() != linkSource &&\n// target.getTail() != linkSource);\n// }\n// if (linkSource instanceof LWLink) {\n// LWLink source = (LWLink) linkSource;\n// ok &= (source.getHead() != linkTarget &&\n// source.getTail() != linkTarget);\n// }\n// return ok;\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tPen p1 = new Pen(\"Abc\", \"blue\",1);\r\n\t\tPen p2 = new Pen(\"Dbc\", \"Black\",1);\r\n\t\tPen p3 = new Pen(\"abc\", \"blue\",2);\r\n\t\tPen p4 = new Pen(\"Abc\", \"blue\",1);\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"Details of P1\" + p1 + \"...\" + p1.hashCode());\r\n\t\tSystem.out.println(\"Details of P2\" + p2 + \"...\" + p2.hashCode());\r\n\t\tSystem.out.println(\"Details of P3\" + p3 + \"...\" + p3.hashCode());\r\n\t\tSystem.out.println(\"Details of P4\" + p4 + \"...\" + p4.hashCode());\r\n\t\t\r\n\t\t/*\t Step 2 - BEfore overriding Equals Method :\r\n\t \t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\t[Comparisons p1 && p2 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p2 && p3 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p1 && p3 ::] false \t\t\t\t\t\t\t\t\t*/\r\n\r\n\t\t /* Step 3 - Contradicts to real Time Scenario i.e Two pens are same if they have same color and same Brand.\r\n\t\t \t So, To avoid Contradiction We Override Equals Method.\r\n\t\t \t Override equals Method in such a way that objects are equal if they have same State. */\r\n\r\n\t\t/* Step 4 - After Overriding Equals Method :\r\n\t\t \t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\t[Comparisons p1 && p2 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p2 && p3 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p1 && p3 ::] true\t\t\t\t\t\t\t\t\t\t\t\t*/\r\n\r\n\t\t\r\n\t\t/* Step 5 -\tWe got the desired Output as P1 and p3 are Equal . are we good now ? we aren't. \r\n\t\t\t\tStep 1 statement Fails . \r\n\t\t \t\ti.e as hashCode is different but objects are equal, which is illegal.\r\n\t\t\t\tTo avoid such conflicts we override HashCode method.\r\n\t\t\t\tHence we can conclude and proved that,if Two objects are equal,then they should have same HashCode.\r\n\t\t\t\tThis is the First Statement of HashCode and Equals Contract. */\r\n\t\t\r\n\t\t/* Step 6 - \tNow the Converse Statement.. If Two Objects have same HashCode then can we say that Objects are Equal?? \r\n\t\t \t\tdoesnt the statement seems Silly !! How can we conclude the equality of two objects based on their \r\n\t\t \t\thashCode(which is just a Memory Location and no concept of Object pooling here)\r\n\t\t \t\twithout comparing their state ?? */\r\n\t\t\r\n\t\t/* Step 7 - Finally, If Two Objects have Same HashCode then objects may or may not be Equal */\r\n\t}", "private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }", "public boolean DEBUG_compare(Alphabet other) {\n System.out.println(\"now comparing the alphabets this with other:\\n\"+this+\"\\n\"+other);\n boolean sameSlexic = true;\n for (String s : other.slexic.keySet()) {\n if (!slexic.containsKey(s)) {\n sameSlexic = false;\n break;\n }\n if (!slexic.get(s).equals(other.slexic.get(s))) {\n sameSlexic = false;\n break;\n }\n slexic.remove(s);\n }\n System.out.println(\"the slexic attributes are the same : \" + sameSlexic);\n boolean sameSlexicinv = true;\n for (int i = 0, limit = other.slexicinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = slexicinv.size() + i; j < limit2; j++) {\n int k = j % slexicinv.size();\n if (other.slexicinv.get(i).equals(slexicinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSlexicinv = false;\n break;\n }\n\n }\n boolean sameSpair = true;\n System.out.println(\"the slexicinv attributes are the same : \" + sameSlexicinv);\n for (IntegerPair p : other.spair.keySet()) {\n if(!spair.containsKey(p)) {\n //if (!containsKey(spair, p)) {\n sameSpair = false;\n break;\n }\n //if (!(get(spair, p).equals(get(a.spair, p)))) {\n if (!spair.get(p).equals(other.spair.get(p))) {\n sameSpair = false;\n break;\n }\n }\n System.out.println(\"the spair attributes are the same : \" + sameSpair);\n boolean sameSpairinv = true;\n for (int i = 0, limit = other.spairinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = spairinv.size() + i; j < limit2; j++) {\n int k = j % spairinv.size();\n if (other.spairinv.get(i).equals(spairinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSpairinv = false;\n break;\n }\n }\n System.out.println(\"the spairinv attributes are the same : \" + sameSpairinv);\n return (sameSpairinv && sameSpair && sameSlexic && sameSlexicinv);\n }", "private boolean checkCharacteristicProperties(BluetoothGattCharacteristic characteristic,\n int properties) {\n Log.d(TAG, \"checkCharacteristicProperties: device: \" + getMACAddress());\n\n if (characteristic.getProperties() == properties) {\n Log.d(TAG, \"checkCharacteristicProperties() match, device: \" + getMACAddress());\n return true;\n }\n Log.e(TAG, \"checkCharacteristicProperties() doesn't match: \" + characteristic.getProperties() + \" / \" + properties + \", device: \" + getMACAddress());\n return false;\n }", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, LinkedList<Link>> o1, Entry<Integer, LinkedList<Link>> o2) {\n\t\t\t\treturn o1.getKey() - o2.getKey();\r\n\t\t\t}", "public void sortProperties (ArrayList<Property> properties, String branchName) {\r\n\t\tsoldProperties.clear();\r\n\t\tnotSoldProperties.clear();\r\n\t\totherProperties.clear();\r\n \tint size = properties.size();\r\n \tfor (int i = 0; i < size; i++) {\r\n \t\tif (properties.get(i).getBranchName().equals(branchName)) {\r\n \t\t\tif (!properties.get(i).getSoldPrice().equals(\"\")) {\r\n \t\t\t\tsoldProperties.add(properties.get(i));\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tnotSoldProperties.add(properties.get(i));\r\n \t\t\t}\r\n \t\t}\r\n \t\telse {\r\n\t\t\t\totherProperties.add(properties.get(i));\r\n\t\t\t}\r\n \t}\r\n\t}", "@Override\n\tpublic boolean equals(Object that) {\n\t\tUrl other = (Url)that;\n\t\treturn this.link.equals(other.link);\n\t}", "@Test\n public void testIsConnected() throws MainException {\n System.out.println(\"isConnected\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n boolean expResult = true;\n boolean result = instance.isConnected();\n assertEquals(expResult, result);\n instance.disconnect();\n result = instance.isConnected();\n assertEquals(false, result);\n\n }", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "CommonProperties getProperties();", "private boolean similarity(WindowData currentWindow, WindowData nextWindow) {\n double c_ori = currentWindow.getOrientation();\n double c_velo = currentWindow.getVelocity();\n double n_ori = nextWindow.getOrientation();\n double n_velo = nextWindow.getVelocity();\n\n // Check if the orientation and velocity are within threshold\n if ((Math.abs(c_ori - n_ori) < CoreService.orientationThreshold) &&\n (Math.abs(c_velo - n_velo) < CoreService.velocityThreshold)) {\n return true;\n }\n return false;\n }", "public boolean saveLink2(String gameTitle, String nameConfig, String screenName, Link oldLink, Link newLink) {\n\n Log.d(TAG, \"saveLink\");\n\n boolean linkSaved = false;\n Configuration thisConfig = MainModel.getInstance().getConfiguration(gameTitle, nameConfig);\n Screen screen = MainModel.getInstance().getScreenFromConf(thisConfig, screenName);\n\n //alreadyExistInConfig is true if an event already exists with the same name associated with the game\n //modifyingExistingLink is true if we are modifying a pre-existent event, then oldEvent! = null\n //boolean alreadyExistInConfig = (screen.getLink(newLink.getEvent().getName()) != null);\n boolean alreadyExistInConfig = (thisConfig.getLink(newLink.getEvent().getName()) != null);\n boolean modifyingExistingLink = (oldLink != null);\n\n //if it exists and we are modifying it, we delete the previous copy to create an updated one\n if(alreadyExistInConfig && modifyingExistingLink) {\n\n Log.d(TAG, \"deleted old link, added a new one: \"+newLink.getEvent().getName());\n screen.getLinks().remove(oldLink);\n screen.addLink(newLink);\n MainModel.getInstance().writeConfigurationsJson();\n linkSaved = true;\n\n }\n\n //if the link does not exist in the configuration we add it without other controls\n if(!alreadyExistInConfig) {\n\n Log.d(TAG, \"added a new Link\");\n\n screen.addLink(newLink);\n MainModel.getInstance().writeConfigurationsJson();\n linkSaved = true;\n }\n\n return linkSaved;\n\n }", "public static cryptix.util.core.LinkStatus getLinkStatus() { return linkStatus; }", "private RequirementLink parseAttackModelLinkInfo(List<String> factors) {\n\t\t// obtain the elements of the link.\n\t\tElement source = findElementById(factors.get(4));\n\t\tElement target = findElementById(factors.get(5));\n\t\tif (target == null || source == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t/*\n\t\t * this part is exclusively for requirement elements 0)link; 1)id,51690 2)arrow type,StickArrow; 3)line type, curved; 4)source/tail,51670; 5)destination/head,51490;\n\t\t * 6)label,NoLabel;(The shape of that label is not considered, only the content of that label) 7)dash type,0; 8)thickness,1.0; 9)head scale,1.0 10) layer, Layer 1\n\t\t */\n\t\t// first assign basic information to the link\n\t\tRequirementLink new_link = new RequirementLink();\n\t\tnew_link.setId(factors.get(1));\n\t\tnew_link.setSource(source);\n\t\tnew_link.setTarget(target);\n\t\tsource.getOutLinks().add(new_link);\n\t\ttarget.getInLinks().add(new_link);\n\n\t\t// identify the type of the link. Here we roughly have them as either \"refine\" or \"and-refine\" for simplification, facilitating the intended analysis.\n\t\t// refine\n\t\tif ((factors.get(2).equals(\"SharpArrow\") || factors.get(2).equals(\"StickArrow\") || factors.get(2).equals(\"Arrow\"))\n\t\t\t\t& !new_link.getSource().getType().equals(InfoEnum.RequirementElementType.MIDDLE_POINT.name())) {\n\t\t\tnew_link.setType(InfoEnum.RequirementLinkType.REFINE.name());\n\t\t\t// the target of this link should update the \"refine_links\" information as well\n\t\t\tnew_link.getTarget().refine_links.add(new_link);\n\t\t}\n\t\t// for all and-refine links, the corresponding information should be updated after re-processing the elements\n\t\t// and refine - main\n\t\telse if (factors.get(2).equals(\"SharpArrow\") & new_link.getSource().getType().equals(InfoEnum.RequirementElementType.MIDDLE_POINT.name())) {\n\t\t\tnew_link.setType(InfoEnum.RequirementLinkType.AND_REFINE_ARROW.name());\n\t\t\t// mark as redundant\n\t\t\tnew_link.setRemark(InfoEnum.LinkRemark.REDUNDANT.name());\n\t\t}\n\t\t// and refine - branch\n\t\telse if (factors.get(2).equals(\"NoHead\") & factors.get(6).equals(\"NoLabel\")) {\n\t\t\tnew_link.setType(InfoEnum.RequirementLinkType.AND_REFINE.name());\n\t\t}\n\t\t// exception\n\t\telse {\n\t\t\tCommandPanel.logger.severe(\"Unknown links cannot be imported\");\n\t\t}\n\t\treturn new_link;\n\t}", "boolean similar(Object other) {\n if (!(other instanceof PropertyArray)) {\n return false;\n }\n int len = this.length();\n if (len != ((PropertyArray) other).length()) {\n return false;\n }\n for (int i = 0; i < len; i += 1) {\n Object valueThis = this.myArrayList.get(i);\n Object valueOther = ((PropertyArray) other).myArrayList.get(i);\n if (valueThis == valueOther) {\n continue;\n }\n if (valueThis == null) {\n return false;\n }\n if (valueThis instanceof PropertyObject) {\n if (!((PropertyObject) valueThis).similar(valueOther)) {\n return false;\n }\n } else if (valueThis instanceof PropertyArray) {\n if (!((PropertyArray) valueThis).similar(valueOther)) {\n return false;\n }\n } else if (!valueThis.equals(valueOther)) {\n return false;\n }\n }\n return true;\n }", "public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }", "private boolean sameTopic(HelpTopic topic1, HelpTopic topic2) {\n return topic1 == topic2 || (topic1 != null && topic2 != null && topic1.equals(topic2));\n }", "public interface NTLMMediatorInputConnectorPropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the incomingLinks\n\t * @param settings settings for the incomingLinks ReferencesTable \n\t */\n\tpublic void initIncomingLinks(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the incomingLinks\n\t * @param newValue the incomingLinks to update\n\t * \n\t */\n\tpublic void updateIncomingLinks();\n\n\t/**\n\t * Adds the given filter to the incomingLinks edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToIncomingLinks(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the incomingLinks edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToIncomingLinks(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the incomingLinks table\n\t * \n\t */\n\tpublic boolean isContainedInIncomingLinksTable(EObject element);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "@Test\n public void mainTests(){\n assertTrue(property1.getPropertyId() == id1);\n if(property1.getPropertyId() != id1) {\n property2.setPropertyId(id1);\n }\n else {\n assertTrue(property2.getPropertyId() == id2);\n }\n //Getter works Correct for ID\n }", "@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (objectToCompare == null || getClass() != objectToCompare.getClass())\n {\n return false;\n }\n TypeDefProperties that = (TypeDefProperties) objectToCompare;\n return Objects.equals(typeDefProperties, that.typeDefProperties);\n }", "private static void linkComparisons() {\n\t\tif (state.currentConditionNode == null || state.currentRVIndex == -1) return;\n\t\t\n\t\tlinkComparisonNode(state.currentConditionNode.root);\n\t\tif (state.whereCondition != null)\n\t\t\tlinkComparisonNode(state.whereCondition);\n\t}", "public int compare(Entry o1, Entry o2) {\n\tString url1 = o1.getUrl();\n\tString url2 = o2.getUrl();\n\treturn StringUtil.compareToNullHigh(url1, url2);\n }" ]
[ "0.6177114", "0.55195194", "0.55090195", "0.53603375", "0.53577423", "0.53271174", "0.53007203", "0.52401656", "0.5185337", "0.5143023", "0.5087107", "0.5086059", "0.5069116", "0.5065442", "0.505838", "0.5055286", "0.50321984", "0.50217223", "0.49687478", "0.4965121", "0.4945064", "0.49207884", "0.49090555", "0.4902168", "0.48824763", "0.48262075", "0.48211488", "0.4799481", "0.47978556", "0.4735085", "0.47170582", "0.47126782", "0.47050232", "0.46965706", "0.4696465", "0.46940547", "0.46808586", "0.4679254", "0.4669504", "0.46681875", "0.46661472", "0.4665212", "0.46592528", "0.4658414", "0.46538866", "0.46526855", "0.46360806", "0.46281394", "0.46251592", "0.46168795", "0.46163335", "0.45932564", "0.45836902", "0.4580693", "0.45682678", "0.45611647", "0.45480114", "0.4543205", "0.4536737", "0.4529459", "0.45284063", "0.45265818", "0.45261016", "0.45244268", "0.4519615", "0.45143324", "0.4509445", "0.4508979", "0.45087034", "0.45079732", "0.45061854", "0.45060745", "0.4506025", "0.45045888", "0.45029336", "0.44961822", "0.44942537", "0.44931749", "0.44927686", "0.44901457", "0.4483412", "0.44806656", "0.44750562", "0.44739574", "0.4468752", "0.44670707", "0.44653508", "0.44620678", "0.44592795", "0.44507545", "0.44439548", "0.44425517", "0.44381878", "0.44348827", "0.44344673", "0.4434305", "0.44300014", "0.44271696", "0.44266784", "0.4421419" ]
0.63588595
0
objekt das Kontaktinformationen verwaltet /
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ZeigeAlleKontakte() throws Exception {\n\t\r\n\t\tList<Kontakt> kontaktarray = new ArrayList<Kontakt>();\r\n\t\r\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tkontaktarray = service.getKontakte();\r\n\t\r\n\t\tKontakt k = new Kontakt();\r\n\t\t\r\n\t\tString xAusgabe = \"\"; \r\n\t\tIterator<Kontakt> iterator = kontaktarray.iterator();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\t\r\n\t\t\tk = iterator.next();\r\n\t\t\t\r\n\t\t\txAusgabe = Objects.toString(k.getcId());\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcNName();\r\n\t\t\txAusgabe += \" ; \";\r\n\t\t\txAusgabe += k.getcVName();\r\n\t\t\t// TODO: Restliche Felder ausgeben\r\n\t\t\t\r\n\t\t\tSystem.out.println(xAusgabe);\t\t\t\t\r\n\t\t\t}\r\n\t}", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "private Kontakt ZeigeEinenKontakt(Kontakt k) throws Exception {\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tk = service.getKontakt(k);\r\n\r\n\t\tSystem.out.println(\"ID: \" + k.getcId());\r\n\t\tSystem.out.println(\"Nachname: \" + k.getcNName());\r\n\t\tSystem.out.println(\"Vorname: \" + k.getcVName());\r\n\t\t// Restliche Felder ausgeben\t\r\n\t\treturn k;\r\n\t\t\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Anfangsdatum: \" + this.get_Datum() \n\t\t\t\t+ \", Thema: \" + this.get_thema() \n\t\t\t\t+ \", Art: Theoriestunde\";\n\t}", "@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Titre : \"+_titre+\" Auteur: \"+_auteur+\" NbEcoutes : \"+_nbEcoutes;\r\n\t}", "public void papierkorbAnzeigen() {\n\t\tfor (Datei a:papierkorb) {\n\t\t\ta.anzeigeDateiDetail();\n\t\t}\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn this.titolo + \" \" +this.autore + \" \" + this.genere;\r\n\t}", "@Override\n\tpublic String toString () {\n\t\treturn tituloCD + \" - Autor/Artista: \" + autorCD;\n\t}", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 선생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"과목 : \" + text);\r\n\t}", "private void freundDetailsAnzeigen() throws Exception {\n Freund foundFriend = eingabeZumSuchen();\n\n System.out.println(\"Name: \" + foundFriend.getName());\n System.out.println(\"Handy: \" + foundFriend.getHandy());\n System.out.println(\"Telefon: \" + foundFriend.getTelefon());\n System.out.println(\"Adresse: \" + foundFriend.getAdresse());\n System.out.println(\"Geburtstag: \" + foundFriend.getGeburtstag());\n System.out.println(\"Schluessel: \" + foundFriend.getSchluessel());\n\n auswahlAnzeigen();\n }", "Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }", "@Override\r\n public String toString() {\r\n \treturn \"{ id : \" + getId() + \", costo : \\\"\" + getCosto() + \", fecha : \\\"\" + getFecha() + \"\\\" }\" ; \r\n }", "public void skrivUt(){\n System.out.println(this.fornavn + \" \" + this.etternavn + \" \" + this.adresse + \" \" + this.telefonnr + \" \" + this.alder);\n }", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 학생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"전공 : \" + major); \r\n\t}", "public abstract String dohvatiKontakt();", "@Override\n public String toString() {\n return \"Nimi: \" + nimi +\"\\n\"+\n \"Vanus: \"+ vanus +\"\\n\"+\n \"Pikkus: \"+ pikkus +\"\\n\"+\n \"Kehakaal: \"+ kehakaal+\"\\n\"+\n \"Aktiivus: \"+aktiivsus+\"\\n\";\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "@Override\n\tpublic String toString() {\n\t\treturn \"CODIGO: \" +codigo+ \" NOME: \"+nome+\" DIA: \"+dataInicio+\" HORA:\"+horaInicio+\" LOCAL:\"+local;\n\t}", "public void visOversikt() {\r\n System.out.println(\"\\nPerson Oversikt:\");\r\n\r\n for(Person person : personListe.values()) {\r\n System.out.println(\"\\n\" + person);\r\n System.out.println(person + \" eier \" + (person.eierSize() + person.utlaantSize()) + \" DVD'er\");\r\n System.out.println(person + \" laaner ut \" + person.utlaantSize() + \" DVD'er\");\r\n System.out.println(person + \" laaner \" + person.laanerSize() + \" DVD'er\");\r\n }\r\n }", "@Override\n\tpublic String info() {\n\t\treturn String.valueOf(super.getDonnee());\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "Information getInfo();", "public Kreditkarte(){\n\t\n\t}", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "@Override\n public String toString() {\n return getDescricao();\n }", "@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}", "@Override\n public String toString() {\n //String formatieren einsetzen, je nachdem wie wir das darstellen wollen\n return content.getId() + \", Spielname: \" + content.getName() + \", Punkte/Treffer: \" + content.getConfig().getHitPoints() + \", Punkte/Schiff versenkt: \" + content.getConfig().getSunkPoints() + \", Bedenkzeit: \" + content.getConfig().getRoundTime() + \" sek, Anzahl Schüsse: \" + content.getConfig().getShotCount();\n }", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "private void GetAllInfo() {\n\t\tjetztStunde = Integer.parseInt(jetztStdTxt.getText().toString());\n\t\tjetztMinute = Integer.parseInt(jetztMinTxt.getText().toString());\n\n\t\tschlafStunde = Integer.parseInt(schlafStdTxt.getText().toString());\n\t\tschlafMinute = Integer.parseInt(schlafMinTxt.getText().toString());\n\n\t}", "@Override\n\tpublic void descriere() {\n\t\tSystem.out.println(\"Item: \"+this.numeSectiune);\n\t}", "public String toString() {\r\n\t\treturn super.toString() + \" \" + this.aenderungsdatum + \" \" + this.erstelldatum;\r\n\t}", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "public String getKetuInfo() {\n\t\treturn null;\r\n\t}", "public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}", "@Override\n public void afficher() {\n super.afficher();\n System.out.println(\"Sexe : \" + getSexe());\n System.out.println(\"Numéro de sécurité sociale : \" + getNumeroSecuriteSociale());\n System.out.println(\"Date de naissance : \" + getDateDeNaissance().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG)));\n System.out.println(\"Commentaires : \" + getCommentaires());\n this.adresse.afficher();\n }", "public String getKontaktai() {\r\n\t\treturn kontaktai;\r\n\t}", "public Informations() {\n initComponents();\n \n Affichage();\n }", "public String toString() {\n\t\treturn \"Kori \" + malli + \". Omenien yhteispaino: \" + Omena.kokopaino +\"g.\\n\"\r\n\t\t\t\t+ \"Omenia korissa \" + Omena.nimi +\", \"+Omena.paino;\r\n\t\r\n\t\t\r\n\t}", "private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }", "public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }", "@Override\n public String getInfo(){\n return info;\n }", "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}", "public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "@Override\n public String toString() {\n return info();\n }", "@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (Opdracht o : opdrachten){\n\t\t\tresult += o.toString() + \"\\n\";\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n public String toString() {\r\n \r\n DateFormat data = DateFormat.getDateInstance();\r\n return \"Nome: \" + getNome()+ \" \\nCPF: \" + getCpf() + \" \\nTelefone: \"\r\n + getTelefone() + \" \\nData de Nascimento : \" + data.format(getDataNasc())\r\n + \" \\nSexo: \" + getSexo();\r\n }", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "@Override\r\n public String toString() {\n return tipodocumento;\r\n }", "public Kullanici() {}", "public TrazAqui(){\n this.utilizadores = new TreeMap<>();\n this.encomendas = new TreeMap<>();\n this.utilizador = null;\n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Nombre: \"+this.nombre+\" Cantidad: \"+this.cantidad+\" \"+this.unidadMedida;\n\t}", "@Override\n public String toString() {\n return \"\\tMunicipio: \" + municipio + \"\\t\" + \"Habitantes: \" + habitantes + \".\";\n }", "public String toString() {\n\t\tString dezeOpdracht = \"\";\n\t\tdezeOpdracht += getOpdrachtID() + \" - \" + getCategorie() + \"\\n\";\n\t\tdezeOpdracht += \"auteur: \" + getAuteur() + \"\\n\";\n\t\tdezeOpdracht += \"vraag: \" + getVraag() + \"\\n\";\n\t\tdezeOpdracht += \"hint: \" + getAntwoordHint() + \"\\n\";\n\t\tdezeOpdracht += (isHoofdletterGevoelig() ? \"\" : \"niet \") + \"hoofdlettergevoelig \\n\";\n\t\tdezeOpdracht += \"antwoord: \" + getAntwoord() + \"\\n\";\n\t\tdezeOpdracht += \"---------------------------------------------\";\n\t\treturn dezeOpdracht;\n\t}", "public String getAkadimischerTitel() {\r\n return akadimischerTitel;\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn getAdi()+\" \"+plakaNo;\r\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public String getNameAktivitaet() {\n return nameAktivitaet;\n }", "@Override\r\n public String toString() {\r\n return \"Nodo: \" + this.dato.toString();\r\n }", "Objet getObjetAlloue();", "@Override\r\n public String toString() {\r\n return \"Datos de Jugador: \"\r\n + \"\\n\" + \"Alias : \" + this.getAlias()\r\n + \"\\n\" + \"Nombre: \" + this.getNombre()\r\n + \"\\n\" + \"Edad : \" + this.getEdad()\r\n + \"\\n\" + \"Partidas Ganadas: \" + this.getPartidasGanadasToString()\r\n + \"\\n\" + \"Partidas Perdidas: \" + this.getPartidasPerdidasToString()\r\n + \"\\n\" + \"Partidas Empatadas: \" + this.getPartidasEmpatadasToString();\r\n }", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(Decouverte_.id.getName(), getId()) //\n .add(Decouverte_.dateDecouverte.getName(), getDateDecouverte()) //\n .add(Decouverte_.observations.getName(), getObservations()) //\n .toString();\n }", "@Override\n public String toString() {\n return \"Id del Libro: \"+id+\" Nombre del Libro: \"+nombre+\" Disponibilidad: \"+disponibilidad;\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "public static List<Kontak> getKontakData() {\n // Mendeklarasikan varibel ArrayList berjenis Kontak\n ArrayList<Kontak> listKontak = new ArrayList<>();\n // Melakukan perulangan sebanyak jumlah data(10 kali)\n for (int i = 0; i < nama.length; i++) {\n // Membuat objek Kontak\n Kontak kontak = new Kontak();\n // Mengisi data setiap atribut menggunakan setter()\n kontak.setFoto(foto[i]);\n kontak.setNama(nama[i]);\n kontak.setNoTelepon(noTelepon[i]);\n kontak.setEmail(email[i]);\n\n // Menambahkan objek kontak ke dalam ArrayList Kontak\n listKontak.add(kontak);\n }\n // Mengembalikan nilai ArrayList Kontak\n return listKontak;\n }", "private void ErstelleKontakt(Kontakt k) throws Exception {\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tk = service.createKontakt(k);\r\n\t\t\r\n\t\tSystem.out.println(\"Kontakt erstellt: \");\r\n\t\tSystem.out.println(\"ID: \" + k.getcId());\r\n\t\tSystem.out.println(\"Nachname: \" + k.getcNName());\r\n\t\tSystem.out.println(\"Vorname: \" + k.getcVName());\r\n\r\n\t}", "@Override\npublic String toString() {\n\treturn String.format(\"종류 %s\\n\"\n\t\t\t+ \"제조사 %s\\n\"\n\t\t\t+ \"이동가능 %s\\n\"\n\t\t\t+ \"통화내역 %s\\n\", super.getKind(), super.getCompany(), move, super.getCall());\n}", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public Map<String, Object> getInfo();", "@Override\n protected void getExras() {\n }", "@Override\n public String toString(){\n return Nombre + \", \" + Clave + \", de \" + horario + \", \" + Maestro;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString texto = String.format(\"+ %s - Luta:\\n\", getNome());\r\n\t\ttexto += super.toString();\r\n\t\treturn texto;\r\n\t}", "@Override\r\n public String toString() {\r\n return pontosTimeMandante + \" x \" + pontosTimeVisitante + \" - \" + (isFinalizado() ? \"Finalizado\" : \"Em andamento\");\r\n }", "public void missionlist() {\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tSystem.out.println(\" \" + hTemp.getName());\r\n\t\t}\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}", "public void status() {\n System.out.println(\"Nome: \" + this.getNome());\n System.out.println(\"Data de Nascimento: \" + this.getDataNasc());\n System.out.println(\"Peso: \" + this.getPeso());\n System.out.println(\"Altura: \" + this.getAltura());\n }", "public String toString() {\n\t\treturn tipo + \" : \" + descripcion;\n\t}", "public void reestablecerInfo(){\n panelIngresoControlador.getPanelIngreso().reestablecerInfo();\n }", "public String obtenerDetalles(){\r\n return \"Nombre: \" + this.nombre + \", sueldo = \" + this.sueldo;\r\n }", "@Override\r\n public String toString() {\r\n String ausgabe = \"\";\r\n if (maschinenListe.isEmpty()) {\r\n ausgabe = \"Es ist keine Maschine vorhanden!\";\r\n } else {\r\n for (Maschine m : maschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n\r\n ausgabe += \"Einkopfmaschinen: \\n\";\r\n for (Maschine m : einKopfMaschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n\r\n ausgabe += \"ZweiBisAchtKopf: \\n\";\r\n for (Maschine m : zweiBisAchtKopfMaschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n\r\n ausgabe += \"ZehnUndMehrKopf: \\n\";\r\n for (Maschine m : zehnUndMehrKopfMaschinenListe) {\r\n ausgabe += m.toString();\r\n }\r\n }\r\n return ausgabe;\r\n }", "private Iterable<ModelInfo<Project>> infos() {\n return data.keySet();\n }", "@Override\r\n public String toString() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n \r\n return (\r\n \"\\n\" +\r\n \"Codigo tour: \" + this.getCodigoIdentificacion() + \"\\n\" +\r\n \"Nombre Comercial: \" + this.getNombreComercial() + \"\\n\" +\r\n \"Lugar de salida: \" + this.getLugarPartida() + \"\\n\" +\r\n \"Fecha de salida: \" + sdf.format(this.getFechaSalida()) + \"\\n\" +\r\n \"Fecha de regreso: \" + sdf.format(this.getFechaRegreso()) + \"\\n\" +\r\n \"Precio: \" + String.format(\"$ %(,.0f\", this.getPrecio()) + \"\\n\" +\r\n \"Estadía (días): \" + this.calcularEstadia() + \"\\n\" +\r\n \"Costo: \" + String.format(\"$ %(,.0f\", this.calcularPrecio()) + \"\\n\" +\r\n \"Nombre empresa: \" + this.getNombreEmpresa() + \"\\n\" +\r\n \"Tipo de empresa: \" + this.getTipo() + \"\\n\" +\r\n \"Viajero frecuente:\" + (this.isViajeroFrecuente() ? \"Si\\n\" : \"No\\n\")\r\n );\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn nom;\r\n\t}", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "@Override\n public String toString() {\n return tla;\n }", "public String toString()\r\n/* 189: */ {\r\n/* 190:321 */ return this.autorizacion;\r\n/* 191: */ }", "@Override\r\n public String toString() {\r\n return tipo;\r\n }", "@Override\n public String toString() {\n return \"Pato{\" + \"patas=\" + patas + \", volar=\" + volar + '}';\n }", "public String toString() {\n\t\tString knjigaToString = \"Name: \" + naziv + \"\\nCijena: \" + cijena + \"\\nStanje: \"\n\t\t\t\t+ stanje + \"\\nAutor\"+ autorKnjige +\"\\n\\n\";\n\t\treturn knjigaToString;\n\t}", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "@Override\n public Hashtable<String, String> getLongInformation() {\n Hashtable<String, String> information = getInformation();\n \n information.put(\"size\", getSize().getTextual());\n information.put(\"chemical\", \"\" + isChemical());\n information.put(\"trapped people\", \"\" + getTrappedPeople());\n information.put(\"number of injured\", \"\" + getNumberOfInjured());\n information.put(\"description\", \"\" + getDescription());\n \n return information;\n }" ]
[ "0.66192883", "0.6512521", "0.6325575", "0.6289222", "0.6196416", "0.6122269", "0.60739356", "0.6051105", "0.59383154", "0.59319484", "0.59266967", "0.59128505", "0.5901495", "0.58705753", "0.58662856", "0.58650476", "0.58418745", "0.58394474", "0.5818063", "0.57954645", "0.5795284", "0.57788664", "0.57751817", "0.5770644", "0.5770237", "0.5768912", "0.5763939", "0.57520115", "0.57430553", "0.5742183", "0.5742075", "0.57279235", "0.5723161", "0.5720742", "0.5699478", "0.5698606", "0.5697281", "0.569359", "0.5689431", "0.5687505", "0.5675622", "0.5670202", "0.56683373", "0.5666592", "0.56524336", "0.5646933", "0.5641734", "0.5639347", "0.563523", "0.5631291", "0.5628272", "0.5619612", "0.5613224", "0.56125265", "0.5611958", "0.56119144", "0.5605786", "0.5603032", "0.55959076", "0.55957013", "0.5589776", "0.558382", "0.5579855", "0.55767256", "0.5575838", "0.55726343", "0.55715525", "0.55701643", "0.5564825", "0.5564767", "0.5562301", "0.5554464", "0.5554353", "0.5553684", "0.5553393", "0.5552519", "0.5546103", "0.5541455", "0.553714", "0.55360854", "0.553285", "0.5530929", "0.5528446", "0.55238", "0.55138385", "0.5511946", "0.550609", "0.55038625", "0.5498249", "0.5495257", "0.54876244", "0.5484472", "0.54828596", "0.54791677", "0.5478204", "0.5477626", "0.54740036", "0.5472192", "0.5469207", "0.54689974", "0.5465913" ]
0.0
-1
1. Use the bubble sorting algorithm to sort the array. You can use display.updateDisplay() to show the current progress on the graph.
@Override void sort(int[] arr, SortingVisualizer display) { int current = 0; int x; int y; boolean complete = false; while(complete == false) { current = 0; complete = true; for(int i = 0 ; i < arr.length; i ++) { display.updateDisplay(); if(arr[current] > arr[i]) { x = arr[i]; y = arr[current]; arr[i] = y; arr[current] = x; complete = false; } current = i; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tvoid sort(int[] array, SortingVisualizer display) {\n\t\tSystem.out.println(\"a\");\n\t\tboolean sorted = false;\n\t\tboolean h = true;\n\t\twhile (sorted == false) {\nh=true;\n\t\t\t// System.out.println(\"1\");\n\t\t\tRandom x = new Random();\n\t\t\tint y = x.nextInt(array.length);\n\n\t\t\tint el1 = array[y];\n\t\t\tint z = x.nextInt(array.length);\n\t\t\tint el2 = array[z];\n\n\t\t\tarray[y] = el2;\n\t\t\tarray[z] = el1;\n\t\t\tfor (int i = 0; i < array.length - 1; i++) {\n/*\n\t\t\t\tif (array[i] < array[i + 1]) {\n\n\t\t\t\t\th = true;\n\n\t\t\t\t}*/\n\n\t\t\t\tif (array[i] > array[i + 1]) {\n\t\t\t\t\th = false;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (h == true) {\n\n\t\t\t\tsorted = true;\n\t\t\t}\n\n\t\t\tdisplay.updateDisplay();\n\t\t\t\n\t\t}\n\t}", "public void sort() {\n\t\t\tfor (int j = nowLength - 1; j > 1; j--) {\n\t\t\t\tfor (int i = 0; i < j; i++) {\n\t\t\t\t\tif (ray[i] > ray[i+1]) {\n\t\t\t\t\t\tint tmp = ray [i];\n\t\t\t\t\t\tray[i] = ray[i+1];\n\t\t\t\t\t\tray[i+1] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprint();\n\t\t\t}\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Override\n\tpublic void sort() {\n\t\t\n\t\t// create maxHeap\n\t\tHeap<E> maxHeap = new MaxHeap<E>(arr);\n\t\t\n\t\telapsedTime = System.nanoTime(); // get time of start\n\t\t\n\t\tfor (int i = length - 1; i > 0; i--) {\n\n\t\t\tmaxHeap.swap(arr, 0, i);\n\t\t\tmaxHeap.heapSize--;\n\t\t\t((MaxHeap) maxHeap).maxHeapify(arr, 0);\n\n\t\t}\n\t\t\n\t\telapsedTime = System.nanoTime() - elapsedTime; // get elapsed time\n\t\t\n\t\tprint(); // print sorted array\n\t\tprintElapsedTime(); // print elapsed time\n\t\t\n\t\t\n\t}", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "public void bubbleSort() {\n\t\tint n = data.size();\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tfor (int j = 1; j < n - i; j++) {\n\t\t\t\tif (data.get(j - 1) > data.get(j)) {\n\t\t\t\t\tswap(j, j - 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "public void shellSort(int[] a) \n {\n int increment = a.length / 2;\n while (increment > 0) \n {\n \n for (int i = increment; i < a.length; i++) //looping over the array\n {\n int j = i;\n int temp = a[i]; // swapping the values to a temporary array\n try\n {\n if(!orderPanel) // checking for Descending order\n {\n while (j >= increment && a[j - increment] > temp) \n {\n a[j] = a[j - increment]; //swapping the values\n thread.sleep(100);\n repaint();\n this.setThreadState();\n j = j - increment;\n }\n }\n \n else\n {\n while (j >= increment && a[j - increment] < temp) //checking for Ascending order\n {\n a[j] = a[j - increment];\n thread.sleep(200);\n repaint();\n this.setThreadState();\n j = j - increment;\n }\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n a[j] = temp;\n }\n \n if (increment == 2) \n {\n increment = 1;\n } \n else \n {\n increment *= (5.0 / 11);\n }\n }\n }", "public void bubbleSort(int [] intArray)\n {\n int n = intArray.length;\n int temp = 0;\n try\n {\n for(int i=0; i < n; i++)\n {\n thread.sleep(100); //sleep the thread to particular to view the results in panel\n this.setThreadState();\n for(int j=1; j < (n-i); j++)\n { \n if(!orderPanel) //check for Descending order\n {\n if(intArray[j-1] > intArray[j])\n {\n //swap the elements!\n temp = intArray[j-1];\n intArray[j-1] = intArray[j];\n intArray[j] = temp;\n repaint();\n \n \n }\n }\n else if(intArray[j-1] < intArray[j]) //check for Ascending order\n {\n temp = intArray[j-1]; \n intArray[j-1] = intArray[j];\n intArray[j] = temp;\n repaint();\n \n }\n \n }\n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e);\n }\n }", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\r\n int[] numbers = {25, 43, 29, 50, -6, 32, -20, 43, 8, -6};\r\n\t\r\n\tSystem.out.print(\"before sorting: \");\r\n\toutputArray(numbers);\r\n \r\n\tbubbleSort(numbers);\r\n\t\r\n\tSystem.out.print(\"after sorting: \");\r\n\toutputArray(numbers);\r\n }", "public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }", "public void bubbleSort(){\n for(int i = arraySize -1; i > 1; i--){\n for(int j = 0; j < i; j++){\n // Use < to change it to Descending order\n if(theArray[j] > theArray[j+1]){\n swapValues(j, j+1);\n printHorizontalArray(i, j);\n }\n printHorizontalArray(i, j);\n }\n }\n }", "void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previous term\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];// swaps places within the array\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public void setBubbleSort() \n\t{\n\t\tint last = recordCount + NOT_FOUND; //array.length() - 1\n\n\t\twhile(last > RESET_VALUE) //last > 0\n\t\t{\n\t\t\tint localIndex = RESET_VALUE; \n\t\t\tboolean swap = false;\n\n\t\t\twhile(localIndex < last) \n\t\t\t{\n\t\t\t\tif(itemIDs[localIndex] > itemIDs[localIndex + 1]) \n\t\t\t\t{\n\t\t\t\t\tsetSwapArrayElements(localIndex);\n\t\t\t\t\tswap = true;\n\t\t\t\t}\n\t\t\t\tlocalIndex++;\n\t\t\t}\n\n\t\t\tif(swap == false) \n\t\t\t{\n\t\t\t\tlast = RESET_VALUE;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tlast = last + NOT_FOUND;\n\t\t\t}\n\n\t\t}//END while(last > RESET_VALUE)\n\t\treturn;\n\t}", "public void insertionSort(int[] arr) \n {\n int i, j, newValue;\n try\n { \n //looping over the array to sort the elements\n for (i = 1; i < arr.length; i++) \n {\n thread.sleep(100);\n newValue = arr[i];\n j = i;\n if(!orderPanel) //condition for Descending order\n {\n while (j > 0 && arr[j - 1] > newValue) \n {\n arr[j] = arr[j - 1]; // swapping the elements \n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n else // condition for Ascending order\n {\n while (j > 0 && arr[j - 1] < newValue) \n {\n arr[j] = arr[j - 1];\n repaint(); // painting the GUI\n this.setThreadState();\n j--;\n }\n }\n arr[j] = newValue;\n \n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured\" + e); \n }\n \n \n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "public void sort() {\n\t\tif (data.size() < 10) {\n\t\t\tbubbleSort();\n\t\t\tSystem.out.println(\"Bubble Sort\");\n\t\t} else {\n\t\t\tquickSort();\n\t\t\tSystem.out.println(\"Quick Sort\");\n\t\t}\n\t}", "public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n unordered = true;\n }\n }\n } while (unordered);\n }", "public void sort() {\n\t\tfor (int i = 1; i < this.dataModel.getLength(); i++) {\n\t\t\tfinal int x = this.dataModel.get(i);\n\n\t\t\t// Find location to insert using binary search\n\t\t\tfinal int j = Math.abs(this.dataModel.binarySearch(0, i, x) + 1);\n\n\t\t\t// Shifting array to one location right\n\t\t\tthis.dataModel.arrayCopy(j, j + 1, i - j);\n\n\t\t\t// Placing element at its correct location\n\t\t\tthis.dataModel.set(j, x);\n\t\t\tthis.repaint(this.count++);\n\t\t}\n\t}", "private ArrayList<XYValue> sortArray(ArrayList<XYValue> array){\n /*\n //Sorts the xyValues in Ascending order to prepare them for the PointsGraphSeries<DataSet>\n */\n int factor = Integer.parseInt(String.valueOf(Math.round(Math.pow(array.size(),2))));\n int m = array.size()-1;\n int count = 0;\n Log.d(TAG, \"sortArray: Sorting the XYArray.\");\n\n while(true){\n m--;\n if(m <= 0){\n m = array.size() - 1;\n }\n Log.d(TAG, \"sortArray: m = \" + m);\n try{\n //print out the y entrys so we know what the order looks like\n //Log.d(TAG, \"sortArray: Order:\");\n //for(int n = 0;n < array.size();n++){\n //Log.d(TAG, \"sortArray: \" + array.get(n).getY());\n //}\n double tempY = array.get(m-1).getY();\n double tempX = array.get(m-1).getX();\n if(tempX > array.get(m).getX() ){\n array.get(m-1).setY(array.get(m).getY());\n array.get(m).setY(tempY);\n array.get(m-1).setX(array.get(m).getX());\n array.get(m).setX(tempX);\n }\n else if(tempY == array.get(m).getY()){\n count++;\n Log.d(TAG, \"sortArray: count = \" + count);\n }\n\n else if(array.get(m).getX() > array.get(m-1).getX()){\n count++;\n Log.d(TAG, \"sortArray: count = \" + count);\n }\n //break when factorial is done\n if(count == factor ){\n break;\n }\n }catch(ArrayIndexOutOfBoundsException e){\n Log.e(TAG, \"sortArray: ArrayIndexOutOfBoundsException. Need more than 1 data point to create Plot.\" +\n e.getMessage());\n break;\n }\n }\n return array;\n }", "public void sort() {\n }", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "public void jsort() {\n\tArrays.sort(data);\n }", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "private void sorter(int[] array){\r\n\r\n for (int i = 0; i < array.length-1; i++)\r\n for (int j = 0; j < array.length-i-1; j++)\r\n if (array[j] > array[j+1])\r\n {\r\n int temp = array[j];\r\n array[j] = array[j+1];\r\n array[j+1] = temp;\r\n }\r\n }", "static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }", "void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }", "void sort();", "void sort();", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "private static void allSorts(int[] array) {\n\t\tSystem.out.printf(\"%12d\",array.length);\n\t\tint[] temp;\n\t\tStopWatch1 timer;\n\t\t\n\t\t//Performs bubble sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.bubbleSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "public static void sort (int[] data)\n {\n \t\n \tfor(int i = 0; i < data.length-1; i++)\n \t{\n \t\tint max = data[i];\n \t\tint indexOfMax = i;\n \t\t\n \t\tfor(int j = i + 1; j < data.length; j++)\n \t\t{\n \t\t\tif(data[j] > max)\n \t\t\t{\n \t\t\t\tmax = data[j];\n \t\t\t\tindexOfMax = j;\n \t\t\t}\n \t\t}\n \t\t\n \t\tdata[indexOfMax] = data[i];\n \t\tdata[i] = max;\n \t}\n \t\n // Your TA will help you write selection sort in lab. \n }", "@Test\n public void testBubbleSort() {\n BubbleSort<Integer> testing = new BubbleSort<>();\n\n testing.sort(array, new Comparator<Integer>() {\n @Override\n public int compare(Integer i1, Integer i2) {\n return i1.compareTo(i2);\n }\n });\n\n checkArray(\"Bubble sort doesn't work!\", array);\n }", "public void sortArray() {\n\t\tSystem.out.println(\"QUICK SORT\");\n\t}", "public static void main(String[] args) {\n // auxIntArr is found in AuxPkg.AuxFuncs\n int[] arr = auxIntArr.clone();\n\n System.out.println(\"BubbleSort:\");\n System.out.print(\"Before: \");\n printIntArr(arr);\n\n // Main loop where the index will grow smaller as the array gets sorted\n for( int lastUnsortedIdx = arr.length -1;\n lastUnsortedIdx > 0;\n lastUnsortedIdx--)\n {\n // Nested loop for bubbling highest values to the next sorted slot\n // in the main loop\n for(int idx = 0; idx < lastUnsortedIdx; idx++)\n {\n if(arr[idx] > arr[idx+1])\n {\n swap(arr, idx, idx+1);\n }\n }\n }\n\n System.out.print(\"After: \");\n printIntArr(arr);\n System.out.println();\n }", "public void displayStepBubbleSort(E[] array) {\n boolean needNextSort;\n for (int sortTimes = 1; sortTimes < array.length; sortTimes++) {\n System.out.println(\"Loop: \" + sortTimes);\n display(array);\n needNextSort = false;\n for (int currentPointer = 0; currentPointer < array.length - sortTimes; currentPointer++) {\n if (array[currentPointer].compareTo(array[currentPointer + 1]) > 0) {\n //Swap two value\n System.out.println(\"Swap \"\n + array[currentPointer]\n + \" with \"\n + array[currentPointer + 1]);\n E temp = array[currentPointer];\n array[currentPointer] = array[currentPointer + 1];\n array[currentPointer + 1] = temp;\n needNextSort = true;\n display(array);\n }\n }\n if (!needNextSort) {\n System.out.println(\"Array may be sorted and doesn't need to continue \");\n break;\n }\n //Display the list after each sort\n System.out.println(\"List after the \"\n + sortTimes\n + \"'sort: \");\n display(array);\n System.out.println(\"-----------------------\");\n }\n }", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "public void sort()throws InterruptedException{\n\t\tfor (int i = 0; i < a.length - 1; i++) {\n\t\t\tint minPos = minPosition(i);\n\t\t\tsortStateLock.lock();\n\t\t\ttry{\n\t\t\t\tswap(minPos, i);\n\t\t\t\t// For animation\n\t\t\t\talreadySorted = i;\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tsortStateLock.unlock();\n\t\t \t\t}\n\t\t\tpause(2);\n\t }\n }", "private void sort(int[] inputArray) {\n\t\tint temp;\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tfor(int j=0;j<inputArray.length-1-i;j++) {\n\t\t\t\tif(inputArray[j]>inputArray[j+1]) { // if(inputArray[j]<inputArray[j+1]) for descending\n\t\t\t\t\ttemp = inputArray[j];\n\t\t\t\t\tinputArray[j] = inputArray[j+1];\n\t\t\t\t\tinputArray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Pass: \" + (i+1));\n\t\t\tfor(int k=0;k<inputArray.length;k++) {\n\t\t\t\tSystem.out.print(inputArray[k] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Arry in Ascending order is:\");\n\t\tfor(int i=0;i<inputArray.length;i++) {\n\t\t\tSystem.out.print(inputArray[i] + \"\\t\");\n\t\t}\n\t}", "@Override\n\tpublic void sort(int[] array) {\n\n\t}", "private void sort(int[] arrayToSort) {\n\n output.printUnsortedArray(arrayToSort);\n // loop through all numbers in the range 0 to the length of the array\n for (int i = 0; i < arrayToSort.length - 1; i++) {\n // loop through all numbers in the range 0 to the length of the array\n for (int j = 0; j < arrayToSort.length - 1; j++) {\n int current = j;\n int next = j + 1;\n boolean swap = false;\n // check if the last number in the array is greater than the current number\n if (arrayToSort[current] > arrayToSort[next]) {\n // swap the two numbers\n int temp = arrayToSort[current];\n arrayToSort[current] = arrayToSort[next];\n arrayToSort[next] = temp;\n swap = true;\n }\n output.printPass(i, current, next, arrayToSort, swap);\n }\n output.printUpdatedArray(arrayToSort, i);\n }\n output.printSortedArray(arrayToSort);\n }", "public void selectionSort(){\n for(int x=0; x < arraySize; x++){\n int minimum = x;\n for(int y = x; y < arraySize; y++){\n // Change to < for descending sort\n if(theArray[minimum] > theArray[y]){\n minimum = y;\n }\n }\n swapValues(x, minimum);\n printHorizontalArray(x, -1);\n }\n }", "private void bubbleSort() {\r\n\r\n int n = leaderboardScores.size();\r\n int intChange;\r\n String stringChange;\r\n\r\n for (int i = 0 ; i < n - 1 ; i ++ ) {\r\n for (int j = 0 ; j < n - i - 1 ; j ++ ) {\r\n\r\n if (leaderboardScores.get(j) > leaderboardScores.get(j + 1)) {\r\n // swap arr[j+1] and arr[i]\r\n intChange = leaderboardScores.get(j);\r\n leaderboardScores.set(j, leaderboardScores.get(j + 1));\r\n leaderboardScores.set(j + 1, intChange);\r\n\r\n stringChange = leaderboardUsers.get(j);\r\n leaderboardUsers.set(j, leaderboardUsers.get(j + 1));\r\n leaderboardUsers.set(j + 1, stringChange);\r\n }\r\n\r\n }\r\n }\r\n }", "public int[] selectionSort(int[] arr)\n {\n try\n {\n for (int i = 0; i < arr.length - 1; i++) //looping over the array to sort the elements\n {\n int index = i;\n for (int j = i + 1; j < arr.length; j++)\n if(!orderPanel) // checking for Descending order\n {\n if (arr[j] < arr[index])\n index = j;\n }\n else\n {\n if (arr[j] > arr[index]) //checking for Aescending order\n index = j;\n }\n int smallerNumber = arr[index]; \n arr[index] = arr[i];\n arr[i] = smallerNumber; //swapping the values\n thread.sleep(100);\n repaint();\n this.setThreadState();\n }\n }\n catch(Exception e)\n {\n System.out.println(\"Exception occured \" + e);\n }\n return arr;\n }", "public void sort(int array[]){\n for(int i=1;i < array.length;i++){\n int j=i-1;\n int cur=i;\n while(array[cur] < array[j] && j >=0 ){\n swap(array,cur,j);\n cur--;\n j--;\n }\n\n }\n }", "public void printSortedByBubbleSort(int[] array){\r\n\t\tint temp;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = 0; j < array.length - 1; j++) {\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\ttemp = array[j];\r\n\t\t\t\t\tarray[j] = array[j + 1];\r\n\t\t\t\t\tarray[j + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nSorted by BubleSort: \");\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tSystem.out.print(array[i] + \" \");\r\n\t\t}\r\n\t}", "public static void sort(int[] ds){\n\t\tfor(int i = 0, maxi = ds.length - 1; i < maxi; i++){\n\t\t\tint min = i;\n\t\t\tfor(int j = i + 1, maxj = ds.length; j < maxj; j++){\n\t\t\t\tif(ds[min] > ds[j]){\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint t = ds[min];\n\t\t\tds[min] = ds[i];\n\t\t\tds[i] = t;\n\t\t}\n\t}", "public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint a[] = {1, 2, 5, 9, 4};\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<a.length-i-1;j++)\n\t\t\t{\n\t\t\t\tif(a[j+1] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint temp = a[j];\n\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\ta[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sorted array is:\");\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tSystem.out.print(a[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void createArrays(){\n array1 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n array2 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n BubbleSort.listArrayElements(array1);\n BubbleSort.listArrayElements(array2);\n\n int[] array = new int[array1.length + array2.length];\n\n int i = 0, j = 0;\n for (int k = 0; k < array.length; k++){\n if(i > array1.length - 1){\n array[k] = array2[j];\n j++;\n } else if(j > array2.length - 1){\n array[k] = array1[i];\n i++;\n } else if (array1[i] < array2[j]){\n array[k] = array1[i];\n i++;\n } else {\n array[k] = array2[j];\n j++;\n }\n\n }\n BubbleSort.listArrayElements(array);\n\n\n }", "@Override\n public void sort(int[] array) {\n for (int i = 0; i < array.length - 1; ++i) {\n for (int j = i + 1; j < array.length; ++j) {\n if (array[i] > array[j]) {\n int tmp = array[i];\n array[i] = array[j];\n array[j] = tmp;\n }\n }\n }\n }", "public void bubbleSort(long [] a){\n\t\tint upperBound=a.length-1;\n\t\tint lowerBound =0;\n\t\tint swaps=0;\n\t\tint iterations=0;\n\t\twhile(upperBound>=lowerBound){\n\t\t\tfor(int i=0,j=1;i<=upperBound && j<=upperBound; j++,i++){\n\t\t\t\tlong lowerOrderElement = a[i];\n\t\t\t\tlong upperOrderElement = a[j];\n\t\t\t\titerations++;\n\t\t\t\tif(lowerOrderElement>upperOrderElement){ //swap positions\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]= lowerOrderElement;\n\t\t\t\t\tswaps=swaps+1;\n\t\t\t\t}\n\t\t\t\telse{ // sorted.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tupperBound--;\n//\t\tSystem.out.println(\"upperBound:- \" +upperBound);\n//\t\tSystem.out.println(\"lowerBound:- \" +lowerBound);\n\t\t}displayArr(a);\n\t\t\n\t\tSystem.out.println(\"Total Swaps:- \" + swaps);\n\t\tSystem.out.println(\"Total Iterations:- \" + iterations);\n\t}", "public static void main (String[] args) {\n \n double[] arr = { 3.4, 2.3, 5.7, 6.7, 9.0, 2.2, 2.1, 5.0, 6.5, 3.7, 4.6, 6.0, 7.0, 7.1, 0.3 };\n System.out.println(Arrays.toString(arr));\n Arrays.sort(arr);\n System.out.println(Arrays.toString(arr));\n }", "public static void main(String[] args) throws IOException{\n final int ELEMENT_SIZE = 1000;\n \n // How large (how many elements) the arrays will be\n int dataSize = 0;\n // How many times the program will run\n int trials = 1;\n // User-inputted number that dictates what sort the program will use\n int sortSelector = 0;\n // Variables for running time caculations\n long startTime = 0;\n long endTime = 0;\n long duration = 0;\n // The longest time a sort ran, in seconds\n double maxTime = 0;\n // The fastest time a sort ran, in seconds\n double minTime = Double.MAX_VALUE;\n // The average time a sort ran, running \"trials\" times\n double average = 0;\n // A duration a sort ran, in seconds\n double durationSeconds = 0;\n\n Scanner reader = new Scanner(System.in);\n \n System.out.println(\"Please enter a size for the test array: \");\n dataSize = reader.nextInt();\n \n System.out.println(\"Please enter the amount of times you would like the sort to run: \");\n trials = reader.nextInt();\n // Slection menu for which sort to run\n System.out.println(\"Please designate the sorting algorithim you would like the program to use: \");\n System.out.println(\"Enter \\\"1\\\" for BubbleSort \");\n System.out.println(\"Enter \\\"2\\\" for SelectionSort \");\n System.out.println(\"Enter \\\"3\\\" for InsertionSort \");\n System.out.println(\"Enter \\\"4\\\" for QuickSort \");\n System.out.println(\"Enter \\\"5\\\" for MergeSort \");\n sortSelector = reader.nextInt();\n // Print sorting results header and begin running sort(s)\n System.out.println();\n System.out.println(\"Trial Running times (in seconds): \");\n \n int[] original = new int[dataSize];\n int[] sortingArray = new int[dataSize];\n \n // This loop controls the amount of times a sorting algorithim will run\n for(int i = 1; i <= trials; i++){\n // Start by generating test array\n for(int j = 0; j < dataSize; j++){\n original[j] = (int)((Math.random() * ELEMENT_SIZE) + 1);\n }\n // Copy the original to a working array\n for(int j = 0; j < dataSize; j++){\n sortingArray[j] = original[j];\n }\n // Start the \"timer\"\n startTime = System.nanoTime();\n // Run whatever sort the user selected, BubbleSort is default\n switch(sortSelector){\n case 1:\n BubbleSort.runSort(sortingArray);\n break;\n case 2:\n SelectionSort.runSort(sortingArray);\n break;\n case 3:\n InsertionSort.runSort(sortingArray);\n break;\n case 4:\n QuickSort.runSort(sortingArray);\n break;\n case 5:\n MergeSort.runSort(sortingArray);\n break;\n default:\n BubbleSort.runSort(sortingArray);\n break;\n }\n // End the \"timer\"\n endTime = System.nanoTime();\n // Generate the program's running duration\n duration = endTime - startTime;\n // Convert running time to seconds\n durationSeconds = ((double)duration / 1000000000.0);\n // Print the duration (to file)\n System.out.println(durationSeconds);\n // Update min/max running times\n if(durationSeconds < minTime){\n minTime = durationSeconds;\n }\n if(durationSeconds > maxTime){\n maxTime = durationSeconds;\n }\n // Add latest trial to running average\n average += durationSeconds;\n }\n // After trials conclude, the average running time has to be calculated\n average /= ((double)trials);\n \n System.out.println(\"\\nAfter running your selected sort \" + trials + \" times: \");\n System.out.println(\"The slowest sort took \" + maxTime + \" seconds, \");\n System.out.println(\"the fastest sort took \" + minTime + \" seconds, \");\n System.out.println(\"and the average running time was \" + average + \" seconds. \");\n \n // Left this in for testing the sorting algorithims themselves\n /*\n System.out.println();\n for(int element : original){\n System.out.println(element);\n }\n System.out.println();\n for(int element : sortingArray){\n System.out.println(element);\n }\n */\n }", "@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j], \"shit\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Heap sort ok\");\n\t\t}", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "private static void sort(int[] arr) {\n\t\t\n\t\tint i=0;\n\t\tint j=0;\n\t\tint k=arr.length-1;\n\t\tSystem.out.println(\"length \"+arr.length);\n\t\twhile (i<=k)\n\t\t{\n\t\t\tSystem.out.println(\"at start i \"+i+\" j \"+j+\" k \"+k);\n\t\t\tif(arr[i]==0)\n\t\t\t\tswap(j++,i++,arr);\n\t\t\telse if(arr[i]==2)\n\t\t\t\tswap(k--,i,arr);\n\t\t\telse\n\t\t\t\ti++;\n\t\t\t\n\t\t\tprintArray(arr);\n\t\t\tSystem.out.println(\"at end i \"+i+\" j \"+j+\" k \"+k);\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic void sortDESC(int[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j = i + 1; j < array.length; j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (array[i] < array[j]) {\r\n\t\t\t\t\tint temp = array[i];\r\n\t\t\t\t\tarray[i] = array[j];\r\n\t\t\t\t\tarray[j] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void bubbleSort(int [] array) {\n\t\t\n\t\tfor(int i=0; i<array.length - 1; i++) {\n\t\t\t\n\t\t\tfor(int j=0; j<array.length-i-1; j++) {\n\t\t\t\t\n\t\t\t\tif(array[j]>array[j+1]) {\n\t\t\t\t\t\n\t\t\t\t\tint temp = array[j];\n\t\t\t\t\tarray[j] = array[j+1];\n\t\t\t\t\tarray[j+1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(Arrays.toString(array));\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint[] sortArray = new int[] {1,-5,10,2,8};\r\n\t\tBubbleSort.sort(sortArray);\r\n\t\tfor(int elm:sortArray){\r\n\t\t\tSystem.out.println(\"Sorted Array \"+elm);\r\n\t\t}\r\n\r\n\r\n\t}", "void sortUI();", "public static void sortBubble(int[] tab) {\n boolean alreadySorted=false;\n int temp;\n int n=tab.length;\n int i=0;\n if(tab.length!=0){\n while (i<n-1 && !alreadySorted){\n alreadySorted=true;\n for (int j=0; j<n-1-i;j++){\n if (tab[j]>tab[j+1]){\n alreadySorted=false;\n temp=tab[j];\n tab[j]=tab[j+1];\n tab[j+1]=temp;\n }\n }\n i=i+1;\n }\n }\n}", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "public static void sort(int[] arr){\n\n for(int i=1;i<arr.length;i++){\n int current=arr[i];\n int j=i-1;\n\n while(j>=0 && arr[j]>current){\n arr[j+1]=arr[j];\n j--;\n }\n\n arr[j+1]=current;\n }\n\n\n\n }", "@Override\r\n\tpublic void sort(int[] demo) {\n\t\tint temp;\r\n\t\tfor(int gap = 5;gap > 0;gap /= 2){\r\n\t\t\tfor(int i = gap;i < demo.length;i++){\r\n\t\t\t\tfor(int j = i - gap;j >= 0;j -= gap){\r\n\t\t\t\t\tif (demo[j] > demo[j + gap]) {\r\n\t\t\t\t\t\ttemp =demo[j];\r\n\t\t\t\t\t\tdemo[j] =demo[j + gap];\r\n\t\t\t\t\t\tdemo[j + gap] = temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(Arrays.toString(demo));\r\n\t}", "public static void main(String[] args) {\r\n\t\tint arr[] = {1,0,5,6,3,2,3,7,9,8,4};\r\n\t\tint temp;\r\n\t\t\r\n\t\tfor(int i = 0; i < 10; i ++) {\r\n\t\t\tfor(int j = 0; j < 10 - i; j ++) {\r\n\t\t\t\tif(arr[j] > arr[j+1]){\r\n\t\t\t\t\ttemp = arr[j+1];\r\n\t\t\t\t\tarr[j+1] = arr[j];\r\n\t\t\t\t\tarr[j] = temp;\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < 11; i ++) {\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t}", "public void myBubbleSort(int array[]) {\n for (int i = 0; i < array.length - 1; i++) {\n //Iterate through the array to the index to the left of i\n for (int j = 0; j < array.length - i - 1; j++) {\n //Check if the value of the index on the left is less than the index on the right\n if (array[j] > array[j + 1]) {\n //If so, swap them.\n int temp = array[j];\n array[j] = array[j + 1];\n array[j + 1] = temp;\n\n }\n }\n }\n }", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "public static void main(String[] args) {\n\n\t\tint[] a= {10,9,7,13,2,6,14,20};\n\t\tSystem.out.println(\"before sort\"+Arrays.toString(a));\n\t\tfor(int k=1;k<a.length;k++) {\n\t\t\tint temp=a[k];\n\t\t\tint j=k-1;\n\t\t\t\n\t\t\twhile(j>=0 && temp<=a[j]) {\n\t\t\t\ta[j+1]=a[j];\n\t\t\t\tj=j-1;\n\t\t\t}\n\t\t\ta[j+1]=temp;\n\t\t}\n\n\t\t\n\t\tSystem.out.println(\"After sort\"+Arrays.toString(a));\n\t\t\n\t\tSystem.out.println(\"print uing for loop\");\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+\"\");\n\t\t}\n\t}", "public double[] sort(double[] data) {\r\n for (int pass = 1; pass < data.length; pass++) {\r\n for (int element=0;element<data.length-1;element++) {\r\n if (data[element] > data[element + 1]){\r\n double hold = data[element];\r\n this.countOp();\r\n data[element] = data[element + 1];\r\n this.countOp();\r\n data[element + 1] = hold;\r\n this.countOp();\r\n }\r\n }\r\n }\r\n return data;\r\n }", "public static void main(String[] args) {\n \n int swap = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.print(\"Kaç elemanlı = \");\n int max = scan.nextInt();\n\n int[] toSortArray = new int[max];\n\n toSortArray[0] = 0;\n\n for (int i = 1; i < max; i++) {\n\n toSortArray[i] = (int) (Math.random() * 100);\n toSortArray[0]++; //holds the number of values in the array;\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp;\n index = index / 2;\n\n }\n\n\t\t\t//Hence the heap is created!\n }\n\n System.out.println(\"The array to be sorted is:\");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n\n }\n\n System.out.println(\" | \");\n\n\t\t//Start\n\t\t//Let's Sort it out now!\n while (toSortArray[0] > 0) {\n\n int temp = toSortArray[1];\n toSortArray[1] = toSortArray[toSortArray[0]];\n toSortArray[toSortArray[0]] = temp;\n\n for (int i = 1; i < toSortArray[0]; i++) {\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp1 = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp1;\n index = index / 2;\n swap = swap+1;\n\n }\n\n }\n\n toSortArray[0]--;\n\n }\n\n\t\t//End\n System.out.println(\"The sorted array is: \");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n }\n\n System.out.println(\" | \");\n System.out.println(max + \" eleman için \"+ swap + \" adet eleman yerdeğiştirildi. \" );\n\n }", "public static void bubbleSort() {\r\n\t\tfor(int i = nodeArrList.size() -1; i > 0; i--) {\r\n\t\t\tfor(int j = 0; j < i; j++) {\r\n\t\t\t\tif(nodeArrList.get(j).frequency > nodeArrList.get(j +1).frequency) {\r\n\t\t\t\t\tHuffmanNode temp = nodeArrList.get(j);\r\n\t\t\t\t\tnodeArrList.set(j, nodeArrList.get(j + 1));\r\n\t\t\t\t\tnodeArrList.set(j + 1, temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "public static void main(String[] args) {\n int sampleArray[] = arrayInitializer(15000);\n SortArray testArray = new SortArray(sampleArray);\n System.out.println(\"Initial array is:\");\n //System.out.println(testArray.toString());\n\n // Sort the array with Bubbles method\n long startTime = System.currentTimeMillis();\n testArray.sortArray();\n long stopTime = System.currentTimeMillis();\n System.out.println(\"Sorted by Bubbles method array is:\");\n //System.out.println(testArray.toString());\n showTime(\"Bubbles sorting took: \", startTime, stopTime);\n\n // Sort the array with Binary Tree method\n SortArray testArray2 = new SortArray(sampleArray);\n System.out.println(\"Initial array is:\");\n //System.out.println(testArray2.toString());\n\n System.out.println(\"Sorted by Binary tree method array is:\");\n startTime = System.currentTimeMillis();\n testArray2.sortArrayBinaryTree();\n stopTime = System.currentTimeMillis();\n //System.out.println(testArray2.toString());\n showTime(\"Tree sorting took: \", startTime, stopTime);\n System.out.println(\"Job is done!\");\n }", "public void mergeSort() {\n this.array = mergeSort(array);\n }", "public String doSort();", "public abstract void sort(int[] array);", "public static void BubbleSort(int[] a) {\n\t int n = a.length;\n\t int temp = 0;\n\n\t for(int i = 0; i < n; i++) {\n\t for(int j=1; j < (n-i); j++) {\n\t if(a[j-1] > a[j]) {\n\t temp = a[j-1];\n\t a[j-1] = a[j];\n\t a[j] = temp;\n\t }\n\t }\n\t }\n\t}", "public void sort() {\n\tqsort(a,0,a.length-1);\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public static void sort(int[] arr){\n\t\tint temp;\n\t\tfor(int i=0; i<arr.length; i++){\n\t\t\tfor(int j=1; j<arr.length-i; j++)\n\t\t\tif(arr[j-1] > arr[j]){\n\t\t\t\ttemp = arr[j-1];\n\t\t\t\tarr[j-1] = arr[j];\n\t\t\t\tarr[j] = temp;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "public static int[] bubbleSortBasic(int [] arrayToSort , SorterObject results)\n {\n \t// Create a copy of array than was send\n int [] arr = Arrays.copyOf(arrayToSort,arrayToSort.length);\n // Start the timer\n long startTime = System.currentTimeMillis(); \n // Variable used for swaping elements\n int temp = 0; \n // Outer loop\n for(int i=0; i < arr.length-1; i++)\n { \n // inner loop\n for(int j=0; j < arr.length-1; j++)\n { \n \t// Increase number of comparisons\n \tresults.numberOfComparisons++;\n if(arr[j] > arr[j+1])\n { \n\t temp = arr[j]; \n\t arr[j] = arr[j+1]; \n\t arr[j+1] = temp; \n\t // Increase number of swaps\n\t results.numberOfSwaps++;\n }\n }\n } \n // Stop the timer\n long stopTime = System.currentTimeMillis();\n // Calculate time \n long elapsedTime = stopTime - startTime;\n // Save time elapsed in global results object\n results.time = elapsedTime;\n // Return sorted array\n return arr;\n \n }", "public static void main(String[] args) {\n int arr[] = { 6, 7, 0, 2, 8, 1, 3, 9, 4, 5 };\n int temp[] = new int[10];\n\n SapXepTron sapXeptron = new SapXepTron();\n System.out.println(\"Mang du lieu dau vao: \");\n sapXeptron.display(arr);\n System.out.println(\"-----------------------------\");\n sapXeptron.sort(arr, temp, 0, arr.length - 1);\n System.out.println(\"-----------------------------\");\n System.out.println(\"\\nMang sau khi da sap xep: \");\n sapXeptron.display(arr);\n }", "public static void main(String[] args) {\n\n\t int[] intArray = {-20, 89, 96, -71, 105, 692, -897};\n\n\t for (int gap = intArray.length/2; gap > 0; gap /= 2) {\n\n\t for (int i = gap; i < intArray.length; i++) {\n\t int newElement = intArray[i];\n\n\t int j = i;\n\t while (j >= gap && intArray[j - gap] > newElement) {\n\t intArray[j] = intArray[j-gap];\n\t j-=gap;\n }\n\t intArray[j] = newElement;\n\n System.out.println(\"Array after sort is now: \");\n for (int k : intArray) {\n System.out.print(k + \" \");\n }\n System.out.println();\n }\n }\n\n\n\t for (int i : intArray) {\n System.out.print(i + \" \");\n }\n }", "void sort(double arr[], long start, long end) \n { \n double biggest = 0, temp;\n int biggestIndex = 0;\n for(int j = 0; j > arr.length+1; j++){\n for(int i = 0; i < arr.length-j; i++){\n if(arr[i] > biggest){\n biggest = arr[i];\n biggestIndex = i;\n }\n }\n temp = arr[arr.length-1];\n arr[arr.length-1] = biggest;\n arr[biggestIndex] = temp;\n biggest = 0;\n biggestIndex = 0;\n }\n }", "static void sort(int[] array) {\n int len = array.length;\n for (int i = 0; i < len; i++) {\n int minIndex = i;\n for (int j = i + 1; j < len; j++) {\n if (array[j] < array[minIndex])\n minIndex = j;\n }\n SortingUtil.swap(array, i, minIndex);\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint[] arr= {10,89,20,300,10,900,0,1};\n\t\tarr=SortDe(arr);\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\t\tdouble[] arr2 = {10.5,5.5,300,2.0,6.5};\n\t\t// arr2=SortDe(arr2);\n\t\tSystem.out.println(Arrays.toString(SortDe(arr2)));\n\t\t\n\t\t\n\t\t\n\t}", "public static void bubbleSortAlgo(int[] arr) {\n for(int i = 1; i<arr.length-1; i++){\n // inner loop to compare each element with it's next one in every iteration in one complete outer loop\n for(int j = 0; j<arr.length -1; j++){\n if(isSmaller(arr, j+1, j)){ // compares the jth element from it's next element\n swap(arr, j+1, j); // if ismaller condition is true swaps both the elements\n }\n }\n }\n \n }", "public static void main(String []args){\n int array[] = {4,7,2,9,8,1,6,5,3};\n sort(array,0, array.length-1);\n for(int i:array)\n System.out.print(i+\" \");\n }", "public static void main(String[] args) {\n Integer[] s = {39, 20, 40, 1, 2, 3, 4, 5, 6, 7};\n Stopwatch timer = new Stopwatch();\n\n sort(s);\n\n double time = timer.elapsedTime();\n assert isSorted(s);\n StdOut.print(\"time: \" + time);\n StdOut.println();\n show(s);\n }", "public static void bubbleSort(int [] arr){\n int temp = 0; //temporary variable\n boolean flag = false; //mark if any reversion has happened\n for (int i = 0; i < arr.length - 1;i++){\n\n for (int j = 0; j < arr.length - 1-i; j++) {\n //if the previous number is bigger than the latter, reverse\n if (arr[j] > arr[j + 1]) {\n flag = true;\n temp = arr[j];\n arr[j] = arr[j + 1];\n arr[j + 1] = temp;\n }\n }\n\n //System.out.printf(\"After the %d round of sorting\",i+1);\n //System.out.println(Arrays.toString(arr));\n\n if(!flag){\n break;\n } else {\n flag = false;\n //reset flag to true to do the next check\n }\n }\n }", "public static void sortDesc(int[] theArray) {\n\n\n //convert the array with int to a list with Integer\n //boxed convert the int to an Integer. collectors.toList() converts the array to a list.\n List<Integer> thelist = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n //sort it in reverse\n Collections.sort(thelist, Collections.reverseOrder());\n\n //since the List has Integer and not int anymore..\n for (int i = 0; i < theArray.length; i++) {\n theArray[i] = thelist.get(i);\n }\n\n ////ALT code\n ////using bubblesort Algorithm\n\n// int len = theArray.length;\n// int temp = 0;\n//\n// for (int i = 0; i < len; i++) {\n// for (int j = 1; j < (len-i); j++) {\n//\n// if (theArray[j - 1] < theArray[j]) {\n// //switch position\n// temp = theArray[j - 1];\n// theArray[j - 1] = theArray[j];\n// theArray[j] = temp;\n// }\n//\n// }\n// }\n\n }", "public void bubbleSort() {\n \tfor (int i = 0; i < contarElementos()-1; i++) {\n\t\t\tboolean intercambiado= false;\n\t\t\tfor (int j = 0; j < contarElementos()-1; j++) {\n\t\t\t\tif (encontrarNodoEnElndice(j).getElemento().compareTo(encontrarNodoEnElndice(j+1).getElemento())>0) {\n\t\t\t\t\tintercambiar(j, j+1);\n\t\t\t\t\tintercambiado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!intercambiado) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "public static void main(String[] args) {\n\t\tint temp;\r\n\t\tint[] num= {2,5,4,1,3,6};\r\n\t\t/*Arrays.sort(num);\r\n\t\tSystem.out.println(Arrays.toString(num));*/\r\n\t\tfor(int i=0;i<num.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i+1;j<num.length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(num[i] > num[j])\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=num[i];\r\n\t\t\t\t\tnum[i]=num[j];\r\n\t\t\t\t\tnum[j]=temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int i=0;i<num.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(num[i]);\r\n\t\t}\r\n\t}" ]
[ "0.75629914", "0.7550453", "0.7479273", "0.74694544", "0.74434066", "0.7429868", "0.73452467", "0.7269857", "0.7245312", "0.7230623", "0.7228093", "0.7223201", "0.72108155", "0.7207601", "0.716401", "0.7155703", "0.7151934", "0.70930743", "0.70774996", "0.7072522", "0.706994", "0.7040349", "0.70395947", "0.70327157", "0.7028009", "0.6993614", "0.6958279", "0.6957942", "0.69334203", "0.69045025", "0.6897045", "0.6897045", "0.68652594", "0.68640244", "0.68352437", "0.68321985", "0.68225753", "0.6816129", "0.68041", "0.68002164", "0.67934054", "0.6790071", "0.6779138", "0.6775139", "0.67714703", "0.67607945", "0.67571634", "0.6746608", "0.6746513", "0.67400604", "0.67370325", "0.67276394", "0.6725573", "0.67252356", "0.6717058", "0.67169476", "0.67143244", "0.6712923", "0.6706899", "0.66880697", "0.6687169", "0.6679059", "0.66732335", "0.6668919", "0.6662952", "0.6661653", "0.6660951", "0.66551757", "0.6639335", "0.6630976", "0.66307265", "0.6620724", "0.6619543", "0.66103315", "0.6608145", "0.6598828", "0.6597187", "0.659138", "0.6581826", "0.657862", "0.657759", "0.6576544", "0.65670043", "0.6564994", "0.6556205", "0.6550268", "0.65459895", "0.6543599", "0.65383303", "0.65337926", "0.65308416", "0.6528487", "0.65180564", "0.6516613", "0.65157974", "0.6509866", "0.6508913", "0.65075296", "0.65028083", "0.64962775" ]
0.8135132
0
~ Methods ////////////////////////////////////////////////////////////////// Insert doc ...
public void paint(Graphics g) { iconMain.paintIcon( this, g, INT_ICON_X, INT_ICON_Y); iconRed.paintIcon( this, g, iconMain.getX() + iconMain.getIconWidth() + 5, INT_ICON_Y); iconOrange.paintIcon( this, g, iconRed.getX() + iconRed.getIconWidth() + 5, INT_ICON_Y); iconYellow.paintIcon( this, g, iconOrange.getX() + iconOrange.getIconWidth() + 5, INT_ICON_Y); iconGray.paintIcon( this, g, iconYellow.getX() + iconYellow.getIconWidth() + 5, INT_ICON_Y); iconWhite.paintIcon( this, g, iconGray.getX() + iconGray.getIconWidth() + 5, INT_ICON_Y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insert() {\n\t\t\n\t}", "public void insert()\n\t{\n\t}", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "@Override\n\tpublic void preInsert() {\n\n\t}", "@Override\n\tpublic void insertProcess() {\n\t\t\n\t}", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public abstract String insert(Object obj) ;", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "int insert(Commet record);", "int insert(Ltsprojectpo record);", "int insert(GirlInfo record);", "int insert(HelpInfo record);", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic Integer insert(Wt_collection record) {\n\t\treturn 0;\r\n\t}", "int insert(TbFreightTemplate record);", "int insert(TagData record);", "@Override\n\t\tpublic void insert() {\n\t\t\tSystem.out.println(\"새로운 등록\");\n\t\t}", "void insert(Mi004 record);", "int insert(Body record);", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "int insert(FctWorkguide record);", "int insert(RepStuLearning record);", "int insert(Basicinfo record);", "public void insert(Comment com){\n //@todo implement method\n }", "int insert(FeiWenComment record);", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "@Override\n\tpublic void insert(Connection c, Genre v) throws SQLException {\n\n\t}", "int insert(AccuseInfo record);", "@Override\n public void DataIsInserted() {\n }", "int insert(KnowledgeComment record);", "int insert(CfgSearchRecommend record);", "int insert(SPerms record);", "int insert(ArticleTag record);", "int insert(Comments record);", "@Override\n\tpublic int insert(Object ob) {\n\t\treturn 0;\n\t}", "int insert(SpecialCircumstance record);", "int insert(PaasCustomAutomationRecord record);", "public void insert(Conge conge) ;", "@Override\n\tpublic void insertUpdate(DocumentEvent de) {\n\n\t}", "int insert(BaseCountract record);", "int insert(IntegralBook record);", "public boolean insertPerson(SamplePerson person) {\n //TODO\n throw new NotImplementedException();\n }", "int insert(DictDoseUnit record);", "int insert(CommentLike record);", "int insert(Storydetail record);", "int insert(TLinkman record);", "int insert(ToolsOutIn record);", "int insert(Massage record);", "@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}", "private void add() {\n\n\t}", "int insert(Position record);", "int insert(DBPublicResources record);", "int insert(Comment record);", "int insert(AnnouncementDO record);", "int insert(FileRecordAdmin record);", "int insert(SecondSlideshow record);", "int insert(Enfermedad record);", "int insert(AttributeExtend record);", "int insert(TbSerdeParams record);", "int insert(Assist_table record);", "int insert(TDictAreas record);", "int insert(Abum record);", "int insert(ComplainNoteDO record);", "int insert(WdWordDict record);", "int insert(Terms record);", "int insert(Forumpost record);", "void insert(organize_infoBean record);", "int insert(YzStiveExplosion record);", "int insert(CaseLinkman record);", "int insert(Caiwu record);", "int insert(Engine record);", "int insertSelective(GirlInfo record);", "int insert(PrhFree record);", "@Override\n\tpublic long insert(ContentValues cv) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int insert(Permis record) {\n\t\treturn 0;\n\t}", "int insert(UserTips record);", "int insert(MenuInfo record);", "@Override\n\tpublic int insert(Cell record) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "@Override\r\n\tpublic void doInsert(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "int insert(UsrMmenus record);", "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public void insert(BusiTagBean record) {\n }", "int insert(ConfigData record);", "int insert(WxNews record);", "int insert(UserCorporateComment record);", "public void insert(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "int insert(NjProductTaticsRelation record);", "int insert(TDwBzzxBzflb record);", "int insertSelective(Commet record);", "int insert(Clazz record);", "int insert(NewsFile record);", "int insert(BookInfo record);", "int insert(DiaryFile record);", "int insert(AdminTab record);", "int insert(Article record);", "int insert(TCpySpouse record);", "public void initForAddNew() {\r\n\r\n\t}", "public long insert();", "int insert(Tourst record);", "int insert(Appraise record);" ]
[ "0.75633895", "0.71887594", "0.71594995", "0.7110828", "0.6872321", "0.68208486", "0.6491917", "0.64301944", "0.6424052", "0.6419576", "0.64162755", "0.6394142", "0.63787574", "0.6352641", "0.63319135", "0.63301265", "0.63184047", "0.631001", "0.6307643", "0.630355", "0.62790674", "0.627788", "0.6270281", "0.62590015", "0.6255918", "0.6228804", "0.6227288", "0.62199", "0.62168074", "0.6216161", "0.62118685", "0.6210203", "0.6200134", "0.6195747", "0.6194983", "0.61933655", "0.6171352", "0.61656374", "0.61653405", "0.6162197", "0.61551344", "0.6155111", "0.6145773", "0.6144762", "0.6138011", "0.61350554", "0.61281115", "0.6128011", "0.6125241", "0.6111991", "0.611042", "0.61093765", "0.6109032", "0.6108733", "0.6106483", "0.6101185", "0.609998", "0.60988265", "0.6088893", "0.60887104", "0.6083959", "0.60827786", "0.60798526", "0.6070822", "0.60703033", "0.6068672", "0.60669124", "0.6064101", "0.60595906", "0.6057679", "0.6054457", "0.60500455", "0.60496056", "0.6049403", "0.6048391", "0.6048327", "0.6042411", "0.60386664", "0.6037535", "0.6035321", "0.6033427", "0.6027458", "0.60269076", "0.6023384", "0.602335", "0.6019545", "0.6014489", "0.6009183", "0.60069156", "0.60061795", "0.6002518", "0.60021234", "0.6001439", "0.60008776", "0.59973186", "0.5993147", "0.59924966", "0.59905595", "0.5989826", "0.5985994", "0.59859157" ]
0.0
-1
constructs a new MutualFund investment with the given symbol and price per share
public MutualFund(String symbol, double currentPrice) { super(symbol, currentPrice); this.totalShares = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StockPortfolio(double valueOfPortfolio, double transferFee, double amount) {\n\n }", "public Company(int shares, int hoursPerMonth){\n\t\tthis.shares = shares;\n\t\tthis.hoursPerMonth = hoursPerMonth;\n\t}", "public void purchase(double shares, double pricePerShare)\n {\n this.totalShares += shares;\n super.addCost(shares * pricePerShare);\n }", "public Share(int shareholderId, String companySymbol, int amountOfShares) {\n\t\tsuper();\n\t\tthis.shareholderId = shareholderId;\n\t\tthis.companySymbol = companySymbol;\n\t\tthis.amountOfShares = amountOfShares;\n\t}", "public void buyStock(double askPrice, int shares, int tradeTime) {\n }", "public void buy(int num, float sharePrice) {\n\t\tTransaction t = new Transaction(num, sharePrice);\n\t\tshares.enqueue(t);\n\n\t}", "public void buy(String n,int shares, Stock s){\n boolean own = false;\n for (PersonStocks x :myStocks) {//if the name is a stock that exists\n if(n.equals(x.getName())) {\n x.addShares(shares);\n money-= (s.getPrice()*shares);\n own = true;\n }\n }\n if (!own){//makes the user own it now\n myStocks.add(new PersonStocks(n,shares));\n money-= (s.getPrice()*shares);\n\n }\n\n }", "public void sell(Share s) {\r\n try {\r\n Double price = s.getCompany().getCurrentPrice()*(new Random().nextDouble()+0.5)*s.getNumber();\r\n Exchange e = s.getExchange();\r\n Share exchangeShare = null;\r\n for (int i=0; i<e.getShares().size(); i++) {\r\n if (e.getShares().get(i).getCompany() == s.getCompany()) {\r\n exchangeShare = e.getShares().get(i); break;\r\n } \r\n }\r\n if (exchangeShare!=null) {\r\n synchronized(s){\r\n s.getCompany().buyShares(s, s.getNumber(), price);\r\n exchangeShare.setNumber(exchangeShare.getNumber()-s.getNumber());\r\n this.budget+=price;\r\n this.capital.remove(s);\r\n this.shares.remove(s);\r\n }\r\n }\r\n }\r\n catch (Exception ex)\r\n {\r\n \r\n }\r\n\r\n }", "public void setSharePct(BigDecimal sharePct) {\n\t\tthis.sharePct = sharePct;\n\t}", "public StockTradeGrouping( final String symbol ) {\n super() ;\n this.symbol = symbol ;\n }", "public void mutualFund(){\n\t\tSystem.out.println(\"HSBC BANK :: MUTUAL FUND\");\n\t}", "public SingletonMarket<Goods, Bidder<Goods>> getSingletonMarket(int numGoods, int numBidders, double p, String distribution) throws Exception {\n switch (distribution) {\n case \"Uniform\":\n return SingletonMarketFactory.uniformRewardSingletonRandomMarket(numGoods, numBidders, p);\n case \"Elitist\":\n return SingletonMarketFactory.elitistRewardSingletonRandomMarket(numGoods, numBidders, p);\n default:\n throw new Exception(\"Unknown distribution: \" + distribution);\n }\n }", "public void setSharePrice(double stockPrice) {\n\t\tthis.sharePrice = stockPrice;\n\t}", "public void purchaseStock(long socialSecurityNumber, String userName, String password, String tickerSymbol, int shares) throws AuthenticationException,UnauthorizedActionException,InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction purchase = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.BUYSTOCK, getPatron(socialSecurityNumber).getBrokerageAccount(), shares);\r\n purchase.setStockSymbol(tickerSymbol);\r\n purchase.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(purchase);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }", "protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice map and return true;\r\n stocksSymbolToPrice.put(tickerSymbol, sharePrice);\r\n return true;\r\n }", "public interface AmountFactory {\r\n Amount amountFrom(BigDecimal amountValue);\r\n\r\n Amount amountFrom(BigDecimal amountValue, BigDecimal multiplier);\r\n}", "private static boolean buy(Environment environment,\n\t\t\t Symbol symbol,\n\t\t\t float amount,\t\t\t\t \n\t\t\t float tradeCost,\n\t\t\t int day) \n\tthrows MissingQuoteException {\n\tfloat sharePrice = environment.quoteBundle.getQuote(symbol, Quote.DAY_OPEN, day);\n\tint shares = \n\t (new Double(Math.floor(amount / sharePrice))).intValue();\n\t\n\t// Now calculate the actual amount the shares will cost\n\tamount = sharePrice * shares;\n\t\n\t// Make sure we have enough money for the trade\n\tif(environment.cashAccount.getValue() >= (tradeCost + amount)) {\n\n\t TradingDate date = environment.quoteBundle.offsetToDate(day);\n\t Transaction buy = Transaction.newAccumulate(date, \n amount,\n\t\t\t\t\t\t\tsymbol, \n shares,\n\t\t\t\t\t\t\ttradeCost,\n\t\t\t\t\t\t\tenvironment.cashAccount,\n\t\t\t\t\t\t\tenvironment.shareAccount);\n\n\t environment.portfolio.addTransaction(buy);\n\t return true;\n\t}\n\t\n\treturn false;\n }", "public void buy(RawMaterial m, double amount)\r\n throws NoMoneyException, DoesntExistException, NotEnoughException {\r\n if (!Main.materialMarket.getMaterials().contains(m)) \r\n throw new DoesntExistException(\"Can't find \" + m.getName());\r\n \r\n double tempPrice = amount*m.getValue()*(1+Main.materialMarket.markup);\r\n double price = tempPrice*m.getCurrency().getBasicRate();\r\n \r\n if (this.budget<price) throw new NoMoneyException(m);\r\n\r\n synchronized (this) {\r\n try {\r\n m.sell(amount);\r\n this.capital.put(m, amount);\r\n this.materials.put(m, amount);\r\n this.budget-=price;\r\n }\r\n catch (NotEnoughException e) {\r\n throw e;\r\n }\r\n\r\n }\r\n \r\n }", "public DefaultOwnedStock(String symbol){\n\t\tsuper(symbol);\n\t\tprinciple = new BigDecimal(0);\n\t\ttotalValue = new BigDecimal(0);\n\t\tnet = new BigDecimal(0);\n\t}", "public BondStream (\n\t\tfinal java.util.List<org.drip.analytics.cashflow.CompositePeriod> lsCouponPeriod,\n\t\tfinal int iFinalMaturityDate,\n\t\tfinal java.lang.String strMaturityType)\n\t\tthrows java.lang.Exception\n\t{\n\t\tsuper (lsCouponPeriod);\n\n\t\t_strMaturityType = strMaturityType;\n\t\t_iFinalMaturityDate = iFinalMaturityDate;\n\t}", "public void sellStock(long socialSecurityNumber, String userName, String password, String tickerSymbol, int shares) throws AuthenticationException,UnauthorizedActionException,InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction sale = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.SELLSTOCK, getPatron(socialSecurityNumber).getBrokerageAccount(), shares);\r\n sale.setStockSymbol(tickerSymbol);\r\n sale.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(sale);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }", "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "public void newFund(int year, int order, long yourCoins, long partnerCoins) {\n /* Do nothing */\n }", "public void buyShare(BigDecimal priceDecimal, Stock stock) {\n List<Orderstock> orderstockBuyList = orderstockServiceImpl.buyStock(stock.getSymbol(), Utils.BUY, priceDecimal);\n for (Orderstock orderstock : orderstockBuyList) {\n AccountDto accountDto = new AccountDto();\n BigDecimal stockLot = new BigDecimal(orderstock.getStockLot());\n BigDecimal cash = stockLot.multiply(priceDecimal);\n accountDto.setCash(cash);\n\n User existingUser = userService.findByUserId(orderstock.getUser().getUserId());\n if (existingUser == null || Boolean.FALSE.equals(existingUser.isEnabled() )) {\n throw new DataIntegrityViolationDbException(\"Could not find active user!\");\n }\n\n accountServiceImpl.withdrawCash(accountDto, existingUser);\n orderstock.setActive(false);\n orderstockServiceImpl.updateOrderstock(orderstock);\n\n String mail = env.getProperty(\"spring.mail.username\");\n emailSenderService.sendEmail(existingUser.getEmail(), \"STOCK BUY NOTIFICATION\",\n mail,\"Stock Symbol -> \" + stock.getSymbol() + \" - \"\n + \" Stock Price -> \" + priceDecimal);\n }\n }", "public PortfolioAsset (String ticker, Double quantity, Date purchaseDate, Double purchasePrice) {\n\t\tthis.ticker = ticker;\n\t\tthis.quantity = quantity;\n\t\tthis.purchaseDate = purchaseDate;\n\t\tthis.purchasePrice = purchasePrice;\n\t\tpurchaseValue = purchasePrice * quantity;\n\t\t//assigning current price and value to ZERO - this will be changed when updateCurrentPriceAndValue method is called\n\t\tcurrentPrice = 0.0;\n\t\tcurrentValue = 0.0;\n\t\taccumulatedDividend = 0.0;\n\t\t\n\t}", "TradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);", "public void putNewPrice(String symbol, double price);", "public CashAccount(double initialCash, double tradingFeePerShare){\n\t\tthis(initialCash);\n\t\tthis.tradingFeePerShare = tradingFeePerShare;\n\t}", "public Stock(String s, String n, double p) {\r\n\t\tsymbol = s;\r\n\t\tname = n;\r\n\t\tlowPrice = p;\r\n\t\tlastPrice = p;\r\n\t\thighPrice = p;\r\n\t\tdayVolume = 0;\r\n\t\tbuy = new PriorityQueue<TradeOrder>(new PriceComparator());\r\n\t\tsell = new PriorityQueue<TradeOrder>(new PriceComparator());\r\n\r\n\t}", "@Test\r\n public void test() {\r\n Configuration.getInstance().setDeductIncomeTax(false);\r\n\r\n String symbol = \"TST\";\r\n Stock stock = new Stock(symbol, \"Test Stock\");\r\n stock.setPrice(10.00);\r\n stock.setDivRate(1.00);\r\n\r\n // Initial (empty) position.\r\n Position position = new Position(stock);\r\n Assert.assertEquals(0, position.getNoOfShares());\r\n Assert.assertEquals(0.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // BUY 100 @ $20 ($5 costs)\r\n stock.setPrice(20.00);\r\n position.addTransaction(TestUtil.createTransaction(1, 1L, TransactionType.BUY, symbol, 100, 20.00, 5.00));\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-5.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-5.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-0.25, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // DIVIDEND 100 @ $1.00\r\n position.addTransaction(TestUtil.createTransaction(2, 2L, TransactionType.DIVIDEND, symbol, 100, 1.00, 0.00));\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-5.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+95.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+4.74, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // Price drops to $10\r\n stock.setPrice(10.00);\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(1000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-1005.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(-50.12, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-905.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-45.14, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // BUY another 100 @ $10 ($5 costs)\r\n position.addTransaction(TestUtil.createTransaction(3, 3L, TransactionType.BUY, symbol, 100, 10.00, 5.00));\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-1010.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(-33.55, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(200.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(6.64, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-910.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-30.23, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // Price raises to $20 again\r\n stock.setPrice(20.00);\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(4000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(+990.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(+32.89, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(200.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(6.64, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1090.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+36.21, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // DIVIDEND 200 @ $1.25\r\n stock.setDivRate(1.25);\r\n position.addTransaction(TestUtil.createTransaction(4, 4L, TransactionType.DIVIDEND, symbol, 200, 1.25, 0.00));\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(4000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(+990.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(+32.89, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(250.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(8.31, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(350.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1340.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+44.52, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // SELL 200 @ $20 ($10 costs)\r\n position.addTransaction(TestUtil.createTransaction(5, 5L, TransactionType.SELL, symbol, 200, 20.00, 10.00));\r\n Assert.assertEquals(0, position.getNoOfShares());\r\n Assert.assertEquals(0.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3020.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(350.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1330.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+44.04, position.getTotalReturnPercentage(), DELTA);\r\n }", "public float sell(int num, float sharePrice) {\n\t\tif (shares.isEmpty()) {\n\t\t\tthrow new EmptyQueueException(); //Initial check to make sure Queue is not empty\n\t\t}\n\t\tfloat currentCapital = 0;\n\t\twhile (num != 0 && !shares.isEmpty()) { //Keep running until all stocks that need to be sold are sold.\n\t\t\tint amountOfShares; //Amount of shares being sold\n\t\t\tfloat priceOfShares; //The price we are selling them at.\n\t\t\tTransaction t = shares.dequeue(); //Making a temp transaction to use in calculations.\n\t\t\tif (t.getShares() > num) { //If you have more shares bought at one price, then being sold:\n\t\t\t\tamountOfShares = num; //Set amount of shares to be sold.\n\t\t\t\tTransaction temp = new Transaction((t.getShares() - num), //Adds a new transaction with the remaining\n\t\t\t\t\t\tt.getSharePrice()); //Amount of stocks that are not to be sold yet.\n\t\t\t\tshares.enqueue(temp); //Requeue the rest of stocks.\n\t\t\t\tnum = 0;\n\t\t\t} else { //If we are selling all shares in this position in queue:\n\t\t\t\tamountOfShares = t.getShares(); //Get the amount of shares we have already dequeued.\n\t\t\t\tnum -= amountOfShares; //Reduce the amount of shares left to be sold.\n\t\t\t}\n\t\t\tpriceOfShares = t.getSharePrice(); //Get the price of the shares\n\t\t\tcurrentCapital += amountOfShares * (sharePrice - priceOfShares); //Increase the currentCapital gain/loss you currently have.\n\t\t}\n\t\treturn currentCapital; //return your capital value.\n\t}", "private void addSellCashTrade( final Trade trade )\n throws CloneNotSupportedException {\n\n // Check if the number of active units is greater than or equal to\n // the number of units that have been sold. If not, it is an error\n // condition. We are not handling short sell scenarios.\n if( getNumActiveCashUnits() < trade.getUnits() ) {\n logger.error( \"Selling more than active untis. Error condition\" ) ;\n logger.error( \" SYMBOL = \" + trade.getSymbol() ) ;\n logger.error( \" active units = \" + getNumActiveCashUnits() ) ;\n logger.error( \" sell units = \" + trade.getUnits() ) ;\n throw new IllegalArgumentException( \"Trying to sell more than \" +\n \"what we have. Bad bad..\" ) ;\n }\n\n // Selling happens in FIFO order.\n int qtyMatched = 0 ;\n Trade buyTrade = null ;\n int buyActUnits = 0 ;\n int sellUnitsLeft = trade.getUnits() ;\n Trade sellTrade= null ;\n\n // While we have not quenched all the units of the sell trade, we\n // continue matching it against our buy orders. Assumption is that if\n // we receive a sell order, we must have enough buy orders already\n // registered to quench the sell order. Else we have an error condition\n while( qtyMatched != trade.getUnits() ) {\n\n // Clone the sell order. In case one sell order matches multiple\n // buy orders, we need to attach a clone of the sell order with\n // appropriate quantity matched to each buy order.\n sellTrade = ( Trade )trade.clone() ;\n\n // Get the first buy order which has still some active units left.\n buyTrade = this.posHldCashTrades.get( 0 ) ;\n\n // Determine how many active units we are dealing with.\n buyActUnits = buyTrade.getNumActiveUnits() ;\n\n // If the buy active units are greater than the sell units left,\n // it implies that the complete sell order will be used up here.\n if( buyActUnits >= sellUnitsLeft ) {\n\n // Increase the total quantity matched by the sell units left.\n qtyMatched += sellUnitsLeft ;\n buyTrade.setMatchedUnits( buyTrade.getMatchedUnits() + sellUnitsLeft ) ;\n sellTrade.setMatchedUnits( sellUnitsLeft ) ;\n sellUnitsLeft = 0 ;\n }\n else {\n // If the sell units are more than the current buy units, it\n // implies that this sell order spans multiple buy orders.\n qtyMatched += buyActUnits ;\n\n // The buy order is completely matched. Hence the matched units\n // is equal to the number of buy units.\n buyTrade.setMatchedUnits( buyTrade.getUnits() ) ;\n\n // Set the number of units matched for this sell trade.\n sellTrade.setMatchedUnits( buyActUnits ) ;\n sellUnitsLeft -= buyActUnits ;\n }\n\n buyTrade.addSellTrade( sellTrade ) ;\n\n // If the buy order is completely matched, remove it from the list\n // of positive holdings and move it to the zero holdings list.\n if( buyTrade.getNumActiveUnits() == 0 ) {\n this.posHldCashTrades.remove( 0 ) ;\n }\n }\n }", "public Stock(String sym)\n\t{\n\t\tthis(sym, 0);\n\t}", "public void mutualFund() {\n\t\tSystem.out.println(\"HSBC-- mutual --- fund\");\n\t}", "public Expense(String name, double amount, int month) {\n this.name = name;\n this.amount = amount;\n this.month = month;\n }", "public void sell(String n,int shares, Stock s){\n for (PersonStocks x :myStocks) {\n if(n.equals(x.getName())) {\n x.addShares(0-shares);\n money+= (s.getPrice()*shares);\n }\n }\n for (int i = 0; i < myStocks.size(); i++) {\n if (myStocks.get(i).getNumShares()<=0){\n myStocks.remove(i);//if they now have 0 and now removes it from person stocks\n }\n }\n\n }", "public DebitCard(String n, int c, int p, Date e, Customer h, Provider p) {}", "public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}", "public void mutualFund() {\n\t\tSystem.out.println(\"HSbC--Mutual Fund\");\n\t\t\n\t}", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "public void mutualFund() {\n\t\tSystem.out.println(\"HSBC---mutualFund\");\n\t}", "public Money(float amount) {\n setAmountFloat(amount);\n }", "public interface ShareCalculationInterpreter extends ShareCalculation<ShareComputation, Amount> {\n\n default Reader<ShareHolderRepository, Future<ShareComputation>> computeShares(Amount amount) {\n\n return new Reader<>(repo -> repo.query()\n .map(shareHolders -> shareHolders\n .map(share -> Tuple.of(share, amount.multiply(Amounts.amount(share.percentage()))))\n .transform(computedShares ->\n ShareComputations.ShareComputation(computedShares,computedShares\n .map(share -> share._2).reduce((sh1,sh2)->sh1.add(sh2))))));\n }\n\n}", "TickerPrice getPrice(String symbol);", "public static BigDecimal amountFromDouble(double shares) {\n return BigDecimal.valueOf(shares).setScale(2, RoundingMode.HALF_EVEN);\n }", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "public BuyStockWithCommission(String commission,\n String tickerSymbol,\n String time,\n String volume,\n String portfolio) {\n this.tickerSymbol = tickerSymbol;\n this.time = time;\n this.volume = volume;\n this.portfolio = portfolio;\n this.commission = commission;\n }", "static TradeAllowanceCharge create(boolean chargeIndicator, Amount amount, Amount baseAmount, BigDecimal percentage) {\r\n\t\treturn new TradeAllowanceCharge(chargeIndicator, amount, baseAmount, percentage);\r\n\t}", "public void createExpense(ExpenseBE expenseBE) {\n\n }", "public static double calcMonthlyPayment(int term, double amount, double rate)\r\n {\r\n // Your code goes here ... use cut and paste as much as possible!\r\n rate = rate / 100;\r\n double num1 = rate * (Math.pow((1 + rate), (term * 12)));\r\n double num2 = Math.pow((1 + rate), (term * 12)) - 1;\r\n double monthlyPayment = amount * (num1 / num2);\r\n return monthlyPayment;\r\n }", "public Stock(String symbol, String name, String quantity, String price) throws BadInputException\r\n {\r\n super(symbol, name, quantity, price);\r\n this.setBookValue(FEE + (this.getQuantity() * this.getPrice()));\r\n }", "public void sell(RawMaterial m, double amount) throws DoesntExistException{\r\n if (!this.capital.containsKey(m)) throw new DoesntExistException (\"Nothing to sell!\");\r\n\r\n this.budget+=amount*m.getValue()*(1-Main.materialMarket.getMarkup());\r\n this.capital.remove(m);\r\n this.materials.remove(m);\r\n m.buy(amount);\r\n \r\n \r\n }", "abstract Valuable createMoney(double value);", "public TransferMarket() {\n }", "public void sellShare(BigDecimal priceDecimal, Stock stock) {\n List<Orderstock> orderstockSellList = orderstockServiceImpl.sellStock(stock.getSymbol(), Utils.SELL, priceDecimal);\n for (Orderstock orderstock : orderstockSellList) {\n AccountDto accountDto = new AccountDto();\n BigDecimal stockLot = new BigDecimal(orderstock.getStockLot());\n BigDecimal cash = stockLot.multiply(priceDecimal);\n accountDto.setCash(cash);\n\n User existingUser = userService.findByUserId(orderstock.getUser().getUserId());\n if (existingUser == null || Boolean.FALSE.equals(existingUser.isEnabled() )) {\n throw new DataIntegrityViolationDbException(\"Could not find active user!\");\n }\n\n accountServiceImpl.loadCash(accountDto, existingUser);\n orderstock.setActive(false);\n orderstockServiceImpl.updateOrderstock(orderstock);\n\n String mail = env.getProperty(\"spring.mail.username\");\n emailSenderService.sendEmail(existingUser.getEmail(), \"STOCK SELL NOTIFICATION\",\n mail,\"Stock Symbol -> \" + stock.getSymbol() + \" - \"\n + \" Stock Price -> \" + priceDecimal);\n }\n }", "@Test\n public void testBuyTwoGetOneFree_1() throws Exception {\n Product apple = new Product(\n \"Apple\",\n \"SKU-0003\",\n ToMoney.from(\n Composite.function(Multiply.by(40),\n BinaryFunctionUnaryFunction.adapt(new UnaryCompositeBinaryFunction<Number, Number, Number>(Subtract.instance(),\n new Identity<Number>(),\n Divide.by(3))))));\n\n assertEquals(new Money(0*40),apple.getPrice(0));\n assertEquals(new Money(1*40),apple.getPrice(1));\n assertEquals(new Money(2*40),apple.getPrice(2));\n assertEquals(new Money(2*40),apple.getPrice(3));\n assertEquals(new Money(3*40),apple.getPrice(4));\n assertEquals(new Money(4*40),apple.getPrice(5));\n assertEquals(new Money(4*40),apple.getPrice(6));\n assertEquals(new Money(5*40),apple.getPrice(7));\n assertEquals(new Money(6*40),apple.getPrice(8));\n assertEquals(new Money(6*40),apple.getPrice(9));\n assertEquals(new Money(7*40),apple.getPrice(10));\n }", "@Override\n\tpublic void addShares(int quantity){\n\t\tBigDecimal valueToAdd = getCurrentPrice().multiply(new BigDecimal(quantity));\n\t\t\n\t\tif(getCurrentPrice() == null){\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"Stock details must be set before \"\n\t\t\t\t\t+ \"adding/subtracting shares\");\n\t\t}\n\t\t\n\t\tsynchronized(this){\n\t\t\tquantityOfShares += quantity;\n\t\t\tprinciple = principle.add(valueToAdd);\n\t\t}\n\t\t\n\t\tsetTotalValueAndNet();\n\t}", "void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public Deposit amend(double newAmount) {\n return new Deposit(newAmount, date, payee);\n }", "private MoneyInfo createAddAndReturnMiddleMoneyInfo(VariableRankHand playerHand) {\n\t\tdouble stayingMoney = this.getMoneyMadeOnStaying(playerHand);\r\n\t\tdouble doublingMoney = 0;\r\n\t\tdouble hittingMoney = 0;\r\n\t\tboolean allowedToDouble = rules.allowedToDouble(playerHand);\r\n\t\tboolean allowedToHit = rules.playerAllowedToHit(playerHand);\r\n\t\tfor(int i = 1; i <= 13; i += 1) {\r\n\t\t\tdouble probability = this.deckWithNoDealer.drawProbability13(i, playerHand);\r\n\t\t\tif(probability > 0) {\r\n\t\t\t\tplayerHand.addCard(i);\r\n\t\t\t\tMoneyInfo info = getOrCalculateMoneyInfo(playerHand);\r\n\t\t\t\tif(allowedToDouble) {doublingMoney += 2*probability*info.moneyMadeIfStaying;}\r\n\t\t\t\tif(allowedToHit) {hittingMoney += probability*info.mostMoney;}\r\n\t\t\t\tplayerHand.removeCard(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(!allowedToDouble) {doublingMoney = IMPOSSIBLE_CODE;}\r\n\t\tif(!allowedToHit) {hittingMoney = IMPOSSIBLE_CODE;}\r\n\t\tMoneyInfo info = new MoneyInfo(stayingMoney, doublingMoney, hittingMoney);\r\n\t\taddInfo(new VariableRankHand(playerHand), info);\r\n\t\treturn info;\r\n\t}", "void sss_create_shares(byte[] out, byte[] data, int n, int k);", "private static FXForwardTrade createFxForwardTrade() {\n\n Counterparty counterparty = new SimpleCounterparty(ExternalId.of(Counterparty.DEFAULT_SCHEME, \"COUNTERPARTY\"));\n BigDecimal tradeQuantity = BigDecimal.valueOf(1);\n LocalDate tradeDate = LocalDate.of(2014, 7, 11);\n OffsetTime tradeTime = OffsetTime.of(LocalTime.of(0, 0), ZoneOffset.UTC);\n SimpleTrade trade = new SimpleTrade(createFxForwardSecurity(), tradeQuantity, counterparty, tradeDate, tradeTime);\n trade.setPremium(0.00);\n trade.setPremiumDate(LocalDate.of(2014, 7, 25));\n trade.setPremiumCurrency(Currency.GBP);\n\n FXForwardTrade fxForwardTrade = new FXForwardTrade(trade);\n\n return fxForwardTrade;\n }", "@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "SimpleStock(String newsymbol, String newname, double newpreviousClosingPrice, double newcurrentPrice ) {\n\t\tSymbol = newsymbol;\n\t\tName = newname;\n\t\tpreviousClosingPrice = newpreviousClosingPrice;\n\t\tcurrentPrice = newcurrentPrice;\n\t \t }", "public void setMarketPrice(BigDecimal marketPrice) {\n this.marketPrice = marketPrice;\n }", "void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }", "public void mutualFund() {\n\t\tSystem.out.println(\"HSBC--Mutual Fund--from Brazil Bank\");\n\t}", "public Stock(String shortName, String companyName, String dateChecked, String currPrice,\n\t\t\tString divYield, String peRatio) {\n\t\tthis.shortName = shortName;\n\t\tthis.companyName = companyName;\n\t\tthis.dateChecked = dateChecked;\n\t\tthis.currPrice = currPrice;\n\t\tthis.divYield = divYield;\n\t\tthis.peRatio = peRatio;\n\t}", "void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public Market(ArrayList<G> goods, ArrayList<B> bidders) throws MarketCreationException{\n // Create immutable goods list.\n if(goods == null || goods.size() == 0){\n throw new MarketCreationException(\"A market must contain at least one good.\");\n }\n ImmutableList.Builder<G> goodsBuilder = ImmutableList.builder();\n goodsBuilder.addAll(goods);\n this.goods = goodsBuilder.build();\n // Sets bidders\n this.setBidders(bidders);\n }", "@Override\r\n\tpublic void compute() {\r\n\r\n\t\t// compute s1, s2 secret shares for all the parties\r\n\t\t// s1s2[i] - pair(s1 SecretShare, s2 SecretShare) for party i\r\n\t\tArrayList<ArrayList<SecretShare>> s1s2 = new ArrayList<ArrayList<SecretShare>>();\r\n\t\tfor (GateIO in : this.input) {\r\n\t\t\tArrayList<SecretShare> theShares = new ArrayList<SecretShare>();\r\n\t\t\ttheShares.add(0, in.getValue().get(0)); // s1\r\n\t\t\ttheShares.add(1, in.getValue().get(1)); // s2\r\n\t\t\ts1s2.add(in.getIndex(), theShares);\r\n\t\t\t// System.out.println(\"party \" + in.getIndex());\r\n\t\t\t// System.out.println(\"s1 = \" + in.getValue().get(0));\r\n\t\t\t// System.out.println(\"s2 = \" + in.getValue().get(1));\r\n\r\n\t\t}\r\n\r\n\t\t// compute locally - s1*s2\r\n\t\tArrayList<SecretShare> localMults = new ArrayList<SecretShare>();\r\n\t\tfor (int i = 0; i < s1s2.size(); i++) {\r\n\t\t\tlocalMults.add(i, new SecretShare(s1s2.get(i).get(0).x,\r\n\t\t\t\t\tmodField(s1s2.get(i).get(0).y * s1s2.get(i).get(1).y)));\r\n\t\t\t// System.out.println(new SecretShare(s1s2.get(i).get(0).x,\r\n\t\t\t// modField(s1s2.get(i).get(0).y * s1s2.get(i).get(1).y)));\r\n\t\t}\r\n\r\n\t\t// share the local multiplications between the parties\r\n\t\t// localMultShare[i] - the secrets shares of party i new secret(mult)\r\n\t\tArrayList<ArrayList<SecretShare>> localMultsShare = new ArrayList<ArrayList<SecretShare>>();\r\n\t\tfor (int i = 0; i < localMults.size(); i++) {\r\n\t\t\tlocalMultsShare.add(i, new ArrayList<SecretShare>());\r\n\t\t}\r\n\r\n\t\tfor (SecretShare mult : localMults) {\r\n\t\t\tArrayList<SecretShare> yiShares = Polynomial\r\n\t\t\t\t\t.createShareSecret(mult.y);\r\n\t\t\t// for (int i = 0; i < yiShares.size(); i++) {\r\n\t\t\t// System.out.println(\"i = \" + i + \" y = \" + yiShares.get(i));\r\n\t\t\t// }\r\n\t\t\tfor (int i = 0; i < yiShares.size(); i++) {\r\n\t\t\t\tArrayList<SecretShare> tmp = localMultsShare.get(i);\r\n\t\t\t\ttmp.add(yiShares.get(i));\r\n\t\t\t\tlocalMultsShare.set(i, tmp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// System.out.println(\"start\");\r\n\t\t// for (int i = 0; i < localMultsShare.size(); i++) {\r\n\t\t// for (int j = 0; j < localMultsShare.get(i).size(); j++) {\r\n\t\t// System.out.println((localMultsShare.get(i)).get(j));\r\n\t\t// }\r\n\t\t// }\r\n\t\t// System.out.println(\"end\");\r\n\r\n\t\t// compute the outPut = Yi * Zi\r\n\t\tthis.result = new ArrayList<GateIO>();\r\n\t\tfor (int i = 0; i < localMultsShare.size(); i++) {\r\n\t\t\tGateIO out = new GateIO(i);\r\n\r\n\t\t\tint outYValue = 0;\r\n\t\t\tfor (int j = 0; j < localMultsShare.get(i).size(); j++) {\r\n\t\t\t\toutYValue += computeZi(j + 1)\r\n\t\t\t\t\t\t* ((localMultsShare.get(i)).get(j)).y;\r\n\t\t\t}\r\n\t\t\tout.value.add(new SecretShare(i + 1, modField(outYValue)));\r\n\t\t\tthis.result.add(out);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < this.result.size(); i++) {\r\n\t\t\t// System.out.println(this.result.get(i).value.get(0));\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings({ \"deprecation\", \"unchecked\" })\r\n\tpublic void init() throws Exception{\r\n\t\tAsset CurrentAsset;\r\ndouble TotalAmount = CurrentPortfolio.getTotalAmount(CurrentDate);\r\nCurrentPortfolio.sellAssetCollection(CurrentDate);\r\n\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"US large cap\");\r\nCurrentAsset.setClassID(getAssetClassID(\"US Equity\"));\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"^GSPC\", TotalAmount/7,\r\n\t\tCurrentDate);\r\n\t\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"IUS small cap\");\r\nCurrentAsset.setClassID(52l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"^RUT\", TotalAmount /7,\r\n\t\tCurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"International Equity\");\r\nCurrentAsset.setClassID(9l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VGTSX\", TotalAmount /7,CurrentDate);\r\n\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Real Estate\");\r\nCurrentAsset.setClassID(5l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VGSIX\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Commodity\");\r\nCurrentAsset.setClassID(getAssetClassID(\"Commodity\"));\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"QRAAX\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\r\n\r\n\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Cash\");\r\nCurrentAsset.setClassID(3l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"CASH\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"US Bond\");\r\nCurrentAsset.setClassID(2l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VBMFX\", TotalAmount /7,\r\n\t\tCurrentDate);\r\n\r\ninitialAmount=TotalAmount;\r\nwithdrawRate=0.05;\r\n\t}", "private void makeDeposit() {\n\t\t\r\n\t}", "public void getPromoShare() {\n\t\tHashMap<String, DataStorage> items = this.getAllItems();\n\t\tfor(String key:items.keySet()) {\n\t\t\tHashtable<String, Double> sales = new Hashtable<String, Double>();\n\t\t\tsales.put(\"Total Sales\",items.get(key).getSales(thisPeriod));\n\t\t\tsales.put(\"Total Sales YA\", items.get(key).getSales(lastPeriod));\n\t\t\tsales.put(\"Any Promo Sales\", items.get(key).getAnyPromo(thisPeriod));\n\t\t\tsales.put(\"Any Promo Sales YA\", items.get(key).getAnyPromo(lastPeriod));\n\t\t\tsales.put(\"Feature\", items.get(key).getFeat(thisPeriod));\n\t\t\tsales.put(\"Feature YA\", items.get(key).getFeat(lastPeriod));\n\t\t\tsales.put(\"Display\", items.get(key).getDisplay(thisPeriod));\n\t\t\tsales.put(\"Display YA\", items.get(key).getDisplay(lastPeriod));\n\t\t\tsales.put(\"Quality\", items.get(key).getQual(thisPeriod));\n\t\t\tsales.put(\"Quality YA\", items.get(key).getQual(lastPeriod));\n\t\t\tsales.put(\"Price Disc.\", items.get(key).getPriceDisc(thisPeriod));\n\t\t\tsales.put(\"Price Disc.YA\", items.get(key).getPriceDisc(lastPeriod));\n\t\t\tthis.allocateValues(sales);\n\t\t}\n\t}", "private static boolean sell(Environment environment,\n\t\t\t\tSymbol symbol,\n\t\t\t\tfloat tradeCost,\n\t\t\t\tint day) \n\tthrows MissingQuoteException {\n\tif(environment.cashAccount.getValue() >= tradeCost) {\n\n\t // Get the number of shares we own - we will sell all of them\n\t StockHolding stockHolding = environment.shareAccount.get(symbol);\n\t int shares = 0;\n\t if(stockHolding != null) \n\t\tshares = stockHolding.getShares();\n\n\t // Only sell if we have any!\n\t if(shares > 0) {\n\n\t\t// How much are they worth? We sell at the day open price.\n\t\tfloat amount = \n shares * environment.quoteBundle.getQuote(symbol, Quote.DAY_OPEN, day);\n\t\tTradingDate date = environment.quoteBundle.offsetToDate(day);\n\t\tTransaction sell = Transaction.newReduce(date, \n amount,\n\t\t\t\t\t\t\t symbol, \n shares,\n\t\t\t\t\t\t\t tradeCost,\n\t\t\t\t\t\t\t environment.cashAccount,\n\t\t\t\t\t\t\t environment.shareAccount);\n\t\tenvironment.portfolio.addTransaction(sell);\n\n\t\treturn true;\n\t }\n\t}\n\n\treturn false;\n }", "@Override\r\n\tpublic int createMarket(MarketDto dto) {\n\t\treturn session.insert(\"kdc.market.createMarket\", dto);\r\n\t}", "private double calculatePer(double currentRate, Map<String, String> earningsPerShare) {\n double current = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getCurrentYear()).replace(\",\", \".\"));\n return currentRate / current;\n }", "public static BigDecimal amountFromStr(String shares) {\n return new BigDecimal(shares).setScale(2, RoundingMode.UNNECESSARY);\n }", "public Payment(Amount paidAmount, SaleTotal total) {\r\n this.paidAmount = paidAmount;\r\n this.total = total;\r\n }", "public synchronized void openMarket() throws InvalidDataException {\n\t\tPrice buyPrice = getBuySide().topOfBookPrice();\n\t\tPrice sellPrice = getSellSide().topOfBookPrice();\n\t\tif (buyPrice == null || sellPrice == null) return;\n\t\twhile(buyPrice.greaterOrEqual(sellPrice) || buyPrice.isMarket() || sellPrice.isMarket()) {\n\t\t\tArrayList<Tradable> topOfBuySide = getBuySide().getEntriesAtPrice(buyPrice);\n\t\t\tHashMap<String, FillMessage> allFills = null;\n\t\t\tArrayList<Tradable> toRemove = new ArrayList<Tradable>();\n\t\t\tfor (Tradable t: topOfBuySide) {\n\t\t\t\tallFills = getSellSide().tryTrade(t);\n\t\t\t\tif (t.getRemainingVolume() == 0) toRemove.add(t);\n\t\t\t}\n\t\t\tfor (Tradable t: toRemove) {\n\t\t\t\tgetBuySide().removeTradable(t);\n\t\t\t}\n\t\t\tupdateCurrentMarket();\n\t\t\tPrice lastSalePrice = determineLastSalePrice(allFills);\n\t\t\tint lastSaleVolume = determineLastSaleQuantity(allFills);\n\t\t\tLastSalePublisher.getInstance().publishLastSale(getStock(), lastSalePrice, lastSaleVolume);\n\t\t\tbuyPrice = getBuySide().topOfBookPrice();\n\t\t\tsellPrice = getSellSide().topOfBookPrice();\n\t\t\tif (buyPrice == null || sellPrice == null) break;\n\t\t}\n\t}", "double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;", "void addTrade(Trade trade);", "List<MarketPerformanceData> retrieveMarketData(String[] symbol);", "public static void addShare(){\r\n\tMap<String, ShareMarket> allShareDetails = ShareMarketHashMap.getShareMarket();\r\n\tShareMarket addUniqueShare = new ShareMarket();\r\n\tdisplayMap(allShareDetails);\r\n\tSystem.out.println(\"Enter Share Name : \");\r\n\tString shareName = input.next();\r\n\tif(allShareDetails.containsKey(shareName))\t{\r\n\tSystem.out.println(\"This Share is already available, try to add different Share :( .You will be returned to main menu\" +'\\n');\r\n\treturn;\r\n\t}\r\n\telse if(isNumber(shareName)){\r\n\t\tSystem.out.println(\"Share should be alphabets only :( .You will be returned to main menu\" +'\\n');\r\n\t\treturn;\r\n\t}\r\n\tSystem.out.println(\"Enter Share Quantity : \");\r\n\tif(!input.hasNextInt()) {\r\n\t\tSystem.out.println(\"Quantity entered in invalid, it should be a postive number.You will be returned to main menu\" +'\\n');\r\n\t\treturn;\r\n\t}\t\r\n\tint shareQuantity = input.nextInt();\r\n\tSystem.out.println(\"Enter Share Price : \");\r\n\tif(!input.hasNextInt()) {\r\n\t\tSystem.out.println(\"Price entered in invalid, it should be a postive number.You will be returned to main menu\" +'\\n');\r\n\t\treturn;\r\n\t}\t\r\n\tint sharePrice = input.nextInt();\r\n\r\n\taddUniqueShare.setShareName(shareName.trim());\r\n\taddUniqueShare.setShareQuantity(shareQuantity);\r\n\taddUniqueShare.setSharePrice(sharePrice);\r\n\tShareMarketHashMap.addShare(addUniqueShare);\r\n\tMap<String, ShareMarket> shareAfterAdding = ShareMarketHashMap.getShareMarket();\r\n\tSystem.out.println(\"Share Name :\" + shareAfterAdding.get(shareName).getShareName() + ',' + \" Share Price:\" + shareAfterAdding.get(shareName).getSharePrice() + ',' + \" Share Quantity: \" + shareAfterAdding.get(shareName).getShareQuantity());\r\n\tSystem.out.println(\"Successfully added the share\" + '\\n');\r\n}", "public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }", "void buyStock(String portfolio, String stock, Integer count, Date date)\r\n throws IllegalArgumentException;", "@Override\n\tpublic Valuable createMoney(double value) {\n\t\tValuable thaiMoney = null;\n\t\tif ( isCoin(value) ) {\n\t\t\tthaiMoney = new Coin(value);\n\t\t} else if ( isBankNote(value) ) {\n\t\t\tthaiMoney = new BankNote(value, nextSerialNumber++);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn thaiMoney;\n\t}", "public Money(BigDecimal amount, Currency currency) {\n this.amount = amount.setScale(2, RoundingMode.HALF_UP);\n this.currency = currency;\n }", "public synchronized MarketDataDTO getMarketData() {\n\t\tPrice bestBuyPrice = getBuySide().topOfBookPrice();\n\t\tPrice bestSellPrice = getSellSide().topOfBookPrice();\n\t\tif (bestBuyPrice == null) bestBuyPrice = PriceFactory.makeLimitPrice(0);\n\t\tif (bestSellPrice == null) bestSellPrice = PriceFactory.makeLimitPrice(0);\n\t\tint bestBuyVolume = getBuySide().topOfBookVolume();\n\t\tint bestSellVolume = getSellSide().topOfBookVolume();\n\t\tMarketDataDTO marketData = new MarketDataDTO(getStock(), bestBuyPrice, bestBuyVolume, bestSellPrice, bestSellVolume);\n\t\treturn marketData;\n\t}", "public TradeData(ICurrency cur, IEntity ent, ITradeType tradeType, String instructionDate, String settlementDate, int units,\r\n\t\t\tdouble pricePerUnit) {\r\n\t\tsuper();\r\n\t\tthis.cur = cur;\r\n\t\tthis.ent = ent;\r\n\t\tthis.tradeType = tradeType;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.instructionDate = this.sdf.parse(instructionDate);\r\n\r\n\t\t\t/*\r\n\t\t\t * I used the setSettlementDate to initialise the param to force\r\n\t\t\t * settlement date not to fall on weekend\r\n\t\t\t */\r\n\r\n\t\t\tthis.setSettlementDate(settlementDate);\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tthis.units = units;\r\n\r\n\t\tthis.pricePerUnit = pricePerUnit;\r\n\r\n\t}", "public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }", "Document newDeposit(String source, double amount,\n String effectiveDate);", "public LoanMonthlyPayment calculateMonthlyPayment() {\n double monthlyInterest = loanRequest.getApr() / MONTHLY_INTEREST_DIVISOR;\n double tmp = Math.pow(1d + monthlyInterest, -1);\n tmp = Math.pow(tmp, loanRequest.getTermInMonths());\n tmp = Math.pow(1d - tmp, -1);\n return new LoanMonthlyPayment(\n monthlyInterest, loanRequest.getAmountBorrowed() * monthlyInterest * tmp\n );\n }", "public Market() {\n }", "public Companies(String name, String date, double closingPrice, double futureOpeningPrice, double twoToOneSplit,\r\n double threeToOneSplit, double threeToTwoSplit) {\r\n this.name = name;\r\n this.date = date;\r\n this.closingPrice = closingPrice;\r\n this.futureOpeningPrice = futureOpeningPrice;\r\n this.twoToOneSplit = twoToOneSplit;\r\n this.threeToOneSplit = threeToOneSplit;\r\n this.threeToTwoSplit = threeToTwoSplit;\r\n }", "QuoteCoefficient createQuoteCoefficient();", "public Payment(User to, User from, double cashAmount, String paymentName) {\n this.cashAmount = cashAmount;\n this.to = to;\n this.from = from;\n this.paymentName = paymentName;\n paymentID = rand.nextInt(max - min + 1) + min;\n }", "@Override\n\tpublic List<ProfitResult> profitStatistic(Request staticRequest) {\n\t\tList<ProfitResult> result = new ArrayList<>();\n\t\tMap<String, int[]> buySellMap = new TreeMap<String, int[]>();\n\t\tIterator<Map.Entry<String, Map<LocalDate, List <Transaction>>>> iterator = this.result.entrySet().iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, Map<LocalDate, List <Transaction>>> entry = iterator.next();\n\t\t\tIterator<Map.Entry<LocalDate, List <Transaction>>> iterator2 = entry.getValue().entrySet().iterator();\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry<LocalDate, List <Transaction>> entry2 = iterator2.next();\n\t\t\t\tfor (Transaction Tra : entry2.getValue()) {\n\t\t\t\t\tint buySellAmount [] = new int [] {0,0};\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.BUY)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1];\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[0] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*1.005d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif( Tra.getMode().equals(TransactionMode.SELL)) {\n\t\t\t\t\t\tif (buySellMap.containsKey(Tra.getCurrencyCode())) {\n\t\t\t\t\t\t\tbuySellAmount[0] = buySellMap.get(Tra.getCurrencyCode())[0];\n\t\t\t\t\t\t\tbuySellAmount[1] = buySellMap.get(Tra.getCurrencyCode())[1] + (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tbuySellAmount[1] = (int)(Tra.getAmount()*this.currencyMap.get(entry2.getKey()).get(Tra.getCurrencyCode())*0.995d);\n\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbuySellMap.put(Tra.getCurrencyCode(), buySellAmount);\n\n\t\t\t\t\t}\n\t\t\t\tIterator<Map.Entry<String, int []>> iterator3 = buySellMap.entrySet().iterator();\n\t\t\t\twhile (iterator3.hasNext()) {\n\t\t\t\t\tMap.Entry<String, int []> entry3 = iterator3.next();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tresult.add(new ProfitResult(entry3.getValue()[0], entry3.getValue()[1], entry2.getKey(), entry.getKey(), entry3.getKey()));\n\t\t\t\t}\n\t\t\t\tbuySellMap.clear();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}" ]
[ "0.6019315", "0.58181286", "0.5511488", "0.54700214", "0.53642637", "0.5304421", "0.5052252", "0.5048715", "0.50297683", "0.50164735", "0.4999321", "0.49959943", "0.4959259", "0.4902493", "0.4886777", "0.48847392", "0.4881727", "0.48448262", "0.48368353", "0.48243174", "0.48044685", "0.47980383", "0.47941214", "0.4786352", "0.4762383", "0.47378364", "0.4727162", "0.472355", "0.47219354", "0.47121498", "0.4699374", "0.4694234", "0.46751362", "0.46685556", "0.46594214", "0.46412092", "0.46389982", "0.46253276", "0.4618992", "0.46141952", "0.4607655", "0.46027088", "0.4595173", "0.4588944", "0.45843658", "0.45816872", "0.45790923", "0.45714876", "0.45701402", "0.4563427", "0.45632115", "0.4560316", "0.45562857", "0.45466155", "0.45393798", "0.45349264", "0.45282936", "0.45198044", "0.45106173", "0.45068404", "0.4506669", "0.45016375", "0.44898722", "0.4480263", "0.44752935", "0.44708505", "0.44667834", "0.44661444", "0.44589865", "0.44412735", "0.44285548", "0.44137454", "0.44020316", "0.43954822", "0.4387204", "0.43800282", "0.43769914", "0.43683314", "0.43635443", "0.43619296", "0.43570155", "0.43531197", "0.435025", "0.4340369", "0.43373755", "0.43361783", "0.43342024", "0.43268913", "0.43218935", "0.43193555", "0.43161258", "0.43152532", "0.4313717", "0.431308", "0.43106198", "0.43105543", "0.4302583", "0.429609", "0.42907247", "0.4288349" ]
0.72740203
0
returns the market value of this mutual fund, which is the number of shares times the price per share
public double getMarketValue() { return this.totalShares * super.getCurrentPrice(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getValue() {\n\t\tfloat value = 0;\n\t\tQueue<Transaction> temp = new LinkedQueue<>(); //Temp queue to keep all dequeued elements.\n\t\twhile (!shares.isEmpty()) {\n\t\t\tTransaction t = shares.dequeue(); //Dequeue the first transaction from the portfolio\n\t\t\tvalue += t.getSharePrice() * t.getShares(); //Calculate the total value of shares.\n\t\t\ttemp.enqueue(t); //Requeue the shares into the temp queue\n\t\t}\n\t\twhile(!temp.isEmpty())\n\t\t{\n\t\t\tshares.enqueue(temp.dequeue()); //Requeue all the shares back into the original queue.\n\t\t}\n\t\treturn value; //Return the total value of all shares you own.\n\t}", "public double getTotalShares()\n {\n return this.totalShares;\n }", "public double getSharePrice() {\n\t\treturn sharePrice;\n\t}", "public BigDecimal getMarketPrice() {\n return marketPrice;\n }", "private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }", "public int getAmountOfShares() {\n\t\treturn amountOfShares;\n\t}", "public int calcMarketPrice() {\r\n player = Context.getInstance().getPlayer();\r\n //Random r = new Random();\r\n int techLevel = player.getCurrentPlanet().getTechLevel();\r\n Event event = player.getCurrentPlanet().getEvent();\r\n Resource resource = player.getCurrentPlanet().getResource();\r\n double price = basePrice;\r\n price += (ipl * (techLevel - mtlb)) + variance;\r\n if (player.getCurrentPlanet().getTechLevel() == this.ttp) {\r\n price *= Context.TECH_PRICE_MULT;\r\n }\r\n if (event.equals(this.ie)) {\r\n price *= event.getUpMult();\r\n } else if (event.equals(this.de)) {\r\n price *= event.getDownMult();\r\n }\r\n if (resource.equals(this.cr)) {\r\n price *= resource.getDownMult();\r\n } else if (resource.equals(this.er)) {\r\n price *= resource.getUpMult();\r\n }\r\n price *= (((double) player.getTrader() / DFIFTY) + 1.0);\r\n int finalPrice = (int) price;\r\n if (player.getTrader() > 0) {\r\n double discountedPrice = price;\r\n double trader = (double) player.getTrader();\r\n discountedPrice -= (price) * (4.0 * trader / PERCENT);\r\n return (int) discountedPrice;\r\n } else {\r\n return finalPrice;\r\n }\r\n }", "public BigDecimal getSharePct() {\n\t\treturn sharePct;\n\t}", "public double getSharesTraded() {\n return sharesTraded;\n }", "public double getStockMarketPrice() {\n\t\treturn stockMarketPrice;\n\t}", "public BigDecimal getTotalSharePct() {\n\t\treturn totalSharePct;\n\t}", "public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}", "public WebMarket getMarket() {\r\n return market;\r\n }", "public double visit(MoneyMarket moneyMarket) {\n\t\treturn (double) moneyMarket.getQuantity();\n\t}", "public MutualFund(String symbol, double currentPrice)\n {\n super(symbol, currentPrice);\n this.totalShares = 0;\n }", "public Market getMarket(){\n\t\treturn market;\n\t}", "public Market getMarket() {\n return market;\n }", "public int getTradeValue() {\n \t\treturn tradeValue;\n \t}", "public double getPrice(){\n\n double price1 = 1/Math.pow(1+interests, payments);\n double finalPrice = coupon * (1-price1) + valueMaturity * price1;\n\n return finalPrice;\n\n }", "public BigDecimal getTradeTotal() {\n return tradeTotal;\n }", "public double valueOfPortfolio()\r\n\t{\r\n\t\tdouble sum=0;\r\n\t\tfor(int i=0;i<portfolio.size();i++)\r\n\t\t{\r\n\t\t\tsum+=portfolio.get(i).getPrice();\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "Price getTradePrice();", "public BigDecimal getHistoryMarketPrice() {\n return historyMarketPrice;\n }", "public String getMarket() {\r\n return market;\r\n }", "double getTotalPortfolioValue(){\n double total = 0.0;\n for (Listing<P, C> l : this.collectionOfCurrentListings) {\n total += l.getContract().getTotalPrice() * this.commissionRate;\n }\n return total;\n }", "public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }", "public BankAccount getMoneyMarketAccount() {\n return this.moneyMarket;\n }", "public double getMarketValueTaxRate(){\r\n taxlist.add(new Tax(this.estValue,this.PPR,this.yearsowned,this.locationCategory));\r\n count++;\r\n return taxlist.get(count-1).MarketValueTax();\r\n }", "public Double getTotalBuyFee() {\r\n return totalBuyFee;\r\n }", "public BigDecimal getTradeMax() {\n return tradeMax;\n }", "@Field(26) \n\tpublic double TradePrice() {\n\t\treturn this.io.getDoubleField(this, 26);\n\t}", "public Double getTotalBuyNum() {\r\n return totalBuyNum;\r\n }", "public double marketState()\n\t{\n\t\treturn _dblMarketState;\n\t}", "public double getMarketTotal(double kilos) {\n double total;\n total = kilos * potatoesPrice;\n return total;\n }", "public BigDecimal getActualSellingPrice() {\n return actualSellingPrice;\n }", "public float getTotalPrice(){\n return price * amount;\n }", "double getTotalProfit();", "public double visit(Bond bond) {\n\t\treturn bond.getMarketPrice()*bond.getQuantity();\n\t}", "private double calculatePer(double currentRate, Map<String, String> earningsPerShare) {\n double current = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getCurrentYear()).replace(\",\", \".\"));\n return currentRate / current;\n }", "public Double updatePortfolioValue() {\n\t\tDouble portVal = 0.0;\n\t\tfor(Stock s : stockList) {\n\t\t\tportVal += s.getCurrentPrice(); \n\t\t}\n\t\tthis.portfolioValue = portVal;\n\t\treturn portVal;\n\t}", "public int getPrice(Stock stock)\r\n\t{\r\n\t\tfor(Share share: this.prices)\r\n\t\t{\r\n\t\t\tif(share.getStock().equals(stock))\r\n\t\t\t{\r\n\t\t\t\treturn share.getShares();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}", "public int getShare(){\n\t\treturn this.shares;\n\t}", "public double getCurrentBet(){\r\n\t\treturn currentBet;\r\n\t}", "public float sell(int num, float sharePrice) {\n\t\tif (shares.isEmpty()) {\n\t\t\tthrow new EmptyQueueException(); //Initial check to make sure Queue is not empty\n\t\t}\n\t\tfloat currentCapital = 0;\n\t\twhile (num != 0 && !shares.isEmpty()) { //Keep running until all stocks that need to be sold are sold.\n\t\t\tint amountOfShares; //Amount of shares being sold\n\t\t\tfloat priceOfShares; //The price we are selling them at.\n\t\t\tTransaction t = shares.dequeue(); //Making a temp transaction to use in calculations.\n\t\t\tif (t.getShares() > num) { //If you have more shares bought at one price, then being sold:\n\t\t\t\tamountOfShares = num; //Set amount of shares to be sold.\n\t\t\t\tTransaction temp = new Transaction((t.getShares() - num), //Adds a new transaction with the remaining\n\t\t\t\t\t\tt.getSharePrice()); //Amount of stocks that are not to be sold yet.\n\t\t\t\tshares.enqueue(temp); //Requeue the rest of stocks.\n\t\t\t\tnum = 0;\n\t\t\t} else { //If we are selling all shares in this position in queue:\n\t\t\t\tamountOfShares = t.getShares(); //Get the amount of shares we have already dequeued.\n\t\t\t\tnum -= amountOfShares; //Reduce the amount of shares left to be sold.\n\t\t\t}\n\t\t\tpriceOfShares = t.getSharePrice(); //Get the price of the shares\n\t\t\tcurrentCapital += amountOfShares * (sharePrice - priceOfShares); //Increase the currentCapital gain/loss you currently have.\n\t\t}\n\t\treturn currentCapital; //return your capital value.\n\t}", "public double getBuyPrice() {\n return buyPrice;\n }", "public BigDecimal getPriceActual();", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "public double getAverageReturnPerTrade(){\n\t\treturn Math.round(averageReturnPerTrade*10000.0)/100.0;\n\t}", "public double getBet() {\n return bet;\n }", "public String getMarketNo() {\r\n return marketNo;\r\n }", "float getAmount();", "public static int getPrice() {\n return PRICE_TO_BUY;\n }", "public BigDecimal getMarkProfit() {\r\n return markProfit;\r\n }", "public double getProfit(){\n return getPrice() * PROFIT_IN_PERCENTS / 100;\n }", "public double getCurrentCash() {\r\n return currentCash;\r\n }", "void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }", "public int getAmountBought() {\n //System.out.println(clientName + \" has bought \" + amountBought + \" shares of \" + companyName);\n return amountBought;\n }", "public BigDecimal getBSCA_ProfitPriceStdEntered();", "public Float getFinalPrice() {\n return finalPrice;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getShare() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(SHARE_PROP.get());\n }", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "public BigDecimal getStock_price() {\n return stock_price;\n }", "public double getTotalCartValue();", "public double calculatePrice() {\n return 0;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getShare() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(SHARE_PROP.get());\n }", "public double getCredits() {\n\n return Math.round(this.credits * 100.0) / 100.0;\n }", "public List<Share> getPrices()\r\n\t{\r\n\t\treturn this.prices;\r\n\t}", "@JsonIgnore\r\n public Double priceReduction() {\n if (wasPrice == null || nowPrice == null)\r\n return 0D;\r\n\r\n return wasPrice - nowPrice;\r\n }", "String getTradeCurrency();", "Money getCashSettlementAmount();", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "Double getTotalSpent();", "public double FullfagetPrice()\n {\n double futlfaget = totalpris + fragt;\n return futlfaget;\n\n }", "public BigDecimal getSellingPrice() {\n return sellingPrice;\n }", "public double calculatePrice(){\r\n\t\treturn getBasePrice()+getBasePrice()*getVat()+(getBasePrice()+getBasePrice()*getVat())*0.3;\r\n\t}", "public void mutualFund(){\n\t\tSystem.out.println(\"HSBC BANK :: MUTUAL FUND\");\n\t}", "@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }", "public double getrealamounttoSavemonthly()\n\t{\n\t\treturn this.moneyremainingtoSave()%this.gettimetoAchieve();\n\t}", "public long getCurrentPriceMicros() {\n return mPriceMicros;\n }", "TickerPrice getPrice(String symbol);", "public int getHandValue() {\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < hand.size(); i++) {\n\t\t\tCard card = hand.get(i);\n\t\t\tint value = card.getValue();\n\t\t\tsum = sum + value;\n\t\t}\n\t\treturn sum;\n\t}", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "BigDecimal getAverageBuyPrice();", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "public BigDecimal getRealProfit() {\r\n return realProfit;\r\n }", "public double getLastTradePrice(String symbol)\n {\n // Get the order book for this symbol if it exists\n try {\n return Double.parseDouble( marketBook.get(symbol).toString() );\n }\n catch ( Exception e ) { }\n \n return 0;\n }", "public Integer getApplyAmount() {\n return applyAmount;\n }", "public double calculatePay() {\n\t\treturn 0;\r\n\t}", "public double getSetBet() {\n\t\treturn bet;\n\t}", "public float getSellingPrice () {\n return (float) 0.0;\n }", "public BigDecimal getSWITCHED_AMOUNT() {\r\n return SWITCHED_AMOUNT;\r\n }", "public float getPayableAmount() {\n /**\n * { var_description }.\n */\n float dscnt = NUM3 * coupon;\n /**\n * { item_description }.\n */\n return (getTotalAmount() * (1f - dscnt)) * NUM5;\n }", "public double getProfit() {\n\t\treturn profit;\n\t}", "public double getProfit() {\n\t\treturn profit;\n\t}", "int getChestsAmount();", "public Float getFreemintotalprice() {\n return freemintotalprice;\n }", "double getSDPrice() {\n ArrayList<Double> allPrices = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> pricesOfFirm = firm.getPrices();\n allPrices.addAll(pricesOfFirm.subList(pricesOfFirm.size() - SimulationManager.sizeOfExaminationInterval, pricesOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getSD(allPrices), 2);\n }", "public Integer getBuyCount() {\n return buyCount;\n }", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}" ]
[ "0.7547677", "0.7150767", "0.6840038", "0.6817841", "0.67877454", "0.6607086", "0.6541229", "0.6521337", "0.6474537", "0.6468469", "0.6377682", "0.6323099", "0.626343", "0.625191", "0.62488765", "0.6134956", "0.61090773", "0.61073494", "0.61020815", "0.6089738", "0.60718846", "0.6066431", "0.60528564", "0.60401326", "0.603663", "0.6001696", "0.5988174", "0.5959153", "0.5955096", "0.588829", "0.5886697", "0.58861226", "0.58754945", "0.58683956", "0.58516103", "0.5851544", "0.5851238", "0.58412135", "0.5838908", "0.58338755", "0.58294445", "0.58051014", "0.57944405", "0.5784463", "0.57840824", "0.5782881", "0.5778256", "0.5754538", "0.5733672", "0.573213", "0.572158", "0.5707373", "0.57015145", "0.5694692", "0.56913495", "0.56892735", "0.5681605", "0.5678388", "0.5676094", "0.56719244", "0.56718147", "0.5669775", "0.56676435", "0.5667235", "0.56570554", "0.5656083", "0.56554997", "0.5649042", "0.5647126", "0.5644715", "0.5633952", "0.5633721", "0.56210095", "0.56060994", "0.5596231", "0.55727696", "0.5571987", "0.5564157", "0.55632603", "0.5560626", "0.55557454", "0.55556726", "0.5550446", "0.5544924", "0.5535826", "0.5532584", "0.5524998", "0.5523068", "0.55163103", "0.55152345", "0.551282", "0.5511051", "0.55061615", "0.55043584", "0.55043584", "0.55036634", "0.54964674", "0.5493186", "0.54852897", "0.54845935" ]
0.79832834
0
returns the number of shares of this mutual fund
public double getTotalShares() { return this.totalShares; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAmountOfShares() {\n\t\treturn amountOfShares;\n\t}", "public BigDecimal getTotalSharePct() {\n\t\treturn totalSharePct;\n\t}", "public int getShare(){\n\t\treturn this.shares;\n\t}", "public double getSharesTraded() {\n return sharesTraded;\n }", "public BigDecimal getSharePct() {\n\t\treturn sharePct;\n\t}", "private int getTotalShareValue(Player player){\n return player.getShares().get(0) * game.apple.getSharePrice() + player.getShares().get(1) * game.bp.getSharePrice() +\n player.getShares().get(2) * game.cisco.getSharePrice() + player.getShares().get(3) * game.dell.getSharePrice() +\n player.getShares().get(4) * game.ericsson.getSharePrice();\n }", "int getFundsCount();", "int getFundsCount();", "public float getValue() {\n\t\tfloat value = 0;\n\t\tQueue<Transaction> temp = new LinkedQueue<>(); //Temp queue to keep all dequeued elements.\n\t\twhile (!shares.isEmpty()) {\n\t\t\tTransaction t = shares.dequeue(); //Dequeue the first transaction from the portfolio\n\t\t\tvalue += t.getSharePrice() * t.getShares(); //Calculate the total value of shares.\n\t\t\ttemp.enqueue(t); //Requeue the shares into the temp queue\n\t\t}\n\t\twhile(!temp.isEmpty())\n\t\t{\n\t\t\tshares.enqueue(temp.dequeue()); //Requeue all the shares back into the original queue.\n\t\t}\n\t\treturn value; //Return the total value of all shares you own.\n\t}", "public double getSharePrice() {\n\t\treturn sharePrice;\n\t}", "@java.lang.Override\n public int getFundsCount() {\n return funds_.size();\n }", "@java.lang.Override\n public int getFundsCount() {\n return funds_.size();\n }", "public int getAmountBought() {\n //System.out.println(clientName + \" has bought \" + amountBought + \" shares of \" + companyName);\n return amountBought;\n }", "@Override\n\tpublic int getNoShares() {\n\t\treturn noShares;\n\t}", "private int numberOfStudents() {\n int sum = 0;\n for (int student : this.studentList) {\n sum += student;\n }\n return sum;\n }", "public int getNumberOfCredits() {\n return numberOfCredits;\n }", "public MutualFund(String symbol, double currentPrice)\n {\n super(symbol, currentPrice);\n this.totalShares = 0;\n }", "Double getTotalSpent();", "public double getMarketValue()\n {\n return this.totalShares * super.getCurrentPrice();\n }", "public int getSeasonShareCount() {\n return seasonShareCount_;\n }", "int getTotalDepositCount();", "public int getFundsCount() {\n if (fundsBuilder_ == null) {\n return funds_.size();\n } else {\n return fundsBuilder_.getCount();\n }\n }", "public int getFundsCount() {\n if (fundsBuilder_ == null) {\n return funds_.size();\n } else {\n return fundsBuilder_.getCount();\n }\n }", "public int getSeasonShareCount() {\n return seasonShareCount_;\n }", "public double getPer_day(){\n\t\tdouble amount=this.num_of_commits/365;\n\t\treturn amount;\n\t}", "public int getCurrentPlayerFunds(){return currentPlayerTurn.getFunds();}", "public void mutualFund(){\n\t\tSystem.out.println(\"HSBC BANK :: MUTUAL FUND\");\n\t}", "public void mutualFund() {\n\t\tSystem.out.println(\"HSBC-- mutual --- fund\");\n\t}", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "public void mutualFund() {\n\t\tSystem.out.println(\"HSbC--Mutual Fund\");\n\t\t\n\t}", "public int totalWorth() {\n\t\tint val = 0;\n\t\tfor (Card c : cards) {\n\t\t\tval += c.value();\n\t\t}\n\t\treturn val;\n\t}", "int getActAmountCount();", "public int getTotalAmount();", "public int getCoinCount() {\n return coinCount;\n }", "public double countBalance() {\n return countIncome() - countExpenses();\n }", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "public void mutualFund() {\n\t\tSystem.out.println(\"HSBC---mutualFund\");\n\t}", "public double computeShareValue(Individual targetIndividual, Individual secondIndividual);", "public synchronized void computeShares() {\n\t\tHashMap<ClassInfo, BigDecimal> previousUtilities = new HashMap<ClassInfo, BigDecimal>();\n\n//\t\tint round = 0;\n\t\twhile (!isUtilityConverged(previousUtilities)) {\n//\t\t\tSystem.out.println(round++);\n//\t\t\tSystem.out.println(this);\n\t\t\tfor (ClassInfo classInfo : classToDatanodes.keySet()) {\n\t\t\t\tcomputeSharesByClass(classInfo);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public SentSharesImpl getSentShares() {\n return this.sentShares;\n }", "public int getPrice(Stock stock)\r\n\t{\r\n\t\tfor(Share share: this.prices)\r\n\t\t{\r\n\t\t\tif(share.getStock().equals(stock))\r\n\t\t\t{\r\n\t\t\t\treturn share.getShares();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public int getAtomicMass()\n\t{\n\t\treturn protons+neutrons;\n\t}", "protected double getNumWithdrawals() {\n return numWithdrawals;\n }", "public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}", "int getBlocksAmount();", "private void shareTotalScore(String typeOfShare) {\n final String fbType = getResources().getString(R.string.action_share_on_facebook);\n\n if (typeOfShare.equals(fbType)) {\n // Share total score on Facebook social network\n shareOnFacebook();\n } else {\n // Share total score on P2A web\n shareOnP2A();\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getShare() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(SHARE_PROP.get());\n }", "double getTotalProfit();", "int getSeasonShareCount();", "public int getCountTradeCards() {\r\n\t\treturn countTradeCards;\r\n\t}", "public int getAmountDone();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getShare() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(SHARE_PROP.get());\n }", "public long getTotalAmountUploaded();", "public int getAtomicMass() {\r\n\t\treturn protons + neutrons;\r\n\t}", "public int getAtomicCharge() {\r\n\t\treturn protons - electrons;\r\n\t}", "public double getPer_month(){\n\t\tdouble amount=this.num_of_commits/12;\n\t\treturn amount;\n\t}", "public int listAmount() {\n return count;\n }", "public int getNumberOfSimulations(){\n return this.nMonteCarlo;\n }", "public int getTotalPrice() {\n int total = 0;\n for (Scholar s : this.scholars) {\n Calendar start = (Calendar) s.getStartDate().clone();\n while (start.before(s.getEndDate())) {\n if (start.after(this.startDate) && start.before(this.estimatedEnd)) { //Only lists scholar within the the time frame the project is active\n total += s.getSalary();\n }\n start.add(Calendar.MONTH, 1);\n }\n }\n return total;\n }", "public double getNumuploads(){\n\t\treturn (this.num_upload);\n\t}", "public double getCredits() {\n\n return Math.round(this.credits * 100.0) / 100.0;\n }", "long getTotalAcceptCount();", "public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNumberSubmits();\n }\n\n return counter;\n }", "public double countIncome() {\n\n double income = 0;\n for (int i = 0; i < budget.getIncome().size(); i++) {\n income += budget.getIncome().get(i).getAmount();\n }\n\n return income;\n }", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "final int getShareOfOne() { return getPlayerId() == 0 ? 1 : 0; }", "public double getTotalSimPokok() {\n return this.totalSimPokok;\n }", "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "public double getTotalOwed() {\r\n\t\treturn totalOwedToYou;\r\n\t}", "public int getTotRuptures();", "public int getTotalProfit() {\n\t\tif (game.countProfit() >= 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn game.countProfit();\n\t\t}\n\t}", "int getAmountSlimes(){\n\t\treturn getSlimes().size(); \n\t}", "public int getNumberOfCoins() {\n return coins;\n }", "int countByExample(FundsPackageRatioExample example);", "public int getCoinCount() {\r\n\t\treturn this.coinCount;\r\n\t}", "int getChestsAmount();", "public void setSharesTraded(double value) {\n this.sharesTraded = value;\n }", "public int getF_NumOfMatchesPayed() {\n return f_numOfMatchesPayed;\n }", "public void purchase(double shares, double pricePerShare)\n {\n this.totalShares += shares;\n super.addCost(shares * pricePerShare);\n }", "public int getSellRatingTotalCount() {\n return sellRatingTotalCount;\n }", "public int remainingFees()\r\n\t{\r\n\t\treturn feesTotal-feesPaid;\t\t\r\n\t}", "public double getScholarshipAmount() {\n return this.scholarshipAmount;\n }", "private int getMostShares(int start){\n int mostShares = 0;\n int index = 0;\n for (int i = 0; i < player.getShares().size(); i++) {\n if(mostShares < playerList.get(start).getShares().get(i)){\n mostShares = playerList.get(start).getShares().get(i);\n index = i;\n }\n }\n return index;\n }", "public double countWeeklyBudget() {\n return (countBalance() / 4);\n }", "public static BigDecimal amountFromDouble(double shares) {\n return BigDecimal.valueOf(shares).setScale(2, RoundingMode.HALF_EVEN);\n }", "public double totalFee(){\n return (this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12);\n }", "public boolean doesOwn(String n, int shares){\n boolean own = false;\n for (PersonStocks x :myStocks) {//verifies if the shares are in person stocks\n if(n.equals(x.getName()) && (x.getNumShares()- shares) >= 0) {\n own = true;\n }\n }\n return own;\n }", "public boolean canBuy(int shares, Stock s) {\n boolean can = false;\n if (money-(shares*s.getPrice())>0){//checks if user can afford it\n can = true;\n }\n return can;\n }", "public int getActAmountCount() {\n return actAmount_.size();\n }", "public void addAmount(int amountOfShares) {\n\t\tthis.amountOfShares += amountOfShares;\n\t}", "void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }", "public float getNoOfPositiveReviewsMohan(){\n return mohanPositive;\n }", "public Integer getBuyCount() {\n return buyCount;\n }", "public BigDecimal getSumCnt() {\r\n return sumCnt;\r\n }", "public double calculateChangeToGive() {\r\n\t\treturn amountPaid - amountToPay;\r\n\t}", "public BigDecimal getSWITCHED_AMOUNT() {\r\n return SWITCHED_AMOUNT;\r\n }", "public double getTotalAmountOfInterest(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly - principal_amount;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}", "public double getTotalSimWajib() {\n return this.totalSimWajib;\n }", "public double getStaySuccessRate() {\n if (total_stayed == 0)\n return 0;\n return (double) won_stayed / total_stayed * 100;\n }", "public void mutualFund() {\n\t\tSystem.out.println(\"HSBC--Mutual Fund--from Brazil Bank\");\n\t}" ]
[ "0.7439524", "0.67306364", "0.6721514", "0.6600976", "0.6552888", "0.6501102", "0.6283487", "0.6283487", "0.6089238", "0.59391266", "0.5863301", "0.5863301", "0.5757481", "0.57019407", "0.56913364", "0.5679042", "0.565754", "0.5654155", "0.5649577", "0.5615923", "0.5599874", "0.55911213", "0.55911213", "0.5590847", "0.5579405", "0.5575261", "0.5543848", "0.5528046", "0.5495634", "0.5479588", "0.54008114", "0.53865576", "0.53854424", "0.5385164", "0.5366695", "0.53665656", "0.53636855", "0.5360104", "0.5352743", "0.53412706", "0.53393537", "0.5333073", "0.5331928", "0.53294253", "0.5312743", "0.5306745", "0.530322", "0.5300454", "0.52951145", "0.52939045", "0.5288547", "0.52809685", "0.52802134", "0.5279382", "0.5277448", "0.5274738", "0.52639556", "0.5246854", "0.52321124", "0.523044", "0.52087486", "0.52058905", "0.52043396", "0.520352", "0.52019846", "0.52013916", "0.5190855", "0.51881737", "0.5182363", "0.5177209", "0.51748484", "0.51744604", "0.5167568", "0.51672524", "0.5157977", "0.51579577", "0.5155232", "0.5150817", "0.5149172", "0.5140909", "0.5139009", "0.5135695", "0.5131928", "0.5126107", "0.5125766", "0.5124714", "0.5116174", "0.51154786", "0.5104312", "0.5104084", "0.51011866", "0.51007444", "0.50986683", "0.5095923", "0.5086476", "0.5081884", "0.50804204", "0.50789946", "0.50776684", "0.5070825" ]
0.7408124
1
records purchase of the given shares at the given price
public void purchase(double shares, double pricePerShare) { this.totalShares += shares; super.addCost(shares * pricePerShare); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buyStock(double askPrice, int shares, int tradeTime) {\n }", "@Override\r\n\t\t\tpublic void buy(String security, double price, int volume) {\n\t\t\t\tSystem.out.println(\"buy is\"+price+volume);\r\n\t\t\t\t\r\n\t\t\t}", "public void buyShare(BigDecimal priceDecimal, Stock stock) {\n List<Orderstock> orderstockBuyList = orderstockServiceImpl.buyStock(stock.getSymbol(), Utils.BUY, priceDecimal);\n for (Orderstock orderstock : orderstockBuyList) {\n AccountDto accountDto = new AccountDto();\n BigDecimal stockLot = new BigDecimal(orderstock.getStockLot());\n BigDecimal cash = stockLot.multiply(priceDecimal);\n accountDto.setCash(cash);\n\n User existingUser = userService.findByUserId(orderstock.getUser().getUserId());\n if (existingUser == null || Boolean.FALSE.equals(existingUser.isEnabled() )) {\n throw new DataIntegrityViolationDbException(\"Could not find active user!\");\n }\n\n accountServiceImpl.withdrawCash(accountDto, existingUser);\n orderstock.setActive(false);\n orderstockServiceImpl.updateOrderstock(orderstock);\n\n String mail = env.getProperty(\"spring.mail.username\");\n emailSenderService.sendEmail(existingUser.getEmail(), \"STOCK BUY NOTIFICATION\",\n mail,\"Stock Symbol -> \" + stock.getSymbol() + \" - \"\n + \" Stock Price -> \" + priceDecimal);\n }\n }", "double purchasePrice();", "public void buy(int num, float sharePrice) {\n\t\tTransaction t = new Transaction(num, sharePrice);\n\t\tshares.enqueue(t);\n\n\t}", "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "public void sellShare(BigDecimal priceDecimal, Stock stock) {\n List<Orderstock> orderstockSellList = orderstockServiceImpl.sellStock(stock.getSymbol(), Utils.SELL, priceDecimal);\n for (Orderstock orderstock : orderstockSellList) {\n AccountDto accountDto = new AccountDto();\n BigDecimal stockLot = new BigDecimal(orderstock.getStockLot());\n BigDecimal cash = stockLot.multiply(priceDecimal);\n accountDto.setCash(cash);\n\n User existingUser = userService.findByUserId(orderstock.getUser().getUserId());\n if (existingUser == null || Boolean.FALSE.equals(existingUser.isEnabled() )) {\n throw new DataIntegrityViolationDbException(\"Could not find active user!\");\n }\n\n accountServiceImpl.loadCash(accountDto, existingUser);\n orderstock.setActive(false);\n orderstockServiceImpl.updateOrderstock(orderstock);\n\n String mail = env.getProperty(\"spring.mail.username\");\n emailSenderService.sendEmail(existingUser.getEmail(), \"STOCK SELL NOTIFICATION\",\n mail,\"Stock Symbol -> \" + stock.getSymbol() + \" - \"\n + \" Stock Price -> \" + priceDecimal);\n }\n }", "public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }", "public void matchRecord(String buyRequestNo, String sellRequestNo, Integer buyId, Integer sellId, BigDecimal num,\n\t\t\tBigDecimal price, String symbol);", "public void buy(String n,int shares, Stock s){\n boolean own = false;\n for (PersonStocks x :myStocks) {//if the name is a stock that exists\n if(n.equals(x.getName())) {\n x.addShares(shares);\n money-= (s.getPrice()*shares);\n own = true;\n }\n }\n if (!own){//makes the user own it now\n myStocks.add(new PersonStocks(n,shares));\n money-= (s.getPrice()*shares);\n\n }\n\n }", "@Override\r\n\t\t\tpublic void sell(String security, double price, int volume) {\n\t\t\t\tSystem.out.println(\"sell is\");\r\n\t\t\t}", "@Override \n\tpublic TradeAction tick(double price) {\n\t\tma10before=average(priceQ10);\n\t\t\n\t\tif (priceQ10.size()<10)\n\t\t{\n\t\t\tpriceQ10.offer(price);\n\t\t}\n\t\tif(priceQ10.size()==10)\n\t\t{\n\t\t\tpriceQ10.poll();\n\t\t\tpriceQ10.offer(price);\t\t\n\t\t}\n\t\t\n\t\t ma10after=average(priceQ10);\n\t\t \n\t\t// 60 days moving average\n\t\tma60before=average(priceQ60);\n\t\tif (priceQ60.size()<60)\n\t\t{\n\t\t\tpriceQ60.offer(price);\n\t\t}\n\t\tif(priceQ60.size()==60)\n\t\t{\n\t\t\tpriceQ60.poll();\n\t\t\tpriceQ60.offer(price);\t\t\n\t\t}\n\t\tma60after=average(priceQ60);\n\t\t\t\n\t\t//buy when its 10 day moving average goes above the 60 day moving average\n\t\tif((ma10before < ma60before) & (ma10after > ma60after))\n\t\t{\n\t\t\tprofit = profit - price;\n\t\t\t//System.out.println(\"buy\");\n\t\t\t//System.out.println(\"profit is\");\n\t\t\t//System.out.println(profit);\n\t\t\tif(mark==1){\n\t\t\t\tmark=-1;\n\t\t\t\treturn TradeAction.BUY;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn TradeAction.DO_NOTHING;\n\t\t\t\n\t\t}\n\t\t//buy when its 10 day moving average goes below the 60 day moving average\n\t\tif((ma10before > ma60before) & (ma10after < ma60after))\n\t\t{\n\t\t\tprofit = profit + price;\n\t\t\t//System.out.println(\"sell\");\n\t\t\t//System.out.println(\"profit is\");\n\t\t\t//System.out.println(profit);\n\t\t\tif(mark==-1){\n\t\t\t\tmark=1;\n\t\t\t\treturn TradeAction.SELL;\n\t\t\t}\n\t\t\telse \n\t\t\t\treturn TradeAction.DO_NOTHING;\n\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn TradeAction.DO_NOTHING;\t\t\t\n\t\t}\n\n\t}", "@Override\n public void buy(double limitPrice, int quantity) {\n Boolean allBought = false;\n Iterator iter1 = sellOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iter1.next();\n if(limitPrice >= (Double)entry.getKey()) {\n if(quantity <= (Integer)entry.getValue()) {\n allBought = true;\n sellOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n }\n else {\n quantity = quantity - (Integer)entry.getValue();\n sellOrders.put((Double)entry.getKey(),0);\n }\n }\n\n }\n if(!allBought) {\n\n if (buyOrders.containsKey(limitPrice))\n buyOrders.put(limitPrice, buyOrders.get(limitPrice) + quantity);\n else\n buyOrders.put(limitPrice, quantity);\n }\n cleanUp();\n\n }", "void addTrade(Trade trade);", "@Override\r\n\tpublic void buy(String uname, String bname, Double price) {\n\t\tSystem.out.println(uname + \"购买图书:\" + bname);\r\n\t\tSystem.out.println(\"消费金额:\" + price);\r\n\t\tSystem.out.println(\"支付成功!向物流系统下发货单!\");\r\n\t}", "public void sell(Share s) {\r\n try {\r\n Double price = s.getCompany().getCurrentPrice()*(new Random().nextDouble()+0.5)*s.getNumber();\r\n Exchange e = s.getExchange();\r\n Share exchangeShare = null;\r\n for (int i=0; i<e.getShares().size(); i++) {\r\n if (e.getShares().get(i).getCompany() == s.getCompany()) {\r\n exchangeShare = e.getShares().get(i); break;\r\n } \r\n }\r\n if (exchangeShare!=null) {\r\n synchronized(s){\r\n s.getCompany().buyShares(s, s.getNumber(), price);\r\n exchangeShare.setNumber(exchangeShare.getNumber()-s.getNumber());\r\n this.budget+=price;\r\n this.capital.remove(s);\r\n this.shares.remove(s);\r\n }\r\n }\r\n }\r\n catch (Exception ex)\r\n {\r\n \r\n }\r\n\r\n }", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "public void executeOrders(String security,Double price) {\r\n\t\t\r\n\t\t// get the thresholds for buying and selling for a given stock\r\n\t\tStock s=StockMDM.getVolumeLimit(security);\r\n\t\t\r\n\t\tboolean isBuyExecutionRequired=s!=null?(s.getBuyingPrice()>price?true:false):false;\r\n\t\tif(isBuyExecutionRequired && !this.buyCache.containsKey(security)) {\r\n\t\t\tes.buy(security, price, s.getBuyingVolume());\r\n\t\t\tbuyCache.put(security,Boolean.TRUE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void setSharePrice(double stockPrice) {\n\t\tthis.sharePrice = stockPrice;\n\t}", "public float sell(int num, float sharePrice) {\n\t\tif (shares.isEmpty()) {\n\t\t\tthrow new EmptyQueueException(); //Initial check to make sure Queue is not empty\n\t\t}\n\t\tfloat currentCapital = 0;\n\t\twhile (num != 0 && !shares.isEmpty()) { //Keep running until all stocks that need to be sold are sold.\n\t\t\tint amountOfShares; //Amount of shares being sold\n\t\t\tfloat priceOfShares; //The price we are selling them at.\n\t\t\tTransaction t = shares.dequeue(); //Making a temp transaction to use in calculations.\n\t\t\tif (t.getShares() > num) { //If you have more shares bought at one price, then being sold:\n\t\t\t\tamountOfShares = num; //Set amount of shares to be sold.\n\t\t\t\tTransaction temp = new Transaction((t.getShares() - num), //Adds a new transaction with the remaining\n\t\t\t\t\t\tt.getSharePrice()); //Amount of stocks that are not to be sold yet.\n\t\t\t\tshares.enqueue(temp); //Requeue the rest of stocks.\n\t\t\t\tnum = 0;\n\t\t\t} else { //If we are selling all shares in this position in queue:\n\t\t\t\tamountOfShares = t.getShares(); //Get the amount of shares we have already dequeued.\n\t\t\t\tnum -= amountOfShares; //Reduce the amount of shares left to be sold.\n\t\t\t}\n\t\t\tpriceOfShares = t.getSharePrice(); //Get the price of the shares\n\t\t\tcurrentCapital += amountOfShares * (sharePrice - priceOfShares); //Increase the currentCapital gain/loss you currently have.\n\t\t}\n\t\treturn currentCapital; //return your capital value.\n\t}", "void insert(PaymentTrade record);", "private void addBuyCashTrade( final Trade trade ) {\n // Add the trade to the end of the list.\n this.posHldCashTrades.add( trade ) ;\n this.allCashBuyTrades.add( trade ) ;\n }", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "@SuppressWarnings({ \"unchecked\", \"finally\" })\n\t@RequestMapping(value=\"/{username}/buy\", method = RequestMethod.POST)\n\tpublic String buyStock(@PathVariable String username, @RequestParam(value=\"stock\") String stock, @RequestParam(value=\"shares\") int shares ){\n\t\tUser user = userService.getUserByName(username);\n\t\tString portfolio = user.getPortfolio();\n\t\tSystem.out.println(portfolio);\n\t\tString stockToBuy = stock;\n\t\tint amountToBuy = shares;\n\n\t\tJSONParser parser = new JSONParser();\n\t\ttry {\n\t\t\tJSONObject json = (JSONObject) parser.parse(portfolio);\n\t\t\tJSONArray details = (JSONArray) json.get(\"portfolio\");\n\t\t\tSystem.out.println(\"Details:\");\n\t\t\tSystem.out.println(details.toJSONString());\n\t\t\tSystem.out.println(json.toString());\n\t\t\tList<String> stockInfo = new ArrayList<>();\n\n\t\t\tHashMap<String, String> stockKeyValue = new HashMap<String, String>();\n\n\n\t\t\t//\t\t\tdouble testint[] = {0,0,0,0};\n\n\t\t\tdetails.forEach( stockInfoFromPortfolio -> {\n\t\t\t\tJSONObject parse = (JSONObject) stockInfoFromPortfolio;\n\n\t\t\t\tfor(int i = 0; i<parse.size(); i++){\n\n\t\t\t\t\tString key = parse.keySet().toArray()[i].toString();\n\t\t\t\t\tstockKeyValue.put(key, parse.get(key).toString());\n\t\t\t\t\tstockInfo.add(i, parse.get(key).toString());\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(stockKeyValue.get(\"amount\"));\n\n\t\t\t\tSystem.out.println(stockKeyValue.toString());\n\n\t\t\t});\n\t\t\tArrayList<PortfolioIndex> stocks = new ArrayList<PortfolioIndex>();\n\t\t\tPortfolioIndex index;\n\t\t\tfor(int i = 0; i<stockInfo.size()-1;i+=2){\n\t\t\t\tindex = new PortfolioIndex(stockInfo.get(i+1).toString(), Integer.parseInt(stockInfo.get(i)));\n\t\t\t\tstocks.add(index);\n\t\t\t}\n\n\t\t\tboolean exists = false;\n\t\t\tint positionIndex = -1;\n\t\t\tint counter = 0;\n\t\t\tfor(PortfolioIndex indexes: stocks){\n\t\t\t\tif(indexes.getTicker().equalsIgnoreCase(stock)){\n\t\t\t\t\texists=true;\n\t\t\t\t\tpositionIndex = counter;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t\tSystem.out.println(\"OK TILL NOW\");\n\t\t\tSystem.out.println(\"STOCK:\"+stock);\n\t\t\tString stockURL = \"http://localhost:9090/price/\"+stock;\n\t\t\tdouble responsePrice = Double.parseDouble(this.sendGet(stockURL));\n\t\t\tSystem.out.println(\"RESPONSE PRICE:\" + responsePrice);\n\t\t\tif(responsePrice == 0.0){\n\t\t\t\tSystem.out.println(\"WHY?\");\n\t\t\t\treturn \"Stock not found please try again later\";\n\t\t\t}else{\n\t\t\t\tif(user.getFunds()-(responsePrice*shares) < 0.0){\n\t\t\t\t\tSystem.out.println(\"ALSO WHY?\");\n\t\t\t\t\treturn \"Invalid funds for transaction\";\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"price not 0\");\n\t\t\t\t\tuser.removeFunds((responsePrice*shares));\n\t\t\t\t\tif(positionIndex != -1){\n\t\t\t\t\t\tSystem.out.println(\"counter found\");\n\t\t\t\t\t\t//Stock was in portfolio need to save new user with new portfolio\n\t\t\t\t\t\tSystem.out.println(positionIndex);\n\t\t\t\t\t\tSystem.out.println(stocks);\n\t\t\t\t\t\tstocks.get(positionIndex).setValue(stocks.get(positionIndex).getValue()+shares);\n\t\t\t\t\t\tSystem.out.println(\"VALUE:\");\n\t\t\t\t\t\tSystem.out.println(stocks.get(positionIndex).getValue()+\" \"+stocks.get(positionIndex).getTicker());\n\t\t\t\t\t\tString newPortfolio = \"\";\n\t\t\t\t\t\tfor(int i=0; i<stocks.size(); i++){\n\t\t\t\t\t\t\tif(i != stocks.size()-1){\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex()+\",\";\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.print(\"New Portfolio:\");\n\t\t\t\t\t\t\tSystem.out.println(newPortfolio);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//System.out.println(stocks.get(counter).getValue()+\" \"+stocks.get(counter+1).getValue());\n\t\t\t\t\t\tuser.setPortfolio(newPortfolio);\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tPortfolioIndex portIndex = new PortfolioIndex(stock,shares);\n\t\t\t\t\t\tuser.addCustomPortfolioIndexes(portIndex.returnIndex());\n\t\t\t\t\t\tSystem.out.println(\"WE HIT\");\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tuserService.saveNewUser(user);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//System.out.println(user.get);\n\t\t\treturn \"Purchase successful heres your new portfolio:\\n\"+user.getPortfolio();\n\t\t}catch(Exception e){\n\t\t\treturn \"Exception found!\";\n\t\t}\n\t}", "public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }", "void purchaseMade();", "public double calculateCost(Purchase purchase);", "public void purchaseStock(long socialSecurityNumber, String userName, String password, String tickerSymbol, int shares) throws AuthenticationException,UnauthorizedActionException,InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction purchase = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.BUYSTOCK, getPatron(socialSecurityNumber).getBrokerageAccount(), shares);\r\n purchase.setStockSymbol(tickerSymbol);\r\n purchase.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(purchase);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }", "@Test\n\tpublic void test_PNL_2Deals_Aggreg_buy(){\n\t\tpa.addTransaction(new Trade(new Date(), new Date(), \"\", 0.10, AAPL, 10.0, 10.0));\n\t\tpa.addTransaction(new Trade(new Date(), new Date(), \"\", 0.10, AAPL, 10.0, 15.0));\n\t\tassertEquals( \"150.00\", nf.format(new PNLImpl(pa, AAPL,16.00).getPNLUnrealized(false)) );\n\t}", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public Items[] findWherePriceEquals(double price) throws ItemsDaoException;", "void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "@Override\r\n public void onClick(View view) {\n Log.d(\"WTF Buy stock at ppl detail\", \"0001 data:\" + StockData.getStockData(1).getDescription());\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Current M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n CommonAccount.getCurrentAccount().stockBuySell(1, 100);\r\n Log.d(\"WTF Buy stock at ppl detail\", \"After M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Amount of 0001:\" + CommonAccount.getCurrentAccount().getStockInventory(1));\r\n\r\n\r\n try {\r\n CommonAccount.updateCurrentAccount(activity_ppl_details.this);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(\"Cannot stock buy\", e.getMessage());\r\n }\r\n\r\n// Intent intent = new Intent(activity_ppl_details.this, activity_ppl_status.class);\r\n// startActivity(intent);\r\n\r\n Intent returnIntent = new Intent();\r\n setResult(RESULT_OK, returnIntent);\r\n\r\n finish();\r\n\r\n }", "public void getPromoShare() {\n\t\tHashMap<String, DataStorage> items = this.getAllItems();\n\t\tfor(String key:items.keySet()) {\n\t\t\tHashtable<String, Double> sales = new Hashtable<String, Double>();\n\t\t\tsales.put(\"Total Sales\",items.get(key).getSales(thisPeriod));\n\t\t\tsales.put(\"Total Sales YA\", items.get(key).getSales(lastPeriod));\n\t\t\tsales.put(\"Any Promo Sales\", items.get(key).getAnyPromo(thisPeriod));\n\t\t\tsales.put(\"Any Promo Sales YA\", items.get(key).getAnyPromo(lastPeriod));\n\t\t\tsales.put(\"Feature\", items.get(key).getFeat(thisPeriod));\n\t\t\tsales.put(\"Feature YA\", items.get(key).getFeat(lastPeriod));\n\t\t\tsales.put(\"Display\", items.get(key).getDisplay(thisPeriod));\n\t\t\tsales.put(\"Display YA\", items.get(key).getDisplay(lastPeriod));\n\t\t\tsales.put(\"Quality\", items.get(key).getQual(thisPeriod));\n\t\t\tsales.put(\"Quality YA\", items.get(key).getQual(lastPeriod));\n\t\t\tsales.put(\"Price Disc.\", items.get(key).getPriceDisc(thisPeriod));\n\t\t\tsales.put(\"Price Disc.YA\", items.get(key).getPriceDisc(lastPeriod));\n\t\t\tthis.allocateValues(sales);\n\t\t}\n\t}", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "void pay(Order order);", "private void generateTrades() {\n\t\tSystem.out.println(\"\\nGenerating fake trade records for stock: \" + stockSymbol);\n Random rd = new Random();\n \n for (int i = 0; i < 5; i++) {\n // Create arbitrary timestamp and TradeRecord data \n \t// within the last 20 minutes\n \n int minutes = rd.nextInt(21);\n int sharesQty = rd.nextInt(100) + 1;\n boolean isBuy = rd.nextBoolean();\n double price = (rd.nextDouble() + 0.1) * 100;\n // truncate price to 2 decimal places\n String tmpPrc = String.format(Locale.ENGLISH, \"%.2f\", price);\n price = Double.parseDouble(tmpPrc);\n TradeRecordType indicator = isBuy ? TradeRecordType.BUY : TradeRecordType.SELL;\n \n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.MINUTE, -minutes);\n Date date = cal.getTime();\n \n // Create and save fake trade record\n TradeRecord rec = new TradeRecord(date, sharesQty, indicator, price);\n System.out.println(rec);\n this.stockTrades.put(date, rec);\n }\n }", "void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public void productsToBuy(Product purchase){\n bill.getProducts().add(purchase);\n }", "Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;", "public void putNewPrice(String symbol, double price);", "public static void main(String[] args) throws InterruptedException {\n Item item1 = new Item(\"Coca-cola\", 200);\n System.out.println(\"Price before discount: \" + item1.getPrice());\n System.out.println(\"Price after discount: \" + item1.calculateDiscount()); //should be same price, 200, there's no doscount for this type\n\n ItemWithDiscount item2 = new ItemWithDiscount(\"Coca-cola Zero\", 2.0);\n System.out.println(\"\\nPrice before discount: \" + item2.getPrice());\n item2.setDiscount(10);\n System.out.println(\"Price after discount: \" + item2.calculateDiscount()); // 2 - 0.2 = 1.8\n\n\n //CHECK BUY PAY DISCOUNT\n BuyMorePayLess item04 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item05 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item06 = new BuyMorePayLess(\"Milk\", 1);\n item04.setBuyPayOffer(3,2);\n item04.calculateDiscount();\n\n //Check TakeItAll discount\n ItemTakeItAll item07 = new ItemTakeItAll(\"Tuna\",5.00);\n ItemTakeItAll item08 = new ItemTakeItAll(\"Tuna\",5.00);\n\n// item07.setDiscount(10);\n item07.setMinimumNumber(1);\n System.out.println(\"##################\" + item07.calculateDiscount());\n\n // USERS\n LoyalCustomer customer01 = new LoyalCustomer(\"Giorgi Tsipuria\", \"giobaski\", \"123\",\n \"Gonsiori 33\",\"55945239\");\n\n //B A S K E T S\n Basket basket01 = new Basket(\"Tartu 46\", \"Kairi\", customer01);\n basket01.insertItem(item1); //200 -> 200\n basket01.insertItem(item2); // 2.0 -> 1.8\n System.out.println(\"Total payment in basket: \" + basket01.caclulatePayment()); //201.8 + 201.8 * 0.1 = 221.98\n\n\n\n\n\n //1. Create Store\n Store store = new Store(\"Raua 16\");\n\n //2. sign into store\n Cashier currentCashier = store.cashierAuthentication();\n\n //3.\n Menu currentMenu = store.openMenu();\n\n //4. new basket\n currentMenu.openNewBasket(customer01);\n\n\n //5.Cashier starts adding items into new basket\n System.out.println(currentMenu.getBasket());\n currentMenu.getBasket().insertItem(item1);\n currentMenu.getBasket().insertItem(item2);\n\n\n System.out.println(\"######Basket By ID:\");\n currentMenu.printBasketInfoById(2);\n System.out.println(\"########\");\n\n\n //6. Calculate total price for the current basket\n currentMenu.getBasket().caclulatePayment();\n System.out.println(currentMenu.getBasket());\n System.out.println(\"currents items: \");\n System.out.println(currentMenu.getBasket().getItems());\n\n //7. Logout cashier\n Thread.sleep(10000);\n currentMenu.exit();\n\n\n // Additional features\n System.out.println(\"points of the loyal customer: \" + customer01.getPoints());\n\n System.out.println(\"Bonus for cashier: \" + currentCashier.calculateBonus() + \" Euros\");\n\n\n\n\n\n\n }", "public void sell(String n,int shares, Stock s){\n for (PersonStocks x :myStocks) {\n if(n.equals(x.getName())) {\n x.addShares(0-shares);\n money+= (s.getPrice()*shares);\n }\n }\n for (int i = 0; i < myStocks.size(); i++) {\n if (myStocks.get(i).getNumShares()<=0){\n myStocks.remove(i);//if they now have 0 and now removes it from person stocks\n }\n }\n\n }", "double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;", "public static void addOrder(String timestamp, String order_id, String side, double price, int size) {\n\t\tDouble min_buy_price, max_sell_price;\n\t\t//add the order to the log\n\t\tid_to_order.put(order_id, new Order(side,price,size));\n\n\t\tif(\"S\".equals(side)){//offer\n\n\t\t\tmin_buy_price = buyer.addNewOffer(price,size);\n\n\t\t\t//check to see if there is a new minimum buy price\n\t\t\tif(min_buy_price == null){}//do nothing, no change in min buy price\n\t\t\telse if(min_buy_price == Double.POSITIVE_INFINITY){//there are no longer enough shares to complete the buy\n\t\t\t\tSystem.out.println(timestamp +\" B NA\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(timestamp +\" B \"+ String.format(\"%.2f\", min_buy_price));\n\t\t\t}\n\t\t} else {//bid\n\t\t\tmax_sell_price = seller.addNewBid(price,size);\n\n\t\t\t//check to see if there is a new maximum sale price\n\t\t\tif(max_sell_price == null){}//do nothing, no change in min buy price\n\t\t\telse if(max_sell_price == Double.NEGATIVE_INFINITY){//there are no longer enough shares to complete the sale\n\t\t\t\tSystem.out.println(timestamp +\" S NA\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(timestamp +\" S \"+ String.format(\"%.2f\", max_sell_price));\n\t\t\t}\n\t\t}\n\t}", "public void setPurchasePrice(Double purchasePrice) {\r\n this.purchasePrice = purchasePrice;\r\n }", "public boolean recordTrade(Trade trade) throws Exception;", "private void PayBill() {\r\n Cursor crsrBillDetail = dbBillScreen.getBillDetailByCustomer(iCustId, 2, Float.parseFloat(tvBillAmount.getText().toString()));\r\n if (crsrBillDetail.moveToFirst()) {\r\n strPaymentStatus = \"Paid\";\r\n PrintNewBill(businessDate, 1);\r\n } else {\r\n if (strPaymentStatus== null || strPaymentStatus.equals(\"\"))\r\n strPaymentStatus = \"CashOnDelivery\";\r\n\r\n\r\n ArrayList<AddedItemsToOrderTableClass> orderItemList = new ArrayList<>();\r\n int taxType =0;\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n int menuCode =0;\r\n String itemName= \"\";\r\n double quantity=0.00;\r\n double rate=0.00;\r\n double igstRate=0.00;\r\n double igstAmt=0.00;\r\n double cgstRate=0.00;\r\n double cgstAmt=0.00;\r\n double sgstRate=0.00;\r\n double sgstAmt=0.00;\r\n double cessRate=0.00;\r\n double cessAmt=0.00;\r\n double subtotal=0.00;\r\n double billamount=0.00;\r\n double discountamount=0.00;\r\n\r\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n\r\n // Item Number\r\n if (RowBillItem.getChildAt(0) != null) {\r\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\r\n menuCode = (Integer.parseInt(ItemNumber.getText().toString()));\r\n }\r\n\r\n // Item Name\r\n if (RowBillItem.getChildAt(1) != null) {\r\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\r\n itemName = (ItemName.getText().toString());\r\n }\r\n\r\n\r\n\r\n // Quantity\r\n if (RowBillItem.getChildAt(3) != null) {\r\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\r\n String qty_str = Quantity.getText().toString();\r\n double qty_d = 0.00;\r\n if(qty_str==null || qty_str.equals(\"\"))\r\n {\r\n Quantity.setText(\"0.00\");\r\n }else\r\n {\r\n qty_d = Double.parseDouble(qty_str);\r\n }\r\n quantity = (Double.parseDouble(String.format(\"%.2f\",qty_d)));\r\n\r\n }\r\n\r\n // Rate\r\n if (RowBillItem.getChildAt(4) != null) {\r\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\r\n String rate_str = Rate.getText().toString();\r\n double rate_d = 0.00;\r\n if((rate_str==null || rate_str.equals(\"\")))\r\n {\r\n Rate.setText(\"0.00\");\r\n }else\r\n {\r\n rate_d = Double.parseDouble(rate_str);\r\n }\r\n rate = (Double.parseDouble(String.format(\"%.2f\",rate_d)));\r\n\r\n }\r\n\r\n\r\n // Service Tax Percent\r\n\r\n if(chk_interstate.isChecked()) // IGST\r\n {\r\n cgstRate =0;\r\n cgstAmt =0;\r\n sgstRate =0;\r\n sgstAmt =0;\r\n if (RowBillItem.getChildAt(23) != null) {\r\n TextView iRate = (TextView) RowBillItem.getChildAt(23);\r\n igstRate = (Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(iRate.getText().toString()))));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowBillItem.getChildAt(24) != null) {\r\n TextView iAmt = (TextView) RowBillItem.getChildAt(24);\r\n igstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(iAmt.getText().toString())));\r\n }\r\n\r\n\r\n }else // CGST+SGST\r\n {\r\n igstRate =0;\r\n igstAmt =0;\r\n if (RowBillItem.getChildAt(15) != null) {\r\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\r\n sgstRate = (Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(ServiceTaxPercent.getText().toString()))));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowBillItem.getChildAt(16) != null) {\r\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\r\n sgstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(ServiceTaxAmount.getText().toString())));\r\n }\r\n\r\n // Sales Tax %\r\n if (RowBillItem.getChildAt(6) != null) {\r\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\r\n cgstRate = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(SalesTaxPercent.getText().toString())));\r\n }\r\n // Sales Tax Amount\r\n if (RowBillItem.getChildAt(7) != null) {\r\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\r\n cgstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(SalesTaxAmount.getText().toString())));\r\n }\r\n }\r\n if (RowBillItem.getChildAt(25) != null) {\r\n TextView cessRt = (TextView)RowBillItem.getChildAt(25);\r\n if(!cessRt.getText().toString().equals(\"\"))\r\n cessRate = Double.parseDouble(cessRt.getText().toString());\r\n }\r\n if (RowBillItem.getChildAt(26) != null) {\r\n TextView cessAt = (TextView)RowBillItem.getChildAt(26);\r\n if(!cessAt.getText().toString().equals(\"\"))\r\n cessAmt = Double.parseDouble(cessAt.getText().toString());\r\n }\r\n\r\n\r\n\r\n // Tax Type\r\n if (RowBillItem.getChildAt(13) != null) {\r\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\r\n taxType = (Integer.parseInt(TaxType.getText().toString()));\r\n }\r\n // subtotal\r\n subtotal = (rate*quantity) + igstAmt+cgstAmt+sgstAmt;\r\n\r\n AddedItemsToOrderTableClass orderItem = new AddedItemsToOrderTableClass( menuCode, itemName, quantity, rate,\r\n igstRate,igstAmt, cgstRate, cgstAmt, sgstRate,sgstAmt, rate*quantity,subtotal, billamount,cessRate,cessAmt,discountamount);\r\n orderItemList.add(orderItem);\r\n }\r\n\r\n Bundle bundle = new Bundle();\r\n bundle.putDouble(Constants.TOTALBILLAMOUNT, Double.parseDouble(tvBillAmount.getText().toString()));\r\n bundle.putDouble(Constants.TAXABLEVALUE, Double.parseDouble(tvSubTotal.getText().toString()));\r\n\r\n// bundle.putDouble(Constants.ROUNDOFFAMOUNT, Double.parseDouble(edtRoundOff.getText().toString()));\r\n if (tvOthercharges.getText().toString().isEmpty()) {\r\n bundle.putDouble(Constants.OTHERCHARGES, Double.parseDouble(tvOthercharges.getText().toString()));\r\n } else {\r\n bundle.putDouble(Constants.OTHERCHARGES, Double.parseDouble(tvOthercharges.getText().toString()));\r\n }\r\n bundle.putDouble(Constants.DISCOUNTAMOUNT, Double.parseDouble(tvDiscountAmount.getText().toString()));\r\n bundle.putInt(Constants.TAXTYPE, isForwardTaxEnabled);\r\n //bundle.putInt(CUSTID, Integer.parseInt(tvCustId.getText().toString()));\r\n bundle.putString(Constants.PHONENO, edtCustPhoneNo.getText().toString());\r\n bundle.putParcelableArrayList(Constants.ORDERLIST, orderItemList);\r\n if (chk_interstate.isChecked()) {\r\n double igstAmount = Double.parseDouble(tvIGSTValue.getText().toString());\r\n double cessAmount = Double.parseDouble(tvcessValue.getText().toString());\r\n bundle.putDouble(Constants.TAXAMOUNT, igstAmount + cessAmount);\r\n } else {\r\n double sgstAmount = Double.parseDouble(tvSGSTValue.getText().toString());\r\n double cgstAmount = Double.parseDouble(tvCGSTValue.getText().toString());\r\n double cessAmount = Double.parseDouble(tvcessValue.getText().toString());\r\n bundle.putDouble(Constants.TAXAMOUNT, cgstAmount + sgstAmount + cessAmount);\r\n }\r\n\r\n fm = getSupportFragmentManager();\r\n proceedToPayBillingFragment = new PayBillFragment();\r\n proceedToPayBillingFragment.initProceedToPayListener(this);\r\n proceedToPayBillingFragment.setArguments(bundle);\r\n proceedToPayBillingFragment.show(fm, \"Proceed To Pay\");\r\n\r\n /* Intent intentTender = new Intent(myContext, PayBillActivity.class);\r\n intentTender.putExtra(\"TotalAmount\", tvBillAmount.getText().toString());\r\n intentTender.putExtra(\"CustId\", edtCustId.getText().toString());\r\n intentTender.putExtra(\"phone\", edtCustPhoneNo.getText().toString());\r\n intentTender.putExtra(\"USER_NAME\", strUserName);\r\n intentTender.putExtra(\"BaseValue\", Float.parseFloat(tvSubTotal.getText().toString()));\r\n intentTender.putExtra(\"ORDER_DELIVERED\", strOrderDelivered);\r\n intentTender.putExtra(\"OtherCharges\", Double.parseDouble(tvOthercharges.getText().toString()));\r\n intentTender.putExtra(\"TaxType\", taxType);// forward/reverse\r\n intentTender.putParcelableArrayListExtra(\"OrderList\", orderItemList);\r\n startActivityForResult(intentTender, 1);*/\r\n //mSaveBillData(2, true);\r\n //PrintNewBill();\r\n }\r\n\r\n /*int iResult = dbBillScreen.deleteKOTItems(iCustId, String.valueOf(jBillingMode));\r\n Log.d(\"Delivery:\", \"Items deleted from pending KOT:\" + iResult);*/\r\n\r\n //ClearAll();\r\n //Close(null);\r\n }", "private void saveItemPriceTrend(final Price price) {\n try {\n ItemPriceEntity itemPrice = mDatabaseAccess.itemsDAO().selectLastItemPrice(\n price.getId());\n double sellPercentage = 0;\n double buyPercentage = 0;\n // calculates the sell and buy percentage if a price already exists\n if (itemPrice != null) {\n sellPercentage = 1 - (price.getSells().getUnitPrice() / itemPrice.getSellPrice());\n buyPercentage = 1 - (price.getBuys().getUnitPrice() / itemPrice.getBuyPrice());\n }\n // insert the data\n mDatabaseAccess.trendDAO().insertTrend(\n new TrendEntity(price.getId(), TrendType.BuyItems, buyPercentage));\n mDatabaseAccess.trendDAO().insertTrend(\n new TrendEntity(price.getId(), TrendType.SellItems, sellPercentage));\n } catch (Exception ex) {\n Log.e(TAG, \"Failed to process the item trend with the ID: \" + price.getId(), ex);\n }\n }", "@Override\r\n\tpublic void makePayment(int price) {\n\t\tSystem.out.println(\"Payment Of Rs. \"+price+\" Through COD Successfull. Thank You!\");\r\n\t}", "public double getSharePrice() {\n\t\treturn sharePrice;\n\t}", "public int TransBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\tif(rs1.next()==true)\r\n\t{\r\n\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','self',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t}\r\n\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\tif(rss.next()==true)\r\n\t{\r\n\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share+\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t}\r\n\treturn 1;\r\n}", "@Override\n public void sell(double limitPrice, int quantity) {\n Boolean allSold = false;\n Iterator iter1 = buyOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry)iter1.next();\n if(limitPrice <= (Double)entry.getKey()) {\n if(quantity < (Integer)entry.getValue()) {\n allSold = true;\n buyOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n quantity =0;\n break;\n }\n }\n }\n if(!allSold){\n if(sellOrders.containsKey(limitPrice)) sellOrders.put(limitPrice,sellOrders.get(limitPrice) + quantity);\n else sellOrders.put(limitPrice,quantity);\n }\n cleanUp();\n\n\n }", "@SuppressWarnings(\"FeatureEnvy\")\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void sellItem(String goods, int price) {\n @SuppressWarnings(\"ChainedMethodCall\") int max = player.getInven().get(goods.toLowerCase());\n if ((max - Integer.parseInt(inputStr)) >= 0) {\n player.getInven().put(goods.toLowerCase(), player.getInven().get(goods.toLowerCase())\n -Integer.parseInt(inputStr));\n player.setCargo(player.getCargo() - Integer.parseInt(inputStr));\n player.setCredit(player.getCredit() + (Integer.parseInt(inputStr) * price));\n bay.setText(String.valueOf(player.getCargo()) + \"/\" + player.getSpaceship().getBay());\n credit.setText(String.valueOf(player.getCredit()) + \" Cr\");\n setupInverntory();\n Toast.makeText(getApplicationContext(), \"You sold \" + inputStr + \" \" + goods,\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"You can not sell anymore. Check your bay.\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public Double buyDevice(String name, String type) {\n Cash c = null;\n Cheque ch = null;\n Card cd = null;\n \n Date d = new Date();\n \n switch (type) {\n case \"c1\":\n c = new Cash.Builder(d.toString())\n .build();\n break;\n case \"c2\":\n ch = new Cheque.Builder(d.toString())\n .build();\n break;\n case \"c3\":\n cd = new Card.Builder(d.toString())\n .build();\n break;\n }\n \n \n PurchaseVinyl v = new PurchaseVinyl.Builder()\n .setName(\"Let The Good Times Role\")\n .setPrice(3.99)\n .build();\n \n PurchaseVinyl v1 = new PurchaseVinyl.Builder()\n .setName(\"Thanks For The Meomories\")\n .setPrice(3.99)\n .build();\n \n List<PurchaseVinyl> vinylList = new ArrayList();\n vinylList.add(v);\n vinylList.add(v1);\n \n \n ProductPurchase pc = new ProductPurchase.Builder(d)\n .setVinylPurchases(vinylList)\n .setCardPurchases(cd)\n .setCashPurchases(c)\n .setChequePurchases(ch)\n .build();\n \n repo.save(pc);\n id = pc.getID();\n \n ProductPurchase pc2 = repo.findOne(id);\n for(int x = 0; pc2.getVinylPurchases().size() > x; x++){\n if(pc2.getVinylPurchases().get(x).getName().equals(name)){\n return pc2.getVinylPurchases().get(x).getPrice();\n }\n }\n return null; \n }", "public void setPrice(Money price) {\n this.price = price;\n }", "@Override\n\tpublic boolean buyStock(int companySymbol, int count, int investorId) {\n\t\tad.buyStock(companySymbol,count,investorId);\n\t\treturn true;\n\t}", "public void save_order_without_payment(String advert, String userWhoGive,String userWhoGet,Date date,Date start, Date finish,Float price);", "void makeLimitBuyOrder(AuthInfo authInfo, String pair, String price, String amount,HibtcApiCallback<Object> callback);", "Price getTradePrice();", "public void sale(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"SALE\";\n\t\tAMOUNT = params.get(\"amount\");\n\t\tAPI = \"bp10emu\";\n\t\tif (params.containsKey(\"transactionID\")) {\n\t\t\tRRNO = params.get(\"transactionID\");\n\t\t}\n\t}", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "public HashMap<String, ArrayList[]> determineSale() {\n HashMap<String, ArrayList[]> ordersMap = new HashMap<>();\n ordersMap.put(\"ms\", new ArrayList<Integer>[2]);\n ordersMap.put(\"gs\", new ArrayList<Integer>[2]);\n ordersMap.put(\"xlf\", new ArrayList<Integer>[2]);\n ordersMap.put(\"wfc\", new ArrayList<Integer>[2]);\n ordersMap.put(\"bond\", new ArrayList<Integer>[2]);\n\n Integer temp;\n int ind = 0;\n ArrayList<Integer> prices = ordersMap.get(\"bond\")[0];\n ArrayList<Integer> quantities = ordersMap.get(\"bond\")[1];\n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"gs\")[0];\n quantities = ordersMap.get(\"gs\")[1];\n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n } \n ind = 0;\n prices = ordersMap.get(\"ms\")[0];\n quantities = ordersMap.get(\"ms\")[1]; \n for (int i = 0; i < 3; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"wfc\")[0];\n quantities = ordersMap.get(\"wfc\")[1]; \n for (int i = 0; i < 2; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);;\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n ind = 0;\n prices = ordersMap.get(\"xlf\")[0];\n quantities = ordersMap.get(\"xlf\")[1]; \n for (int i = 0; i < 10; i++) {\n temp = bondsBuy.poll();\n if (prices.get(ind).equals(temp)) {\n quantities.set(ind, quantities.get(ind) + 1);\n } else {\n prices.add(temp);\n quantities.add(1);\n ind++;\n }\n }\n return ordersMap;\n }", "private static boolean buy(Environment environment,\n\t\t\t Symbol symbol,\n\t\t\t float amount,\t\t\t\t \n\t\t\t float tradeCost,\n\t\t\t int day) \n\tthrows MissingQuoteException {\n\tfloat sharePrice = environment.quoteBundle.getQuote(symbol, Quote.DAY_OPEN, day);\n\tint shares = \n\t (new Double(Math.floor(amount / sharePrice))).intValue();\n\t\n\t// Now calculate the actual amount the shares will cost\n\tamount = sharePrice * shares;\n\t\n\t// Make sure we have enough money for the trade\n\tif(environment.cashAccount.getValue() >= (tradeCost + amount)) {\n\n\t TradingDate date = environment.quoteBundle.offsetToDate(day);\n\t Transaction buy = Transaction.newAccumulate(date, \n amount,\n\t\t\t\t\t\t\tsymbol, \n shares,\n\t\t\t\t\t\t\ttradeCost,\n\t\t\t\t\t\t\tenvironment.cashAccount,\n\t\t\t\t\t\t\tenvironment.shareAccount);\n\n\t environment.portfolio.addTransaction(buy);\n\t return true;\n\t}\n\t\n\treturn false;\n }", "TradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);", "public void addStoreStock(String name, int amount);", "public void setPrice(double price)\n {\n this.price = price;\n }", "void newSale(double totalWithTaxes);", "public void applyTrade(Trade trade) {\n\t\tthis.sharesOwned += trade.getNumberOfShares();\n\t}", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "@Test\n public void testBuyTwoGetOneFree_1() throws Exception {\n Product apple = new Product(\n \"Apple\",\n \"SKU-0003\",\n ToMoney.from(\n Composite.function(Multiply.by(40),\n BinaryFunctionUnaryFunction.adapt(new UnaryCompositeBinaryFunction<Number, Number, Number>(Subtract.instance(),\n new Identity<Number>(),\n Divide.by(3))))));\n\n assertEquals(new Money(0*40),apple.getPrice(0));\n assertEquals(new Money(1*40),apple.getPrice(1));\n assertEquals(new Money(2*40),apple.getPrice(2));\n assertEquals(new Money(2*40),apple.getPrice(3));\n assertEquals(new Money(3*40),apple.getPrice(4));\n assertEquals(new Money(4*40),apple.getPrice(5));\n assertEquals(new Money(4*40),apple.getPrice(6));\n assertEquals(new Money(5*40),apple.getPrice(7));\n assertEquals(new Money(6*40),apple.getPrice(8));\n assertEquals(new Money(6*40),apple.getPrice(9));\n assertEquals(new Money(7*40),apple.getPrice(10));\n }", "protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice map and return true;\r\n stocksSymbolToPrice.put(tickerSymbol, sharePrice);\r\n return true;\r\n }", "public int TransBroBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\t\tjava.util.Date d=new java.util.Date();\r\n\t\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\t\tString sdate=sd.format(d);\r\n\t\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\t\tif(rs1.next()==true)\r\n\t\t{\r\n\t\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','broker',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t\t}\r\n\t\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\t\tif(rss.next()==true)\r\n\t\t{\r\n\t\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share+\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t\t}\r\n\t\treturn 1;\r\n\t}", "public void stockPurchase(String stockCode, String stockAmount){\r\n\t\tcost = 0;\r\n\t\t\r\n\t\tSystem.out.println(stockAmount);\r\n\t\tSystem.out.println(stockCode);\r\n\t\tSystem.out.println(words[0]);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection con = DriverManager.getConnection(dbUrl, name, pw);\r\n\t\t\tStatement state = con.createStatement();\r\n\t\t\tprepSt = con.prepareStatement(\"INSERT INTO portfolio (stocktick, stock, ask, bid, amount, cost)\"\r\n\t\t\t\t\t+ \" VALUES (?, ?, ?, ?, ?, ?)\");\r\n\t\t\tprepSt.setString(1, stockCode);\r\n\t\t\tprepSt.setString(2, words[0]);\r\n\t\t\tprepSt.setDouble(3, Double.parseDouble(words[1]));\r\n\t\t\tprepSt.setDouble(4, Double.parseDouble(words[2]));\r\n\t\t\tprepSt.setInt(5, Integer.parseInt(stockAmount));\r\n\t\t\tprepSt.setDouble(6, amountInt);\r\n\t\t\t\r\n\t\t\tprepSt.executeUpdate();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Insert Complete\");\r\n\t\t\tcurrent = current - amountInt;\r\n\t\t\t\r\n\t\t\tprepSt = con.prepareStatement(\"UPDATE funds SET current = ?\");\r\n\t\t\tprepSt.setDouble(1, current);\r\n\t\t\t\r\n\t\t\tprepSt.executeUpdate();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Update Complete\");\r\n\t\t\t\r\n\t\t\tResultSet res = state.executeQuery(\"SELECT * FROM portfolio\");\r\n\t\t\t\r\n\t\t\twhile(res.next()){\r\n\t\t\t\tcost = cost + res.getDouble(\"cost\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfunds.setText(\"Funds Available: $\" + NumberFormat.getNumberInstance().format(current) + \" Invested: $\" + NumberFormat.getNumberInstance().format(cost));\r\n\t\t\t\r\n\t \tprepSt.close();\r\n\t \tcon.close();\r\n\t\t}\r\n\t\t\r\n\t\tcatch (SQLException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t \tsearchPanel.remove(bpAction);\r\n\t \tsearchPanel.remove(seAction);\r\n\t}", "void makeLimitSellOrder(AuthInfo authInfo, String pair, String price, String amount,HibtcApiCallback<Object> callback);", "public void setPriceEntered (BigDecimal PriceEntered);", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"[email protected]\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }", "void buyStock(String portfolio, String stock, Integer count, Date date)\r\n throws IllegalArgumentException;", "private void commitSell(Stock stock, int numShares){\n if(numShares <= player.getShares().get(game.getIndex(stock))){\n out.println(\"Selling \" + numShares + \" \" + stock.getName() + \" shares for £\" + stock.getSharePrice() + \" each.\");\n out.println(\"Funds after transaction: £\" + (player.getFunds()+numShares*stock.getSharePrice()));\n out.println(\"\\r\\nConfirm sale? (Y/N)\");\n String sConfirmInput = in.nextLine();\n if(sConfirmInput.toUpperCase().equals(\"Y\")){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) - numShares);\n player.setFunds(numShares*stock.getSharePrice());\n player.deductTradesLeft();\n out.println(\"Sale complete.\");\n display();\n command();\n }else if (sConfirmInput.toUpperCase().equals(\"N\")){\n out.println(\"Sale cancelled.\");\n getTradeParam(0);\n }\n }else{\n out.println(\"You do not own that many shares in this stock\");\n getTradeParam(0);\n }\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void sellStock(long socialSecurityNumber, String userName, String password, String tickerSymbol, int shares) throws AuthenticationException,UnauthorizedActionException,InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction sale = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.SELLSTOCK, getPatron(socialSecurityNumber).getBrokerageAccount(), shares);\r\n sale.setStockSymbol(tickerSymbol);\r\n sale.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(sale);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }", "public void buy(int amount, JsonObject quote, Handler<AsyncResult<Portfolio>> resultHandler) { \n delegate.buy(amount, quote, resultHandler);\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "void createItem (String name, String description, double price);", "public void setPrice(Float price) {\n this.price = price;\n }", "private static void sellTrades(Environment environment, \n QuoteBundle quoteBundle,\n Variables variables, \n Expression sell,\n int dateOffset,\n float tradeCost,\n List symbols,\n OrderComparator orderComparator) \n throws EvaluationException {\n List heldSymbols = \n new ArrayList(environment.shareAccount.getStockHoldings().keySet());\n \n for(Iterator iterator = heldSymbols.iterator(); iterator.hasNext();) {\n Symbol symbol = (Symbol)iterator.next();\n \n // If we care about the order, make sure the \"order\" variable is set\n if(orderComparator != null) {\n int order = symbols.indexOf(symbol);\n\n // Symbol not in list? Then ignore\n if (order == -1)\n continue;\n\n variables.setValue(\"order\", order);\n }\n\n variables.setValue(\"held\", getHoldingTime(environment, symbol, dateOffset));\n\n try {\n if(sell.evaluate(variables, quoteBundle, symbol, \n dateOffset) >= Expression.TRUE)\n sell(environment, symbol, tradeCost, dateOffset + 1);\n }\n catch(MissingQuoteException e) {\n // ignore and move on\n }\n }\n }" ]
[ "0.6805873", "0.6368713", "0.6142371", "0.6119956", "0.6083223", "0.6037367", "0.5938999", "0.59298503", "0.5844914", "0.58445144", "0.57144094", "0.5661339", "0.5634919", "0.560249", "0.5601988", "0.5592282", "0.5574101", "0.5551308", "0.55458933", "0.5545145", "0.5529282", "0.5465074", "0.54518956", "0.5448476", "0.54234856", "0.5403812", "0.53678405", "0.536651", "0.53646016", "0.5358963", "0.5357272", "0.5357272", "0.53539777", "0.5353938", "0.5330567", "0.53285736", "0.53175026", "0.53175026", "0.5303145", "0.52963483", "0.5294394", "0.52913034", "0.52840513", "0.527355", "0.52575505", "0.52521956", "0.5249531", "0.5247189", "0.52404225", "0.52390957", "0.5226199", "0.52260906", "0.5208445", "0.5204413", "0.5198169", "0.51890296", "0.51882267", "0.518476", "0.5180875", "0.5170436", "0.51689255", "0.5163403", "0.51586586", "0.5153919", "0.5150998", "0.5149803", "0.51491594", "0.51487446", "0.51449454", "0.51448816", "0.5140871", "0.51375765", "0.51299775", "0.5118024", "0.5118024", "0.5118024", "0.5118024", "0.5118024", "0.5118024", "0.5118024", "0.51137394", "0.51082116", "0.5106542", "0.510432", "0.51042783", "0.5103005", "0.51007587", "0.51007587", "0.5089079", "0.5087644", "0.5080852", "0.5079403", "0.5069567", "0.5064926", "0.5052454", "0.5052454", "0.5052454", "0.50520575", "0.50499845", "0.5048013" ]
0.6846234
0
String on navigators public String ManageServiceNavigator = "Manage Services";
public void addRgion(String regionName) throws InterruptedException { // Wait for page load waitTillElemenyVisibility(sidebar); if(verifyElementIsDisplayed(alertify_popup)) { clickOnElement(button_dismiss); clickOnElement(button_dismissConfirmationOK); } waitTillElemenyVisibility(tab_setUp); clickOnElement(tab_setUp); js.executeScript("arguments[0].scrollIntoView();",link_Regions); clickOnElement(link_Regions); waitTillElemenyVisibility(button_addRegion); clickOnElement(button_addRegion); enterText(textbox_regionName, regionName); clickOnElement(popup_addREgion); Thread.sleep(3000); clickOnElement(button_submitRegion); assertTrue(verifyTableData(regionName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String validerChoixModule() {\r\n\r\n\t\tString v$navigation = \"Contexte\";\r\n\r\n\t\treturn v$navigation;\r\n\t}", "String getMenuName();", "protected String getPageNavigation()\n {\n return \"\";\n }", "public String getActivationMenu();", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public String mo10346a() {\n return \"Places.ClientArrivalWorkHome\";\n }", "public interface Methods {\n\n String WELCOME = \"bftv.voice.welcome\";\n\n}", "protected abstract String getAtiempoServiceNameEnReversa();", "public String getNavn() {\n\t\tString navn = forNavn + \" \" + etterNavn;\n\t\treturn navn;\n\t}", "String getManagerName();", "Navigation getActiveNavigation();", "@Override\n public void onGetNavigationText(int arg0, String arg1) {\n\n }", "public String navigateServicesCompanyList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"ServicesCompany_items\", this.getSelected().getServicesCompanyList());\n }\n return \"/admin/servicesCompany/index\";\n }", "static String convertOfficeFromService(String service){\n String office = String.valueOf(service.charAt(3));\n\n switch (office) {\n case \"A\":\n office = \"1.0\";\n break;\n case \"B\":\n office = \"2.0\";\n break;\n case \"C\":\n office = \"3.0\";\n break;\n case \"D\":\n office = \"4.0\";\n break;\n }\n\n return office;\n }", "String getServiceRef();", "public String salvar() {\r\n String nav = super.salvarSimulado(GO_LISTAR_SIMULADO);\r\n \r\n if(nav != null){\r\n iniciarPagina();\r\n }\r\n \r\n return nav;\r\n }", "public String getName() {\n\t\treturn MenuString;\n\t}", "public String getNomService() {\r\n\t\treturn nomService;\r\n\t}", "public String openAssociationSystem() {\n String welcome = \"Welcome to the setup of the soccer association system\";\n return welcome;\n }", "public String getAccountNameNav() {\n\t\treturn keypad.AccountNameNavDrawer.getText();\n\t}", "String getOssHomepage();", "public interface MenuNames {\n public static final String FILE = I18N.get(\"ui.MenuNames.FILE\");\n public static final String FILE_NEW = I18N.get(\"ui.MenuNames.FILE.NEW\");\n public static final String FILE_SAVEVIEW = I18N.get(\"ui.MenuNames.FILE.SAVEVIEW\");\n public static final String EDIT = I18N.get(\"ui.MenuNames.EDIT\");\n public static final String TOOLS_EDIT_ATTRIBUTES = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String TOOLS_EDIT_GEOMETRY = I18N.get(\"ui.MenuNames.EDIT\") + \" \" + I18N.get(\"ui.MenuNames.GEOMETRY\");\n public static final String VIEW = I18N.get(\"ui.MenuNames.VIEW\");\n public static final String MAP_DECORATIONS = I18N.get(\"ui.MenuNames.VIEW.MAP_DECORATIONS\");\n public static final String LAYER = I18N.get(\"ui.MenuNames.LAYER\");\n public static final String TOOLS = I18N.get(\"ui.MenuNames.TOOLS\");\n //public static final String TOOLS_ADVANCED = I18N.get(\"ui.MenuNames.TOOLS.ADVANCED\"); // not used, not translated\n public static final String TOOLS_ANALYSIS = I18N.get(\"ui.MenuNames.TOOLS.ANALYSIS\");\n public static final String TOOLS_GENERALIZATION = I18N.get(\"ui.MenuNames.TOOLS.GENERALIZATION\");\n public static final String TOOLS_GENERATE = I18N.get(\"ui.MenuNames.TOOLS.GENERATE\");\n public static final String TOOLS_JOIN = I18N.get(\"ui.MenuNames.TOOLS.JOIN\");\n public static final String TOOLS_QA = I18N.get(\"ui.MenuNames.TOOLS.QA\");\n public static final String TOOLS_WARP = I18N.get(\"ui.MenuNames.TOOLS.WARP\");\n //public static final String TOOLS_PROGRAMMING =I18N.get(\"ui.MenuNames.TOOLS.PROGRAMMING\");\n public static final String TOOLS_QUERIES =I18N.get(\"org.openjump.core.ui.plugin.queries.SimpleQuery.menu\");\n public static final String WINDOW = I18N.get(\"ui.MenuNames.WINDOW\");\n public static final String RASTERTOOLS = I18N.get(\"ui.MenuNames.RASTER\");\n // Michael Michaud 2008-04-06\n // New menu for synchronization\n public static final String WINDOW_SYNCHRONIZATION = I18N.get(\"ui.MenuNames.WINDOW.SYNCHRONIZATION\");\n public static final String HELP = I18N.get(\"ui.MenuNames.HELP\");\n public static final String PLUGINS = I18N.get(\"ui.MenuNames.PLUGINS\");\n \n // Michael Michaud 2007-03-23\n // New menu for plugin manager, beanshell console, scripts\n public static final String CUSTOMIZE = I18N.get(\"ui.MenuNames.CUSTOMIZE\");\n \n //erwan begin 2005-12-01 --- SIGLE\t\n //Menu\n public static final String ATTRIBUTS = I18N.get(\"ui.MenuNames.ATTRIBUTS\");\n public static final String SELECTION = I18N.get(\"ui.MenuNames.SELECTION\");\n public static final String RASTER = I18N.get(\"ui.MenuNames.RASTER\");\n public static final String STATISTICS = I18N.get(\"ui.MenuNames.STATISTICS\");\n public static final String GEOPROCESSING = \"SIGLE-\" + I18N.get(\"ui.MenuNames.GEOPROCESSING\");\n \n //Submenu\n //public static final String ONELAYER = I18N.get(\"ui.MenuNames.ONELAYER\");\n //public static final String TWOLAYERS = I18N.get(\"ui.MenuNames.TWOLAYERS\");\n \n public static final String CONVERT = I18N.get(\"ui.MenuNames.CONVERT\");\n public static final String EXTRACT = I18N.get(\"ui.MenuNames.EXTRACT\");\n public static final String MERGE = I18N.get(\"ui.MenuNames.MERGE\");\n public static final String GENERALIZATION = I18N.get(\"ui.MenuNames.GENERALIZATION\");\n public static final String TOPOLOGY = I18N.get(\"ui.MenuNames.TOPOLOGY\");\n //public static final String QA = I18N.get(\"ui.MenuNames.QA\"); // see MenuNames.TOOLS_QA\n public static final String DELETE = I18N.get(\"ui.MenuNames.DELETE\");\n public static final String DETECT = I18N.get(\"ui.MenuNames.DETECT\");\n public static final String PLOT = I18N.get(\"ui.MenuNames.PLOT\");\n \t\n //\terwan end 2005-12-01\n // Submenus for LayerName PopupMenu\n public static final String STYLE = I18N.get(\"ui.MenuNames.STYLE\");\n public static final String DATASTORE = I18N.get(\"ui.MenuNames.DATASTORE\");\n public static final String SCHEMA = I18N.get(\"ui.MenuNames.SCHEMA\");\n \n public static final String LAYERVIEWPANEL_POPUP = I18N.get(\"ui.MenuNames.LAYERVIEWPANEL_POPUP\");\n public static final String ATTRIBUTEPANEL_POPUP = I18N.get(\"ui.MenuNames.ATTRIBUTEPANEL_POPUP\");\n public static final String LAYERNAMEPANEL_LAYER_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_LAYER_POPUP\");\n public static final String LAYERNAMEPANEL_CATEGORY_POPUP = I18N.get(\"ui.MenuNames.LAYERNAMEPANEL_CATEGORY_POPUP\");\n}", "public final String mo14929c() {\n return \"service_monitor\";\n }", "@Override\n\tpublic void onGetNavigationText(int arg0, String arg1) {\n\n\t}", "String getnavn() {\n return navn;\n }", "public String getSystemName();", "public String getViewServiceWiki()\n {\n return viewServiceWiki;\n }", "@Override\r\n\tpublic void onGetNavigationText(int arg0, String arg1) {\n\r\n\t}", "private String addGoto() {\n\t\t// One Parameter: DisplayName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|GoTo:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "public void setPageNavigation(String navigate)\n {\n // ignore\n }", "private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }", "protected String myString(){\n \treturn( \"gate \" + name ); \n }", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public interface HomePageConstants {\r\n\tpublic static final String MYTASKS=\"html/body/div[1]/div[1]/div/div[2]/ul[1]/li[2]/a\";\r\n}", "private void setNavigation(HttpServletRequest request, String navigation) {\n\t\t\tLocale locale = this.getLocale(request);\n\t\t\tMessageResources messages = getResources(request);\n\t\t\trequest.setAttribute(\"navigator.location\", messages.getMessage(locale,\n\t\t\t\t\tnavigation));\n\t\t}", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "public void setMenu(){\n opciones='.';\n }", "@Given(\"User is on Services page\")\n\tpublic static void user_is_on_services_page() {\n\t\ttry {\n\t\t\tclick(\"services\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void setNavigation(HttpServletRequest request, String navigation) {\n\t\tLocale locale = this.getLocale(request);\n\t\tMessageResources messages = getResources(request);\n\t\trequest.setAttribute(\"navigator.location\", messages.getMessage(locale,\n\t\t\t\tnavigation));\n\t}", "public String getManagerName() {\n return \"r\";\n }", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "@RequestMapping(\"/listeService\")\n\t\tpublic String listeService() {\n\t\t\t\n\t\t\treturn \"listeService\";\n\t\t}", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "public interface ClientApplicationServerHome\n{\n /**\n * Name that will be used for this home.\n */\n public final static String HOME_NAME = \"ClientApplicationServerHome\";\n}", "@AutoEscape\n public String getGeneralManagerName();", "void changeMenuItemName(String itemName, byte type, String msgPlus);", "String getMenus(MmtConfig cfg);", "public String paginaEditCliente(){\n\t\t\r\n\t\treturn \"editcli\";\r\n\t}", "public String getService(){\n\t\t return service;\n\t}", "public String navigator(){\n\t System.out.println(10/0);\n\t return \"anonymousView\";\n\t }", "public void setNomService(String nomService) {\r\n\t\tthis.nomService = nomService;\r\n\t}", "public String mo10346a() {\n return \"Recs.View\";\n }", "@Override public String getMasa(){\n return \"gruesa \";\n }", "public abstract String getSystemName();", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "public void setGeneralManagerName(String generalManagerName);", "String getPageName();", "@Then(\"User should be navigated to services page\")\n\tpublic static void services_positive_tc_001() throws Exception {\n\t\ttry {\n\t\t\tstr=driver.findElement(By.xpath(OR_reader(\"Object Locator\",\"services_title\"))).isDisplayed();\n\t\t\tAssert.assertEquals(str, true);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttakeScreenShot(\"services_positive_tc_001\");\n\t\t}\n\t}", "public java.lang.String getServiceName(){\n return localServiceName;\n }", "interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERVICE_PID + \".storeforward\"; //$NON-NLS-1$\n\n}", "public final String mo14928b() {\n return \"service_monitor\";\n }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public String getViewServiceURLMarker()\n {\n return viewServiceURLMarker;\n }", "private Menu createServiceMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Service\");\r\n\r\n\t\tstartService = new MenuItem(\"Start\");\r\n\t\tstartService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.startService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(startService);\r\n\r\n\t\tstopService = new MenuItem(\"Stop\");\r\n\t\tstopService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.stopService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tstopService.setEnabled(false);\r\n\t\tserviceMenu.add(stopService);\r\n\r\n\t\treturn serviceMenu;\r\n\t}", "@GetMapping(\"/service\")\n\tpublic String showService() {\n\t\treturn \"service\";\n\t}", "public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "@Override\r\n\tpublic void onNaviSetting() {\n\r\n\t}", "public String getNavn()\n {\n return navn;\n }", "protected abstract String getATiempoServiceName();", "public String menu_item_name() {\n\t\treturn driver.findElement(menu_item_logout).getText();\n\t}", "public String getMenuName() {\n return menuName;\n }", "String getServiceName();", "String getServiceName();", "public void setMenuLabel(java.lang.String value);", "private String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "public String authentification(){\r\n\t\t\r\n\t\tString v$navigation = null;\r\n\t\ttry {\r\n\t\t\tTabUsr\tusr = AdminSvcoDeleguate.getSvcoUsr().authenticate(defaultVue.getLogin(), defaultVue.getPassword());\r\n\t\t\tif(usr != null && usr.getCodUsr() != null && !usr.getPwdExpire()){\r\n\t\t\t\t// Navigation vers le formulaire d'acceuil\r\n\t\t\t\tdefaultVue.setUser(usr);\r\n\t\t\t\tv$navigation = \"AcceuilDeBase\";\r\n\t\t\t}else if(usr != null && usr.getPwdExpire()){\r\n\t\t\t\tFacesUtil.addWarnMessage(\"Votre mot de passe a expiré : veuillez contacter l'administrateur\", \"Votre mot de passe a expiré : veuillez contacter l'administrateur\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tFacesUtil.addWarnMessage(\"Login/Mot de passe incorrect\", \"Login/Mot de passe incorrect\");\r\n\t\t\t}\r\n\t\t} catch (SysGehoAppException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ServiceLocatorException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn v$navigation;\r\n\t}", "@Override\n public String menuDescription(Actor actor) {\n return actor + \" visits store\";\n }", "public interface Platform {\n String WEB = \"Web\";\n String FB = \"Facebook Messenger\";\n}", "@Override\r\n\tpublic String getFortune() {\n\t\treturn \"other fortune Service\";\r\n\t}", "private JMenu getMnuGoTo() {\r\n\t\tif (mnuGoTo == null) {\r\n\t\t\tmnuGoTo = new JMenu();\r\n\t\t\tmnuGoTo.setText(\"Go to\");\r\n\t\t\tmnuGoTo.add(getMniBack());\r\n\t\t\tmnuGoTo.add(getMniForward());\r\n\t\t\tmnuGoTo.add(getSepViewGoTo1());\r\n\t\t\tmnuGoTo.add(getMniHome());\r\n\t\t}\r\n\t\treturn mnuGoTo;\r\n\t}", "java.lang.String getAgentName();", "public String getViewServiceAdminClassName()\n {\n return viewServiceAdminClassName;\n }", "@Override\n public String getRoomType()\n {\n return room.getRoomType() + \" + \" + service;\n }", "@RequestMapping(\"/regLoc\")\n\tpublic String showLocReg(){\n\t\treturn \"LocationReg\";\t}", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\n }", "@Override\n public void onStartNavi(int arg0) {\n\n }", "public String search() {\n return \"manage\";\n }", "public String display_page_name_after_login() {\n\t\treturn driver.findElement(page_name_opened_after_login).getText();\n\t}", "public String getManager()\r\n {\r\n return (m_manager);\r\n }", "public String mo27383j() {\n return \"com.google.android.gms.location.internal.IGoogleLocationManagerService\";\n }", "private Menu createSettingsMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Settings\");\r\n\r\n\t\tMenuItem networkSettings = new MenuItem(\"Service\");\r\n\t\tnetworkSettings.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tDaemon.editRunningService(localPeer);\r\n\t\t\t\tchangeDispatcher.stateChanged(new ChangeEvent(localPeer));\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(networkSettings);\r\n\r\n\t\tMenuItem securitySettings = new MenuItem(\"Backup\");\r\n\t\tsecuritySettings.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(securitySettings);\r\n\r\n\t\treturn serviceMenu;\r\n\t}", "@GetMapping(Mappings.SYSTEMS)\n\tpublic String showSystems() {\n\n\t\treturn ViewNames.ADMIN_PANEL;\n\t}", "public static String getFolderStartMenu(){\r\n\t\ttry {\r\n\t\t\treturn RegistryUtils.readString(RegistryUtils.HKEY_CURRENT_USER, \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Shell Folders\", \"Programs\");\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getViewServiceFullName()\n {\n return viewServiceFullName;\n }", "public String mo27384k() {\n return \"com.google.android.location.internal.GoogleLocationManagerService.START\";\n }", "public DashBoardPage NavigateToMittICA()\n{\n\tif(Action.IsVisible(Master_Guest_Mitt_ICA_Link))\n\tAction.Click(Master_Guest_Mitt_ICA_Link);\n\telse\n\t\tAction.Click(Master_SignIN_Mitt_ICA_Link);\n\treturn this;\n}", "public String getWelcomeScreen(){\n\treturn \"Welcome to Prisoners Dilemma\\n\" +\n\t \"(1) Choose desired payoffs for each player\\n\" +\n\t \"(2) Choose strategies for each player.\";\n }" ]
[ "0.57319254", "0.5703074", "0.5552736", "0.5535454", "0.54887885", "0.54887885", "0.54887885", "0.5477722", "0.54604316", "0.53594446", "0.53426915", "0.5321878", "0.5284493", "0.526548", "0.52421474", "0.5218757", "0.52172613", "0.5213108", "0.521232", "0.52117145", "0.518916", "0.5173707", "0.5162466", "0.51517534", "0.5139159", "0.51327217", "0.5114171", "0.5112149", "0.5110798", "0.5101095", "0.50951785", "0.5095125", "0.508594", "0.5082776", "0.50638354", "0.5063072", "0.5060802", "0.5054337", "0.5051774", "0.5046957", "0.50436425", "0.50283", "0.50278103", "0.50274944", "0.5025362", "0.5010838", "0.5009527", "0.50015974", "0.4992276", "0.4982914", "0.49710754", "0.49703762", "0.49593404", "0.49434254", "0.49381435", "0.4931273", "0.49307248", "0.49217907", "0.49179512", "0.49175394", "0.49144796", "0.49094996", "0.4909153", "0.49080947", "0.49067578", "0.49067578", "0.49021176", "0.4898961", "0.48955548", "0.4891938", "0.48908815", "0.48840013", "0.48817724", "0.4876485", "0.4870425", "0.48698685", "0.48698685", "0.4869387", "0.48561472", "0.48560092", "0.48479348", "0.48406506", "0.48382154", "0.48369035", "0.48356465", "0.48213416", "0.48209757", "0.481893", "0.4818332", "0.48094025", "0.4808385", "0.4807431", "0.48066357", "0.47979495", "0.47895318", "0.4789114", "0.47826374", "0.477837", "0.47725672", "0.47704527", "0.47636756" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View rootView = inflater.inflate(R.layout.fragment_prediction, container, false); localPreferences = new LocalPreferences(getActivity()); PredictionClient predictionClient = new PredictionClient(getContext(), localPreferences.getCurrentEventSelected()); predictionClient.getPrediction(new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { Gson gson = new Gson(); ParticipantPredictionModel participantPredictionModel = gson.fromJson(response.toString(), ParticipantPredictionModel.class); BarChart barChart = rootView.findViewById(R.id.prediction_chart); List<BarEntry> entries = new ArrayList<>(); entries.add(new BarEntry(0,participantPredictionModel.getPrediction())); entries.add(new BarEntry(1,participantPredictionModel.getCurrentParticipants())); BarDataSet barDataSet = new BarDataSet(entries,"Projected versus actual participants"); barDataSet.setColors(ColorTemplate.COLORFUL_COLORS); BarData barData = new BarData(barDataSet); barChart.setData(barData); barChart.invalidate(); List<String> labels = new ArrayList<>(); labels.add("Prediction"); labels.add("Current Participants"); // remove description label barChart.getDescription().setEnabled(false); // remove touch barChart.setTouchEnabled(false); // add labels barChart.getXAxis().setValueFormatter(new IndexAxisValueFormatter(labels)); //remove extra labels? barChart.getXAxis().setGranularity(1f); barChart.getXAxis().setGranularityEnabled(true); // set left axis minimum to zero barChart.getAxisLeft().setAxisMinimum(0); // set right axis minimum to zero barChart.getAxisRight().setAxisMinimum(0); } }); Button learnMoreButton = rootView.findViewById(R.id.mlLink); learnMoreButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Uri uri = Uri.parse("https://ibm.biz/cloudcoinsml"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); getContext().startActivity(intent); } }); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }" ]
[ "0.67412704", "0.6726197", "0.672271", "0.6699313", "0.669242", "0.6689314", "0.6688617", "0.6686282", "0.66776836", "0.66766965", "0.6668088", "0.6667029", "0.66656464", "0.6662109", "0.66548616", "0.66512775", "0.66439325", "0.66397613", "0.6638282", "0.6634949", "0.66262627", "0.6621421", "0.66184664", "0.6609455", "0.6597622", "0.65943646", "0.65862745", "0.6585575", "0.6574122", "0.65727115", "0.6570375", "0.65702146", "0.6569764", "0.6568617", "0.6565813", "0.6554731", "0.65543175", "0.6545247", "0.6543933", "0.65426934", "0.65392435", "0.6537473", "0.6536755", "0.65367436", "0.65342355", "0.65337104", "0.6532423", "0.6529523", "0.6528639", "0.6526726", "0.65259683", "0.65254146", "0.6524489", "0.6524308", "0.6519095", "0.6513906", "0.65138054", "0.65134215", "0.6512771", "0.651173", "0.6511508", "0.65108985", "0.6510021", "0.6509829", "0.65094995", "0.6503941", "0.65024835", "0.65023136", "0.6502263", "0.6499323", "0.6494522", "0.649304", "0.64915603", "0.64891016", "0.6488531", "0.6488366", "0.6487945", "0.6487599", "0.6487578", "0.6485231", "0.64850307", "0.64837795", "0.6482938", "0.64826256", "0.64821744", "0.64813894", "0.6478233", "0.64772743", "0.64769465", "0.64755166", "0.64748716", "0.64725333", "0.6471724", "0.64716876", "0.64708626", "0.64676625", "0.6467145", "0.64641887", "0.6463601", "0.6462871", "0.6462695" ]
0.0
-1
Test main loop conditional. We have a partial match so we break out of the nested loop at not matching character. Then apply main loop test. Here we verify that if matching string is at the end we still enter the loop for last final match attempt.
@Test public void shouldFindSubstringAtTheEndOfTheStringAfterOneCharacterPartialMatch() { // Given String string = "AABc"; CharSequence charSequence = new StringBuilder("ABc"); // When boolean containsCharSequence = string.contains(charSequence); // Then assertTrue(containsCharSequence); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean tailOfCellMatches(int index, String toMatch) {\n int cellOffset = index - toMatch.length();\n if (cellOffset < lineMark) {\n return false;\n }\n // Scan backwards to see if characters before matches. Start at character before current.\n for (int i = toMatch.length() - 2; i >= 0; i--) {\n if (toMatch.charAt(i) != buffer[cellOffset + i])\n return false;\n }\n return true;\n }", "private void reduceIfPossible() {\n int tmpBegin = matchStart + 1;\n\n while (tmpBegin < matchEnd) {\n int tmpState = automaton.getInitialState();\n for (int i = tmpBegin; i < matchEnd; i += 1) {\n final int tmpNewState = automaton.step(tmpState, chars.charAt(i));\n if (tmpNewState == -1) {\n return;\n } else if (automaton.isAccept(tmpNewState)) {\n setMatch(tmpBegin, matchEnd);\n break;\n }\n tmpState = tmpNewState;\n }\n tmpBegin += 1;\n }\n }", "private boolean detectRepeat(String substring) {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tchar actual=substring.charAt(i);\n\t\t\t\n\t\t\tint j=i+1;\n\t\t\t//Los anteriores ya se han comprobado\n\t\t\tfor (; j < substring.length() && actual!=substring.charAt(j) ; j++);\n\t\t\t\n\t\t\tif (j<substring.length()) return true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }", "public static void main(String[] args) {\n\t\tString s = \"aab\";//\"aab\";//\"aaaaaa\";//\"mississpp\";//\"aaabbbccc\";\r\n\t\tString p = \"c*a*b\";//\"c*a*b\";//\"a*\";//\"mis*is*p*.\";//\"a*bb.cc*\"\r\n\r\n\t\tSystem.out.println(\"Match ? \" + isMatchLC(s, p));\r\n\r\n\t}", "private boolean isMatch(char[] s, char[] p, int ps, int pp) {\n\t\t// int ps = s.length;\n\t\t// int pp = p.length;\n\t\tif (dp[ps][pp] == 1) {\n\t\t\treturn true;\n\t\t}\n\t\tif (dp[ps][pp] == 2) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (s.length - ps == 0) {\n\t\t\tif (p == null || p.length - pp == 0) {\n\t\t\t\tdp[ps][pp] = 1;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (p[0 + pp] == '*') {\n\t\t\t\tboolean result = isMatch(s, p, ps, pp + 1);\n\t\t\t\tdp[ps][pp] = get(result);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdp[ps][pp] = 2;\n\t\t\treturn false;\n\t\t}\n\t\tif (p == null || p.length - pp == 0) {\n\t\t\tdp[ps][pp] = 2;\n\t\t\treturn false;\n\t\t}\n\t\tif (s[ps] == p[pp] || p[pp] == '?') {\n\t\t\tboolean result = isMatch(s, p, ps + 1, pp + 1);\n\t\t\tdp[ps][pp] = get(result);\n\t\t\treturn result;\n\t\t}\n\t\tif (p[pp] == '*') {\n\t\t\t// *=0,1,1+\n\t\t\tboolean result = isMatch(s, p, ps, pp + 1)\n\t\t\t\t\t|| isMatch(s, p, ps + 1, pp + 1)\n\t\t\t\t\t|| isMatch(s, p, ps + 1, pp);\n\t\t\tdp[ps][pp] = get(result);\n\t\t\treturn result;\n\t\t}\n\n\t\tdp[ps][pp] = 2;\n\t\treturn false;\n\t}", "public static void main(String[] args)\n {\n Pattern pattern = Pattern.compile(\"aba\");\n Matcher m = pattern.matcher(\"abababa\");\n //boolean find()//return true if found the pattern and go to the next sub sequence\n while(m.find()){\n System.out.print(m.start());//0 and 4 but not 2!\n System.out.print(m.end());//3 and 7 (return the position of the last char matched + 1)\n System.out.print(m.group());// = s.substring(m.start(), m.end());\n System.out.print(\"\\n\");\n }\n //what's append?\n //first occurence starts at 0, ends at 2 and aba\n //search for the second occurence from 3\n //second occurence starts at 4, ends at 6 and aba\n //search for the thrid occurence from 7\n \n System.out.print(\"========\\n\");\n \n //0-length matches\n Pattern pattern2 = Pattern.compile(\"a?\");\n Matcher m2 = pattern2.matcher(\"aba\");\n while(m2.find()){\n System.out.print(m2.start());//the char a is or not is at position 0,1,2 and 3\n System.out.print(m2.end());//1,1,3,3 ==> ?? @see page 500\n System.out.print(\"\\n\");\n }\n \n /** Expressions **/\n // \\d digit\n // \\s whitespace\n // \\w letters, digits or _\n // [abc] searching for a, b or c\n // [a-f] searching for a letter to f lettre included\n // [A-F] searching for A letter to F lettre included\n // [a-fA-F] search for a letter to f or A letter to F lettre included\n // 0 [x-X] search for 0 followed by x or X\n /** quantifiers **/\n //? Zero or one\n //* Zero or more\n //+ One or more\n// 0[x-X]+ => 0 followed by one x or one X\n// (0[x-X])+ => 0 followed by x or X one time\n \n //. = any char (whitespace is a char)\n //Escaping special char !!! . = any char, \\. = compilator error, \\\\. = .\n }", "private AugmentedStmt find_CharacterizingStmt(AugmentedStmt entry_point, IterableSet<AugmentedStmt> sc_component,\n AugmentedStmtGraph asg) {\n\n if (entry_point.get_Stmt() instanceof IfStmt) {\n\n // see if there's a successor who's not in the strict loop set\n for (AugmentedStmt au : entry_point.bsuccs) {\n if (sc_component.contains(au) == false) {\n return entry_point;\n }\n }\n }\n\n /*\n * We're not a while loop. Get the candidates for condition on a do-while loop.\n */\n\n IterableSet<AugmentedStmt> candidates = new IterableSet<AugmentedStmt>();\n HashMap<AugmentedStmt, AugmentedStmt> candSuccMap = new HashMap<AugmentedStmt, AugmentedStmt>();\n HashSet<AugmentedStmt> blockers = new HashSet<AugmentedStmt>();\n\n // Get the set of all candidates.\n for (AugmentedStmt pas : entry_point.bpreds) {\n if ((pas.get_Stmt() instanceof GotoStmt) && (pas.bpreds.size() == 1)) {\n pas = (AugmentedStmt) pas.bpreds.get(0);\n }\n\n if ((sc_component.contains(pas)) && (pas.get_Stmt() instanceof IfStmt)) {\n\n for (AugmentedStmt spas : pas.bsuccs) {\n if (sc_component.contains(spas) == false) {\n\n candidates.add(pas);\n candSuccMap.put(pas, spas);\n blockers.add(spas);\n\n break;\n }\n }\n }\n }\n\n /*\n * If there was no candidate, we are an unconditional loop.\n */\n\n if (candidates.isEmpty()) {\n return null;\n }\n\n /*\n * Get the best candidate for the do-while condition.\n */\n\n if (candidates.size() == 1) {\n return (AugmentedStmt) candidates.getFirst();\n }\n\n // Take the candidate(s) whose successor has maximal reachability from\n // all candidates.\n\n asg.calculate_Reachability(candidates, blockers, entry_point);\n\n IterableSet<AugmentedStmt> max_Reach_Set = null;\n int reachSize = 0;\n\n for (AugmentedStmt as : candidates) {\n int current_reach_size = ((AugmentedStmt) candSuccMap.get(as)).get_Reachers().intersection(candidates).size();\n\n if (current_reach_size > reachSize) {\n max_Reach_Set = new IterableSet<AugmentedStmt>();\n reachSize = current_reach_size;\n }\n\n if (current_reach_size == reachSize) {\n max_Reach_Set.add(as);\n }\n }\n\n candidates = max_Reach_Set;\n\n if (candidates == null) {\n throw new RuntimeException(\"Did not find a suitable candidate\");\n }\n if (candidates.size() == 1) {\n return (AugmentedStmt) candidates.getFirst();\n }\n\n // Find a single source shortest path from the entry point to any of the\n // remaining candidates.\n\n HashSet<Object> touchSet = new HashSet<Object>();\n LinkedList<AugmentedStmt> worklist = new LinkedList<AugmentedStmt>();\n worklist.addLast(entry_point);\n touchSet.add(entry_point);\n\n while (worklist.isEmpty() == false) {\n\n for (AugmentedStmt so : worklist.removeFirst().csuccs) {\n if (candidates.contains(so)) {\n return so;\n }\n\n if ((sc_component.contains(so)) && (touchSet.contains(so) == false)) {\n worklist.addLast(so);\n touchSet.add(so);\n }\n }\n }\n\n throw new RuntimeException(\"Somehow didn't find a condition for a do-while loop!\");\n }", "public static int Main()\n\t{\n\t\tint len;\n\t\tint i;\n\t\tint j;\n\t\tint p;\n\t\tint l;\n\t\tMain_str = new Scanner(System.in).nextLine();\n\t\tfor (len = 0;Main_str.charAt(len) != '\\0';len++)\n\t\t{\n\t\t\t;\n\t\t}\n\t\tfor (l = 2;l <= len;l++)\n\t\t{\n\t\t\tfor (i = 0;i <= len - l;i++)\n\t\t\t{\n\t\t\t\tfor (j = 0;j < l / 2;j++)\n\t\t\t\t{\n\t\t\t\t\tif (Main_str.charAt(i + j) != Main_str.charAt(i + l - 1 - j))\n\t\t\t\t\t{\n//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:\n\t\t\t\t\t\tgoto here;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tfor (p = i;p < i + l;p++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.printf(\"%c\",Main_str.charAt(p));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:\n\t\t\t\t\there:\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "public boolean isMatch2(){\r\n if(str==null ||pattern==null) return false; \r\n boolean[][] match=new boolean[lens+1][lenp+1];\r\n match[0][0]=true; \r\n for (int i = 0; i <lenp; i++) {\r\n if (pattern.charAt(i) == '*' && match[0][i-1]) \r\n match[0][i+1] = true; \r\n }\r\n for (int i = 0 ; i < lens; i++) {\r\n for (int j = 0; j < lenp; j++) {\r\n if (pattern.charAt(j) == '.') {\r\n match[i+1][j+1] = match[i][j];\r\n }\r\n if (pattern.charAt(j) == str.charAt(i)) {\r\n match[i+1][j+1] = match[i][j];\r\n }\r\n if (pattern.charAt(j) == '*') {\r\n if (pattern.charAt(j-1) != str.charAt(i) && pattern.charAt(j-1) != '.') {\r\n match[i+1][j+1] = match[i+1][j-1];\r\n } else {\r\n match[i+1][j+1] = (match[i+1][j] || match[i][j+1] || match[i+1][j-1]);\r\n }\r\n }\r\n }\r\n }\r\n return match[lens][lenp];\r\n }", "private void run() {\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\t\tint l = sc.nextInt();\n\t\t\t\t\tString s = sc.next();\n\t\t\t\t\tStack<Character> stack = new Stack<>();\n\t\t\t\t\tboolean ok = true;\n\t\t\t\t\tfor(int j=0;j<l && ok;j++) {\n\t\t\t\t\t\tchar cur = s.charAt(j);\n\t\t\t\t\t\tif(isRight(cur)) {\n\t\t\t\t\t\t\tboolean matched = false;\n\t\t\t\t\t\t\twhile(!stack.isEmpty()) {\n\t\t\t\t\t\t\t\tchar a = stack.pop();\n\t\t\t\t\t\t\t\tif(!ispar(a)) continue;\n\t\t\t\t\t\t\t\tif(isMatch(cur, a)) { matched = true; break; }\n\t\t\t\t\t\t\t\telse { ok = false; break; }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!matched) { ok = false; }\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstack.push(cur);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(!stack.isEmpty()) ok = false;\n\t\t\t\t\tif(ok) System.out.println(\"Valid\");\n\t\t\t\t\telse System.out.println(\"Invalid\");\n\t\t\t\t}\n }", "public boolean isMatch(String s, String p) {\n if(s == null || p == null){\n return false;\n }\n int pPoint = 0;\n int sPoint = 0;\n int starPoint =-1;\n int sMatch = 0;\n while(sPoint < s.length()){\n // there is no star, then we should match char by char\n if(pPoint < p.length() && (p.charAt(pPoint) == '?' || s.charAt(sPoint) == p.charAt(pPoint))){\n pPoint ++;\n sPoint ++;\n }else if( pPoint < p.length() && p.charAt(pPoint) == '*'){\n //if there is start, we mark the start position and pos in s\n // compare pPoint +1 and sPoint;\n starPoint = pPoint;\n sMatch = sPoint;\n pPoint++;\n }else if(starPoint != -1){\n // if there is a start already and there is mismatch between pPoint and sPoint\n // we use the * to match the sPoint\n // bring back the point to startPoint+1 for pPoint \n // sMatch ++\n pPoint = starPoint+1;\n sPoint = sMatch+1;\n sMatch ++;\n }else{\n return false;\n }\n }\n while(pPoint < p.length()){\n if(p.charAt(pPoint) != '*'){\n return false;\n }\n pPoint++;\n }\n return true;\n }", "public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "private boolean secondCharIs(char expected) {\n if (reachedEnd()) {\n return false;\n }\n\n if (source.charAt(current) != expected) {\n return false;\n }\n\n current++;\n return true;\n }", "public boolean isMatch_recursive(String s, String p) {\n return isMatch(s.toCharArray(), p.toCharArray(), 0, 0);\n }", "public boolean isMatch(String str1, String str2) {\n \r\n if( str1 == null || str2 == null)\r\n return false;\r\n \r\n int i = 0;\r\n int j = 0;\r\n char preChar = ' ';\r\n \r\n while( i < str1.length() && j < str2.length() ){\r\n char c1 = str1.charAt(i);\r\n char c2 = str2.charAt(j);\r\n \r\n if( c1 == c2 || c2 == '.' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j++;\r\n }\r\n else{\r\n if( c2 == '*' ){\r\n if( c1 == preChar || preChar == '.' ){\r\n i++;\r\n }\r\n else if( j+1 < str2.length() ){\r\n if( c1 == str2.charAt(j+1) || str2.charAt(j+1) == '.' ){\r\n i++;\r\n \r\n preChar = str2.charAt(j+1);\r\n j = j+2;\r\n }\r\n else\r\n return false;\r\n }\r\n else\r\n return false;\r\n }\r\n else{\r\n if( j+1 < str2.length() && str2.charAt(j+1) == '*' ){\r\n i++;\r\n \r\n preChar = c2;\r\n j = j+2;\r\n } \r\n else\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n if( i == str1.length() ){\r\n if( j == str2.length() )\r\n return true;\r\n else if( str2.charAt(j)=='*' ){\r\n \r\n int countStr1 = 0;\r\n for(int k = str1.length()-1; k >= 0; k--){\r\n if( str1.charAt(k) == preChar )\r\n countStr1++;\r\n else\r\n break;\r\n }\r\n \r\n int countStr2 = 0;\r\n int countStarInStr2 = 0;\r\n for(int k = str2.length()-1; k >= 0; k--){\r\n if( str2.charAt(k) == preChar || str2.charAt(k) == '.' )\r\n countStr2++;\r\n else if( str2.charAt(k) == '*' )\r\n countStarInStr2++;\r\n else\r\n break;\r\n } \r\n \r\n if( countStr2 - countStarInStr2 <= countStr1 )\r\n return true;\r\n else\r\n return false;\r\n }\r\n else\r\n }\r\n else \r\n return false;\r\n }", "public boolean matches(char cNext) {\n int nIndex = 0;\n while (nIndex < m_cBuffer.length - 1)\n m_cBuffer[nIndex] = m_cBuffer[++nIndex];\n // save the new character\n m_cBuffer[nIndex] = cNext;\n\n // compare the buffer to the pattern\n nIndex = m_cBuffer.length;\n boolean bMatch = true;\n while (nIndex-- > 0 && bMatch)\n bMatch = (m_cBuffer[nIndex] == m_cPattern[nIndex]);\n\n return bMatch;\n }", "@Test\n\tvoid testLongestRepeatingCharacterReplacement() {\n\t\tLongestRepeatingCharacterReplacement tester = new LongestRepeatingCharacterReplacement();\n\t\tassertEquals(4, tester.characterReplacement(\"ABAB\", 2));\n\t\tassertEquals(4, tester.characterReplacement(\"AABABBA\", 1));\n\t\tassertEquals(4, tester.characterReplacement(\"ABBB\", 2));\n\t\tassertEquals(1, tester.characterReplacement(\"A\", 2));\n\t\tassertEquals(0, tester.characterReplacement(\"\", 2));\n\t}", "void branchingStatements()\n{\t\nSystem.out.println(\"***************inside unlabeled break************* \");\n//Break :forceful exit from current loop\nfor(int i=0; i<100; i++) \n\t{\t\n\t\tif(i == 10) \n\t\tbreak; \n\n\t\t\t\t/*when i will become 10. it will exit\n\t\t\t\t from loop and go to next immediate\n\t\t\t\t line out of loops body to execute*/\n\tSystem.out.println(\"value of i is\" + i);\n\t}\n\n\nSystem.out.println(\"***************inside labeled loop************* \");\n\n outer:\t\n\t\tfor(int i=0; i<3; i++)\n\t\t{\n\t\tSystem.out.println(\"Outer loop value of i is \"+ i);\n\t\t\tinner:\n\t\t \tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t System.out.println(\"Inner loop value of i is \"+j);\n\t\t\t if(i== j+1)\n\t\t\t break outer;\t\t \n\t\t\t System.out.println(\"Bye\");\t\n\t\t\t}\n\t\t }\n\n\n//continue:skip the execution of current iteration and start the next one\nSystem.out.println(\"***************inside unlabeled continue.************* \");\nString str = \"she saw a ship in the sea\"; \n\t\tint size = str.length(); \n\t\tint count = 0; \n\t\tfor (int i = 0; i < size; i++) \n\t\t { \n\t\t\tif (str.charAt(i) != 's') \t\n\t\t\t continue;\n\t\t\tcount++; \n\t\t } \nSystem.out.println(\"Number of s in \"+ str + \" = \"+ count); \n\n\nSystem.out.println(\"***************inside labeled continue.************* \"); \nouter: for (int i=0; i<3; i++) \n\t{\n\t\tfor(int j=0; j<3; j++)\n\t\t {\n\t\t\tif(j > i) \n\t\t\t{\n\t\t\tSystem.out.println(\"Hi\");\n\t\t\tcontinue outer; \n\t\t\t}\n\t\t\tSystem.out.print(\" \" + (i * j));\n\t\t}\n\t}\n}", "private void findMatch()\n {\n if (this.matchLen > 0) \n {\n this.matchLen += ((this.matchLen - MAX_LENGTH) >>> 31);\n this.matchPos++;\n } \n else \n {\n // Retrieve match position\n this.matchPos = this.hashes[this.hash];\n\n // Detect match\n if ((this.matchPos != 0) && (this.pos - this.matchPos <= MASK2))\n {\n int r = this.matchLen + 1;\n\n while ((r <= MAX_LENGTH) && (this.buffer[(this.pos-r) & MASK2] == this.buffer[(this.matchPos-r) & MASK2])) \n r++;\n\n this.matchLen = r - 1;\n }\n } \n }", "public void nestedForLoopStatementWith_FIRST_CHAR_LOOP() {\n FIRST_CHAR_LOOP:\n for (int a = 1; a <= 4; a++) {\n for (char x = 'a'; x <= 'c'; x++) {\n if (a == 2 || x == 'b') {\n continue FIRST_CHAR_LOOP;\n }\n System.out.print(\" \" + a + x); //1a 3a 4a\n }\n }\n }", "public boolean isMatch(String s, String p) {\n boolean[][] dp = new boolean[s.length()+1][p.length()+1];\n dp[0][0] = true;\n for(int i = 0; i < p.length(); i++) {\n if(p.charAt(i) == '*' && dp[0][i-1]) {\n dp[0][i+1] = true;\n }\n }\n for(int i = 0; i < s.length(); i++) {\n for(int j = 0; j < p.length(); j++) {\n char sc = s.charAt(i);\n char pc = p.charAt(j);\n if(sc == pc) {\n dp[i+1][j+1] = dp[i][j];\n } else if(pc == '.') {\n dp[i+1][j+1] = dp[i][j];\n } else if(pc == '*') {\n if(p.charAt(j-1) != '.' && p.charAt(j-1) != s.charAt(i)) {\n dp[i+1][j+1] = dp[i+1][j-1];\n } else {\n dp[i+1][j+1] = (dp[i+1][j] || dp[i+1][j-1] || dp[i][j+1]);\n }\n } else if(pc == '+') {\n if(p.charAt(j-1) == '.' || p.charAt(j-1) == s.charAt(i)) {\n dp[i+1][j+1] = (dp[i][j+1] || dp[i+1][j]);\n }\n }\n }\n }\n return dp[s.length()][p.length()];\n }", "private static void longestRepeatingSubsequence(String string) {\n\t\t\n\t}", "private boolean isLoop() {\n return \"loop\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }", "public boolean isLegallyMatched() \n {\n int length = expr.length();\n int num = 0;\n int count = 0;\n Stack <Character> openParenBrack = new Stack <Character>();\n Stack <Integer> location = new Stack <Integer>();\n openingBracketIndex = new ArrayList <Integer>();\n closingBracketIndex = new ArrayList <Integer>();\n \n for (int i = 0; i < length; i++)\n {\n if(expr.charAt(i) == ')' || expr.charAt(i) == ']')\n num++;\n }\n for (int j = 0; j <= num; j++)\n closingBracketIndex.add(0);\n for (int k = 0; k < length; k++)\n {\n if (expr.charAt(k) == '(' || expr.charAt(k) == '[')\n {\n openingBracketIndex.add(k); \n openParenBrack.push(expr.charAt(k));\n location.push(count);\n count++;\n }\n else if (expr.charAt(k) == ')' || expr.charAt(k) == ']')\n {\n if (openParenBrack.isEmpty())\n return false;\n else \n {\n char ch = openParenBrack.pop();\n if (expr.charAt(k) == ')' && ch != '(' || expr.charAt(k) == ']' && ch != '[')\n return false;\n closingBracketIndex.set(location.pop(), k);\n }\n }\n }\n if (!openParenBrack.isEmpty())\n return false;\n return true;\n }", "public void strComp() {\n\t\tSystem.out.printf(\"total word: %d\", userstring.size());\n\t\tint i = 0, j = 0, k = 0;\n\t\twhile (i < userstring.size() ) {\n\t\t\tif (userstring.get(i++).equalsIgnoreCase(masterString.get(j++))) {\n\t\t\t\t// user said correct word. update the array and total number of\n\t\t\t\t// matches\n\t\t\t\tmatchValues[k] = true;\n\t\t\t\ttotalCorrectMatches++;\n\t\t\t} \n\t\t\tk++;\n\t\t}\n\n\t}", "private boolean isMatch1(String s, int si, String p, int pi) {\n\t\t/*\n\t\t * If adding `si < s.length()` to `currentMatch`, rest of match will be done recursively.\n\t\tif (si >= s.length()) {\n\t\t\t// The rest of pattern should be ignorable,\n\t\t\t// which means every element has to be a pair with '*'.\n\t\t\twhile (pi < p.length()) {\n\t\t\t\tif (pi >= p.length() - 1 || p.charAt(pi + 1) != '*') return false;\n\t\t\t\tpi += 2;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t*/\n\t\tif (pi >= p.length()) return si >= s.length();\n\n\t\tboolean currentMatch = si < s.length() && (p.charAt(pi) == '.' || p.charAt(pi) == s.charAt(si));\n\n\t\t// Check next `si` if matched, stay in current `si` otherwise.\n\t\tif (pi < p.length() - 1 && p.charAt(pi + 1) == '*') {\n\t\t\treturn (currentMatch && (isMatch1(s, si + 1, p, pi + 2) || isMatch1(s, si + 1, p, pi)))\n\t\t\t\t\t|| isMatch1(s, si, p, pi + 2);\n\t\t} else {\n\t\t\treturn currentMatch && isMatch1(s, si + 1, p, pi + 1);\n\t\t}\n\t}", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "boolean comparison(String str, String pattern) {\n int s = 0, p = 0, match = 0, starIdx = -1;\n while (s < str.length()){\n /**\n * advancing both pointers\n */\n if (p < pattern.length() && (pattern.charAt(p) == '?' || str.charAt(s) == pattern.charAt(p))){\n s++;\n p++;\n }\n\n /**\n * '*' found, only advancing pattern pointer\n *\n * check the situation when '*' matches no char\n *\n * starIdx : remember location of '*' in pattern\n * match : remember index in s when the last '*\" appears\n */\n else if (p < pattern.length() && pattern.charAt(p) == '*'){\n starIdx = p;\n match = s;\n p++;\n }\n\n /**\n * the last pattern pointer was *, advancing string pointer\n *\n * !!!\n * If pattern character != string character\n * OR\n * pattern is used up\n * AND\n * there was '*' character in pattern before :\n *\n * Backtrack check the situation when '*' matches one more character\n */\n else if (starIdx != -1){\n p = starIdx + 1;\n match++;\n s = match;\n }\n\n /**\n * current pattern pointer is not star, last pattern pointer was not *\n * characters do not match\n */\n else return false;\n }\n\n /**\n * check for remaining characters in pattern\n */\n while (p < pattern.length() && pattern.charAt(p) == '*') {\n p++;\n }\n\n return p == pattern.length();\n }", "public void nestedForLoopStatementWithOnlyContinue() {\n FIRST_CHAR_LOOP:\n for (int a = 1; a <= 4; a++) {\n for (char x = 'a'; x <= 'c'; x++) {\n if (a == 2 || x == 'b') {\n continue; //FIRST_CHAR_LOOP;\n }\n System.out.print(\" \" + a + x); //1a 1c 3a 3c 4a 4c\n }\n }\n }", "@Test\n public void shouldNotFindSubstringWithMismatchedFirstCharacterAtTheEndOfThString() {\n // Given\n String string = \"123ABc\";\n CharSequence charSequence = new StringBuilder(\"cBc\");\n\n // When\n boolean containsCharSequence = string.contains(charSequence);\n\n // Then\n assertFalse(containsCharSequence);\n }", "public void run() {\n\t\tString password = \"\";\n\t\tfor (char ch: charsToCheck) {\n\t\t\tString test = \"\";\n\t\t\ttest = test + ch;\n\t\t\tpassword = bruteForceSeachForPassword(test, pwLenLim);\n\t\t\tif (!password.equals(\"\")) {\n\t\t\t\tSystem.out.println(password);\n\t\t\t\tlatch.countDown();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tlatch.countDown();\n\t}", "public boolean match(String s, String p) {\n if(s==null||p==null) return false;\n if(p.length()==0&&s.length()!=0) return false;\n if(mem[s.length()][p.length()]!=0) return mem[s.length()][p.length()]==1;\n boolean ans=false;\n if(s.length()==0) ans=canBeEmpty(p);\n else if(p.charAt(0)=='?'||p.charAt(0)==s.charAt(0)) ans=match(s.substring(1),p.substring(1));\n else if(p.charAt(0)=='*') ans= match(s.substring(1),p)||match(s.substring(1),p.substring(1));\n mem[s.length()][p.length()]=ans?1:2;\n return ans;\n }", "int findLengthOfMatchingSubstring(String inputMorse, String dictionaryMorse) {\n int retVal = 0;\n for (int x=0; x<inputMorse.length(); x++) {\n if (inputMorse.length()>=(x+1) && dictionaryMorse.length()>=(x+1)) {\n return retVal;\n } else if (inputMorse.charAt(x)==dictionaryMorse.charAt(x)) {\n retVal++;\n } else {\n return retVal;\n }\n }\n return retVal;\n }", "public static void main(String[] args) {\n String s = \"acdcb\", p = \"a*?b\";//true\n System.out.println(isMatch(s, p));\n }", "public boolean isMatch(){\r\n boolean[][] match=new boolean[lens+1][lenp+1];\r\n match[lens][lenp]=true;\r\n \r\n for(int i=lenp-1;i>=0;i--){\r\n if(pattern.charAt(i)!='*')\r\n break;\r\n else\r\n match[lens][i]=true;\r\n }\r\n for(int i=lens-1;i>=0;i--){\r\n for(int j=lenp-1;j>=0;j--){\r\n if(str.charAt(i)==pattern.charAt(j)||pattern.charAt(j)=='.')\r\n match[i][j]=match[i+1][j+1];\r\n else if(pattern.charAt(j)=='*')\r\n match[i][j]=match[i+1][j]||match[i][j+1];\r\n else\r\n match[i][j]=false;\r\n }\r\n }\r\n return match[0][0];\r\n }", "public boolean repeatedSubstringPattern(String s) {\n char[] ch = s.toCharArray();\n int[] pi = new int[ch.length];\n pi[0] = 0;\n int matched = 0;\n for (int i = 1; i < pi.length; i++) {\n while (matched > 0 && ch[matched] != ch[i])\n matched = pi[matched-1];\n if (ch[matched] == ch[i])\n matched++;\n pi[i] = matched;\n }\n return pi[pi.length-1] != 0 && pi.length % (pi.length - pi[pi.length-1]) == 0;\n }", "public static void main(String[] args){\n String str = \"aasdfasdfasdfasdfas\";\n String pattern = \"aasdf.*asdf.*asdf.*asdf.*s\";\n// String str = \"mississippi\";\n// String pattern = \"mis*is*ip*.\";\n// String pattern = \"mis*is*p*.\";\n// String pattern = \"mis*is*ip*.\";\n// String str = \"aaaaaaaaaaaaac\";\n// String pattern = \"a*a*a*a*a*a*a*a*a*a*c\";\n long time = System.currentTimeMillis();\n// String str = \"aaaaaaaaaaaaab\";\n// String pattern = \"a*a*a*a*a*a*a*a*a*a*b\";\n System.out.println(find(str,pattern));\n System.out.println(\"time: \" + (System.currentTimeMillis() - time));\n }", "private MyStringBuilder2 recursiveRegMatch(int index, int arrayIndex, int charArrayIndex, String[] pats, MyStringBuilder2 finalAnswer, MyStringBuilder2[] answers) {\n\t\tchar [] charArray; \n\t\tchar [] charArrayNext;\n\t\tif(arrayIndex == pats.length || arrayIndex > pats.length) {\n\t\t\tcharArray = pats[0].toCharArray();\n\t\t\tcharArrayNext = pats[0].toCharArray();\n\t\t} else {\n\t\t\tcharArray = pats[arrayIndex].toCharArray();\n\t\t\tif(pats.length > 1 && arrayIndex < (pats.length - 1)) {\n\t\t\t\tcharArrayNext = pats[arrayIndex + 1].toCharArray();\n\t\t\t} else {\n\t\t\t\tcharArrayNext = null;\n\t\t\t}\n\t\t}\n\t\tif(arrayIndex == pats.length || arrayIndex > pats.length) {\n\t\t\t//do nothing\n\t\t\t//System.out.println(finalAnswer);\n\t\t\treturn finalAnswer;\n\t\t} else {\n\t\t\t//System.out.println(finalAnswer);\n\t\t\t//finalAnswer.append((traverseString(0, 0, charArray, \"\", false)));\n\t\t\t//if(arrayIndex > 0) {\n\t\t\t//\tif(answers[arrayIndex - 1] != null) {\n\t\t\t//\t\tindex = (answers[arrayIndex - 1].length - 1);\n\t\t\t//\t}\n\t\t\t//}\n\t\t\t\n\t\t\tfinalAnswer = new MyStringBuilder2(traverseString(index, 0, charArray, charArrayNext, \"\", false).toString());\n\t\t\t//finalAnswer.append(\" \");\n\t\t\t//System.out.println(finalAnswer);\n\t\t\treturn recursiveRegMatch(0, (arrayIndex+100), charArrayIndex, pats, finalAnswer, answers);\n\t\t}\n\t\t\n\t\t//return finalAnswer;\n\t\t\n\t}", "private boolean match(String word, int i, TrieNode root) {\n if (i == word.length()) {\n return root.isWord;\n }\n\n char c = word.charAt(i);\n if (c != '.') {\n return root.children[c - 'a'] != null && match(word, i + 1, root.children[c - 'a']);\n } else {\n for (int j = 0; j < 26; j++) {\n if (root.children[j] != null) {\n if (match(word, i + 1, root.children[j])) {\n return true;\n }\n } \n }\n }\n return false;\n }", "private boolean isFitPatternStr(char startC, String patternStr) {\n\n if (startC != patternStr.charAt(0)) {\n return false;\n }\n char inputChar = ' ';\n char patternchar = ' ';\n for (int i = 1; i < patternStr.length(); i++) {//the post\n patternchar = patternStr.charAt(i);\n inputChar = getNextChar();\n if (inputChar != patternchar) {\n throwParseError();\n }\n\n }\n return true;\n }", "@Test\n public void subSequencesTest3() {\n String text = \"wnylazlzeqntfpwtsmabjqinaweaocfewgpsrmyluadlybfgaltgljrlzaaxvjehhygggdsrygvnjmpyklvyilykdrphepbfgdspjtaap\"\n + \"sxrpayholutqfxstptffbcrkxvvjhorawfwaejxlgafilmzrywpfxjgaltdhjvjgtyguretajegpyirpxfpagodmzrhstrxjrpirlbfgkhhce\"\n + \"wgpsrvtuvlvepmwkpaeqlstaqolmsvjwnegmzafoslaaohalvwfkttfxdrphepqobqzdqnytagtrhspnmprtfnhmsrmznplrcijrosnrlwgds\"\n + \"bylapqgemyxeaeucgulwbajrkvowsrhxvngtahmaphhcyjrmielvqbbqinawepsxrewgpsrqtfqpveltkfkqiymwtqssqxvchoilmwkpzermw\"\n + \"eokiraluaammkwkownrawpedhcklrthtftfnjmtfbftazsclmtcssrlluwhxahjeagpmgvfpceggluadlybfgaltznlgdwsglfbpqepmsvjha\"\n + \"lwsnnsajlgiafyahezkbilxfthwsflgkiwgfmtrawtfxjbbhhcfsyocirbkhjziixdlpcbcthywwnrxpgvcropzvyvapxdrogcmfebjhhsllu\"\n + \"aqrwilnjolwllzwmncxvgkhrwlwiafajvgzxwnymabjgodfsclwneltrpkecguvlvepmwkponbidnebtcqlyahtckk\";\n\n String[] expected = new String[6];\n expected[0] = \"wlfaafrdarvgypipgaputcjflmftgepfmrrhpvwllnfofdqqtmhnjlyeewvxhceqpgftysopelkrhhjtmlapcagllpasazflfthohdtrrvobliwnhazafeevpnlk\";\n expected[1] = \"nzpbwemllljggylhdaatprhwgzxdttypzxlhslksmeohkronrpmprwlmubovmylispqkmqizouwactmatlhmedagfmlafktgmfhcjlhxoagjullcrfxbslceoeyk\";\n expected[2] = \"yewjewyytzegvkyespyqtkoaarjhyaiarjbcrvptsgsatpbyhrslogaycawnajvnxspfwxlekakwkftzcujgglldbswjybhktxcizpypppchanlxwawjctgpnba\";\n expected[3] = \"lqtqaglbgahdnlkppshffxrefygjgjrghrfeveaavmllthqtstrrsdpxgjsgprqarrvktvmriaopltfsswevgytwpvslaiwirjfricwgzxmhqjzvljnglrumbth\";\n expected[4] = \"ansiopuflahsjvdbjxoxfvajiwavuepospgwtpeqjzavfezapfmcnsqeurrthmbweqeqqcwmrmwerfbcshaflbzsqjnghlswabsbibwvvdfsrowgwvyowpvwict\";\n expected[5] = \"ztmncsagjxyrmyrftrlsbvwxlpljrgxdtikgumqowaawxpdgnnzirbgalkhahibewtlishkwamndtnflrxgpufngehniexfgwbykxcncyrelwlmkigmdnklkdqc\";\n int keyLen = 6;\n String[] owns = this.ic.subSequences(text, keyLen);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }", "public static void main(String [] args) {\n\t\tString str = \"ccacacabccacabaaaabbcbccbabcbbcaccabaababcbcacabcabacbbbccccabcbcabbaaaaabacbcbbbcababaabcbbaa\"\n\t\t\t\t+ \"ababababbabcaabcaacacbbaccbbabbcbbcbacbacabaaaaccacbaabccabbacabaabaaaabbccbaaaab\"\n\t\t\t\t+ \"acabcacbbabbacbcbccbbbaaabaaacaabacccaacbcccaacbbcaabcbbccbccacbbcbcaaabbaababacccbaca\"\n\t\t\t\t+ \"cbcbcbbccaacbbacbcbaaaacaccbcaaacbbcbbabaaacbaccaccbbabbcccbcbcbcbcabbccbacccbacabcaacbcac\"\n\t\t\t\t+ \"cabbacbbccccaabbacccaacbbbacbccbcaaaaaabaacaaabccbbcccaacbacbccaaacaacaaaacbbaaccacbcbaaaccaab\"\n\t\t\t\t+ \"cbccacaaccccacaacbcacccbcababcabacaabbcacccbacbbaaaccabbabaaccabbcbbcaabbcabaacabacbcabbaaabccab\"\n\t\t\t\t+ \"cacbcbabcbccbabcabbbcbacaaacaabb\"\n\t\t\t\t+ \"babbaacbbacaccccabbabcbcabababbcbaaacbaacbacacbabbcacccbccbbbcbcabcabbbcaabbaccccabaa\"\n\t\t\t\t+ \"bbcbcccabaacccccaaacbbbcbcacacbabaccccbcbabacaaaabcccaaccacbcbbcccaacccbbcaaaccccaabacabc\"\n\t\t\t\t+ \"abbccaababbcabccbcaccccbaaabbbcbabaccacaabcabcbacaccbaccbbaabccbbbccaccabccbabbbccbaabcaab\"\n\t\t\t\t+ \"cabcbbabccbaaccabaacbbaaaabcbcabaacacbcaabbaaabaaccacbaacababcbacbaacacccacaacbacbbaacbcbbbabc\"\n\t\t\t\t+ \"cbababcbcccbccbcacccbababbcacaaaaacbabcabcacaccabaabcaaaacacbccccaaccbcbccaccacbcaaaba\";\n\t\tSystem.out.println(substrCount2(1017, str));\n\t}", "private boolean dfs(String word, TrieNode parent) {\n if (word.length() == 0) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n boolean firstMatch = word.length() > 0 && (parent.map.containsKey(word.charAt(0)) || word.charAt(0) == '.');\n if (word.length() > 1 && word.charAt(1) == '*') {\n if(word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word, curr);\n }\n return tmp || firstMatch && dfs(word.substring(2), parent); //match || no match\n } else {\n return firstMatch && (dfs(word, parent.map.get(word.charAt(0))) || dfs(word.substring(2), parent.map.get(word.charAt(0))));\n }\n } else {\n if (word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word.substring(1), curr);\n }\n return tmp;\n } else {\n return firstMatch && dfs(word.substring(1), parent.map.get(word.charAt(0)));\n }\n }\n }", "public static int stringMatch(String text, String pattern) {\n char[] t = text.toLowerCase().toCharArray();\n char[] p = pattern.toLowerCase().toCharArray();\n int n = t.length;\n int m = p.length;\n int i = m - 1; // index the right end of pattern/text alignment\n int comp = 0; //number of comparisons done\n\n Hashtable<Character, Integer> table = shiftTable(p, t);\n\n //catches empty string error and pattern.length > text.length error\n if (text.isEmpty() || pattern.isEmpty() || m > n) {\n System.out.println(\"-------Warning------\\nInputs are either empty or wrong lengths\");\n return -1;\n }\n\n while (i <= n - 1) {\n System.out.println(\"Right Most Position = \" + i + \"\\n\" + text + \"\\n\" + pattern);\n int k = 0; // k is how many chars have matched\n comp++;\n\n while (k <= m - 1 && p[m - 1 - k] == t[i - k]) {\n k += 1;\n }\n if (k == m) {\n System.out.println(\"Pattern Found!\\nNumber of Comparisons: \" + comp);\n return i - m + 1;\n } else {\n String spaces = spaces(table.get(t[i]));\n pattern = spaces + pattern;\n i = i + table.get(t[i]); // shift according to rightmost char\n }\n }\n System.out.println(\"No Match Found\");\n return -1; // if get here, no matches anywhere\n }", "@Test\n\tpublic void testLookaheadBeyondEnd()\n\t{\n\t\tth.addError(1, 7, \"Unmatched '{'.\");\n\t\tth.addError(1, 7, \"Unrecoverable syntax error. (100% scanned).\");\n\t\tth.test(\"({ a: {\");\n\t}", "public boolean isMatch(String s, String p) {\n int sLen = s.length();\n int pLen = p.length();\n\n boolean[][] dp = new boolean[pLen + 1][sLen + 1];\n\n dp[0][0] = true;\n\n for (int i = 1; i <= pLen; i++) {\n if (p.charAt(i - 1) == '*') {\n dp[i][0] = dp[i - 2][0];\n ;\n }\n }\n\n for (int i = 1; i <= pLen; i++) {\n for (int j = 1; j <= sLen; j++) {\n\n if (p.charAt(i - 1) == '*') {\n dp[i][j] = dp[i - 2][j];\n\n if (s.charAt(j - 1) == p.charAt(i - 2) || p.charAt(i - 2) == '.') {\n dp[i][j] = dp[i][j] || dp[i][j - 1];\n }\n } else if (p.charAt(i - 1) == '.' || p.charAt(i - 1) == s.charAt(j - 1)) {\n dp[i][j] = dp[i - 1][j - 1];\n } else {\n dp[i][j] = false;\n }\n }\n }\n\n return dp[pLen][sLen];\n }", "protected static boolean matchPatternStart( String pattern, String str,\n boolean isCaseSensitive )\n {\n // When str starts with a File.separator, pattern has to start with a\n // File.separator.\n // When pattern starts with a File.separator, str has to start with a\n // File.separator.\n if( str.startsWith( File.separator ) !=\n pattern.startsWith( File.separator ) )\n {\n return false;\n }\n\n ArrayList patDirs = new ArrayList();\n StringTokenizer st = new StringTokenizer( pattern, File.separator );\n while( st.hasMoreTokens() )\n {\n patDirs.add( st.nextToken() );\n }\n\n ArrayList strDirs = new ArrayList();\n st = new StringTokenizer( str, File.separator );\n while( st.hasMoreTokens() )\n {\n strDirs.add( st.nextToken() );\n }\n\n int patIdxStart = 0;\n int patIdxEnd = patDirs.size() - 1;\n int strIdxStart = 0;\n int strIdxEnd = strDirs.size() - 1;\n\n // up to first '**'\n while( patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd )\n {\n String patDir = (String)patDirs.get( patIdxStart );\n if( patDir.equals( \"**\" ) )\n {\n break;\n }\n if( !match( patDir, (String)strDirs.get( strIdxStart ), isCaseSensitive ) )\n {\n return false;\n }\n patIdxStart++;\n strIdxStart++;\n }\n\n if( strIdxStart > strIdxEnd )\n {\n // String is exhausted\n return true;\n }\n else if( patIdxStart > patIdxEnd )\n {\n // String not exhausted, but pattern is. Failure.\n return false;\n }\n else\n {\n // pattern now holds ** while string is not exhausted\n // this will generate false positives but we can live with that.\n return true;\n }\n }", "public static boolean isMatch2(String s, String p) {\n\t\t\n\t\tint len1 = s.length();\n\t\tint len2 = p.length();\n\t\t\n\t\tboolean[][] check = new boolean[ len1 + 1 ][ len2 + 1 ];\n\t\t\n\t\tcheck[0][0] = true;\n\t\t\n\t\tfor( int i = 1; i< check[0].length; i++ ){\n\t\t\tif( p.charAt( i - 1) == '*' ){\n\t\t\t\tcheck[0][i] = check[0][i - 2];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor( int i = 1; i<check.length; i++ ){\n\t\t\tfor( int j = 1; j<check[0].length; j++ ){\n\n\t\t\t\tif( p.charAt( j - 1 ) == '.' || p.charAt( j - 1 ) == s.charAt( i - 1 ) ){\n\t\t\t\t\tcheck[i][j] = check[i - 1][j - 1];\n\t\t\t\t}\n\t\t\t\telse if( p.charAt(j - 1) == '*' ){\n\n\t\t\t\t\tcheck[i][j] = check[i][ j - 2 ];\n\n\t\t\t\t\tif( p.charAt( j - 2 ) == '.' || p.charAt( j - 2 ) == s.charAt( i - 1 ) ){\n\t\t\t\t\t\tcheck[i][j] = check[i][j] || check[i - 1][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcheck[i][j] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn check[ len1 ][ len2 ];\t\n\t}", "static int longestSubsequence(String x, String y) {\n char[] strX = x.toCharArray();\n char[] strY = y.toCharArray();\n\n Map<Character, Integer> xMap = new HashMap<>();\n Map<Character, Integer> yMap = new HashMap<>();\n\n for (int i = 0; i < strX.length; i++) {\n char c = strX[i];\n if (xMap.containsKey(c)) {\n xMap.put(c, xMap.get(c) + 1);\n } else {\n xMap.put(c, 1);\n }\n }\n\n for (int i = 0; i < strY.length; i++) {\n char c = strY[i];\n if (yMap.containsKey(c)) {\n yMap.put(c, yMap.get(c) + 1);\n } else {\n yMap.put(c, 1);\n }\n }\n\n System.out.println(xMap);\n System.out.println(yMap);\n\n ArrayList<Character> subsequence = new ArrayList<>();\n\n // first find match subsequence\n for (Character c : yMap.keySet()) {\n if (!xMap.containsKey(c)) {\n continue;\n }\n\n int xCount = xMap.get(c);\n int yCount = yMap.get(c);\n int charCount = xCount < yCount ? xCount : yCount;\n\n for (int i = 0; i < charCount; i++) {\n subsequence.add(c);\n }\n }\n\n System.out.println(\"may be seq\" + subsequence);\n\n int max = 0;\n for (int i = 0; i < subsequence.size(); i++) {\n char c = subsequence.get(i);\n ArrayList<Character> remains = new ArrayList<>(subsequence);\n remains.remove(i);\n StringBuilder curr = new StringBuilder();\n curr.append(c);\n// System.out.println(\"max\" + max);\n int result = findPermutation(y, curr, remains, max);\n if (result > max) {\n max = result;\n }\n }\n\n // find matching permutation\n\n System.out.println(\"result\" + max);\n // then find sub string\n return max;\n }", "private boolean becomesConsecutiveSameVowelsAfterChanging\n (String word, StringBuilder sb, int i, char c, char randomVowel) {\n return\n // check the next character\n (i + 1 < word.length() && isVowel(word.charAt(i + 1)) &&\n word.charAt(i + 1) != c && randomVowel == word.charAt(i + 1)) ||\n // check the previous character\n (i - 1 >= 0 && isVowel(word.charAt(i - 1)) &&\n word.charAt(i - 1) != c && randomVowel == sb.charAt(i - 1));\n }", "public int repeatedStringMatch(String a, String b) {\n \n int count = 0;\n StringBuilder sb = new StringBuilder();\n \n while(sb.length() < b.length()){\n sb.append(a); //O(roundUp(M/N) * N) < O(M*N)\n count++;\n }\n \n if(sb.indexOf(b) != -1) return count; //check at max O(M*N) characters\n \n //handles rotated array case\n if(sb.append(a).indexOf(b) != -1) return count + 1; //append takes O(N), indexOf takes in the worst case (missing match) ~O(M*N)\n \n return -1;\n }", "public void nestedForLoopStatementWithoutContinue() {\n FIRST_CHAR_LOOP:\n for (int a = 1; a <= 4; a++) {\n for (char x = 'a'; x <= 'c'; x++) {\n if (a == 2 || x == 'b') {\n //continue;\n }\n System.out.print(\" \" + a + x); //1a 1b 1c 2a 2b 2c 3a 3b 3c 4a 4b 4c\n }\n }\n }", "@Override\r\n\tpublic boolean matches(String first, String last) {\n\t\treturn false;\r\n\t}", "public int findSubstringInWraproundString(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n // count[i] is the maximum unique substring that ends with a...z\n int[] count = new int[26];\n // keep track of the number of consecutive letters ended with current letter\n int consecutiveCount = 1;\n for(int i = 0; i < p.length(); i++) {\n if(i > 0 && isConsecutive(p.charAt(i - 1), p.charAt(i))) {\n consecutiveCount++;\n } else {\n consecutiveCount = 1;\n }\n int index = p.charAt(i) - 'a';\n count[index] = Math.max(count[index], consecutiveCount);\n }\n int result = 0;\n for(int singleCount : count) {\n result += singleCount;\n }\n return result;\n }", "public boolean gHappy(String str) {\n for(int x=0; x<str.length(); x++)\n {\n if(str.charAt(x)=='g')\n {\n if(str.length()<2)\n return false;\n else if(x==0 && str.charAt(x+1) != 'g')\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && x+1==str.length())\n return false;\n else if(x>0 && str.charAt(x-1) != 'g' && str.charAt(x+1) != 'g')\n return false;\n }\n }\n\n return true;\n}", "public boolean repeatedSubstringPattern(String s) {\n int len = s.length();\n for (int i = len / 2; i >= 1; i--) {\n if (len % i == 0) {\n int num = len / i;\n String substr = s.substring(0, i);\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < num; j++) {\n sb.append(substr);\n }\n if (sb.toString().equals(s)) {\n return true;\n }\n }\n }\n\n return false;\n }", "public int findPartials(PegArray master, PegArray[] pegArray, int col, int totalPegs) {\r\n\t\tpartialMatch=-1;\r\n\t\tif(pegArray[col].getPeg(1).getLetter()!='X') partialMatch=0; \r\n\t\tif(partialMatch==0) {\r\n\t\t\tString key=\"\", guesses=\"\";\r\n\t\t\tfor(int y=0; y<totalPegs; y++) {\r\n\t\t\t\tkey+=master.getPeg(y).getLetter();\r\n\t\t\t\tguesses+=pegArray[col].getPeg(y).getLetter();\r\n\t\t\t}\r\n\t\t\tfor(int z=0; z<totalPegs; z++) {\r\n\t\t\t\tif(matched[z]==false) {\r\n\t\t\t\t\tint i=guesses.indexOf(key.charAt(z));\r\n\t\t\t\t\tif(i!=-1) { // match found\r\n\t\t\t\t\t\tif(i!=z) {\r\n\t\t\t\t\t\t\tpartialMatch++;\r\n\t\t\t\t\t\t\tguesses=guesses.substring(0, i)+\" \"+guesses.substring(i+1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn partialMatch;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint tc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t{\n\t\t\tString s=sc.next();\n\t\t\tchar ch[]=s.toCharArray();\n\t\t\tint first=-1;\n\t\t\tint last=-1;\n\t\t\tint crash=0;\n\t\t\tint d=0;\n\t\t\tfor(int i=0,j=ch.length;i<j-1;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='r'&&ch[i+1]=='l')\n\t\t\t\t{\n\t\t\t\t\tch[i]='d';\n\t\t\t\t\tch[i+1]='d';\n\t\t\t\t\tcrash+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='d')\n\t\t\t\t{\n\t\t\t\t\td+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(d==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(0);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tfirst=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(int i=ch.length-1;i>=0;i--)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tlast=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(first==last)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=first;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}else{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=last;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=first;i<=last;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]!='d')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static boolean charsOccurIn(final String string, final String sub) {\n final int sl = string.length(), tl = sub.length();\n int t = 0;\n for(int s = 0; s < sl && t < tl; s++) {\n if(equals(string.charAt(s), sub.charAt(t))) t++;\n }\n return t == tl;\n }", "static int findEndOfString(String sb) {\n/* */ int result;\n/* 216 */ for (result = sb.length(); result > 0 && \n/* 217 */ Character.isWhitespace(sb.charAt(result - 1)); result--);\n/* */ \n/* */ \n/* */ \n/* 221 */ return result;\n/* */ }", "public static boolean isMatch(String s, String p) {\n if (s == null || p == null) return false;\n boolean[][] dp = new boolean[s.length() + 1][p.length() + 1];\n dp[0][0] = true;\n for (int j = 1; j < p.length() + 1; j++) {\n if (p.charAt(j - 1) == '*') {\n if (dp[0][j - 1] || (j > 1 && dp[0][j - 2])) {\n dp[0][j] = true;\n }\n }\n }\n for (int i = 1; i <= s.length(); i++) {\n for (int j = 1; j <= p.length(); j++) {\n if (s.charAt(i - 1) == p.charAt(j - 1) || p.charAt(j - 1) == '.') {\n dp[i][j] = dp[i - 1][j - 1];\n }\n if (p.charAt(j - 1) == '*') {\n if (s.charAt(i - 1) != p.charAt(j - 2) && p.charAt(j - 2) != '.') {\n dp[i][j] = dp[i][j - 2];\n } else {\n dp[i][j] = dp[i - 1][j] || dp[i][j - 1] || dp[i][j - 2];\n }\n }\n }\n }\n return dp[s.length()][p.length()];\n }", "public static void main(String[] args) {\n\n\t\tString s=\"xxxxxabcxxxx\";\n\t\tint m=s.length()/2;\n\t\t\n\t\tif(s.substring(m-1, m+2).equals(\"abc\")) {\n\t\t\t\n\t\tSystem.out.println(\"middle\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"no inmid\");\n\t\t\n\n}\n}", "public static boolean isSubsequence(String s, String t) {\n if (s.length() == 0)\n return true;\n else if (t.length() == 0)\n return false;\n\n int indexS = 0;\n int indexT = 0;\n\n // Step2 - Traverse String t\n while (indexT < t.length() && indexS < s.length()) {\n char currentT = t.charAt(indexT);\n char currentS = s.charAt(indexS);\n System.out.println(\"currentS:\" + currentS + \" currentT: \" + currentT );\n\n // Step3 - If match, increment indexS\n if (currentS == currentT) {\n ++indexS;\n }\n\n ++indexT;\n }\n\n return indexS == s.length(); // indexS HAS to the same length as String s for a match\n }", "public boolean hasFinished() {\n\n if(!matching) {\n boolean first = true;\n for(S left : slp.getAxioms()) {\n if(slp.length(left, first) == 1) {\n return true;\n }\n first = false;\n }\n }\n\n if(matching) {\n long patternLen = slp.length(patter, true);\n if(patternLen == 1) {\n return true;\n }\n }\n\n return false;\n }", "public String rightmostGuess(char guess) {\n String tester2 = \"\";\n String rightMostGuess = \"\";\n for (Map.Entry<String, Set<String>> entry1 : wordsLeft.entrySet()) { //for testing word\n String tester = entry1.getKey();\n\n for (Map.Entry<String, Set<String>> entry : wordsLeft.entrySet()) { //for word to test agasint\n tester2 = entry.getKey();\n\n for (int i = tester.length(); i > 0; i--) { //to interate through chars of each word\n try {\n char compare1 = tester.charAt(i - 1);\n char compare2 = tester2.charAt(i - 1);\n\n if (compare2 == guess && compare1 == '-') {\n rightMostGuess = tester2;\n break;\n }\n if (compare2 == '-' && compare1 == guess) {\n rightMostGuess = tester;\n break;\n }\n\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n\n }\n\n }\n\n }\n\n return rightMostGuess;\n }", "private boolean matchString(String s, String key)\n {\n if (s.equals(key)) return true;\n int min = s.length()<key.length()?s.length():key.length();\n for (int i=0;i<min; ++i)\n {\n \n if(key.charAt(i) == '*')\n return true;\n if(s.charAt(i) != key.charAt(i) && key.charAt(i) != '?')\n return false;\n }\n for (int i=s.length();i<key.length();i++)\n {\n if (key.charAt(i)!='*') \n return false;\n }\n return true;\n }", "@Test\n public void testLoop() throws IOException {\n MapMatching mapMatching = new MapMatching(hopper, algoOptions);\n\n // Need to reduce GPS accuracy because too many GPX are filtered out otherwise.\n mapMatching.setMeasurementErrorSigma(40);\n\n Gpx gpx = xmlMapper.readValue(getClass().getResourceAsStream(\"/tour2-with-loop.gpx\"), Gpx.class);\n MatchResult mr = mapMatching.doWork(gpx.trk.get(0).getEntries());\n assertEquals(\n Arrays.asList(\"Gustav-Adolf-Straße\", \"Gustav-Adolf-Straße\", \"Gustav-Adolf-Straße\",\n \"Leibnizstraße\", \"Hinrichsenstraße\", \"Hinrichsenstraße\",\n \"Tschaikowskistraße\", \"Tschaikowskistraße\"),\n fetchStreets(mr.getEdgeMatches()));\n assertEquals(mr.getGpxEntriesLength(), mr.getMatchLength(), 5);\n // TODO why is there such a big difference for millis?\n assertEquals(mr.getGpxEntriesMillis(), mr.getMatchMillis(), 6000);\n }", "public static void main(String[] args) {\n\t\tRepeatedStringMatch result = new RepeatedStringMatch();\n\t\tSystem.out.println(result.repeatedStringMatch(\"abcd\", \"cdabcdab\"));\n\t\tSystem.out.println(result.repeatedStringMatch(\"a\", \"aa\"));\n\t}", "private static int findBrute(List<Character> text, List<Character> pattern) {\n int n = text.size();\n int m = pattern.size();\n for (int i = 0; i <= n - m; i++) { //try every starting index within text.\n int k = 0; // k is index into pattern\n while (k < m && text.get(i + k) == pattern.get(k))\n // kth character of pattern matches\n k++;\n if (k == m) // if we reach the end of the pattern,\n return i; // substring text[i..i+m-1] is a match\n } //end for\n return -1;// search failed\n }", "private static boolean wildCardMatch(String text, String pattern, boolean printDiff) {\n\t\tif (text.length() < 1 && pattern.length() < 1) {\n\t\t\treturn true;\n\t\t}\n\t\tif (text.length() < 1 || pattern.length() < 1) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// match the newline endings for both string values\n\t\tif (text.contains(\"\\r\")) {\n\t\t\tif (!pattern.contains(\"\\r\")) {\n\t\t\t\tpattern = pattern.replace(\"\\n\", \"\\r\\n\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (pattern.contains(\"\\r\")) {\n\t\t\t\tpattern = pattern.replace(\"\\r\\n\", \"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// Create the cards by splitting using a RegEx. If more speed\n\t\t// is desired, a simpler character based splitting can be done.\n\t\tString[] cards = pattern.split(\"\\\\*\");\n\n\t\t// Iterate over the cards.\n\t\tfor (String card : cards) {\n\t\t\tint idx = text.indexOf(card);\n\n\t\t\t// Card not detected in the text.\n\t\t\tif (idx == -1) {\n\t\t\t\tif (printDiff) {\n\t\t\t\t\tPage.printFormattedMessage(\"\\ncard: \" + card + \"\\nDiff: \\n\" + StringUtils.difference(pattern, text));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Move ahead, towards the right of the text.\n\t\t\ttext = text.substring(idx + card.length());\n\t\t}\n\n\t\treturn true;\n\t}", "@Test(timeout = TIMEOUT)\n public void boyerMoore() {\n assertEquals(ans, PatternMatching.boyerMoore(pattern, text, comparator));\n assertTrue(comparator.getComparisonCount() != 0);\n assertEquals(11, comparator.getComparisonCount());\n\n comparator.clear();\n\n /*\n pattern: aaba\n text: aabaacaadaabaaba\n */\n assertEquals(ans1, PatternMatching.boyerMoore(pattern1, text1, comparator));\n assertTrue(comparator.getComparisonCount() != 0);\n assertEquals(20, comparator.getComparisonCount());\n\n comparator.clear();\n\n /*\n No match case\n pattern: aabcaabd\n text: aabaacaadaabaaba\n */\n assertEquals(empty, PatternMatching.boyerMoore(wrong, text1, comparator));\n assertTrue(comparator.getComparisonCount() != 0);\n assertEquals(6, comparator.getComparisonCount());\n\n comparator.clear();\n\n /*\n Longer text\n */\n assertEquals(empty, PatternMatching.boyerMoore(text, pattern, comparator));\n assertEquals(0, comparator.getComparisonCount());\n }", "@Test\n\tpublic void test61() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//bug 10\n\t\tfor(int i =0;i<200;i++) {\n\t\t\tboolean dummy = RegExpMatcher.matches(String.valueOf(i), \"([0-9])+\");\n\t\t\tif(!dummy) {\n\t\t\t\t//System.err.print(i);\n \t\t\t\tassertTrue(dummy);\t\n\t\t\t\t}\n\t\t\telse {\n\t\t\t\t//System.out.println(\"no bug on index \"+i);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"hello\");\n\t\t//assertTrue(RegExpMatcher.matches(\"\", \"([0-9])+\"));\n\t}", "private boolean isMatch0(String s, int si, String p, int pi) {\n\t\tif (si >= s.length()) return pi <= p.length();\n\t\tif (pi >= p.length()) return false;\n\t\t// if (cache[si][pi] != -1) return cache[si][pi] == 1;\n\n\t\tchar pattern = p.charAt(pi);\n\t\tboolean result;\n\n\t\tif (pattern == '.') {\n\t\t\tresult = isMatch0(s, si + 1, p, pi + 1);\n\t\t} else if (pattern == '*') {\n\t\t\tboolean skip = isMatch0(s, si + 1, p, pi + 1);\n\t\t\tboolean skipZero = isMatch0(s, si + 1, p, pi);\n\t\t\tresult = skip || skipZero;\n\t\t} else {\n\t\t\tresult = pattern == s.charAt(si)\n\t\t\t\t\t? isMatch0(s, si + 1, p, pi + 1)\n\t\t\t\t\t: isMatch0(s, si, p, pi + 1);\n\t\t}\n\n\t\t// cache[si][pi] = result ? 1 : 0;\n\t\treturn result;\n\t}", "public abstract boolean isSingleCharMatcher();", "public static void main(String[] args) {\n\t\t\r\n\t\tString s = \"adceb\";\r\n\t\tString p = \"*a*b\";\r\n\t\t\r\n//\t\tString s = \"\";\r\n//\t\tString p = \"**\";\r\n\t\t\r\n\t\tSolution sln = new Solution();\r\n\t\t\r\n\t\tSystem.out.println(sln.isMatch(s, p));\r\n\r\n\t}", "@Test \r\n public void shouldFindOneWordAtTheEnd() {\r\n \r\n String inputWord = \"bxxxxxxxe\";\r\n String[] dictionary =\r\n new String[] {\"able\", \"be\", \"ale\", \"apple\", \"bale\", \"kangaroo\"};\r\n \r\n assertEquals(\"be\", wordSeeker.lookFor(inputWord, dictionary));\r\n }", "private boolean comparacionOblicuaDI (String [] dna){\n int largo=3, repaso=1, aux=0, contador=0, fila, columna;\n boolean repetir;\n char caracter;\n do {\n do {\n repetir=true;\n if(repaso==1){\n fila=0;\n columna=largo + aux;\n }else{\n fila=dna.length-1-largo-aux;\n columna=dna.length-1;\n }\n\n caracter = dna[fila].charAt(columna);\n\n for (int i = 1; i <= (largo+aux); i++) {\n int colum=columna-i;\n int fil=fila+i;\n if((colum==dna.length-2 && fil==1) && repaso==1){\n repetir=false;\n break;\n }\n if (caracter != dna[fil].charAt(colum)) {\n contador = 0;\n\n if(((dna.length-largo)>(colum) && repaso==1) || ((dna.length-largo)<=(fil) && repaso!=1)){\n if((fil+colum)==dna.length-1){\n repetir=false;\n }\n break;\n }\n caracter = dna[fil].charAt(colum);\n\n } else {\n contador++;\n }\n if (contador == largo) {\n cantidadSec++;\n if(cantidadSec>1){\n return true;\n }\n if((fil+colum)==dna.length-1){\n repetir=false;\n }\n break;\n }\n }\n aux++;\n } while (repetir);\n repaso--;\n aux=0;\n\n }while(repaso>=0);\n return false;\n }", "public boolean foundLoop();", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n String test = \"abcabcbb\";\n int result = LongestSubStringWithoutRepeatingCharacters.solution(test);\n System.out.println(result);\n }", "public char handleGuess(){\n\t\t\r\n\t\tSystem.out.print(\"Please enter a letter: \");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString s = sc.next();\r\n\t\tchar letter = s.charAt(0);\r\n\r\n\t\taa:for(int i=0; i<gameLetter.length; i++){\r\n\t\t\tif(letter == gameLetter[i]){\r\n\t\t\t\tcorrectList.add(letter);\r\n\t\t\t\t\r\n\t\t\t\tif(ifWrongListContain(letter)==true){\r\n\t\t\t\t\tfor(int b=0, length=wrongList.size(); b<length; b++){\r\n\t\t\t\t\t\tif(wrongList.get(b)==letter)\r\n\t\t\t\t wrongList.remove(b);\r\n\t\t\t\t length--;\r\n\t\t\t\t b--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak aa;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(ifWrongListContain(letter)==true)\r\n\t\t\t\t\tcontinue aa;\r\n\t\t\t\telse\r\n\t\t\t\t wrongList.add(letter);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn letter;\t\t\r\n\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n String word = \"Computer\";\r\n System.out.println(word.length());\r\nSystem.out.println(word.charAt(0));\r\nSystem.out.println(word.charAt(1));\r\nSystem.out.println(word.charAt(2));\r\nSystem.out.println(word.charAt(3));\r\nSystem.out.println(word.charAt(4));\r\nSystem.out.println(word.charAt(5));\r\nSystem.out.println(word.charAt(6));\r\nSystem.out.println(word.charAt(7));\r\n\r\n//\r\n\r\nString word2 = \"Java\";\r\n if(word2.charAt(0) == 'J');{\r\nSystem.out.println(\"J is first character\");\r\n} \r\n \r\n String word3 = \"civic\";\r\n char first = word3.charAt(0); // index always zero\r\n char last = word.charAt(4); \r\n\r\nif (first == last) {\r\n\tSystem.out.println(\"FIrst and last match\");\r\n} else {\r\n\tSystem.out.println(\" not match\");\r\n}\r\n// always print the last character no matter the length\r\n\r\nString word4 = \"abcdefghijklmnopqrstuvwxyz\";\r\n\r\nchar lastChar = word4.charAt(word4.length()-1);\r\n\r\nSystem.out.println(\"last character of the word \" + word4 + \" is \" + lastChar);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "public static Character findFirstNonRepetedCharacter(String str){\n Map<Character,Integer> map = new HashMap<>();\n\n char[] chars = str.toCharArray();\n for(Character ch: chars){\n //Terinery operator if chracter contains value increment by one\n var count = map.containsKey(ch) ? map.get(ch) : 0;\n map.put(ch,count +1);\n }\n\n //due to hashfunction map store these values in different places in memory( not sequentially)\n //now match the character in String from first to end corresponding to Map values\n for(Character ch: chars){\n //first non repeated value a green apple in string | in { =2, p=2, a=2, r=1, e=3, g=1, l=1, n=1}\n if(map.get(ch)==1) return ch; // ^\n }\n\n return Character.MIN_VALUE; // a default value when cant find any 1st repeated\n }", "protected static boolean match( String pattern, String str, boolean isCaseSensitive )\n {\n char[] patArr = pattern.toCharArray();\n char[] strArr = str.toCharArray();\n int patIdxStart = 0;\n int patIdxEnd = patArr.length - 1;\n int strIdxStart = 0;\n int strIdxEnd = strArr.length - 1;\n char ch;\n\n boolean containsStar = false;\n for( int i = 0; i < patArr.length; i++ )\n {\n if( patArr[ i ] == '*' )\n {\n containsStar = true;\n break;\n }\n }\n\n if( !containsStar )\n {\n // No '*'s, so we make a shortcut\n if( patIdxEnd != strIdxEnd )\n {\n return false;// Pattern and string do not have the same size\n }\n for( int i = 0; i <= patIdxEnd; i++ )\n {\n ch = patArr[ i ];\n if( ch != '?' )\n {\n if( isCaseSensitive && ch != strArr[ i ] )\n {\n return false;// Character mismatch\n }\n if( !isCaseSensitive && Character.toUpperCase( ch ) !=\n Character.toUpperCase( strArr[ i ] ) )\n {\n return false;// Character mismatch\n }\n }\n }\n return true;// String matches against pattern\n }\n\n if( patIdxEnd == 0 )\n {\n return true;// Pattern contains only '*', which matches anything\n }\n\n // Process characters before first star\n while( ( ch = patArr[ patIdxStart ] ) != '*' && strIdxStart <= strIdxEnd )\n {\n if( ch != '?' )\n {\n if( isCaseSensitive && ch != strArr[ strIdxStart ] )\n {\n return false;// Character mismatch\n }\n if( !isCaseSensitive && Character.toUpperCase( ch ) !=\n Character.toUpperCase( strArr[ strIdxStart ] ) )\n {\n return false;// Character mismatch\n }\n }\n patIdxStart++;\n strIdxStart++;\n }\n if( strIdxStart > strIdxEnd )\n {\n // All characters in the string are used. Check if only '*'s are\n // left in the pattern. If so, we succeeded. Otherwise failure.\n for( int i = patIdxStart; i <= patIdxEnd; i++ )\n {\n if( patArr[ i ] != '*' )\n {\n return false;\n }\n }\n return true;\n }\n\n // Process characters after last star\n while( ( ch = patArr[ patIdxEnd ] ) != '*' && strIdxStart <= strIdxEnd )\n {\n if( ch != '?' )\n {\n if( isCaseSensitive && ch != strArr[ strIdxEnd ] )\n {\n return false;// Character mismatch\n }\n if( !isCaseSensitive && Character.toUpperCase( ch ) !=\n Character.toUpperCase( strArr[ strIdxEnd ] ) )\n {\n return false;// Character mismatch\n }\n }\n patIdxEnd--;\n strIdxEnd--;\n }\n if( strIdxStart > strIdxEnd )\n {\n // All characters in the string are used. Check if only '*'s are\n // left in the pattern. If so, we succeeded. Otherwise failure.\n for( int i = patIdxStart; i <= patIdxEnd; i++ )\n {\n if( patArr[ i ] != '*' )\n {\n return false;\n }\n }\n return true;\n }\n\n // process pattern between stars. padIdxStart and patIdxEnd point\n // always to a '*'.\n while( patIdxStart != patIdxEnd && strIdxStart <= strIdxEnd )\n {\n int patIdxTmp = -1;\n for( int i = patIdxStart + 1; i <= patIdxEnd; i++ )\n {\n if( patArr[ i ] == '*' )\n {\n patIdxTmp = i;\n break;\n }\n }\n if( patIdxTmp == patIdxStart + 1 )\n {\n // Two stars next to each other, skip the first one.\n patIdxStart++;\n continue;\n }\n // Find the pattern between padIdxStart & padIdxTmp in str between\n // strIdxStart & strIdxEnd\n int patLength = ( patIdxTmp - patIdxStart - 1 );\n int strLength = ( strIdxEnd - strIdxStart + 1 );\n int foundIdx = -1;\n strLoop :\n for( int i = 0; i <= strLength - patLength; i++ )\n {\n for( int j = 0; j < patLength; j++ )\n {\n ch = patArr[ patIdxStart + j + 1 ];\n if( ch != '?' )\n {\n if( isCaseSensitive && ch != strArr[ strIdxStart + i + j ] )\n {\n continue strLoop;\n }\n if( !isCaseSensitive && Character.toUpperCase( ch ) !=\n Character.toUpperCase( strArr[ strIdxStart + i + j ] ) )\n {\n continue strLoop;\n }\n }\n }\n\n foundIdx = strIdxStart + i;\n break;\n }\n\n if( foundIdx == -1 )\n {\n return false;\n }\n\n patIdxStart = patIdxTmp;\n strIdxStart = foundIdx + patLength;\n }\n\n // All characters in the string are used. Check if only '*'s are left\n // in the pattern. If so, we succeeded. Otherwise failure.\n for( int i = patIdxStart; i <= patIdxEnd; i++ )\n {\n if( patArr[ i ] != '*' )\n {\n return false;\n }\n }\n return true;\n }", "private static boolean dfs(char[][] matrix, String word, int i, int j, int index) {\n if (index == word.length()) {\n return true;\n }\n if (i < 0 || i >= matrix.length || j < 0 || j >= matrix[i].length) {\n // System.out.println(\"out of bound\");\n return false;\n }\n if (word.charAt(index) != matrix[i][j]) {\n // System.out.println(\"char not == \");\n return false;\n }\n if (matrix[i][j] == '$') {\n // System.out.println(\"mark \" + i + \", \" + j + \" as $\");\n return false;\n }\n char ori = matrix[i][j];\n matrix[i][j] = '$';\n if (dfs(matrix, word, i + 1, j, index + 1)|| dfs(matrix, word, i - 1, j, index + 1) ||\n dfs(matrix, word, i, j + 1, index + 1) || dfs(matrix, word, i, j - 1, index + 1)) {\n matrix[i][j] = ori; // backtracking here!!!\n return true;\n }\n matrix[i][j] = ori;\n return false;\n }", "public static String isMatching(String str){\n\t\tint l=str.length();\n\t\tSolution obj = new Solution();\n\t\tfor(int i=0;i<l;i++){\n\t\t\tchar temp = str.charAt(i);\n\t\t\tif(temp=='{' || temp=='[' || temp=='('){\n\t\t\t\tobj.push(temp);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tchar top=obj.peek();\n\t\t\t\tif((top=='{' && temp=='}') || (top=='(' && temp==')') ||(top=='[' && temp==']'))\n\t\t\t\t\tobj.pop();\n\t\t\t\telse\n\t\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t\tif(obj.isEmpty()){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}", "public static void main(String []abcd){\n\t\tchar A[]={'a','b','d','r','x','y','z'};\t//rendom sorted character in dense array\r\n\t\tint n=A.length;\t\t\t\t//assigning array length in n variable \r\n\t\tchar x='d';\t\t\t\t//the input character to be findout\r\n\t\tboolean Notfound=false;\t\t\t//just for while loop condition\r\n\t\tint lowerBound=1;\t\t\t//lowerBound varible assigned 1 \r\n\t\tint upperBound=n;\t\t\t//uppernound variable assigned with n (length of array)\r\n\t\t\r\n\t\twhile(!Notfound){\t\t\t//while loop start till NotFound variable beacme true\r\n\t\t\tif(upperBound < lowerBound)\t//if statement for the variable not found\r\n\t\t\t\t{System.out.print(\"Doesn't exitst\");\t//print statement\r\n\t\t\t\tbreak;}\t\t\t\t\t//breake the while loop\r\n\t\t\tint midPoint=lowerBound+(upperBound-lowerBound)/2;\t//calculating mid point vale and saving it in midPoint variable\r\n\t\t\tif((int)A[midPoint]<(int)x)\t\t\t\t//checking if the giving character is greater then mid point character by checking their assici code\r\n\t\t\t\tlowerBound=midPoint+1;\t\t\t\t//setting lb to mp+1\r\n\t\t\tif((int)A[midPoint]>(int)x)\t\t\t\t//checking if the giving character is less then mid point character by checking their assici code\r\n\t\t\t\tupperBound=midPoint-1;\t\t\t\t//setting up to mp-1\r\n\t\t\tif((int)A[midPoint]==(int)x)\t\t\t\t//checking if the giving character is equals to mid point character by checking their assici code\r\n\t\t\t\t{System.out.print(x+\" at:\"+midPoint);\t\t//printing statement \r\n\t\t\t\tNotfound=true;\t\t\t\t\t//making NotFound variable true\r\n\t\t\t\tbreak;}\t\t\t\t\t\t//breaking while loop\r\n\t\t}\t\t\t\t\t\t\t\t//end of main body\r\n\t\t\r\n\t}", "private void repeatingCharacter(String input) {\n\t\tMap<Character,Integer> map = new HashMap<Character,Integer>();\n\t\t//O[n]\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\tmap.put(input.charAt(i),map.getOrDefault(input.charAt(i), 0)+1);\n\t\t}\n\t\t//o[n]\n\t\tint max = Collections.max(map.values());\n\t\tint secondMax = 0;\n\t\tchar output = 0;\n\t\t//o[n]\n\t\tfor(Map.Entry<Character, Integer> a : map.entrySet()) {\n\t\t\tif(a.getValue()<max && a.getValue()>secondMax) {\n\t\t\t\tsecondMax = a.getValue();\n\t\t\t\toutput = a.getKey();\n\t\t\t}\n\t\t}\n\t\tif(!(secondMax == max)) {\n\t\t\tSystem.out.println(output);\n\t\t}else {\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "static int alternate(String s) {\n\n \n char[] charArr = s.toCharArray();\n\n int[] arrCount=new int[((byte)'z')+1];\n\n for(char ch:s.toCharArray()){ \n arrCount[(byte)ch]+=1;\n }\n \n int maxLen=0;\n for(int i1=0;i1<charArr.length;++i1)\n {\n char ch1= charArr[i1];\n for(int i2=i1+1;i2<charArr.length;++i2)\n {\n char ch2 = charArr[i2];\n if(ch1 == ch2)\n break;\n\n //validate possible result\n boolean ok=true;\n {\n char prev = ' ';\n for(char x:charArr){\n if(x == ch1 || x == ch2){\n if(prev == x){\n ok=false;\n break;\n }\n prev = x;\n }\n }\n\n }\n if(ok)\n maxLen = Math.max(maxLen,arrCount[(byte)ch1]+arrCount[(byte)ch2]);\n }\n }\n\n return maxLen;\n\n }", "private boolean findFullStop(ArrayList<String> parameters) {\n int index = findIndexOfLastWord(parameters);\n if (index == -1) {\n return false;\n }\n return true;\n }", "public static void main(String[] args) {\n\t String s = \"Ah, Satan sees Natasha \".toLowerCase().replaceAll(\"\\\\W\", \"\");\n\t int j=0;\n\t int k = s.length() - 1;\n\t while(j < s.length() / 2) { //loops until half the length of the string if \n\t //even and floor value if odd.\n\t if (s.charAt(j++) != s.charAt(k--)){//check for first and last chars \n\t //and go inwards. if char do not match print 'Not a Palindrome' and exit \n\t System.out.println(\"Not a Palindrome\");\n\t System.exit(0);}\n\t }\n\t System.out.println(\"Palindrome\"); //if every chars match print \"Palindrome\"\n\t }", "@Test\n public void testKMP() {\n\n int[] next = getNextArr(modeStr);\n ////int[] next = getNext2(modeStr);\n ////int[] next = getNext(modeStr);\n log.info(JSON.toJSONString(next));\n\n final char[] charArr = mainStr.toCharArray();\n final char[] modeCharArr = modeStr.toCharArray();\n final int charLen = charArr.length;\n final int modeCharLen = modeCharArr.length;\n int match = 0;\n int compareCount = 0;\n for (int i = 0; i < charLen - modeCharLen +1; ) {\n int offset = 1;\n for (int j = 0, startIndex = i; j < modeCharLen; j++) {\n int indexToBeMoved = next[j];\n compareCount++;\n log.info(\"{}与{}比较\", modeCharArr[j], charArr[startIndex]);\n if (charArr[startIndex] == modeCharArr[j]) {\n match++;\n startIndex++;\n if (match == modeCharLen) {\n //计算最终串的初始下标\n int initIndex = (--startIndex) - (modeCharLen - 1);\n log.info(\"找到下标【\" + initIndex + \"】,值为【\" + charArr[initIndex] + \"】\");\n log.info(\"比较次数:{}\", compareCount);\n return;\n }\n } else if (indexToBeMoved == -1) {\n startIndex++;\n match = 0;\n break;\n } else if (indexToBeMoved >= 0) {\n //log.error(\"记录下标{}\",i+match);\n offset = (modeCharLen - indexToBeMoved - 1);\n offset = offset > (charLen - modeCharLen) ? 1 : offset;\n match = 0;\n break;\n }\n }\n i += offset;\n }\n }", "public static void main(String[] args) {\n\t\tString string1 = \"acbdfbdfacb\";\n\t\tint length = string1.length();\n\t\tString[] sub = new String[length*(length+1)/2];\n\t\tint temp = 0;\n\t\tfor(int i =0;i<length;i++) {\n\t\t\tfor(int j = i;j<length;j++) {\n\t\t\t\tString parts = string1.substring(i,j+1);\n\t\t\t\tsub[temp] = parts;\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\tfor(int j =0;j<sub.length;j++) {\n\t\t\tSystem.out.println(sub[j]);\n\t\t}\n\t\tArrayList<String> rep = new ArrayList<String>();\n\t\tfor(int i=0;i<sub.length;i++) {\n\t\t\tfor(int j =i+1;j<sub.length;j++) {\n\t\t\t\tif(sub[i].equals(sub[j])) {\n\t\t\t\t\trep.add(sub[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint largestString = 0;\n\t\tSystem.out.println(rep);\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\t\tif(rep.get(k).length()>largestString) {\n\t\t\t\tlargestString = rep.get(k).length();\n\t\t\t}\t\t\n\t\t}\n\t\tfor(int k =0;k<rep.size();k++) {\n\t\tif(rep.get(k).length()==largestString) {\n\t\t\tSystem.out.println(\"the longest repeating sequence in a string : \"+rep.get(k));\n\t\t}\n\t\t}\n\t}", "private void find(char[] m, String message, Trie cur, Trie root, int index, List<String> results) {\n // Base case 1. No match with any dictionary word. if cur == null -> no match ; return\n if (cur == null) {\n return;\n }\n // Base case 2. if out of bounds, check previously collected word and return\n if (index == message.length()) {\n // result only in case matches word\n if (cur.word != null) {\n results.add(new String(m));\n }\n return;\n }\n char c = message.charAt(index);\n if (c == SPACE) {\n // matches word or character 'e'\n // check if matches word from dictionary\n if (cur.word != null) {\n m[index] = SPACE;\n // if space - start collecting new word from beginning of Trie\n find(m, message, root, root, index + 1, results);\n }\n // otherwise ' ' -> 'e'\n c = 'e';\n }\n // considered non-space character (backtracking)\n m[index] = c;\n // get next element from try\n Trie next = cur.get(c);\n find(m, message, next, root, index + 1, results);\n }", "public void doWorkAfterMatch(int matchedLength) {\n rhsUsed += 1; inputUsed += matchedLength;\n doAsTopOfStack();\n // retract the dotted goal\n rhsUsed -= 1; inputUsed -= matchedLength;\n }", "private boolean checkForResultStrings (byte ch) {\n\t\t\tboolean noneFound = true;\n\t\t\t\n\t\t\tfor (int k=0; k < resultStrings.length; k++) {\n\t\t\t\tif (!resultDetected[k]) {\n\t\t\t\t\t++resultIndexes[k];\n\t\t\t\t\tif (resultStrings[k][resultIndexes[k]] == ch) {\n\t\t\t\t\t\tif (resultIndexes[k]+1 == resultStrings[k].length) {\n\t\t\t\t\t\t\tresultDetected[k] = true;\n\t\t\t\t\t\t\tnoneFound = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tresultIndexes[k] = -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn noneFound;\n\t\t}", "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n try{\n \tint n=sc.nextInt();\t\n }\n catch(Exception e){\n break;\n }\n String p=sc.next();\n String t1=sc.next();\n char text[]=t1.toCharArray();\n char pat[]=p.toCharArray();\n if(p.length()>t1.length()){\n System.out.println();\n }\n else {\n int f[]=new int[pat.length];\n f[0]=0;\n int j=0;\n for(int i=1;i<pat.length;){\n if(pat[i]==pat[j]){\n f[i]=j+1;\n i++;\n j++;\n }\n else {\n if(j>0){\n j=f[j-1];\n }\n else {\n f[i]=0;\n i++;\n }\n }\n }\n int i=0;\n j=0;\n boolean b=false;\n while(i<text.length&&j<pat.length){\n if(pat[j]==text[i]){ \n i++;\n j++;\n if(j==pat.length){\n System.out.println(i-pat.length);\n b=true;\n j=f[j-1];\n }\n }\n else if(j>0){ \n j=f[j-1];\n }\n else {\n i++;\n }\n }\n if(!b) {\n System.out.println();\n }\n System.out.println();\n \n }\n }\n }", "@Test\n\tpublic void eg1() {\n\t\tString s=\"babad\";\n\t\tSystem.out.println(longestPalindromicSubString(s));\n\t\t\n\t}" ]
[ "0.6016364", "0.5791328", "0.5684146", "0.56381756", "0.56062335", "0.5596676", "0.5582854", "0.54971516", "0.545227", "0.5348908", "0.5308201", "0.5263271", "0.5240962", "0.52339226", "0.5229846", "0.52291286", "0.52090967", "0.5205209", "0.52021873", "0.51705164", "0.5165032", "0.513546", "0.51322967", "0.5102259", "0.5087077", "0.5078506", "0.50700605", "0.5051726", "0.50447416", "0.50315064", "0.50313956", "0.50204206", "0.5016401", "0.50125563", "0.50108993", "0.5005312", "0.5003781", "0.4986487", "0.49750328", "0.49750286", "0.49623445", "0.49590832", "0.4951493", "0.49510935", "0.49470937", "0.49388394", "0.49325103", "0.49317324", "0.49294537", "0.49142265", "0.491107", "0.49076366", "0.48940822", "0.48876956", "0.4881633", "0.48792094", "0.48764634", "0.4870622", "0.48644668", "0.48611933", "0.48581243", "0.485263", "0.48403528", "0.48397565", "0.48384237", "0.48200738", "0.4819817", "0.48157534", "0.48134518", "0.48060706", "0.4804978", "0.48043835", "0.4794268", "0.47804582", "0.47787094", "0.47779208", "0.47753772", "0.47752637", "0.47737712", "0.47689635", "0.47634783", "0.47596526", "0.47543767", "0.47532037", "0.4752699", "0.47457042", "0.47453022", "0.4741595", "0.47362632", "0.47326526", "0.47326237", "0.473261", "0.47320345", "0.47310552", "0.47303241", "0.47280884", "0.47245005", "0.47241008", "0.4722284", "0.47219577" ]
0.5514261
7
This verifies break condition in loop that searches for occurrence of first matching character. If we break too soon, second loop assumes we found first matching character and reports invalid match.
@Test public void shouldNotFindSubstringWithMismatchedFirstCharacterAtTheEndOfThString() { // Given String string = "123ABc"; CharSequence charSequence = new StringBuilder("cBc"); // When boolean containsCharSequence = string.contains(charSequence); // Then assertFalse(containsCharSequence); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Character findFirstNonRepetedCharacter(String str){\n Map<Character,Integer> map = new HashMap<>();\n\n char[] chars = str.toCharArray();\n for(Character ch: chars){\n //Terinery operator if chracter contains value increment by one\n var count = map.containsKey(ch) ? map.get(ch) : 0;\n map.put(ch,count +1);\n }\n\n //due to hashfunction map store these values in different places in memory( not sequentially)\n //now match the character in String from first to end corresponding to Map values\n for(Character ch: chars){\n //first non repeated value a green apple in string | in { =2, p=2, a=2, r=1, e=3, g=1, l=1, n=1}\n if(map.get(ch)==1) return ch; // ^\n }\n\n return Character.MIN_VALUE; // a default value when cant find any 1st repeated\n }", "public char FirstAppearingOnce()\n {\n \n for(int i = 0; i < stringstream.size(); i++){\n char ch = stringstream.get(i);\n\t\t\tif(!rep.contains(ch)){\n return ch;\n }\n }\n return '#';\n }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "public char FirstAppearingOnce() {\n HashMap<Character, Integer> map = new HashMap<Character, Integer>();\n for (int i = 0, len = sb.length(); i < len; i++) {\n char ch = sb.charAt(i);\n if (map.get(ch) == null) {\n map.put(ch, 1);\n } else {\n int k = map.get(ch);\n map.replace(ch, ++k);\n }\n }\n for (int i = 0, len = sb.length(); i < len; i++) {\n char ch = sb.charAt(i);\n if (map.get(ch) == 1) {\n return ch;\n }\n }\n return '#';\n }", "while (!found && index < valid.length)\n {\n if (valid[index] == number)\n found = true;\n else\n index++;\n }", "private boolean isFitPatternStr(char startC, String patternStr) {\n\n if (startC != patternStr.charAt(0)) {\n return false;\n }\n char inputChar = ' ';\n char patternchar = ' ';\n for (int i = 1; i < patternStr.length(); i++) {//the post\n patternchar = patternStr.charAt(i);\n inputChar = getNextChar();\n if (inputChar != patternchar) {\n throwParseError();\n }\n\n }\n return true;\n }", "public char firstAppearingOnce() { //思路与FirstNotRepeatingChar.java相同\n char[] charArray = s.toString().toCharArray();\n HashMap<Character, Integer> map = new HashMap<Character, Integer>(); //利用一个HashMap散列表存储每个字符出现的次数,字符为键次数为值\n int count;\n //遍历字符串,如果散列表中没有该字符的键就新建一个该字符的键,将值即出现次数设为1,若有说明该字符出现过,将值加一更新出现次数\n for (int i = 0; i < charArray.length; i++) {\n if (map.containsKey(charArray[i])) {\n count = map.get(charArray[i]);\n map.put(charArray[i], ++count); //++在前是因为先将出现次数加1,再更新该字符的出现次数\n } else {\n map.put(charArray[i], 1);\n }\n }\n for (int i = 0; i < charArray.length; i++) {\n if (map.get(charArray[i]) == 1) { //遍历字符数组,对每一个当前字符都去查找散列表对应键的值是不是1,找到就返回该字符\n return charArray[i];\n }\n }\n return '#';\n }", "private Token scanChar(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tif(input.peek().matchChar('#')) {\n\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\tLocatedChar next = input.peek();\n\t\t\tif(next.matchChar('#') || Character.isDigit(next.getCharacter())) {\n\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\treturn CharToken.make(firstChar, buffer.toString(),next.getCharacter());\n\t\t\t} \n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed char of form ##[0..9#]\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t} \n\t\telse if(input.peek().isOctal()) {\n\t\t\tappendSubsequentOctals(buffer);\n\t\t\tint val;\n\t\t\ttry {\n\t\t\t\tval = Integer.parseInt(buffer.toString(), 8);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tlexicalError(firstChar, \"char value out of integer bounds\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t\tif(isPrintableChar((char)val)) {\n\t\t\t\treturn CharToken.make(firstChar, buffer.toString(), (char)val);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"char value not printable\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse if(isPrintableChar(input.peek().getCharacter())){\n\t\t\tLocatedChar next = input.next();\n\t\t\tbuffer.append(next.getCharacter());\n\t\t\treturn CharToken.make(firstChar, buffer.toString(), next.getCharacter());\n\t\t}\n\t\telse {\n\t\t\tlexicalError(firstChar, \"malformed char of form #@\");\n\t\t\treturn findNextToken();\n\t\t}\n\t}", "char getFirstChar(String input) {\n\t\tchar firstChar = input.charAt(0), temp;\n\t\tint count;\n\t\tfor(int index=0; index<input.length(); index++) {\n\t\t\ttemp = input.charAt(index);\n\t\t\tcount=0;\n\t\t\tfor(int innerIndex=0; innerIndex<input.length(); innerIndex++) {\n\t\t\t\tif(temp == input.charAt(innerIndex)) \n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count==1) {\n\t\t\t\tfirstChar = temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn firstChar;\n\t}", "private boolean secondCharIs(char expected) {\n if (reachedEnd()) {\n return false;\n }\n\n if (source.charAt(current) != expected) {\n return false;\n }\n\n current++;\n return true;\n }", "public char FirstAppearingOnce_1(){\n char[] ch = sb.toString().toCharArray();\n for(char i : ch){\n if(chs[i] == 1){\n return i;\n }\n }\n return '#';\n }", "public char FirstAppearingOnce()\n {\n String s1 = sb.toString();\n for (int i = 0; i < s1.length(); i++){\n String s2 = s1.replace(String.valueOf(s1.charAt(i)),\"\");//用空代替第i位出现的所有字符\n //如果某个字符出现一次,则s1和s2的长度只差1,如果有多个字符,那么不差1\n if (s1.length()-s2.length() == 1) return s1.charAt(i);\n }\n return '#';\n }", "private int nextChar()\n {\n int result;\n\n // loop handles the next character whether it is in the buffer or not.\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n result = m_source_.next();\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n if (m_bufferOffset_ >= m_buffer_.length()) {\n // Null marked end of buffer, revert to the source string and\n // loop back to top to try again to get a character.\n m_source_.setIndex(m_FCDLimit_);\n m_bufferOffset_ = -1;\n m_buffer_.setLength(0);\n return nextChar();\n }\n return m_buffer_.charAt(m_bufferOffset_ ++);\n }\n int startoffset = m_source_.getIndex();\n if (result < FULL_ZERO_COMBINING_CLASS_FAST_LIMIT_\n // Fast fcd safe path. trail combining class == 0.\n || m_collator_.getDecomposition() == Collator.NO_DECOMPOSITION\n || m_bufferOffset_ >= 0 || m_FCDLimit_ >= startoffset) {\n // skip the fcd checks\n return result;\n }\n\n if (result < LEAD_ZERO_COMBINING_CLASS_FAST_LIMIT_) {\n // We need to peek at the next character in order to tell if we are\n // FCD\n int next = m_source_.current();\n if (next == UCharacterIterator.DONE\n || next < LEAD_ZERO_COMBINING_CLASS_FAST_LIMIT_) {\n return result; // end of source string and if next character\n // starts with a base character is always fcd.\n }\n }\n\n // Need a more complete FCD check and possible normalization.\n if (!FCDCheck(result, startoffset)) {\n normalize();\n result = m_buffer_.charAt(0);\n m_bufferOffset_ = 1;\n }\n return result;\n }", "public char handleGuess(){\n\t\t\r\n\t\tSystem.out.print(\"Please enter a letter: \");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString s = sc.next();\r\n\t\tchar letter = s.charAt(0);\r\n\r\n\t\taa:for(int i=0; i<gameLetter.length; i++){\r\n\t\t\tif(letter == gameLetter[i]){\r\n\t\t\t\tcorrectList.add(letter);\r\n\t\t\t\t\r\n\t\t\t\tif(ifWrongListContain(letter)==true){\r\n\t\t\t\t\tfor(int b=0, length=wrongList.size(); b<length; b++){\r\n\t\t\t\t\t\tif(wrongList.get(b)==letter)\r\n\t\t\t\t wrongList.remove(b);\r\n\t\t\t\t length--;\r\n\t\t\t\t b--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak aa;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(ifWrongListContain(letter)==true)\r\n\t\t\t\t\tcontinue aa;\r\n\t\t\t\telse\r\n\t\t\t\t wrongList.add(letter);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn letter;\t\t\r\n\t\t\t\t\r\n\t}", "char firstTermAvail(){\n\r\n boolean charGood =false;\r\n int i=0;\r\n char searchChar=gIndividualNames.charAt(i);\r\n\r\n if (fShapes.size() > 0) {\r\n while ( (!charGood) && (i < gIndividualNames.length())) {\r\n\r\n searchChar=gIndividualNames.charAt(i);\r\n\r\n charGood=true; // this character is good unless we can prove otherwise\r\n\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (charGood&&iter.hasNext()) {\r\n TShape theShape = (TShape) iter.next();\r\n\r\n if (((theShape.fTypeID == TShape.IDIndividual)||\r\n (theShape.fTypeID == TShape.IDIdentity))&&\r\n (searchChar == theShape.fName|| // should switch from char to string\r\n (fSemantics.getCurrentIdentities())[i]!=chBlank)) // it's a unary function (fCurrentIdentities[firstchar] <> chBlank)\r\n\r\n charGood=false;\r\n }\r\n i++;\r\n }\r\n }\r\n else {\r\n charGood=true; //if there are no shapes the first character will do\r\n }\r\n\r\n if (charGood)\r\n return\r\n searchChar;\r\n else\r\n return\r\n chBlank;\r\n\r\n}", "public abstract boolean isSingleCharMatcher();", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "public void nestedForLoopStatementWith_FIRST_CHAR_LOOP() {\n FIRST_CHAR_LOOP:\n for (int a = 1; a <= 4; a++) {\n for (char x = 'a'; x <= 'c'; x++) {\n if (a == 2 || x == 'b') {\n continue FIRST_CHAR_LOOP;\n }\n System.out.print(\" \" + a + x); //1a 3a 4a\n }\n }\n }", "private static char firstNonRepeatingCharacterV2(String str) {\n if(str == null) return '_';\n Map<Character, Integer> charCountMap = new HashMap<>();\n Set<Character> linkedHashSet = new LinkedHashSet<>();\n\n for(int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if(charCountMap.containsKey(ch)) {\n charCountMap.put(ch, charCountMap.get(ch) + 1); // do not need this step\n linkedHashSet.remove(ch);\n } else {\n charCountMap.put(ch, 1);\n linkedHashSet.add(ch);\n }\n }\n //The first character in the linkedHashSet will be the firstNonRepeatingCharacter.\n Iterator<Character> itr = linkedHashSet.iterator();\n if(itr.hasNext()){\n return itr.next();\n } else {\n return '_';\n }\n }", "private static char firstNonRepeatingCharacterV1(String str) {\n if(str == null) return '_';\n Map<Character, Integer> charCountMap = new HashMap<>();\n Set<Character> linkedHashSet = new LinkedHashSet<>();\n\n for(int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if(charCountMap.containsKey(ch)) {\n charCountMap.put(ch, charCountMap.get(ch) + 1); // do not need this step\n } else {\n charCountMap.put(ch, 1);\n }\n }\n for(int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if(charCountMap.get(ch) == 1) {\n return ch;\n }\n }\n return '_';\n }", "private static int findNextStarter(char[] paramArrayOfChar, int paramInt1, int paramInt2, int paramInt3, int paramInt4, char paramChar)\n/* */ {\n/* 1576 */ int j = 0xFF00 | paramInt3;\n/* */ \n/* 1578 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* */ \n/* */ \n/* 1581 */ while (paramInt1 != paramInt2)\n/* */ {\n/* */ \n/* 1584 */ char c1 = paramArrayOfChar[paramInt1];\n/* 1585 */ if (c1 < paramChar) {\n/* */ break;\n/* */ }\n/* */ \n/* 1589 */ long l = getNorm32(c1);\n/* 1590 */ if ((l & j) == 0L) {\n/* */ break;\n/* */ }\n/* */ char c2;\n/* 1594 */ if (isNorm32LeadSurrogate(l))\n/* */ {\n/* 1596 */ if ((paramInt1 + 1 == paramInt2) || \n/* 1597 */ (!UTF16.isTrailSurrogate(c2 = paramArrayOfChar[(paramInt1 + 1)]))) {\n/* */ break;\n/* */ }\n/* */ \n/* 1601 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ \n/* 1603 */ if ((l & j) == 0L) {\n/* */ break;\n/* */ }\n/* */ } else {\n/* 1607 */ c2 = '\\000';\n/* */ }\n/* */ \n/* */ \n/* 1611 */ if ((l & paramInt4) != 0L)\n/* */ {\n/* */ \n/* 1614 */ int i = decompose(l, paramInt4, localDecomposeArgs);\n/* */ \n/* */ \n/* */ \n/* 1618 */ if ((localDecomposeArgs.cc == 0) && ((getNorm32(extraData, i, paramInt3) & paramInt3) == 0L)) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* 1623 */ paramInt1 += (c2 == 0 ? 1 : 2);\n/* */ }\n/* */ \n/* 1626 */ return paramInt1;\n/* */ }", "public static char findFirstDuplicates(String str){\n //a green apple\n // ^ now set contains 'e'\n Set<Character> set = new HashSet<>();\n\n for(Character ch:str.toCharArray()){\n if(set.contains(ch)) return ch;\n\n set.add(ch);\n }\n return Character.MIN_VALUE;\n\n }", "public int firstMatch(char[] array, char[] pattern){\n for(int a = 0; a <= array.length-pattern.length; a++) {\n for (int p = 0; p < pattern.length; p++) {\n if (array[a+p] != pattern[p]) break;\n if (p == pattern.length-1) return a;\n }\n }\n return -1;\n }", "public char FirstAppearingOnce()\n {\n char rs='#';\n int size=list.size();\n for(int i=0;i<size;i++){\n char ch= (char) list.get(i);\n if(1 == (Integer) map.get(ch)){\n rs=ch;\n break;\n }\n }\n return rs;\n }", "public static void main(String []abcd){\n\t\tchar A[]={'a','b','d','r','x','y','z'};\t//rendom sorted character in dense array\r\n\t\tint n=A.length;\t\t\t\t//assigning array length in n variable \r\n\t\tchar x='d';\t\t\t\t//the input character to be findout\r\n\t\tboolean Notfound=false;\t\t\t//just for while loop condition\r\n\t\tint lowerBound=1;\t\t\t//lowerBound varible assigned 1 \r\n\t\tint upperBound=n;\t\t\t//uppernound variable assigned with n (length of array)\r\n\t\t\r\n\t\twhile(!Notfound){\t\t\t//while loop start till NotFound variable beacme true\r\n\t\t\tif(upperBound < lowerBound)\t//if statement for the variable not found\r\n\t\t\t\t{System.out.print(\"Doesn't exitst\");\t//print statement\r\n\t\t\t\tbreak;}\t\t\t\t\t//breake the while loop\r\n\t\t\tint midPoint=lowerBound+(upperBound-lowerBound)/2;\t//calculating mid point vale and saving it in midPoint variable\r\n\t\t\tif((int)A[midPoint]<(int)x)\t\t\t\t//checking if the giving character is greater then mid point character by checking their assici code\r\n\t\t\t\tlowerBound=midPoint+1;\t\t\t\t//setting lb to mp+1\r\n\t\t\tif((int)A[midPoint]>(int)x)\t\t\t\t//checking if the giving character is less then mid point character by checking their assici code\r\n\t\t\t\tupperBound=midPoint-1;\t\t\t\t//setting up to mp-1\r\n\t\t\tif((int)A[midPoint]==(int)x)\t\t\t\t//checking if the giving character is equals to mid point character by checking their assici code\r\n\t\t\t\t{System.out.print(x+\" at:\"+midPoint);\t\t//printing statement \r\n\t\t\t\tNotfound=true;\t\t\t\t\t//making NotFound variable true\r\n\t\t\t\tbreak;}\t\t\t\t\t\t//breaking while loop\r\n\t\t}\t\t\t\t\t\t\t\t//end of main body\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString s=sc.nextLine();\r\nchar c[]=s.toCharArray();\r\nint flag=0;\r\nfor(int i=0;i<c.length;i++)\r\n{ for(int j=i+1;j<c.length;j++)\r\n\tif(c[i]==c[j])\r\n\t\tflag=1;\r\n\telse\r\n\tcontinue;\r\n}\r\nif(flag==1)\r\n\tSystem.out.println(\"No\");\r\nelse\r\n\tSystem.out.println(\"Yes\");\r\n\t}", "public abstract boolean isStarterChar(char c);", "private AugmentedStmt find_CharacterizingStmt(AugmentedStmt entry_point, IterableSet<AugmentedStmt> sc_component,\n AugmentedStmtGraph asg) {\n\n if (entry_point.get_Stmt() instanceof IfStmt) {\n\n // see if there's a successor who's not in the strict loop set\n for (AugmentedStmt au : entry_point.bsuccs) {\n if (sc_component.contains(au) == false) {\n return entry_point;\n }\n }\n }\n\n /*\n * We're not a while loop. Get the candidates for condition on a do-while loop.\n */\n\n IterableSet<AugmentedStmt> candidates = new IterableSet<AugmentedStmt>();\n HashMap<AugmentedStmt, AugmentedStmt> candSuccMap = new HashMap<AugmentedStmt, AugmentedStmt>();\n HashSet<AugmentedStmt> blockers = new HashSet<AugmentedStmt>();\n\n // Get the set of all candidates.\n for (AugmentedStmt pas : entry_point.bpreds) {\n if ((pas.get_Stmt() instanceof GotoStmt) && (pas.bpreds.size() == 1)) {\n pas = (AugmentedStmt) pas.bpreds.get(0);\n }\n\n if ((sc_component.contains(pas)) && (pas.get_Stmt() instanceof IfStmt)) {\n\n for (AugmentedStmt spas : pas.bsuccs) {\n if (sc_component.contains(spas) == false) {\n\n candidates.add(pas);\n candSuccMap.put(pas, spas);\n blockers.add(spas);\n\n break;\n }\n }\n }\n }\n\n /*\n * If there was no candidate, we are an unconditional loop.\n */\n\n if (candidates.isEmpty()) {\n return null;\n }\n\n /*\n * Get the best candidate for the do-while condition.\n */\n\n if (candidates.size() == 1) {\n return (AugmentedStmt) candidates.getFirst();\n }\n\n // Take the candidate(s) whose successor has maximal reachability from\n // all candidates.\n\n asg.calculate_Reachability(candidates, blockers, entry_point);\n\n IterableSet<AugmentedStmt> max_Reach_Set = null;\n int reachSize = 0;\n\n for (AugmentedStmt as : candidates) {\n int current_reach_size = ((AugmentedStmt) candSuccMap.get(as)).get_Reachers().intersection(candidates).size();\n\n if (current_reach_size > reachSize) {\n max_Reach_Set = new IterableSet<AugmentedStmt>();\n reachSize = current_reach_size;\n }\n\n if (current_reach_size == reachSize) {\n max_Reach_Set.add(as);\n }\n }\n\n candidates = max_Reach_Set;\n\n if (candidates == null) {\n throw new RuntimeException(\"Did not find a suitable candidate\");\n }\n if (candidates.size() == 1) {\n return (AugmentedStmt) candidates.getFirst();\n }\n\n // Find a single source shortest path from the entry point to any of the\n // remaining candidates.\n\n HashSet<Object> touchSet = new HashSet<Object>();\n LinkedList<AugmentedStmt> worklist = new LinkedList<AugmentedStmt>();\n worklist.addLast(entry_point);\n touchSet.add(entry_point);\n\n while (worklist.isEmpty() == false) {\n\n for (AugmentedStmt so : worklist.removeFirst().csuccs) {\n if (candidates.contains(so)) {\n return so;\n }\n\n if ((sc_component.contains(so)) && (touchSet.contains(so) == false)) {\n worklist.addLast(so);\n touchSet.add(so);\n }\n }\n }\n\n throw new RuntimeException(\"Somehow didn't find a condition for a do-while loop!\");\n }", "@Test\n public void shouldFindSubstringAtTheEndOfTheStringAfterOneCharacterPartialMatch() {\n // Given\n String string = \"AABc\";\n CharSequence charSequence = new StringBuilder(\"ABc\");\n\n // When\n boolean containsCharSequence = string.contains(charSequence);\n\n // Then\n assertTrue(containsCharSequence);\n }", "public boolean matches(char cNext) {\n int nIndex = 0;\n while (nIndex < m_cBuffer.length - 1)\n m_cBuffer[nIndex] = m_cBuffer[++nIndex];\n // save the new character\n m_cBuffer[nIndex] = cNext;\n\n // compare the buffer to the pattern\n nIndex = m_cBuffer.length;\n boolean bMatch = true;\n while (nIndex-- > 0 && bMatch)\n bMatch = (m_cBuffer[nIndex] == m_cPattern[nIndex]);\n\n return bMatch;\n }", "private boolean tryCaptureChar(char charToBeCaptured) throws ParsingException {\n // Skip all whitespace characters\n while (Character.isWhitespace(ch)) {\n getNextChar();\n }\n\n if (ch == charToBeCaptured) {\n getNextChar();\n return true;\n }\n return false;\n }", "public static char getInput( Scanner scan, String x ){\n if (x.length()>0){\n char c1=x.charAt(0); //1st character of string (\"C\")\n char c2=x.charAt(1); //2nd character of string (\"c\")\n scan=new Scanner(System.in);\n String input= scan.nextLine(); //takes in a string\n char i1=input.charAt(0);//takes 1st letter of input\n \n if (input.length()==1){\n if(i1==c1)\n { //if the 1st inputted character is equal to character 1 (C)\n \n return c1; //return that value\n }\n else if (i1==c2)//if the 1st inputted character is equal to character 2 (c)\n { \n return c2; //return that value\n }\n }\n else { //if more than one character entered\n System.out.println(\"You should enter exactly one character. Enter 'C' or 'c' to continue. Try again- \");\n return getInput(scan, x); //reruns\n }\n }\n \n System.out.print(\"You did not enter a characer from the list 'Cc' try again- \"); //if C or c is not entered\n return getInput(scan,x); //reruns\n \n }", "public void firstNonRepeated(String str){\n Map<Character, Integer> map = new LinkedHashMap<Character, Integer>();\n\n /*Input string convert to array of char*/\n char[] charArray = str.toCharArray();\n\n\n /*Iterating through array, count and put in hashmap */\n for(char c:charArray) {\n if (map.get(c) != null)\n map.put(c, map.get(c) + 1);\n else\n map.put(c, new Integer(1));\n }\n\n\n /*Iterating through map and check if there is character with just one occurrence*/\n Set<Character> keySet = map.keySet();\n for(Character key : keySet){\n if (map.get(key) == 1){\n System.out.println(\"Character is: \"+ key);\n System.exit(0);\n }\n }\n System.out.println(\"There are no characters with just one occurrence!\");\n }", "public char FirstAppearingOnce()\n {\n for(int i = 0;i < arr.length;i++) {\n if(arr[i] == 1) {\n return (char)i;\n }\n }\n return '#';\n }", "private static char firstNonRepeatingCharUsingHashMap(String word) {\n Map<Character, Integer> countMap = new HashMap<>();\n for (char ch : word.toCharArray()) {\n countMap.put(ch, countMap.getOrDefault(ch, 0) + 1);\n }\n\n for (int i = 0; i < word.length(); i++) {\n char ch = word.charAt(i);\n if (countMap.get(ch) == 1) {\n return ch;\n }\n }\n throw new RuntimeException(\"didn't find\");\n }", "public char FirstAppearingOnce()\n {\n int minPos = Integer.MAX_VALUE;\n char ch = '#';\n for (int i = 0; i < map.length; i++) {\n if (map[i] >= 0) {\n if (map[i] < minPos) {\n minPos = map[i];\n ch = (char)i;\n }\n }\n }\n return ch;\n }", "public char FirstAppearingOnce(){\n int minIndex = Integer.MAX_VALUE;\n char ch = '#';\n for(int i=0;i<256;i++){\n if(occurrence[i]>=0){\n if(occurrence[i]<minIndex){\n minIndex = occurrence[i];\n ch = (char)i;\n }\n }\n }\n if(minIndex==Integer.MAX_VALUE)\n return '#';\n else\n return ch;\n }", "private int indexOfNextUnescapedChar(String s, char c, int start){\n int pos = 0;\n while(true){\n pos = s.indexOf(c, start+pos);\n if(pos <= 0)break;\n if((pos > start) && (s.charAt(pos-1) != '\\\\'))break;\n else pos++;\n }\n return pos;\n }", "public static char FirstAppearingOnce()\n {\n for(Map.Entry<Character,Integer> entry : first.entrySet())\n {\n return entry.getKey();\n }\n return '#';\n }", "public void CheckError(String s) {\r\n if (s.equals(token.get(lookAheadPossition))){\r\n System.out.println(\"Expected: \"+ s +\" at line:\"+ lookAheadPossition);\r\n lookAheadPossition=lookAheadPossition+1;\r\n }else {\r\n System.out.println(\"ERROR: at line:\"+ lookAheadPossition +\" expected-> \"+ s +\" --- \" + token.get(lookAheadPossition)+ \" <-detected.\" );\r\n System.exit(0);\r\n }\r\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\"break\\\"\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(4, javaCharStream0.bufpos);\n assertEquals(1, javaCharStream0.getEndLine());\n }", "public static boolean hasSameCharInSequence(String password) throws InvalidSequenceException\r\n {\r\n char c1, c2, c3;\r\n if (password.length() > 2)\r\n {\r\n for (int i = 2; i < password.length(); i++)\r\n {\r\n c1 = password.charAt(i - 2);\r\n c2 = password.charAt(i - 1);\r\n c3 = password.charAt(i);\r\n if (c1 == c2 && c2 == c3)\r\n throw new InvalidSequenceException();\r\n }\r\n }\r\n return true;\r\n }", "public static char checkInput() {\r\n\t\tchar ch = ' ';\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tch = input.next(\".\").charAt(0);\t\t// samo jedan karakter dozvoljen\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, samo jedan karakter dozvoljen! Probaj ponovo:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn ch;\r\n\t}", "public static String SimpleSymbols(String str) {\n char curr_char = '0';\n char prev_char = '0';\n char next_char = '0';\n String out_str = \"true\";\n int i = 0;\n boolean parsing_done = false;\n boolean pattern_found = false;\n boolean wrong_pattern_found = false;\n \n if( Character.isLetterOrDigit(str.charAt(0)))\n {\n wrong_pattern_found = true;\n }\n do\n {\n if( str.length() < 3 )\n {\n parsing_done = true;\n }\n else\n {\n int last_index = str.length() - 1;\n if( i + 2 == last_index )\n {\n parsing_done = true;\n //pattern_found = false;\n //System.out.print(\"Check of last index\" + i + last_index ); \n next_char = str.charAt(i+2);\n curr_char = str.charAt(i+1);\n prev_char = str.charAt(i);\n }\n else if( i+2 > last_index )\n {\n parsing_done = true;\n } //pattern_found = false;\n else\n {\n next_char = str.charAt(i+2);\n curr_char = str.charAt(i+1);\n prev_char = str.charAt(i);\n }\n \n if(Character.isLetterOrDigit(curr_char))\n {\n if(prev_char == '+' && next_char == '+')\n {\n i++;\n pattern_found = true;\n }\n else\n {\n wrong_pattern_found = true;\n parsing_done = true;\n }\n }\n else\n {\n i++;\n }\n }\n } while( !parsing_done );\n \n if(wrong_pattern_found )\n {\n out_str = \"false\";\n } \n else if( pattern_found )\n out_str = \"true\";\n else\n out_str = \"false\";\n \n return out_str;\n \n }", "public char findFirstNonRepeatingCharacter(String str) {\n\t\tchar nonRepeated = ' ';\n\t\tif (null == str || str.isEmpty())\n\t\t\treturn nonRepeated;\n\t\tint count[] = new int[256];\n\t\tfor (char ch : str.toCharArray()) {\n\t\t\tcount[ch]++;\n\t\t}\n\n\t\tfor (char ch : str.toCharArray()) {\n\t\t\tif (count[ch] == 1) {\n\t\t\t\treturn ch;\n\t\t\t}\n\t\t}\n\n\t\treturn nonRepeated;\n\t}", "private boolean becomesConsecutiveSameVowelsAfterChanging\n (String word, StringBuilder sb, int i, char c, char randomVowel) {\n return\n // check the next character\n (i + 1 < word.length() && isVowel(word.charAt(i + 1)) &&\n word.charAt(i + 1) != c && randomVowel == word.charAt(i + 1)) ||\n // check the previous character\n (i - 1 >= 0 && isVowel(word.charAt(i - 1)) &&\n word.charAt(i - 1) != c && randomVowel == sb.charAt(i - 1));\n }", "private boolean tailOfCellMatches(int index, String toMatch) {\n int cellOffset = index - toMatch.length();\n if (cellOffset < lineMark) {\n return false;\n }\n // Scan backwards to see if characters before matches. Start at character before current.\n for (int i = toMatch.length() - 2; i >= 0; i--) {\n if (toMatch.charAt(i) != buffer[cellOffset + i])\n return false;\n }\n return true;\n }", "private void findMatch()\n {\n if (this.matchLen > 0) \n {\n this.matchLen += ((this.matchLen - MAX_LENGTH) >>> 31);\n this.matchPos++;\n } \n else \n {\n // Retrieve match position\n this.matchPos = this.hashes[this.hash];\n\n // Detect match\n if ((this.matchPos != 0) && (this.pos - this.matchPos <= MASK2))\n {\n int r = this.matchLen + 1;\n\n while ((r <= MAX_LENGTH) && (this.buffer[(this.pos-r) & MASK2] == this.buffer[(this.matchPos-r) & MASK2])) \n r++;\n\n this.matchLen = r - 1;\n }\n } \n }", "protected int findBytes(ByteChunk bc, byte[] b) {\n\n byte first = b[0];\n byte[] buff = bc.getBuffer();\n int start = bc.getStart();\n int end = bc.getEnd();\n\n // Look for first char \n int srcEnd = b.length;\n\n for (int i = start; i <= (end - srcEnd); i++) {\n if (Ascii.toLower(buff[i]) != first) continue;\n // found first char, now look for a match\n int myPos = i+1;\n for (int srcPos = 1; srcPos < srcEnd; ) {\n if (Ascii.toLower(buff[myPos++]) != b[srcPos++])\n break;\n if (srcPos == srcEnd) return i - start; // found it\n }\n }\n return -1;\n }", "static void findFirstNonRepeating()\n\t{\n\t\tList<Character> inDLL =new ArrayList<Character>();\n\t\t\n\t\t// repeated[x] is true if x is repeated two or more times.\n\t\t// If x is not seen so far or x is seen only once. then \n\t\t// repeated[x] is false\n\t\tboolean[] repeated =new boolean[MAX_CHAR];\n\t\t\n\t\t// Let us consider following stream and see the process\n\t\tString stream = \"geeksforgeeksandgeeksquizfor\";\n\t\tfor (int i=0;i < stream.length();i++)\n\t\t{\n\t\t\tchar x = stream.charAt(i);\n\t\t\tSystem.out.println(\"Reading \"+ x +\" from stream n\");\n\t\t\t\n\t\t\t// We process this character only if it has not occurred\n\t\t\t// or occurred only once. repeated[x] is true if x is \n\t\t\t// repeated twice or more.s\n\t\t\tif(!repeated[x])\n\t\t\t{\n\t\t\t\t// If the character is not in DLL, then add this at \n\t\t\t\t// the end of DLL.\n\t\t\t\tif(!(inDLL.contains(x)))\n\t\t\t\t{\n\t\t\t\t\tinDLL.add(x);\n\t\t\t\t}\n\t\t\t\telse // Otherwise remove this character from DLL\n\t\t\t\t{\n\t\t\t\t\tinDLL.remove((Character)x);\n\t\t\t\t\trepeated[x] = true; // Also mark it as repeated\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Print the current first non-repeating character from\n\t\t\t// stream\n\t\t\tif(inDLL.size() != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"First non-repeating character so far is \");\n\t\t\t\tSystem.out.println(inDLL.get(0));\n\t\t\t}\n\t\t} \n\t}", "public void testNextChar() {\n System.out.println(\"nextChar\");\n BufferedCharSequence instance = null;\n char expResult = ' ';\n char result = instance.nextChar();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static char nextChar (Scanner s) throws NullPointerException {\n return s.findWithinHorizon(DOT, 1).charAt(0);\n }", "private static int indexOfFirstDifferentChar(@NotNull CharSequence s1, int start1, @NotNull String s2, int start2) {\n boolean ignoreCase = !SystemInfo.isFileSystemCaseSensitive;\n int len1 = s1.length();\n int len2 = s2.length();\n while (start1 < len1 && start2 < len2) {\n char c1 = s1.charAt(start1);\n char c2 = s2.charAt(start2);\n if (!StringUtil.charsMatch(c1, c2, ignoreCase)) {\n return start1;\n }\n start1++;\n start2++;\n }\n return start1;\n }", "public char findFirstUniqueCharacter (String string) { // O(n*n)\n for (int i = 0; i < string.length(); i++) {\n char currentChar = string.charAt(i);\n\n if (i == string.lastIndexOf(currentChar)) {\n return currentChar;\n }\n }\n\n return '\\n';\n }", "@Test\n\tpublic void test61() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//bug 10\n\t\tfor(int i =0;i<200;i++) {\n\t\t\tboolean dummy = RegExpMatcher.matches(String.valueOf(i), \"([0-9])+\");\n\t\t\tif(!dummy) {\n\t\t\t\t//System.err.print(i);\n \t\t\t\tassertTrue(dummy);\t\n\t\t\t\t}\n\t\t\telse {\n\t\t\t\t//System.out.println(\"no bug on index \"+i);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"hello\");\n\t\t//assertTrue(RegExpMatcher.matches(\"\", \"([0-9])+\"));\n\t}", "public static char scanChar(String s) {\n\t\tCharacter key = null;\n\t\tMap<Character, String> mapping = new HashMap<>();\n\t\tfor (char c = 'A'; c <= '?'; c++) {\n\t\t\tmapping.put(c, AsciiArt.printChar(c));\n\t\t}\n\n\t\tfor (Map.Entry entry : mapping.entrySet()) {\n\t\t\tif (s.equals(entry.getValue())) {\n\t\t\t\tkey = (char) entry.getKey();\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tkey = '?';\n\t\t\t}\n\t\t}\n\n\t\treturn key;\n\n\t}", "static boolean gobble(String p, Scanner s){\r\n\tif (s.hasNext(p)) { s.next(); return true;}\r\n\telse { return false; }\r\n }", "private int findCharacter(char ch, String inputString, int currentIdx) {\n if (inputString.isEmpty()) {\n return -1;\n }\n return inputString.charAt(0) == ch ? currentIdx : findCharacter(ch, inputString.substring(1), ++currentIdx);\n }", "private char playerGuess(){\r\n System.out.println(\"\\nEnter your guess: \");\r\n guess = input.next();\r\n if (guess.matches(\"[a-zA-z]*$\") && guess.length() == 1){\r\n if(guesses.contains(guess.charAt(0))){\r\n System.out.println(\"You already guessed this character!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n } else {\r\n System.out.println(\"Invalid guess! Try again!\");\r\n playerGuess();\r\n }\r\n return Character.toLowerCase(guess.charAt(0));\r\n }", "private boolean isMatch0(String s, int si, String p, int pi) {\n\t\tif (si >= s.length()) return pi <= p.length();\n\t\tif (pi >= p.length()) return false;\n\t\t// if (cache[si][pi] != -1) return cache[si][pi] == 1;\n\n\t\tchar pattern = p.charAt(pi);\n\t\tboolean result;\n\n\t\tif (pattern == '.') {\n\t\t\tresult = isMatch0(s, si + 1, p, pi + 1);\n\t\t} else if (pattern == '*') {\n\t\t\tboolean skip = isMatch0(s, si + 1, p, pi + 1);\n\t\t\tboolean skipZero = isMatch0(s, si + 1, p, pi);\n\t\t\tresult = skip || skipZero;\n\t\t} else {\n\t\t\tresult = pattern == s.charAt(si)\n\t\t\t\t\t? isMatch0(s, si + 1, p, pi + 1)\n\t\t\t\t\t: isMatch0(s, si, p, pi + 1);\n\t\t}\n\n\t\t// cache[si][pi] = result ? 1 : 0;\n\t\treturn result;\n\t}", "private static boolean findCharInWord(String word, char charToFind) {\n boolean found=false;\n\n for (char c : word.toCharArray()) {\n if (c == charToFind) {\n found = true;\n break;\n }\n }\n return found;\n }", "private void reduceIfPossible() {\n int tmpBegin = matchStart + 1;\n\n while (tmpBegin < matchEnd) {\n int tmpState = automaton.getInitialState();\n for (int i = tmpBegin; i < matchEnd; i += 1) {\n final int tmpNewState = automaton.step(tmpState, chars.charAt(i));\n if (tmpNewState == -1) {\n return;\n } else if (automaton.isAccept(tmpNewState)) {\n setMatch(tmpBegin, matchEnd);\n break;\n }\n tmpState = tmpNewState;\n }\n tmpBegin += 1;\n }\n }", "public int findSubstringInWraproundString1(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n int pLength = p.length();\n // keep track of the number of consecutive letters for each substrings which starts from a...z\n int[] consecutiveNumberFrom = new int[26]; \n consecutiveNumberFrom[p.charAt(0) - 'a'] = 1;\n // keep track of the number of legacy consecutive letters\n int[] consecutiveCount = new int[pLength];\n consecutiveCount[0] = 1;\n int result = 1;\n for(int i = 1; i < pLength; i++) {\n consecutiveCount[i] = isConsecutive(p.charAt(i - 1), p.charAt(i))\n ? consecutiveCount[i - 1] + 1\n : 1;\n for(int j = i - consecutiveCount[i] + 1; j <= i; j++) {\n if(consecutiveNumberFrom[p.charAt(j) - 'a'] < i - j + 1) {\n result++;\n consecutiveNumberFrom[p.charAt(j) - 'a']++;\n } else {\n break;\n }\n }\n }\n return result;\n }", "@Test\n public void repeatedSubstringPattern() {\n assertTrue(new Solution1().repeatedSubstringPattern(\"abcabcabcabc\"));\n }", "private boolean detectRepeat(String substring) {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tchar actual=substring.charAt(i);\n\t\t\t\n\t\t\tint j=i+1;\n\t\t\t//Los anteriores ya se han comprobado\n\t\t\tfor (; j < substring.length() && actual!=substring.charAt(j) ; j++);\n\t\t\t\n\t\t\tif (j<substring.length()) return true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\n public long resultPart2() throws Exception {\n Scanner sc = inputScanner();\n\n int valid = 0;\n\n while(sc.hasNextLine()) {\n StringBuilder line = new StringBuilder(sc.nextLine());\n \n int a = Integer.parseInt(line.substring(0, line.indexOf(\"-\")));\n int b = Integer.parseInt(line.substring(line.indexOf(\"-\") + 1, line.indexOf(\" \")));\n line.delete(0, line.indexOf(\" \") + 1);\n\n char c = line.charAt(0);\n line.delete(0, line.indexOf(\" \")); // No +1 means first character is automatically '1'\n \n if(line.length() <= a) continue;\n if(line.charAt(a) == c) {\n if(line.length() <= b || line.charAt(b) != c) valid++;\n }\n else if(line.length() > b && line.charAt(b) == c) valid++;\n }\n\n return valid;\n }", "private boolean isMatch(char[] s, char[] p, int ps, int pp) {\n\t\t// int ps = s.length;\n\t\t// int pp = p.length;\n\t\tif (dp[ps][pp] == 1) {\n\t\t\treturn true;\n\t\t}\n\t\tif (dp[ps][pp] == 2) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (s.length - ps == 0) {\n\t\t\tif (p == null || p.length - pp == 0) {\n\t\t\t\tdp[ps][pp] = 1;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (p[0 + pp] == '*') {\n\t\t\t\tboolean result = isMatch(s, p, ps, pp + 1);\n\t\t\t\tdp[ps][pp] = get(result);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdp[ps][pp] = 2;\n\t\t\treturn false;\n\t\t}\n\t\tif (p == null || p.length - pp == 0) {\n\t\t\tdp[ps][pp] = 2;\n\t\t\treturn false;\n\t\t}\n\t\tif (s[ps] == p[pp] || p[pp] == '?') {\n\t\t\tboolean result = isMatch(s, p, ps + 1, pp + 1);\n\t\t\tdp[ps][pp] = get(result);\n\t\t\treturn result;\n\t\t}\n\t\tif (p[pp] == '*') {\n\t\t\t// *=0,1,1+\n\t\t\tboolean result = isMatch(s, p, ps, pp + 1)\n\t\t\t\t\t|| isMatch(s, p, ps + 1, pp + 1)\n\t\t\t\t\t|| isMatch(s, p, ps + 1, pp);\n\t\t\tdp[ps][pp] = get(result);\n\t\t\treturn result;\n\t\t}\n\n\t\tdp[ps][pp] = 2;\n\t\treturn false;\n\t}", "private Token scanString(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tappendSubsequentString(buffer);\n\t\tLocatedChar ch = input.peek();\n\t\tif(ch.matchChar('\"')) {\n\t\t\tinput.next();\n\t\t\treturn StringToken.make(firstChar, buffer.toString());\n\t\t} else {\n\t\t\tlexicalError(ch, \"malformed string\");\n\t\t\treturn findNextToken();\n\t\t}\n\t}", "private int nextHangul(RuleBasedCollator collator, char ch)\n {\n char L = (char)(ch - HANGUL_SBASE_);\n\n // divide into pieces\n // do it in this order since some compilers can do % and / in one\n // operation\n char T = (char)(L % HANGUL_TCOUNT_);\n L /= HANGUL_TCOUNT_;\n char V = (char)(L % HANGUL_VCOUNT_);\n L /= HANGUL_VCOUNT_;\n\n // offset them\n L += HANGUL_LBASE_;\n V += HANGUL_VBASE_;\n T += HANGUL_TBASE_;\n\n // return the first CE, but first put the rest into the expansion\n // buffer\n m_CEBufferSize_ = 0;\n if (!m_collator_.m_isJamoSpecial_) { // FAST PATH\n m_CEBuffer_[m_CEBufferSize_ ++] =\n collator.m_trie_.getLeadValue(L);\n m_CEBuffer_[m_CEBufferSize_ ++] =\n collator.m_trie_.getLeadValue(V);\n\n if (T != HANGUL_TBASE_) {\n m_CEBuffer_[m_CEBufferSize_ ++] =\n collator.m_trie_.getLeadValue(T);\n }\n m_CEBufferOffset_ = 1;\n return m_CEBuffer_[0];\n }\n else {\n // Jamo is Special\n // Since Hanguls pass the FCD check, it is guaranteed that we\n // won't be in the normalization buffer if something like this\n // happens\n // Move Jamos into normalization buffer\n m_buffer_.append(L);\n m_buffer_.append(V);\n if (T != HANGUL_TBASE_) {\n m_buffer_.append(T);\n }\n m_bufferOffset_ = 0;\n m_FCDLimit_ = m_source_.getIndex();\n m_FCDStart_ = m_FCDLimit_ - 1;\n // Indicate where to continue in main input string after\n // exhausting the buffer\n return IGNORABLE;\n }\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint tc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t{\n\t\t\tString s=sc.next();\n\t\t\tchar ch[]=s.toCharArray();\n\t\t\tint first=-1;\n\t\t\tint last=-1;\n\t\t\tint crash=0;\n\t\t\tint d=0;\n\t\t\tfor(int i=0,j=ch.length;i<j-1;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='r'&&ch[i+1]=='l')\n\t\t\t\t{\n\t\t\t\t\tch[i]='d';\n\t\t\t\t\tch[i+1]='d';\n\t\t\t\t\tcrash+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='d')\n\t\t\t\t{\n\t\t\t\t\td+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(d==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(0);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tfirst=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(int i=ch.length-1;i>=0;i--)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tlast=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(first==last)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=first;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}else{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=last;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=first;i<=last;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]!='d')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void match(char c) throws TableFunctionMalformedException {\r\n\t\t\r\n\t\t//Debug.println(\"Matching \" + c + \" \");\r\n\t\tif (look != c)\r\n\t\t\texpected(\"\" + c);\r\n\t\tnextChar();\r\n\t\tskipWhite();\r\n\t}", "public boolean isMatch(String s, String p) {\n if(s == null || p == null){\n return false;\n }\n int pPoint = 0;\n int sPoint = 0;\n int starPoint =-1;\n int sMatch = 0;\n while(sPoint < s.length()){\n // there is no star, then we should match char by char\n if(pPoint < p.length() && (p.charAt(pPoint) == '?' || s.charAt(sPoint) == p.charAt(pPoint))){\n pPoint ++;\n sPoint ++;\n }else if( pPoint < p.length() && p.charAt(pPoint) == '*'){\n //if there is start, we mark the start position and pos in s\n // compare pPoint +1 and sPoint;\n starPoint = pPoint;\n sMatch = sPoint;\n pPoint++;\n }else if(starPoint != -1){\n // if there is a start already and there is mismatch between pPoint and sPoint\n // we use the * to match the sPoint\n // bring back the point to startPoint+1 for pPoint \n // sMatch ++\n pPoint = starPoint+1;\n sPoint = sMatch+1;\n sMatch ++;\n }else{\n return false;\n }\n }\n while(pPoint < p.length()){\n if(p.charAt(pPoint) != '*'){\n return false;\n }\n pPoint++;\n }\n return true;\n }", "private static int[] computeFailure(byte[] pattern) {\n int[] failure = new int[pattern.length];\n\n int j = 0;\n for (int i = 1; i < pattern.length; i++) {\n while (j > 0 && pattern[j] != pattern[i]) {\n j = failure[j - 1];\n }\n if (pattern[j] == pattern[i]) {\n j++;\n }\n failure[i] = j;\n }\n\n return failure;\n}", "private boolean SET(String s) {\r\n if (in >= input.length()) return false;\r\n int ch = input.charAt(in);\r\n boolean found = false;\r\n for (int i = 0; i < s.length() && ! found; i++) {\r\n if (ch == s.charAt(i)) found = true;\r\n }\r\n if (found) in++;\r\n return found;\r\n }", "public abstract boolean matches(char c);", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "public static String alexBrokenContest(String s){\n\t\tString[] names={\"Danil\", \"Olya\", \"Slava\", \"Ann\",\"Nikita\"};\n\t\tint count=0;\n\t\tfor (int i=0;i<5 ;i++)\n\t\t{\n\t\t\t\n\t\t\tint index = s.indexOf(name[i]);\n\t\t\twhile (index!=-1)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\tindex=s.indexOf(name[i],index+1);\n\t\t\t}\n\t\t}\n\t\tif(count==1)\n\t\t{\n\t\t\n\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse\n\t\t{\n\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }", "private static Boolean errorCheck(String Buffer){\n if(Buffer.matches(\"Y\")) return true;\n if(Buffer.matches(\"N\")) return false;\n screenClear(); //Clears the screen and applies an error message.\n return moreInput(); //Recursive repeat upon error.\n }", "public static char getInput(Scanner x, String y){ //adding method getInput #1 \n String input1=x.next(); //accepting user input\n while(true){ //while loop to keep running it back around to check for the character number\n while(input1.length()!=1){ //while loop that forces user to enter 1 int\n System.out.print(\"You should enter exactly one character- \"); //telling user they need to enter 1 character\n input1=x.next(); //accepting user input\n }//end of while loop for if user enter more than 1 input\n int i=0; //declaring int which will act as a sentinel \n char test; //declaring char \n while(i<y.length()){ //while loop that runs the number of times the length of the string is\n test=y.charAt(i); //making test equal to char method, to check each letter of string y\n if(test == input1.charAt(0)){//when the chars finally are equivalent\n return input1.charAt(0); //returns the value\n }//end of if statement \n i++; //counter to run the loop the length of the string\n }//end of while loop\n System.out.print(\"You should enter the right characters. try again- \"); //informing user that they did not enter the right input\n input1=x.next(); //accepting user input\n }//end of while loop\n }", "private boolean isMatch1(String s, int si, String p, int pi) {\n\t\t/*\n\t\t * If adding `si < s.length()` to `currentMatch`, rest of match will be done recursively.\n\t\tif (si >= s.length()) {\n\t\t\t// The rest of pattern should be ignorable,\n\t\t\t// which means every element has to be a pair with '*'.\n\t\t\twhile (pi < p.length()) {\n\t\t\t\tif (pi >= p.length() - 1 || p.charAt(pi + 1) != '*') return false;\n\t\t\t\tpi += 2;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t*/\n\t\tif (pi >= p.length()) return si >= s.length();\n\n\t\tboolean currentMatch = si < s.length() && (p.charAt(pi) == '.' || p.charAt(pi) == s.charAt(si));\n\n\t\t// Check next `si` if matched, stay in current `si` otherwise.\n\t\tif (pi < p.length() - 1 && p.charAt(pi + 1) == '*') {\n\t\t\treturn (currentMatch && (isMatch1(s, si + 1, p, pi + 2) || isMatch1(s, si + 1, p, pi)))\n\t\t\t\t\t|| isMatch1(s, si, p, pi + 2);\n\t\t} else {\n\t\t\treturn currentMatch && isMatch1(s, si + 1, p, pi + 1);\n\t\t}\n\t}", "private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}", "public void restart_lookahead() throws Exception {\r\n for (int i = 1; i < error_sync_size(); i++) {\r\n Symbol[] symbolArr = this.lookahead;\r\n symbolArr[i - 1] = symbolArr[i];\r\n }\r\n this.cur_token = scan();\r\n this.lookahead[error_sync_size() - 1] = this.cur_token;\r\n this.lookahead_pos = 0;\r\n }", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "public void repair () {\n WriteableByteArray whole = new WriteableByteArray ();\n WriteableByteArray piece = new WriteableByteArray ();\n int [] offsets = new int [sequences.size ()];\n for (int index = 0;index < commonSequence.length;index++) {\n byte b = commonSequence [index];\n int i = 0;\n for (byte [] sequence : sequences)\n if (sequence [index + offsets [i++]] != b) {\n CommonSequence commonPiece = new CommonSequence ();\n i = 0;\n for (byte [] s : sequences) {\n piece.reset ();\n for (;;) {\n byte c = s [index + offsets [i]];\n if (c == b)\n break;\n piece.write (c);\n offsets [i]++;\n }\n commonPiece.add (piece.toByteArray ());\n i++;\n }\n whole.write (commonPiece.getCommonSequence ());\n break;\n }\n // all sequences now coincide at b\n whole.write (b);\n }\n commonSequence = whole.toByteArray ();\n matched = false;\n throw new NotTestedException ();\n }", "public static char getCharacterGuess(Scanner inScanner, String word) {\n\t\tboolean flag = true;\n\t\tString guess;\n\t\tString ints = \"1 2 3 4 5 6 7 8 9\";\n\t\t\n\t\tdo {\n\t\t\tSystem.out.print(\"Please enter a character or enter 0 for a word guess: \");\n\t\t\tguess = inScanner.nextLine();\n\t\t\t\n\t\t\tif(guess.length() < 2 && (!ints.contains(guess)) && !guess.equals(\"0\")) {\n\t\t\t\tflag = false;\n\t\t\t}else if(guess.equals(\"0\")) {\n\t\t\t\tflag = false;\n\t\t\t}else if(ints.contains(guess)) {\n\t\t\t\tSystem.out.println(\"NOT INTS BRO\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Only one character please\");\n\t\t\t}\n\t\t}while(flag);\n\t\treturn guess.charAt(0);\n\t}", "private void findStartOfBlock () {\n int index = 0;\n blockEnded = false;\n blockStarted = false;\n while ((! blockStarted) && (! endOfText())) {\n String line = getNextLine();\n if (line.equals (getBlockStart())) {\n blockStarted = true;\n } // end if line contains block start string\n } // end while looking for start of block\n lineHasLabel = false;\n while ((! lineHasLabel) && (! endOfText())) {\n getNextLine();\n }\n }", "private boolean checkForResultStrings (byte ch) {\n\t\t\tboolean noneFound = true;\n\t\t\t\n\t\t\tfor (int k=0; k < resultStrings.length; k++) {\n\t\t\t\tif (!resultDetected[k]) {\n\t\t\t\t\t++resultIndexes[k];\n\t\t\t\t\tif (resultStrings[k][resultIndexes[k]] == ch) {\n\t\t\t\t\t\tif (resultIndexes[k]+1 == resultStrings[k].length) {\n\t\t\t\t\t\t\tresultDetected[k] = true;\n\t\t\t\t\t\t\tnoneFound = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tresultIndexes[k] = -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn noneFound;\n\t\t}", "int main()\n{\n string str1,str2;\n cin>>str1;\n while(str2!=\"####\"){\n \t\n cin>>str2;\n int len=str1.length();\n if(str1[len-1]==str2[0]){\n \tcout<<str1<<endl;\n }\n else{\n \tbreak;\n \t}\n str1=str2;\n }\n cout<<str1;\n}", "public void run() {\n\t\tString password = \"\";\n\t\tfor (char ch: charsToCheck) {\n\t\t\tString test = \"\";\n\t\t\ttest = test + ch;\n\t\t\tpassword = bruteForceSeachForPassword(test, pwLenLim);\n\t\t\tif (!password.equals(\"\")) {\n\t\t\t\tSystem.out.println(password);\n\t\t\t\tlatch.countDown();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tlatch.countDown();\n\t}", "@Nullable\n Set<String> findFileNamesMatchingIfCheap(char nextLetter, MinusculeMatcher matcher) {\n List<Pair<VirtualFile, String>> files = getMatchingRoots();\n Set<String> names = new HashSet<>();\n AtomicInteger counter = new AtomicInteger();\n BooleanSupplier tooMany = () -> counter.get() > 1000;\n for (Pair<VirtualFile, String> pair : files) {\n if (containsChar(pair.second, nextLetter) && matcher.matches(pair.second)) {\n names.add(pair.first.getName());\n } else {\n processProjectFilesUnder(pair.first, sub -> {\n counter.incrementAndGet();\n if (tooMany.getAsBoolean()) return false;\n\n String name = sub.getName();\n if (containsChar(name, nextLetter) && matcher.matches(name)) {\n names.add(name);\n }\n return true;\n });\n }\n }\n return tooMany.getAsBoolean() ? null : names;\n }", "private static boolean dfs(char[][] board, int r, int c) {\n if (r == 9)\n return true;\n\n // return here and line 57 is because you will backtrack to the very beginning once a solution is found\n if (c == 9)\n return dfs(board, r + 1, 0);\n\n if (board[r][c] == '.') {\n // try each number\n for (int k = 1; k <= 9; k++) {\n board[r][c] = Character.forDigit(k, 10);\n if (isValid(board, r, c)) {\n // when find the solution should return true to avoid any more backtrack search\n if (dfs(board, r, c + 1))\n return true;\n }\n board[r][c] = '.';\n }\n } else {\n return dfs(board, r, c + 1);\n }\n return false;\n }", "static int firstNonRepeating(String str) {\n getCharCountArray(str);\n int index = -1, i;\n\n for (i = 0; i < str.length(); i++) {\n if (count[str.charAt(i)] == 1) {\n index = i;\n break;\n }\n }\n\n return index;\n }", "private void checkChar(String s) {\n\n\t\t// When it is any digit, just add to queue\n\t\tif (s.matches(\"\\\\d\")) {\n\t\t\tqueue.add(s);\n\n\t\t} else if (s.matches(\"[(]\")) {\n\t\t\tstack.add(s);\n\n\t\t} else if (s.matches(\"[)]\")) {\n\t\t\temptyBracket();\n\n\t\t} else if (s.matches(\"[+-]\")) {\n\t\t\tif (stack.empty()) {\n\t\t\t\tstack.add(s);\n\n\t\t\t} else {\n\t\t\t\tplusMinus(s);\n\t\t\t}\n\n\t\t} else if (s.matches(\"[*/]\")) {\n\t\t\tif (stack.empty()) {\n\t\t\t\tstack.add(s);\n\n\t\t\t} else {\n\t\t\t\tmultiDiv(s);\n\t\t\t}\n\t\t} else if (s.matches(\"[\\\\^]\")) {\n\t\t\tpower(s);\n\t\t}\n\t}", "public static void keepGoing() {\n System.out.println(\"Would you like to continue? \");\n char contin= sc.next().charAt(0); \n }", "private boolean CHAR(char ch) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code != ch) return false;\r\n in += len;\r\n return true;\r\n }", "public void nestedForLoopStatementWithOnlyContinue() {\n FIRST_CHAR_LOOP:\n for (int a = 1; a <= 4; a++) {\n for (char x = 'a'; x <= 'c'; x++) {\n if (a == 2 || x == 'b') {\n continue; //FIRST_CHAR_LOOP;\n }\n System.out.print(\" \" + a + x); //1a 1c 3a 3c 4a 4c\n }\n }\n }", "public static boolean hasNextChar() {\n \t boolean result = scanner.hasNext();\n \t return result;\n }", "boolean checkWin() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n seq.next();\n in.next();\n if (!seq.hasNext() && !in.hasNext()) {\n return true;\n }\n }\n return false;\n }", "boolean hasChar();" ]
[ "0.58314073", "0.58118343", "0.56484497", "0.5524315", "0.5492865", "0.54667866", "0.54544795", "0.54438597", "0.54334134", "0.5428717", "0.54147935", "0.5379584", "0.5379553", "0.53753704", "0.5370773", "0.53529185", "0.5320795", "0.5298621", "0.5298306", "0.52974707", "0.52804273", "0.5251415", "0.5235876", "0.5234794", "0.52315724", "0.52053833", "0.52030957", "0.5201453", "0.5200824", "0.51961446", "0.51710105", "0.5155573", "0.5130353", "0.51067215", "0.5104764", "0.5092806", "0.5081459", "0.5080941", "0.5078668", "0.50734293", "0.5051989", "0.5027771", "0.5021887", "0.50211686", "0.49988595", "0.49810606", "0.49727595", "0.4955207", "0.49333802", "0.4919278", "0.4918902", "0.4907514", "0.4900877", "0.48826605", "0.48817843", "0.48665413", "0.48631245", "0.48606974", "0.48600912", "0.4854817", "0.48168245", "0.48103282", "0.47979012", "0.4793442", "0.47898865", "0.4789729", "0.47874215", "0.47757846", "0.47694054", "0.47693095", "0.47684076", "0.47668242", "0.47643563", "0.47638518", "0.4757636", "0.47512937", "0.4749623", "0.474302", "0.4738033", "0.47366157", "0.4735199", "0.47315603", "0.4731379", "0.47274652", "0.47181654", "0.47120407", "0.4708513", "0.47074953", "0.47072962", "0.47022325", "0.47018614", "0.46870285", "0.467946", "0.4679165", "0.4675527", "0.4675314", "0.4673049", "0.4670295", "0.46672353", "0.46620724" ]
0.5219874
25
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7249559", "0.7204226", "0.71981144", "0.7180145", "0.7110589", "0.70431244", "0.7041351", "0.70150685", "0.70118093", "0.69832", "0.6947845", "0.69419056", "0.6937257", "0.6920975", "0.6920975", "0.68938893", "0.68867826", "0.6878929", "0.6877472", "0.68656766", "0.68656766", "0.68656766", "0.68656766", "0.68553543", "0.6850232", "0.6822862", "0.68201447", "0.68163574", "0.68163574", "0.6816304", "0.6809227", "0.6803687", "0.6801118", "0.67946446", "0.67919034", "0.67913854", "0.6786644", "0.67618436", "0.6760987", "0.67516655", "0.67475504", "0.67475504", "0.6744612", "0.67433023", "0.6729379", "0.67267543", "0.67261547", "0.67261547", "0.6724336", "0.6714574", "0.67084044", "0.670811", "0.67026806", "0.6701955", "0.670018", "0.6697785", "0.66899645", "0.6687168", "0.6687168", "0.66860044", "0.66835976", "0.6682339", "0.668104", "0.6671387", "0.66706777", "0.6665407", "0.6659777", "0.6659777", "0.6659777", "0.6659032", "0.6658105", "0.6658105", "0.6658105", "0.66553104", "0.6654278", "0.6654054", "0.66521645", "0.6650613", "0.66495895", "0.6649238", "0.66490036", "0.6648245", "0.66481483", "0.6646514", "0.6646321", "0.6645122", "0.66418123", "0.6638334", "0.6636035", "0.6635416", "0.6635416", "0.6635416", "0.6635411", "0.66325295", "0.6631742", "0.66299105", "0.6629049", "0.6627932", "0.66237384", "0.662195", "0.662195" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041415", "0.7806607", "0.7766601", "0.7726997", "0.76317257", "0.7621966", "0.75851256", "0.753119", "0.74884796", "0.7458151", "0.7458151", "0.74387676", "0.74214053", "0.74029565", "0.73919135", "0.73871326", "0.73794", "0.7370643", "0.73621583", "0.7356208", "0.7345783", "0.7341943", "0.733115", "0.7328927", "0.73257554", "0.73189676", "0.7316933", "0.7313741", "0.73044765", "0.73044765", "0.73017406", "0.72984296", "0.7293598", "0.72868764", "0.7283625", "0.72812", "0.72790325", "0.72601235", "0.72601235", "0.72601235", "0.726", "0.72597545", "0.7250291", "0.722366", "0.7219852", "0.7217548", "0.72046524", "0.72002363", "0.7200124", "0.7193751", "0.7185536", "0.71782476", "0.7169073", "0.7167765", "0.7154139", "0.7154099", "0.71364677", "0.71351755", "0.71351755", "0.71295893", "0.7129332", "0.7124457", "0.7123666", "0.7123573", "0.71225196", "0.7117677", "0.71174735", "0.71174735", "0.71174735", "0.71174735", "0.71171963", "0.71166885", "0.7115195", "0.7112494", "0.7110009", "0.7109127", "0.7106141", "0.7100222", "0.70987993", "0.709595", "0.70940995", "0.70940995", "0.7086748", "0.70822", "0.7081194", "0.7080481", "0.70739055", "0.706876", "0.7062314", "0.7061378", "0.7060552", "0.70518035", "0.7037881", "0.7037881", "0.70362896", "0.7035929", "0.7035929", "0.7033175", "0.7030856", "0.70298165", "0.70195323" ]
0.0
-1
I was getting NullPointerExceptions that were crashing the program It is okay for the program to get one, I just don't want it to crash the program To fix the program crashing, I add a try/catch that keeps the program running when there is a NullPointerException if there is a null pointer exception, ignore it
@Override public void run() { try{ // reset all the activity when the start button is pushed // this is needed because the service is started upon the app being opened if(bool2 == true){ bool2 = false; myService.setBlank(); } time1.setText((myService.getTime1())); activity1.setText((myService.getActivity1())); time2.setText((myService.getTime2())); activity2.setText((myService.getActivity2())); time3.setText((myService.getTime3())); activity3.setText((myService.getActivity3())); time4.setText((myService.getTime4())); activity4.setText((myService.getActivity4())); time5.setText((myService.getTime5())); activity5.setText((myService.getActivity5())); time6.setText((myService.getTime6())); activity6.setText((myService.getActivity6())); time7.setText((myService.getTime7())); activity7.setText((myService.getActivity7())); time8.setText((myService.getTime8())); activity8.setText((myService.getActivity8())); time9.setText((myService.getTime9())); activity9.setText((myService.getActivity9())); time10.setText((myService.getTime10())); activity10.setText((myService.getActivity10())); // every time a new activity is added to the UI, it will be written to // the external storage on a new line String externalStorage = Environment.getExternalStorageState(); // this checks to see if external storage is available // if it is, then write to it if (Environment.MEDIA_MOUNTED.equals(externalStorage)) { // will create a file in the documents folder File root = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS); // will call the file assignment.txt File file = new File(root, "assignment1.txt"); // this is a helper for the following if statement // see the explanation for the if statement if(bool3 == false){ tmp = myService.getSeconds(); bool3 = true; } // this if statements makes sure that content is written to the file every 2 minutes // without it, the same content would be written multiple during the minutes, // instead of just once at the 2 minute mark if ((myService.getSeconds() % myService.getTimeCheck()) == 0 && tmp != myService.getSeconds()){ try{ // the content that will be written to the String content = myService.getTime1() + " " + myService.getActivity1() + "\n"; // this is the code that writes the content to the file on the // external device FileOutputStream fileOutputStream = new FileOutputStream(file, true); fileOutputStream.write(content.getBytes()); fileOutputStream.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } // helper variable, see above bool3 = false; } } // if external storage is not available, write this Toast message else{ Toast toast = Toast.makeText(getApplicationContext(), "External Storage Is Not Available", Toast.LENGTH_LONG); toast.show(); } } //do nothing and keep running the program catch (NullPointerException e){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo5385r() {\n throw null;\n }", "public static void main(String [] args) throws NullPointerException, ClassNotFoundException, IOException{\n\t\t\t//window console\n\t System.out.println(\"Handling the same exception\");\n\t //In here calling the check method.\n\t checkException(100);\n\n\t}", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "static void fun() \n\t { \n\t try\n\t { \n\t throw new NullPointerException(\"demo\"); \n\t } \n\t catch(NullPointerException e) \n\t { \n\t System.out.println(\"Caught inside fun().\"); \n\t throw e; // rethrowing the exception \n\t } \n\t }", "public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public static void main(String[] args) {\n ObjectsNullCheckDemo demo = new ObjectsNullCheckDemo(\"John\", \"Doe\");\n System.out.println(\"demo = \" + demo);\n\n try {\n // This line produce a NullPointerException\n ObjectsNullCheckDemo demo1 = new ObjectsNullCheckDemo(\"Alice\", null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n String name = null;\n try {\n // The line below will throw java.lang.NullPointerException.\n Objects.requireNonNull(name);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void checkForCrashes()\r\n {\r\n ReportManager.checkForCrashes(this);\r\n }", "protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }", "public static void main( String[] args ) {\n\t\tdevidebyzero();\n\t\tdevidebyzero_mitigation();\n\t\t//bufferoverflow\n\t\tbufferoverflowExample();\n\t\tbufferoverflowExamplemitigation();\n\t\t//nullpointerException\n\t\tNPEEXampleTest npe = new NPEEXampleTest();\n\t\tnpe.getName();\n\t\n\t\t//mitigation strategy for NPE\n\t\ttry {\n\t\t\t// Example 3: NPE will be thrown if you are trying to access null Object during Class Initialization\n\t\t\tNPEEXampleTest npe1 = new NPEEXampleTest();\n\t\t\tnpe.getName();\n\t\t} catch (NullPointerException npe3) {\n\t\t\tSystem.out.println(\"\\n Exception in NPEEXampleTest()\");\n\t\t\tnpe3.printStackTrace();\n\t\t}\n\n}", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n String[] stringArray0 = new String[3];\n stringArray0[2] = \"\";\n stringArray0[2] = \"one\";\n // Undeclared exception!\n try { \n JSJshop.main(stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.mock.java.io.MockFileInputStream\", e);\n }\n }", "public void crash() {\n\t\tgetPersistenceStrategy().crash();\n\t}", "public void uncaughtException(java.lang.Thread r11, java.lang.Throwable r12) {\n /*\n r10 = this;\n setJavaThreadCrashed()\n boolean r0 = com.zipow.videobox.mainboard.Mainboard.isNativeCrashed()\n if (r0 == 0) goto L_0x0011\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x0010\n r0.uncaughtException(r11, r12)\n L_0x0010:\n return\n L_0x0011:\n boolean r0 = r12 instanceof java.lang.UnsatisfiedLinkError\n if (r0 != 0) goto L_0x028e\n boolean r0 = r12 instanceof android.database.sqlite.SQLiteDiskIOException\n if (r0 == 0) goto L_0x001b\n goto L_0x028e\n L_0x001b:\n com.zipow.videobox.VideoBoxApplication r0 = com.zipow.videobox.VideoBoxApplication.getInstance()\n boolean r0 = r0.isConfApp()\n if (r0 == 0) goto L_0x0052\n us.zoom.androidlib.app.ZMActivity r0 = p021us.zoom.androidlib.app.ZMActivity.getFrontActivity()\n com.zipow.videobox.confapp.ConfUI r1 = com.zipow.videobox.confapp.ConfUI.getInstance()\n boolean r1 = r1.isLeaveComplete()\n if (r1 != 0) goto L_0x0043\n boolean r1 = r0 instanceof com.zipow.videobox.ConfActivity\n if (r1 == 0) goto L_0x0052\n boolean r1 = r0.isFinishing()\n if (r1 != 0) goto L_0x0043\n boolean r0 = p021us.zoom.androidlib.app.ZMActivity.isActivityDestroyed(r0)\n if (r0 == 0) goto L_0x0052\n L_0x0043:\n java.lang.String r11 = TAG\n java.lang.String r0 = \"\"\n android.util.Log.e(r11, r0, r12)\n com.zipow.videobox.VideoBoxApplication r11 = com.zipow.videobox.VideoBoxApplication.getInstance()\n r11.stopConfService()\n return\n L_0x0052:\n int r0 = android.os.Process.myPid()\n com.zipow.videobox.VideoBoxApplication r1 = com.zipow.videobox.VideoBoxApplication.getInstance()\n boolean r1 = r1.isConfApp()\n if (r1 == 0) goto L_0x0063\n java.lang.String r1 = \"zVideoApp\"\n goto L_0x0065\n L_0x0063:\n java.lang.String r1 = \"zChatApp\"\n L_0x0065:\n com.zipow.videobox.VideoBoxApplication r2 = com.zipow.videobox.VideoBoxApplication.getInstance()\n boolean r2 = com.zipow.videobox.util.ZMUtils.isItuneApp(r2)\n if (r2 == 0) goto L_0x0080\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r2.append(r1)\n java.lang.String r1 = \"-intune\"\n r2.append(r1)\n java.lang.String r1 = r2.toString()\n L_0x0080:\n java.lang.String r2 = \"java-\"\n boolean r3 = r12 instanceof com.zipow.videobox.stabilility.NativeCrashException\n if (r3 == 0) goto L_0x0088\n java.lang.String r2 = \"native-zmdump-\"\n L_0x0088:\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n java.lang.String r5 = \"crash-\"\n r4.append(r5)\n r4.append(r2)\n java.lang.String r4 = r4.toString()\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n java.lang.String r6 = \"-\"\n r5.append(r6)\n r5.append(r1)\n java.lang.String r1 = \"-\"\n r5.append(r1)\n r5.append(r0)\n java.lang.String r0 = \".log\"\n r5.append(r0)\n java.lang.String r0 = r5.toString()\n r1 = 5\n long r5 = java.lang.System.currentTimeMillis()\n java.io.File r0 = com.zipow.videobox.util.LogUtil.getNewLogFile(r4, r0, r1, r5)\n if (r0 != 0) goto L_0x00ca\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x00c9\n r0.uncaughtException(r11, r12)\n L_0x00c9:\n return\n L_0x00ca:\n r1 = 0\n boolean r4 = com.zipow.cmmlib.AppContext.BAASecurity_IsEnabled() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n com.zipow.videobox.VideoBoxApplication r5 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n boolean r5 = r5.isConfApp() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n if (r5 == 0) goto L_0x00de\n com.zipow.videobox.stabilility.JavaCrashHandler$1 r5 = new com.zipow.videobox.stabilility.JavaCrashHandler$1 // Catch:{ Exception -> 0x0192, all -> 0x018e }\n r5.<init>() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n L_0x00de:\n java.io.PrintStream r5 = new java.io.PrintStream // Catch:{ Exception -> 0x0192, all -> 0x018e }\n r5.<init>(r0) // Catch:{ Exception -> 0x0192, all -> 0x018e }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r6.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = \"version: \"\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n com.zipow.videobox.VideoBoxApplication r7 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = r7.getVersionName() // Catch:{ Exception -> 0x0193 }\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r6.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = \"Kernel Version: \"\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n com.zipow.videobox.VideoBoxApplication r7 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = r7.getKernelVersion() // Catch:{ Exception -> 0x0193 }\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r6.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = \"OS: \"\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = com.zipow.videobox.ptapp.SystemInfoHelper.getOSInfo() // Catch:{ Exception -> 0x0193 }\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r6) // Catch:{ Exception -> 0x0193 }\n if (r4 != 0) goto L_0x014d\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r4.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = \"Hardware: \"\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = com.zipow.videobox.ptapp.SystemInfoHelper.getHardwareInfo() // Catch:{ Exception -> 0x0193 }\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r4 = r4.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r4) // Catch:{ Exception -> 0x0193 }\n L_0x014d:\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r4.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = \"IsProcessAtFront: \"\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n com.zipow.videobox.VideoBoxApplication r6 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0193 }\n boolean r6 = r6.isAtFront() // Catch:{ Exception -> 0x0193 }\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r4 = r4.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r4) // Catch:{ Exception -> 0x0193 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r4.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = \"IsRooted: \"\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n boolean r6 = p021us.zoom.androidlib.util.RootCheckUtils.isRooted() // Catch:{ Exception -> 0x0193 }\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r4 = r4.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r4) // Catch:{ Exception -> 0x0193 }\n r5.println() // Catch:{ Exception -> 0x0193 }\n r12.printStackTrace(r5) // Catch:{ Exception -> 0x0193 }\n r5.flush() // Catch:{ Exception -> 0x019f }\n r5.close() // Catch:{ Exception -> 0x019f }\n goto L_0x019f\n L_0x018e:\n r11 = move-exception\n r5 = r1\n goto L_0x0285\n L_0x0192:\n r5 = r1\n L_0x0193:\n r0.delete() // Catch:{ all -> 0x0284 }\n if (r5 == 0) goto L_0x019e\n r5.flush() // Catch:{ Exception -> 0x019e }\n r5.close() // Catch:{ Exception -> 0x019e }\n L_0x019e:\n r0 = r1\n L_0x019f:\n if (r3 != 0) goto L_0x0227\n us.zoom.androidlib.app.ZMActivity r4 = p021us.zoom.androidlib.app.ZMActivity.getFrontActivity()\n if (r4 == 0) goto L_0x0227\n java.lang.String r5 = \"Fragment\"\n java.lang.String[] r5 = new java.lang.String[]{r5}\n if (r0 == 0) goto L_0x0212\n java.io.FileWriter r6 = new java.io.FileWriter // Catch:{ IOException -> 0x01fe, all -> 0x01e6 }\n r7 = 1\n r6.<init>(r0, r7) // Catch:{ IOException -> 0x01fe, all -> 0x01e6 }\n java.io.BufferedWriter r7 = new java.io.BufferedWriter // Catch:{ IOException -> 0x01e4, all -> 0x01e1 }\n r7.<init>(r6) // Catch:{ IOException -> 0x01e4, all -> 0x01e1 }\n java.io.PrintWriter r8 = new java.io.PrintWriter // Catch:{ IOException -> 0x01df, all -> 0x01dc }\n r8.<init>(r7) // Catch:{ IOException -> 0x01df, all -> 0x01dc }\n r8.println() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n androidx.fragment.app.FragmentManager r1 = r4.getSupportFragmentManager() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n if (r1 == 0) goto L_0x01d6\n androidx.fragment.app.FragmentManager r1 = r4.getSupportFragmentManager() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n java.lang.String r4 = \"\"\n java.io.FileDescriptor r9 = new java.io.FileDescriptor // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n r9.<init>() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n r1.dump(r4, r9, r8, r5) // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n L_0x01d6:\n r1 = r6\n goto L_0x0214\n L_0x01d8:\n r11 = move-exception\n goto L_0x01ea\n L_0x01da:\n goto L_0x0201\n L_0x01dc:\n r11 = move-exception\n r8 = r1\n goto L_0x01ea\n L_0x01df:\n r8 = r1\n goto L_0x0201\n L_0x01e1:\n r11 = move-exception\n r7 = r1\n goto L_0x01e9\n L_0x01e4:\n r7 = r1\n goto L_0x0200\n L_0x01e6:\n r11 = move-exception\n r6 = r1\n r7 = r6\n L_0x01e9:\n r8 = r7\n L_0x01ea:\n if (r6 == 0) goto L_0x01f1\n r6.close() // Catch:{ IOException -> 0x01f0 }\n goto L_0x01f1\n L_0x01f0:\n L_0x01f1:\n if (r7 == 0) goto L_0x01f8\n r7.close() // Catch:{ IOException -> 0x01f7 }\n goto L_0x01f8\n L_0x01f7:\n L_0x01f8:\n if (r8 == 0) goto L_0x01fd\n r8.close()\n L_0x01fd:\n throw r11\n L_0x01fe:\n r6 = r1\n r7 = r6\n L_0x0200:\n r8 = r7\n L_0x0201:\n if (r6 == 0) goto L_0x0208\n r6.close() // Catch:{ IOException -> 0x0207 }\n goto L_0x0208\n L_0x0207:\n L_0x0208:\n if (r7 == 0) goto L_0x020f\n r7.close() // Catch:{ IOException -> 0x020e }\n goto L_0x020f\n L_0x020e:\n L_0x020f:\n if (r8 == 0) goto L_0x0227\n goto L_0x0224\n L_0x0212:\n r7 = r1\n r8 = r7\n L_0x0214:\n if (r1 == 0) goto L_0x021b\n r1.close() // Catch:{ IOException -> 0x021a }\n goto L_0x021b\n L_0x021a:\n L_0x021b:\n if (r7 == 0) goto L_0x0222\n r7.close() // Catch:{ IOException -> 0x0221 }\n goto L_0x0222\n L_0x0221:\n L_0x0222:\n if (r8 == 0) goto L_0x0227\n L_0x0224:\n r8.close()\n L_0x0227:\n if (r0 == 0) goto L_0x0272\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r4 = com.zipow.cmmlib.AppUtil.getLogParentPath()\n r1.append(r4)\n java.lang.String r4 = \"/logs\"\n r1.append(r4)\n java.lang.String r1 = r1.toString()\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n java.lang.String r5 = \"crash-\"\n r4.append(r5)\n r4.append(r2)\n java.lang.String r2 = r4.toString()\n boolean r1 = com.zipow.videobox.util.LogUtil.isSameCrashReported(r1, r0, r2)\n if (r1 == 0) goto L_0x0272\n java.io.File r1 = new java.io.File\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = r0.getAbsolutePath()\n r2.append(r4)\n java.lang.String r4 = \".sent\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r1.<init>(r2)\n r0.renameTo(r1)\n L_0x0272:\n if (r3 == 0) goto L_0x027c\n com.zipow.videobox.VideoBoxApplication r11 = com.zipow.videobox.VideoBoxApplication.getInstance()\n r11.killCurrentProcess()\n goto L_0x0283\n L_0x027c:\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x0283\n r0.uncaughtException(r11, r12)\n L_0x0283:\n return\n L_0x0284:\n r11 = move-exception\n L_0x0285:\n if (r5 == 0) goto L_0x028d\n r5.flush() // Catch:{ Exception -> 0x028d }\n r5.close() // Catch:{ Exception -> 0x028d }\n L_0x028d:\n throw r11\n L_0x028e:\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x0295\n r0.uncaughtException(r11, r12)\n L_0x0295:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.zipow.videobox.stabilility.JavaCrashHandler.uncaughtException(java.lang.Thread, java.lang.Throwable):void\");\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBObjectListener.FetcherListener fBObjectListener_FetcherListener0 = null;\n FileSystemHandling.shouldAllThrowIOExceptions();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative(1433);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "public static void main(String[] args) {\n Calculator calculator=new Calculator();\r\n// try{\r\n// calculator=null;\r\n calculator.divide(10,0);\r\n// }\r\n// catch (ArithmeticException e){\r\n// System.out.println(\"Caught an arithmetic exception\");\r\n// }\r\n//// catch (NullPointerException e){\r\n//// System.out.println(\"Caught an null pointer exception\");\r\n//// }\r\n//// catch (RuntimeException e){\r\n//// System.out.println(\"Caught an runtime exception\");\r\n//// }\r\n// catch (Exception e){\r\n// System.out.println(\"Caught an exception\");\r\n// }\r\n }", "public void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n String[] stringArray0 = new String[3];\n stringArray0[2] = \"all\";\n // Undeclared exception!\n try { \n JSJshop.main(stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.mock.java.io.MockFileInputStream\", e);\n }\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n FileSystemHandling.shouldAllThrowIOExceptions();\n // Undeclared exception!\n try { \n fBCachedFetcher0.relative((-513));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n linkedList0.add((byte[][]) null);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n linkedList0.push((byte[][]) null);\n // Undeclared exception!\n try { \n fBCachedFetcher0.previous();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBCachedFetcher\", e);\n }\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private static NullPointerException m147578b(Throwable th) {\n NullPointerException nullPointerException = new NullPointerException(\"Actually not, but can't pass out an exception otherwise...\");\n nullPointerException.initCause(th);\n return nullPointerException;\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n // Undeclared exception!\n try { \n lovinsStemmer0.stem((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void checkForNullKey(String key) {\n if ( key == null ) {\n throw new NullPointerException();\n }\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n // Undeclared exception!\n try { \n lovinsStemmer0.stem((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void test37() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n try {\n String string0 = Evaluation.wekaStaticWrapper((Sourcable) decisionStump0, \"b0\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test05() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n // Undeclared exception!\n try { \n lovinsStemmer0.stemString((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test71() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n TableContainer tableContainer0 = new TableContainer(\"-KwE,kZ\");\n DefaultDBTable defaultDBTable1 = new DefaultDBTable();\n DBDataType.getInstance((-1717986917), \"%~-1t&Ncqx{&'OP~@\");\n tableContainer0.getSchema();\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n Integer integer1 = RawTransaction.LOCK_ESCALATE;\n SQLUtil.removeComments(\"/**/\");\n System.setCurrentTimeMillis(1722L);\n // Undeclared exception!\n try { \n SQLUtil.normalize((String) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayQueue object is corrupt.\");\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n JSJshop jSJshop0 = null;\n try {\n jSJshop0 = new JSJshop(\"%/GBcz_ue<[7{WjTV\", (JSTaskAtom) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSJshop\", e);\n }\n }", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n // Undeclared exception!\n try { \n lovinsStemmer0.stem((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n public void throwSystemException_NullPointer() {\n throw new NullPointerException(\"Testing ability to throw System Exceptions\");\n }", "@Test public void test_2() throws Exception {\n int v2439=run.Main.getAlphaConversion((java.lang.String)null);\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223207741\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat run.Main.getAlphaConversion(Main.java:74)\n YETI EXCEPTION - END**/ \n /** original locs: 4908 minimal locs: 1**/\n \n }", "@Test(timeout = 4000)\n public void test092() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"PHOTO_ASPECT_RATIO\", \"\", (Content) null, (-411), 2527.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-411), homeTexture0, (-411), homeTexture0, (-597), 1.5F);\n HomeTexture homeTexture1 = new HomeTexture(homeTexture0);\n // Undeclared exception!\n try { \n homeEnvironment0.setGroundTexture(homeTexture1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.eteks.sweethome3d.model.HomeTexture\", e);\n }\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void checkFrames() {\n\t\tif(tradeDetail == null){\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Test public void test_1() throws Exception {\n run.Main v1=new run.Main();\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223203386\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat run.Main.printBoard(Main.java:145)\n \tat run.Main.<init>(Main.java:20)\n YETI EXCEPTION - END**/ \n /** original locs: 2 minimal locs: 1**/\n \n }", "public static void main(String[] args) {\n\t\t\ttry {\r\n\t\t\t\tRuntiomException t = newRuntiom Eceprin,\r\n\t\t\t\t\t\tNullpertherExcetpion)();\r\n\t\t\tthrow e;\t\r\n\t\t}catch( NullPoiterporinter Eception e){\r\n\t\t\tSystem.out.println( \"Á¤¸®\");\r\n\t\t\t}\r\n\r\n}", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"V>[h-DH)?#s3lyhq.K\", (Content) null, 29, 29);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(252, homeTexture0, 12, homeTexture0, 12, 0.0F);\n HomeTexture homeTexture1 = new HomeTexture(homeTexture0);\n // Undeclared exception!\n try { \n homeEnvironment0.setSkyTexture(homeTexture1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.eteks.sweethome3d.model.HomeTexture\", e);\n }\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n try { \n Evaluation.wekaStaticWrapper((Sourcable) null, \"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n // Undeclared exception!\n try { \n lovinsStemmer0.stemString((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test369() throws Throwable {\n FileInput fileInput0 = new FileInput((Component) null, \"J]'z8)\", \"J]'z8)\");\n // Undeclared exception!\n try { \n fileInput0.dfn((Object) \"J]'z8)\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void throwSystemException_NullPointer() {\n throw new NullPointerException(\"Testing ability to throw System Exceptions\");\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n // Undeclared exception!\n try { \n lovinsStemmer0.stemString((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void inizia() throws Exception {\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n CostMatrix costMatrix0 = new CostMatrix(6);\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation((Instances) null, costMatrix0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder((Chromatogram) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // chromatogram can not be null\n //\n verifyException(\"org.jcvi.jillion.assembly.consed.phd.PhdBuilder\", e);\n }\n }", "public static void handleEmptyDetailException() {\n System.out.println(\"\\tSorry sir, you need to specify the details of the task.\");\n Duke.jarvis.printDivider();\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n JSJshop jSJshop0 = new JSJshop();\n JApplet jApplet0 = JSJshop.applet;\n // Undeclared exception!\n try { \n jSJshop0.getAppletURL(\"[\", (JApplet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSJshop\", e);\n }\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.normalize((String) null, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void test5() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1351,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test5\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n // Undeclared exception!\n try {\n IteratorUtils.arrayListIterator((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void handleNoMatchException() {\n System.out.println(\"\\tThere no task in the list that matches your search, sir.\");\n Duke.jarvis.printDivider();\n }", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.queryAndSimplify(\"eBTux<g'kc|{F(x_]e\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderNumber((StreamTokenizer) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.renderNumber((StreamTokenizer) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void run() {\n Toast.makeText(Pratisthan.this, \"Got Exception : see logcat \",Toast.LENGTH_SHORT).show();\n }", "public final void mo60610a(Exception exc) {\n FeedImageViewHolder.this.mLineProgressBar.mo74362b();\n }", "private void runApp() {\n\t\t//TODO: Run to see one exception. Trace the code to understand. \n\t\t// Then change to nums.txt to see the other exception. \n\t\t\n\t\tString inputFile = \"nums_wrongname.txt\"; \n\t\t//String inputFile = \"nums.txt\";\n\t\ttry {\n\t\t\tdouble average = computeAverageForFile(inputFile);\n\t\t\tSystem.out.println(\"Average: \" + average);\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.err.println(\"File \" + inputFile + \" not found. Exiting.\");\n\t\t} catch(IOException e) {\n\t\t\tSystem.err.println(\"Error closing file.\");\n\t\t} // end try-catch\t\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n contractDetails0.m_summary = null;\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.scannerData(1766, 2138851935, contractDetails0, (String) null, \"KXnN\", (String) null, \"updatePortfolio: \");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "private static void checkForNullValue(String value) {\n if ( value == null ) {\n throw new NullPointerException();\n }\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ErrorHandler errorHandler0 = ErrorHandler.getDefault();\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "public static void handleEmptyListException() {\n System.out.println(\"\\tYou do not have any pending task, sir.\");\n Duke.jarvis.printDivider();\n }", "public void fill() {\n throw null;\n }", "private void handleException(java.lang.Throwable exception) {\r\n\r\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\r\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\r\n\t// exception.printStackTrace(System.out);\r\n}", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n Frame frame0 = new Frame();\n EvoSuiteFile evoSuiteFile0 = null;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.toByteArray();\n ClassWriter classWriter1 = new ClassWriter(1048575);\n Frame frame1 = new Frame();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n Item item0 = classWriter0.newDouble((-1514));\n // Undeclared exception!\n try { \n frame1.execute((-181), 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }", "@Test(timeout = 4000)\n public void test283() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n form0.u();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private void handleException(java.lang.Throwable exception) {\n\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t// exception.printStackTrace(System.out);\n}", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n jSTerm0.add((Object) null);\n // Undeclared exception!\n try { \n jSTerm0.clonePF();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }", "private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.currentLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public static void main(String[] args) {\n\t\tString str1 = \"안녕하세요\";\n\t\tSystem.out.println(str1.charAt(0));\n\t\t// . : 접근 연산자(어딘가의 주소에 접근을 하겠다)\n\t\tString str2 = null;\n//\t\tSystem.out.println(str2.charAt(0));\n//\t\tunchecked error 발생 -> NullPointerException(컴파일은 되지만 실행 시점에서 예외 발생)\n\t\ttry {\n\t\tint [] arr = new int[30];\n\t\tarr[0] = 1;\n\t\tarr[10000] = 10; // java.lang.ArrayIndexOutOfBoundsException: 10000\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"에러 발생....\");\n\t\t\treturn; // return 코드가 있음에도 finally는 항상 실행된다.\n\t\t\t// Exception이 발생하면 프로그램이 종료되지 않고 이쪽으로 넘어옴.\n\t\t}finally {\n\t\t\tSystem.out.println(\"안녕하세요\");\n\t\t} // finally는 항상 실행이 된다.\n//\t\t[] : .와 같이 접근연산자 => NullPointerException발생 가능\n//\t\t말도 안되지만 컴파일 에러는 발생하지 않는다.\n//\t\texception코드가 발생할 떼 클래스명에 익숙해져야 한다.\n\t\t\n\t\tSystem.out.println(\"이후에 실행될 코드들\");\n\t}", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n try { \n evaluation0.evaluationForSingleInstance((double[]) null, (Instance) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Utils\", e);\n }\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n TextArea textArea0 = new TextArea((Component) null, (String) null, \"XYD6eL5K7VD|_+{7`{$\");\n // Undeclared exception!\n try { \n textArea0.strong((Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test274() throws Throwable {\n Form form0 = new Form(\"rqx^8<h<Qjl$<>8\");\n // Undeclared exception!\n try { \n form0.cite();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n String[] stringArray0 = new String[9];\n // Undeclared exception!\n try { \n SQLUtil.renderQuery((DBTable) null, stringArray0, stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private void handleException(java.lang.Throwable exception) {\n\t\tSystem.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t\texception.printStackTrace(System.out);\n\t}", "@Test(expected = NullPointerException.class)\n\tpublic void test_the_exception() throws Exception {\n\t\tTeacher t =new Teacher(NULL);\n\t\t\n\t\t\n\t}", "public final void run() {\n /*\n r7 = this;\n r1 = r7.zzasj;\n monitor-enter(r1);\n r0 = r7.zzasi;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zzasc;\t Catch:{ RemoteException -> 0x006e }\n if (r0 != 0) goto L_0x0034;\n L_0x000b:\n r0 = r7.zzasi;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zzgt();\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zzjg();\t Catch:{ RemoteException -> 0x006e }\n r2 = \"Failed to get user properties\";\n r3 = r7.zzagj;\t Catch:{ RemoteException -> 0x006e }\n r3 = com.google.android.gms.measurement.internal.zzas.zzbw(r3);\t Catch:{ RemoteException -> 0x006e }\n r4 = r7.zzads;\t Catch:{ RemoteException -> 0x006e }\n r5 = r7.zzadz;\t Catch:{ RemoteException -> 0x006e }\n r0.zzd(r2, r3, r4, r5);\t Catch:{ RemoteException -> 0x006e }\n r0 = r7.zzasj;\t Catch:{ RemoteException -> 0x006e }\n r2 = java.util.Collections.emptyList();\t Catch:{ RemoteException -> 0x006e }\n r0.set(r2);\t Catch:{ RemoteException -> 0x006e }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r0.notify();\t Catch:{ all -> 0x0059 }\n monitor-exit(r1);\t Catch:{ all -> 0x0059 }\n L_0x0033:\n return;\n L_0x0034:\n r2 = r7.zzagj;\t Catch:{ RemoteException -> 0x006e }\n r2 = android.text.TextUtils.isEmpty(r2);\t Catch:{ RemoteException -> 0x006e }\n if (r2 == 0) goto L_0x005c;\n L_0x003c:\n r2 = r7.zzasj;\t Catch:{ RemoteException -> 0x006e }\n r3 = r7.zzads;\t Catch:{ RemoteException -> 0x006e }\n r4 = r7.zzadz;\t Catch:{ RemoteException -> 0x006e }\n r5 = r7.zzaeg;\t Catch:{ RemoteException -> 0x006e }\n r6 = r7.zzaqk;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zza(r3, r4, r5, r6);\t Catch:{ RemoteException -> 0x006e }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006e }\n L_0x004d:\n r0 = r7.zzasi;\t Catch:{ RemoteException -> 0x006e }\n r0.zzcy();\t Catch:{ RemoteException -> 0x006e }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r0.notify();\t Catch:{ all -> 0x0059 }\n L_0x0057:\n monitor-exit(r1);\t Catch:{ all -> 0x0059 }\n goto L_0x0033;\n L_0x0059:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0059 }\n throw r0;\n L_0x005c:\n r2 = r7.zzasj;\t Catch:{ RemoteException -> 0x006e }\n r3 = r7.zzagj;\t Catch:{ RemoteException -> 0x006e }\n r4 = r7.zzads;\t Catch:{ RemoteException -> 0x006e }\n r5 = r7.zzadz;\t Catch:{ RemoteException -> 0x006e }\n r6 = r7.zzaeg;\t Catch:{ RemoteException -> 0x006e }\n r0 = r0.zza(r3, r4, r5, r6);\t Catch:{ RemoteException -> 0x006e }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006e }\n goto L_0x004d;\n L_0x006e:\n r0 = move-exception;\n r2 = r7.zzasi;\t Catch:{ all -> 0x0095 }\n r2 = r2.zzgt();\t Catch:{ all -> 0x0095 }\n r2 = r2.zzjg();\t Catch:{ all -> 0x0095 }\n r3 = \"Failed to get user properties\";\n r4 = r7.zzagj;\t Catch:{ all -> 0x0095 }\n r4 = com.google.android.gms.measurement.internal.zzas.zzbw(r4);\t Catch:{ all -> 0x0095 }\n r5 = r7.zzads;\t Catch:{ all -> 0x0095 }\n r2.zzd(r3, r4, r5, r0);\t Catch:{ all -> 0x0095 }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0095 }\n r2 = java.util.Collections.emptyList();\t Catch:{ all -> 0x0095 }\n r0.set(r2);\t Catch:{ all -> 0x0095 }\n r0 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r0.notify();\t Catch:{ all -> 0x0059 }\n goto L_0x0057;\n L_0x0095:\n r0 = move-exception;\n r2 = r7.zzasj;\t Catch:{ all -> 0x0059 }\n r2.notify();\t Catch:{ all -> 0x0059 }\n throw r0;\t Catch:{ all -> 0x0059 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzep.run():void\");\n }", "public void swrap() throws NoUnusedObjectExeption;", "private static void a(com.bytedance.crash.nativecrash.c r10) {\n /*\n java.lang.String r0 = \".info\"\n java.io.File r10 = r10.a((java.lang.String) r0)\n boolean r0 = r10.isFile()\n if (r0 == 0) goto L_0x009b\n java.util.Properties r0 = new java.util.Properties\n r0.<init>()\n r1 = 0\n java.io.FileInputStream r2 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0094 }\n r2.<init>(r10) // Catch:{ Throwable -> 0x0094 }\n r0.load(r2) // Catch:{ Throwable -> 0x0093 }\n r2.close() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = \"alogJsonGenerated\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 != 0) goto L_0x009b\n java.lang.String r2 = \"aloglogdir\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 == 0) goto L_0x009b\n java.lang.String r3 = \"crash_time\"\n java.lang.String r3 = r0.getProperty(r3)\n r4 = 0\n if (r3 == 0) goto L_0x0042\n java.lang.Long r3 = java.lang.Long.valueOf(r3) // Catch:{ NumberFormatException -> 0x0041 }\n long r6 = r3.longValue() // Catch:{ NumberFormatException -> 0x0041 }\n r4 = r6\n goto L_0x0042\n L_0x0041:\n L_0x0042:\n java.lang.String r3 = \"process_name\"\n java.lang.String r3 = r0.getProperty(r3)\n if (r3 != 0) goto L_0x004c\n java.lang.String r3 = \"\"\n L_0x004c:\n com.bytedance.crash.a.e r6 = new com.bytedance.crash.a.e\n r6.<init>(r3)\n java.util.List r2 = r6.a(r2, r4)\n com.bytedance.crash.e.d r2 = com.bytedance.crash.a.a.a((java.util.List<java.lang.String>) r2)\n boolean r3 = com.bytedance.crash.a.a.a((com.bytedance.crash.e.d) r2)\n if (r3 != 0) goto L_0x0060\n return\n L_0x0060:\n android.content.Context r3 = com.bytedance.crash.j.d()\n java.io.File r4 = com.bytedance.crash.i.h.c(r3)\n java.lang.String r5 = com.bytedance.crash.i.h.a()\n java.lang.String r6 = r2.f19427e\n java.lang.String r7 = r2.f19428f\n java.lang.String r8 = r2.g\n java.util.List<java.lang.String> r9 = r2.h\n com.bytedance.crash.i.d.a((java.io.File) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.util.List<java.lang.String>) r9)\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ Throwable -> 0x008d }\n r2.<init>(r10) // Catch:{ Throwable -> 0x008d }\n java.lang.String r10 = \"alogJsonGenerated\"\n java.lang.String r1 = \"true\"\n r0.setProperty(r10, r1) // Catch:{ Throwable -> 0x008c }\n java.lang.String r10 = \"\"\n r0.store(r2, r10) // Catch:{ Throwable -> 0x008c }\n r2.close() // Catch:{ Throwable -> 0x008c }\n return\n L_0x008c:\n r1 = r2\n L_0x008d:\n if (r1 == 0) goto L_0x009b\n r1.close() // Catch:{ Throwable -> 0x009b }\n return\n L_0x0093:\n r1 = r2\n L_0x0094:\n if (r1 == 0) goto L_0x009a\n r1.close() // Catch:{ Throwable -> 0x009a }\n return\n L_0x009a:\n return\n L_0x009b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c):void\");\n }", "private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n String[] stringArray0 = new String[18];\n // Undeclared exception!\n try { \n SQLUtil.renderQuery((DBTable) null, stringArray0, stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private void m7280d() {\n if (this.f5512c == null) {\n try {\n this.f5512c = new C0036q(this.f5510a);\n } catch (IOException e) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not open log file: \");\n sb.append(this.f5510a);\n C0135c.m449h().mo280e(\"CrashlyticsCore\", sb.toString(), e);\n }\n }\n }", "@Test\n void test011_setCentralUserIllegalNullArgumentException() {\n try {\n christmasBuddENetwork.addUser(\"Santa Claus\");\n christmasBuddENetwork.addUser(\"Grinch\");\n christmasBuddENetwork.addUser(\"Comet\");\n christmasBuddENetwork.addUser(\"Rudolph\");\n christmasBuddENetwork.addUser(\"Prancer\");\n christmasBuddENetwork.addUser(\"Blitzen\");\n christmasBuddENetwork.addUser(\"Donder\");\n christmasBuddENetwork.addUser(\"Vixen\");\n christmasBuddENetwork.addUser(\"Dancer\");\n christmasBuddENetwork.addUser(\"Cupid\");\n christmasBuddENetwork.addUser(\"Dasher\");\n christmasBuddENetwork.setCentralUser(\"\"); // making empty string the\n // central user\n\n // if we get here, then we did not properly throw an\n // IllegalNullArgumentException on empty string,\n // so we failed tests.\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(. \"\n + \"Did NOT throw an IllegalNullArgumentException when finding central\"\n + \" user of empty string.\");\n } catch (UserNotFoundException e1) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(. \"\n + \"Threw a UserNotFoundException instead of an \"\n + \"IllegalNullArgumentException when making the central user an empty\"\n + \" string!\");\n } catch (IllegalNullArgumentException e2) {\n // properly caught this Exception :) for empty string\n try {\n christmasBuddENetwork.setCentralUser(null); // making a null buddE the\n // central user\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(.\"\n + \" Did NOT throw an IllegalNullArgumentException when calling \"\n + \"setCentralUser(null)!\");\n\n } catch (UserNotFoundException e2a) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(.\"\n + \" Threw a UserNotFoundException instead of an \"\n + \"IllegalNullArgumentException when calling \"\n + \"setCentralUser(null)!\");\n } catch (IllegalNullArgumentException e2b) {\n } catch (Exception e2c) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(.\"\n + \" Threw another Exception instead of an \"\n + \"IllegalNullArgumentException when calling \"\n + \"setCentralUser(null)!\");\n }\n\n } catch (Exception e3) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :( \"\n + \"Threw another Exception instead of an IllegalNullArgumentException\"\n + \" when calling setCentralUser for an empty String!\");\n }\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.nextLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test167() throws Throwable {\n Form form0 = new Form(\"Lc7/B.MJD\");\n // Undeclared exception!\n try { \n form0.blockquote();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.607836", "0.6005248", "0.5923011", "0.5849681", "0.5822308", "0.5808349", "0.58018035", "0.5799134", "0.5791052", "0.5739147", "0.5690472", "0.5665003", "0.5663228", "0.5640208", "0.5636023", "0.561892", "0.5612481", "0.55951947", "0.5588176", "0.5573188", "0.5551085", "0.55323", "0.5524403", "0.55130976", "0.549752", "0.54846257", "0.54806453", "0.54496247", "0.54393536", "0.5438131", "0.543533", "0.5430274", "0.54227006", "0.5416091", "0.54133743", "0.5410894", "0.5402897", "0.53994155", "0.53871673", "0.53834826", "0.53834826", "0.5382904", "0.53801703", "0.53801703", "0.53801703", "0.53801703", "0.53801703", "0.53792095", "0.5378386", "0.5372989", "0.53706765", "0.53673035", "0.53552413", "0.53509504", "0.5347062", "0.5343932", "0.5341935", "0.53378475", "0.5315239", "0.53001785", "0.5298627", "0.52908957", "0.52842295", "0.52811754", "0.5277884", "0.52735156", "0.52705306", "0.52705306", "0.5266142", "0.5264859", "0.5264465", "0.5263488", "0.5260773", "0.52532256", "0.52410233", "0.5237362", "0.52371824", "0.5228405", "0.52255577", "0.5208396", "0.52083635", "0.52077675", "0.5207627", "0.5207106", "0.52034724", "0.5200347", "0.51996446", "0.5194004", "0.51915133", "0.5190319", "0.5189053", "0.51830345", "0.51828134", "0.5180688", "0.51793927", "0.5176803", "0.51758736", "0.51729214", "0.5168835", "0.5165873", "0.516581" ]
0.0
-1
Set the IP range(s) to authenticate as particular principals.
public void setMappings(@Nullable @NonnullElements final Map<String,Collection<IPRange>> newMappings) { checkSetterPreconditions(); if (newMappings != null) { mappings = new HashMap<>(newMappings.size()); for (final Map.Entry<String,Collection<IPRange>> e : newMappings.entrySet()) { if (!Strings.isNullOrEmpty(e.getKey())) { mappings.put(e.getKey(), List.copyOf(e.getValue())); } } } else { mappings = Collections.emptyMap(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}", "public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "public void setIpAddresses(List<DnsARdata> ipAddresses) {\n this.ipAddresses = ipAddresses;\n }", "@Test\n void test_setDeny_multi_range() {\n String[] denyRules = {\"1.0.0.10/30\", \"1.0.1.2/31\", \"1.0.1.3/31\", \"1.0.20.3/30\", \"1.0.20.1/29\"};\n ipFilterConfiguration.setDeny(Arrays.asList(denyRules));\n TreeMap<Long, Ipv4Subnet> deny = ipFilterConfiguration.getDeny();\n\n // when\n String[] expectDenyRanges = {\"1.0.0.8/30\", \"1.0.1.2/31\", \"1.0.20.0/29\"};\n Map<Long, Ipv4Subnet> expect = new HashMap<>();\n for (String expectDenyRange : expectDenyRanges) {\n Ipv4Subnet subnet = new Ipv4Subnet(expectDenyRange);\n expect.put(subnet.getStartIpLong(), subnet);\n }\n\n // then\n Stream<Executable> executables = expect.keySet().stream()\n .map(expect::get)\n .map(expectValues -> () -> assertAll(\n String.format(\"test range start with %s\", expectValues.getIpLong()),\n () -> assertNotNull(deny.get(expectValues.getStartIpLong())),\n () -> assertEquals(expectValues.getCidr(), deny.get(expectValues.getStartIpLong()).getCidr()),\n () -> assertEquals(expectValues.getStartIpLong(), deny.get(expectValues.getStartIpLong()).getStartIpLong()),\n () -> assertEquals(expectValues.getEndIpLong(), deny.get(expectValues.getStartIpLong()).getEndIpLong())\n ));\n assertAll(\"test if deny rules are nested, then aggregate (even if different mask)\",\n () -> assertEquals(3, deny.size()),\n () -> assertAll(executables));\n }", "public void setMembershipPortRange(String membershipPortRange) {\n agentConfig.setMembershipPortRange(membershipPortRange);\n }", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "public void setPortRange(String input) throws BadConfigException {\n Set<Integer> inputPorts= new TreeSet<Integer>();\n String[] ranges = input.split(\",\");\n for ( String range : ranges ) {\n if (range.trim().isEmpty()) {\n continue;\n }\n Matcher m = SINGLE_NUMBER.matcher(range.trim());\n if (m.find()) {\n inputPorts.add(Integer.parseInt(m.group()));\n continue;\n }\n m = NUMBER_RANGE.matcher(range.trim());\n if (m.find()) {\n String[] boundaryValues = m.group(0).split(\"-\");\n int start = Integer.parseInt(boundaryValues[0].trim());\n int end = Integer.parseInt(boundaryValues[1].trim());\n if (end < start) {\n throw new BadConfigException(\"End of port range is before start: \"\n + range + \" in input: \" + input);\n }\n for (int i = start; i < end + 1; i++) {\n inputPorts.add(i);\n }\n continue;\n }\n throw new BadConfigException(\"Bad port range: \" + range + \" in input: \"\n + input);\n }\n if (inputPorts.size() == 0) {\n throw new BadConfigException(\"No ports found in range: \" + input);\n }\n this.remainingPortsToCheck = new ArrayList<Integer>(inputPorts);\n }", "public void setRepRange(int reps, int min, int max) {\n if (isValidInterval(reps, min, max)) {\n this.reps = reps;\n repsMin = min;\n repsMax = max;\n } else {\n throw new IllegalArgumentException(\"Range must satisfy 0 < repsMin <= reps <= repsMax.\" +\n \" Found reps=\" + reps + \", [\" + min + \",\" + max +\"]\");\n }\n }", "public void setRange(Range range) { setRange(range, true, true); }", "public List<String> authorizedIpRanges() {\n return this.authorizedIpRanges;\n }", "public void setRange(int start, int end) {\n\t\tmStart = start;\n\t\tmEnd = end;\n\t\tmCurrent = start;\n\t\tupdateView();\n\t}", "public static void pinAddressesInRange(HashMap<String, Object> argVals,HashMap<String, Object> retVals) \n\t\tthrows IOException, ParserConfigurationException, SAXException{\n\t\t\n\t\tString origin = (String)argVals.get(\"startAddress\");\n\t\tlong range = (java.lang.Long)argVals.get(\"range\");\n\t\tLinkedList<String> addresses = (LinkedList<String>)argVals.get(\"address\");\n\t\tLinkedList<String> comments = (LinkedList<String>)argVals.get(\"addressInfo\");\n\t\tLinkedList<String> survivedComments = new LinkedList<String>();\n\t\tLinkedList<String> survivedAddr = new LinkedList<String>();\n\t\t\n\t\tfor(int i=0;i<addresses.size();i++){\n\t\t\tString addr = addresses.get(i);\n\t\t\tif(getShortestDistance(origin, addr) < range){\n\t\t\t\tsurvivedAddr.add(addr);\n\t\t\t\tif(comments.size()>i)\n\t\t\t\t\tsurvivedComments.add(comments.get(i));\n\t\t\t}\n\t\t}\n\t\tsurvivedAddr.add(origin);\n\t\t\n\t\tString url = \"\";\n\t\t\n\t\tfor(int i=0;i<survivedAddr.size();i++){\n\t\t\tif(survivedAddr.get(i)!=null){\n\t\t\t\tif(i==0){\n\t\t\t\t\turl = ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t\t}\n\t\t\t\turl += ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t}\n\t\t}\n\t\tshowMap(survivedAddr,survivedComments,true);\n\t\t\n\t}", "public ManagedClusterApiServerAccessProfile withAuthorizedIpRanges(List<String> authorizedIpRanges) {\n this.authorizedIpRanges = authorizedIpRanges;\n return this;\n }", "public void setIpList(String [] IpList) {\n this.IpList = IpList;\n }", "private void configureConnectionPerms() throws ConfigurationException\n {\n boolean hasAllows= false, hasDenies= false;\n\n String[] allows= cfg.getAll (\"allow\");\n if (allows != null && allows.length > 0) {\n hasAllows= true;\n\n for (String allowIP : allows) {\n allowIP= allowIP.trim();\n\n if (allowIP.indexOf('*') == -1) { // specific IP with no wildcards\n specificIPPerms.put(allowIP, true);\n } else { // there's a wildcard\n wildcardAllow= (wildcardAllow == null) ? new ArrayList<>() : wildcardAllow;\n String[] parts= allowIP.split(\"[*]\");\n wildcardAllow.add(parts[0]); // keep only the first part\n }\n }\n }\n\n String[] denies= cfg.getAll (\"deny\");\n if (denies != null && denies.length > 0) {\n hasDenies= true;\n\n for (String denyIP : denies) {\n boolean conflict= false; // used for a little sanity check\n\n denyIP= denyIP.trim();\n if (denyIP.indexOf('*') == -1) { // specific IP with no wildcards\n Boolean oldVal= specificIPPerms.put(denyIP, false);\n conflict= (oldVal == Boolean.TRUE);\n } else { // there's a wildcard\n wildcardDeny= (wildcardDeny == null) ? new ArrayList<>() : wildcardDeny;\n String[] parts= denyIP.split(\"[*]\");\n if (wildcardAllow != null && wildcardAllow.contains(parts[0]))\n conflict= true;\n else\n wildcardDeny.add(parts[0]); // keep only the first part\n }\n\n if (conflict) {\n throw new ConfigurationException(\n \"Conflicting IP permission in '\"+getName()+\"' configuration: 'deny' \"\n +denyIP+\" while having an identical previous 'allow'.\");\n }\n }\n }\n\n // sum up permission policy and logging type\n ipPermLogPolicy= (!hasAllows && !hasDenies) ? PermLogPolicy.ALLOW_NOLOG : // default when no permissions specified\n ( hasAllows && !hasDenies) ? PermLogPolicy.DENY_LOG :\n (!hasAllows && hasDenies) ? PermLogPolicy.ALLOW_LOG :\n PermLogPolicy.DENY_LOGWARNING; // mixed allows & denies, if nothing matches we'll DENY and log a warning\n }", "public void setRange(int startRange, int endRange) {\r\n\t\tsetValue(Params.START_RANGE, startRange);\r\n\t\tsetValue(Params.END_RANGE, endRange);\r\n\t}", "@Override\n public void addEvictionGuard(RangeSet<Long> ranges) {\n\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "private void setInIp(int value) {\n \n inIp_ = value;\n }", "public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }", "public void setRange(Uri range)\n {\n this.range = range;\n }", "public void setVpnIpRange(String vpnIpRange) {\n this.vpnIpRange = vpnIpRange;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "private void setIp(int value) {\n \n ip_ = value;\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "void setControlPersonsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription controlPersons);", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "private boolean isAuthenticated(@Nonnull final InetAddress address,\n @Nonnull @NonnullElements final Collection<IPRange> ranges) {\n final byte[] resolvedAddress = address.getAddress();\n\n for (final IPRange range : ranges) {\n if (range.contains(resolvedAddress)) {\n return true;\n }\n }\n \n return false;\n }", "private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }", "public void setRangeOfCheck(String[] rangeOfCheck) {\n this.rangeOfCheck = rangeOfCheck;\n }", "void setControlPersonsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] controlPersonsArray);", "public void setPublicIpAddressSet(NatGatewayAddress [] PublicIpAddressSet) {\n this.PublicIpAddressSet = PublicIpAddressSet;\n }", "Range controlLimits();", "protected static IPRange.RangeSet getIPFilter() {\n if (filterRanges == null) {\n try {\n filterRanges = IPRange.paraseRangeSet(ipFilter);\n } catch (Throwable e) {\n Exceptions.handle()\n .to(LOG)\n .error(e)\n .withSystemErrorMessage(\n \"Error parsing config value: 'http.firewall.filterIPs': %s (%s). Defaulting to localhost!\")\n .handle();\n filterRanges = IPRange.LOCALHOST;\n }\n }\n\n return filterRanges;\n }", "private void setupconfigIpCPoints() {\n for (int i = 1; i <= 3; i++) {\n ConnectPoint connectPoint = new ConnectPoint(\n getDeviceId(i),\n PortNumber.portNumber(1));\n configIpCPoints.add(connectPoint);\n }\n }", "public Ingress withIpSecurityRestrictions(List<IpSecurityRestrictionRule> ipSecurityRestrictions) {\n this.ipSecurityRestrictions = ipSecurityRestrictions;\n return this;\n }", "public Bounds bounds(String ipAddrsFile, String subnetsFile) throws IOException {\n\t\tfinal Map<String,NetNode> nodes = parseAddresses(ipAddrsFile);\n\t\tfinal Map<NetNode,Subnet> subnets = parseSubnets(subnetsFile, nodes);\n\n\t\tfinal Universe universe = universe(nodes.keySet());\n\t\tfinal Bounds bounds = new Bounds(universe);\n\t\tfinal TupleFactory factory = universe.factory();\n\n\t\t// bind the integers\n\t\tfor (int i = 0; i < 32; i++) {\n\t\t\tbounds.boundExactly(1 << i, factory.setOf(Integer.valueOf(1 << i)));\n\t\t}\n\n\t\t// bind the port relation exactly to the port names\n\t\tbounds.boundExactly(port, factory.range(factory.tuple(universe.atom(0)),\n\t\t\t\tfactory.tuple(universe.atom(nodes.keySet().size() - 1))));\n\n\t\t// bind the unknown relation exactly to the port names of ports with\n\t\t// unknown addresses or masks\n\t\tfinal TupleSet unknownBound = factory.noneOf(1);\n\t\tfor (NetNode n : nodes.values()) {\n\t\t\tif (!n.known()) {\n\t\t\t\tunknownBound.add(factory.tuple(n.port));\n\t\t\t}\n\t\t}\n\t\tbounds.boundExactly(unknown, unknownBound);\n\n\t\t// bind the subnet relation exactly, choosing the first element of each\n\t\t// subnet as the representative\n\t\tfinal TupleSet subnetBound = factory.noneOf(2);\n\t\tfor (Map.Entry<NetNode,Subnet> entry : subnets.entrySet()) {\n\t\t\tfinal NetNode rep = entry.getKey();\n\t\t\tfor (NetNode member : entry.getValue().members) {\n\t\t\t\tsubnetBound.add(factory.tuple(rep.port, member.port));\n\t\t\t}\n\t\t}\n\t\tbounds.boundExactly(subnet, subnetBound);\n\n\t\t// bind the addr relation so that each address is guaranteed to be\n\t\t// between minAddr (121.96.0.0) and maxAddr (121.96.255.255), inclusive\n\t\tfinal TupleSet lAddr = factory.noneOf(2), uAddr = factory.noneOf(2);\n\t\tfor (NetNode node : nodes.values()) {\n\t\t\tif (node.varAddress) { // unknown address\n\t\t\t\tlAddr.addAll(portToBits(factory, node.port, minAddr));\n\t\t\t\tuAddr.addAll(portToBits(factory, node.port, maxAddr));\n\t\t\t} else { // known address\n\t\t\t\tfinal TupleSet portToAddrBits = portToBits(factory, node.port, node.address);\n\t\t\t\tlAddr.addAll(portToAddrBits);\n\t\t\t\tuAddr.addAll(portToAddrBits);\n\t\t\t}\n\t\t}\n\t\tbounds.bound(addr, lAddr, uAddr);\n\n\t\t// bind the group and groupMask relations so that all ports with the\n\t\t// same interface on the same subnet are guaranteed to have the same\n\t\t// mask\n\t\tfinal TupleSet lMask = factory.noneOf(2), uMask = factory.noneOf(2), groupBound = factory.noneOf(2);\n\t\tfor (Subnet sub : subnets.values()) {\n\t\t\tfor (Map.Entry<NetNode,Set<NetNode>> entry : sub.groups.entrySet()) {\n\t\t\t\tfinal NetNode rep = entry.getKey();\n\t\t\t\tfor (NetNode member : entry.getValue()) {\n\t\t\t\t\tgroupBound.add(factory.tuple(member.port, rep.port));\n\t\t\t\t\tnodes.remove(member.port); // remove a grouped member out of\n\t\t\t\t\t\t\t\t\t\t\t\t// the addresses set\n\t\t\t\t}\n\t\t\t\tif (rep.varMask) { // unknown mask for the representative\n\t\t\t\t\tuMask.addAll(portToBits(factory, rep.port, 31));\n\t\t\t\t} else { // known mask for the representative\n\t\t\t\t\tfinal TupleSet portToMaskBits = portToBits(factory, rep.port, rep.mask);\n\t\t\t\t\tlMask.addAll(portToMaskBits);\n\t\t\t\t\tuMask.addAll(portToMaskBits);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// bind the group and groupMask relations for ports that are not a part\n\t\t// of any subnet\n\t\tfor (NetNode ungrouped : nodes.values()) {\n\t\t\tgroupBound.add(factory.tuple(ungrouped.port, ungrouped.port));\n\t\t\tif (ungrouped.varMask) { // unknown mask for the representative\n\t\t\t\tuMask.addAll(portToBits(factory, ungrouped.port, 31));\n\t\t\t} else { // known mask for the representative\n\t\t\t\tfinal TupleSet portToMaskBits = portToBits(factory, ungrouped.port, ungrouped.mask);\n\t\t\t\tlMask.addAll(portToMaskBits);\n\t\t\t\tuMask.addAll(portToMaskBits);\n\t\t\t}\n\t\t}\n\n\t\tbounds.bound(groupMask, lMask, uMask);\n\t\tbounds.boundExactly(group, groupBound);\n\n\t\t// System.out.println(\"groupMask.size: \" + uMask.size() + \", group.size:\n\t\t// \" + groupBound.size());\n\t\t// System.out.println(\"ports.size: \" + bounds.upperBound(port).size() +\n\t\t// \", unknown.size: \" + unknownBound.size());\n\t\treturn bounds;\n\n\t}", "public void setRange(double lower, double upper) {\n/* 625 */ if (lower >= upper) {\n/* 626 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 628 */ setRange(new DateRange(lower, upper));\n/* */ }", "public void setPublicIpAddresses(String [] PublicIpAddresses) {\n this.PublicIpAddresses = PublicIpAddresses;\n }", "void setInterfaceIpAddress(Ip4Address interfaceIpAddress);", "public void setRange(Date lower, Date upper) {\n/* 610 */ if (lower.getTime() >= upper.getTime()) {\n/* 611 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 613 */ setRange(new DateRange(lower, upper));\n/* */ }", "Range selectAssignment(IntervalSet availableRanges, IntervalSet neededRanges, long blockSize);", "private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "protected void setUsedRange(int _start, int _end) throws Exception {\n if (_start < 0 || _end >= size || _start > _end) {\n throw new Exception(\"Invalid range! Start must be 0 or larger, end must be \" + \"inside allowed memory range.\");\n }\n\n start = _start;\n end = _end;\n }", "void setRoleRangeRaw( String szRaw );", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public static byte[] setRange(byte[] source, byte[] destination, int start, int end ){\n for(int i=start; i <= end; i++)\n destination[i]=source[i-start];\n return destination;\n }", "public void setOperationalLimits(Set<OperationalLimits> aOperationalLimits) {\n operationalLimits = aOperationalLimits;\n }", "public void setAll(String userIdIn,\n String preferenceNameIn,\n int locationIdIn,\n double distanceToleranceIn,\n long startTimeIn,\n long endTimeIn,\n String keyWordIn,\n String activityNameIn,\n int numberLimitFrom,\n int numberLimitTo) {\n this.userId = userIdIn;\n this.locationId = locationIdIn;\n this.preferenceName = preferenceNameIn;\n this.distanceTolerance = distanceToleranceIn;\n this.startTime = startTimeIn;\n this.endTime = endTimeIn;\n this.keyWord = keyWordIn;\n this.activityName = activityNameIn;\n this.numberLimitFrom=numberLimitFrom;\n this.numberLimitTo=numberLimitTo;\n }", "public void setBounds(Point3D minBounds, Point3D maxBounds) {\n this.minBounds = minBounds;\n this.maxBounds = maxBounds;\n }", "protected void setPrivileges(PrivilegeSet ps) { this.privileges = ps; }", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public void setVLANRange(VLANRange vlans){\n\t\tthis.vlanRange = vlans;\n\t}", "public @NonNull NetworkCapabilities setUids(Set<UidRange> uids) {\n if (null == uids) {\n mUids = null;\n } else {\n mUids = new ArraySet<>(uids);\n }\n return this;\n }", "public void setAvailableRangeSet(HTTPRangeSet newRangeSet)\r\n {\r\n // dont do anything if we have no range set and the scope list is\r\n // uninitialized\r\n if ( (newRangeSet == null || newRangeSet.getRangeSet().size() == 0)\r\n && availableScopeList == null )\r\n {\r\n return;\r\n }\r\n \r\n if ( newRangeSet == null )\r\n {\r\n // not only clear existing scope list but set it to NULL\r\n availableScopeList = null;\r\n return;\r\n }\r\n \r\n // lazy initialize if necessary\r\n if ( availableScopeList == null )\r\n {\r\n availableScopeList = new DownloadScopeList();\r\n }\r\n else\r\n {\r\n // clear known ranges.\r\n availableScopeList.clear();\r\n }\r\n\r\n // add..\r\n long fileSize = downloadFile.getTotalDataSize();\r\n Iterator iterator = newRangeSet.getIterator();\r\n while ( iterator.hasNext() )\r\n {\r\n Range range = (Range) iterator.next();\r\n DownloadScope scope = new DownloadScope( \r\n range.getStartOffset(fileSize),\r\n range.getEndOffset(fileSize) );\r\n availableScopeList.add( scope );\r\n }\r\n availableRangeSetTime = System.currentTimeMillis();\r\n \r\n NLogger.debug( NLoggerNames.Download_File_RangePriority,\r\n \"Added new rangeset for \" + downloadFile.getDestinationFileName() \r\n + \": \" + newRangeSet);\r\n \r\n }", "public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfSocialSecurityNumber(String lowerInclusive, String upperInclusive) {\n return fetchRange(Voter.VOTER.SOCIAL_SECURITY_NUMBER, lowerInclusive, upperInclusive);\n }", "private void setS1Ip(int value) {\n \n s1Ip_ = value;\n }", "public void setBaseAddress(int targetAddress, int baseAddress);", "public void set(int start, int end, ReadableStringMap<V> annotations,\n ReadableStringMap<V> diffFromPrevious) {\n Preconditions.checkPositionIndexes(start, end, Integer.MAX_VALUE);\n Preconditions.checkNotNull(annotations, \"annotations must not be null\");\n Preconditions.checkNotNull(diffFromPrevious, \"diffFromPrevious must not be null\");\n if (start >= end) {\n throw new IllegalArgumentException(\"Attempt to set AnnotationInterval to zero length\");\n }\n this.start = start;\n this.end = end;\n this.annotations = annotations;\n this.diffFromLeft = diffFromPrevious;\n }", "void setPoolRaces(int poolRaces);", "public void setIpaddress (String format, Object ... args)\n {\n ipaddress = String.format (format, args);\n }", "public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}", "public void setGivenNumbers(int numbers) {\r\n\t\tthis.givenNumbers= numbers;\r\n\t}", "void setDateRange(Date start, Date end);", "public IPv4Address(SegmentValueProvider lowerValueProvider, SegmentValueProvider upperValueProvider) {\n\t\tthis(lowerValueProvider, upperValueProvider, null);\n\t}", "public synchronized void setTargetRange(double minTarget, double maxTarget)\n {\n final String funcName = \"setTargetRange\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"min=%f,max=%f\", minTarget, maxTarget);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n this.minTarget = minTarget;\n this.maxTarget = maxTarget;\n }", "private static void assignMembersOwnersToMemberships(Collection<Object[]> membershipArrays) {\r\n for (Object[] membershipArray : GrouperUtil.nonNull(membershipArrays)) {\r\n assignMemberOwnerToMembership(membershipArray);\r\n } \r\n }", "public static byte[] setRange(byte[] source, byte[] destination, int start){\n for(int i=start; i < start+source.length; i++) \n destination[i]=source[i-start];\n \n return destination;\n }", "public void setLedRange(int start, int count, int[] rgbValues)\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.setLedRange(mBinder, start, count, rgbValues);\n } catch (RemoteException e) {\n Log.e(TAG, \"setLedRange failed\");\n }\n }", "public void setRange(int min, int max) {\n range = new PriceRange();\n range.setMaximum(max);\n range.setMinimum(min);\n }", "public void setPoolPartyRequests(\n final PoolPartyRequest[] thePoolPartyRequests) {\n poolPartyRequests = thePoolPartyRequests;\n }", "public void setIpAddress(InetAddress addr) \n\t{\n\t\tthis.ipAddress = addr;\n\t}", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccounts(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "Set<Host> getAllowedHosts();", "public void setIp(String value) {\n set(24, value);\n }", "void setBeginRange( String beginRange );", "public void configure() {\n/* 754 */ if (isAutoRange()) {\n/* 755 */ autoAdjustRange();\n/* */ }\n/* */ }", "public void setRange(double min, double max) {\n super.setRange(min, max);\n }", "public void setIpAddress(String ipAddress) {\n this.standardPairs.put(Parameters.IP_ADDRESS, ipAddress);\n }", "void setConstraints(com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation constraints);", "public AllowedValues(final RangeType range){\n \n valueOrRange = new ArrayList<>();\n valueOrRange.add(range);\n }", "public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfId(UUID lowerInclusive, UUID upperInclusive) {\n return fetchRange(Voter.VOTER.ID, lowerInclusive, upperInclusive);\n }", "public SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }", "public void testAssignBlogOwners() {\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_OWNERS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogOwners());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_OWNERS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogOwners());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }", "@Override\n\t\tpublic void ipChange() {\n\t\t\t\n\t\t}", "void setSelectionRange(int start, int end, HTMLInputElement.Direction direction);", "public void setAxisRange(double xMin,double xMax, double yMin, double yMax) {\n minXValue=xMin;\n maxXValue=xMax;\n minYValue=yMin;\n maxYValue=yMax;\n this.customAxis=true;\n addGraphPanel();\n\n }", "@Test(enabled = false)\n public void getPrivateNetworkIPsByVirtualDatacenterTestLimit()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n // Test Default\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n IpsPoolManagementDto entity = response.getEntity(IpsPoolManagementDto.class);\n assertEquals(200, response.getStatusCode());\n assertNotNull(entity);\n assertNotNull(entity.getCollection());\n assertEquals(Integer.valueOf(entity.getCollection().size()),\n AbstractResource.DEFAULT_PAGE_LENGTH);\n\n // Test 30\n validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?limit=30\";\n response = get(validURI, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n assertNotNull(entity);\n assertNotNull(entity.getCollection());\n assertEquals(entity.getCollection().size(), 30);\n\n // Test 120\n validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?limit=120\";\n response = get(validURI, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n assertNotNull(entity);\n assertNotNull(entity.getCollection());\n assertEquals(entity.getCollection().size(), 120);\n\n }", "public abstract void setRange(double value, int start, int count);", "@Override\r\n\tpublic void list_validBelongsToOtherUser() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validBelongsToOtherUser();\r\n\t\t}\r\n\t}", "public void setRange(@IntRange(from = MIN_RANGE) int range) {\n setRange(mRangeStart, range, mIsPositive);\n }", "public boolean whitelist(Range<Integer> range) {\n meta.add(range);\n return isWhitelisted(range);\n }", "public void setAcceptors(List<Integer> acceptors) {\n this.acceptors = acceptors;\n }", "public List<com.psygate.minecraft.spigot.sovereignty.banda.db.model.tables.pojos.BandaProtection> fetchByProtectIpRangeBan(Boolean... values) {\n\t\treturn fetch(BandaProtection.BANDA_PROTECTION.PROTECT_IP_RANGE_BAN, values);\n\t}", "public static void setMinimumRange(int first, int last) {\r\n \tif (first > last) throw new IllegalArgumentException();\r\n \tIndex.valueOf(first);\r\n \tIndex.valueOf(last);\r\n }", "public abstract void selectIndexRange(int min, int max);", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }", "public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }" ]
[ "0.5666543", "0.5629043", "0.5481041", "0.54499775", "0.54481095", "0.54271054", "0.5396271", "0.53957325", "0.5394096", "0.52216727", "0.51991343", "0.51308215", "0.5130688", "0.51244134", "0.51091", "0.51018566", "0.5045707", "0.504408", "0.49710032", "0.49710032", "0.49669427", "0.49575812", "0.49519095", "0.49512324", "0.49512324", "0.49480343", "0.49464545", "0.49304056", "0.49248633", "0.4911635", "0.49096742", "0.4909417", "0.48864698", "0.4876543", "0.48590615", "0.48384118", "0.47954795", "0.4792874", "0.4775637", "0.47736838", "0.4770682", "0.47538808", "0.4743528", "0.4739892", "0.4722307", "0.47209448", "0.47187233", "0.47133806", "0.47099006", "0.47080454", "0.47002757", "0.46948498", "0.46735576", "0.46716335", "0.46702275", "0.46520892", "0.4636882", "0.46204367", "0.46191338", "0.4618935", "0.46133217", "0.46083465", "0.46062374", "0.45934367", "0.45897156", "0.45840302", "0.45758116", "0.45744985", "0.45704183", "0.45544434", "0.45539612", "0.45474765", "0.45426232", "0.45310485", "0.45176992", "0.45122933", "0.45086566", "0.45076177", "0.45071277", "0.44980803", "0.4495493", "0.44727135", "0.4468961", "0.4458828", "0.44514614", "0.44480243", "0.44476768", "0.44467062", "0.44304696", "0.4428399", "0.442825", "0.44237316", "0.44172987", "0.44129464", "0.44053861", "0.44048837", "0.44036785", "0.44034204", "0.44024855", "0.44024855" ]
0.46042898
63
Checks whether the given IP address meets a set of IP range requirements.
private boolean isAuthenticated(@Nonnull final InetAddress address, @Nonnull @NonnullElements final Collection<IPRange> ranges) { final byte[] resolvedAddress = address.getAddress(); for (final IPRange range : ranges) { if (range.contains(resolvedAddress)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }", "protected boolean isAddressInRange(String range, String address) \r\n\t\t\tthrows ServletException {\r\n\t\t\r\n\t\tString network;\r\n\t\tString mask;\r\n\t\t\r\n\t\tint slashPos = range.indexOf('/');\r\n\t\tif (slashPos == -1) {\r\n\t\t\tnetwork = range;\r\n\t\t\tmask = \"255.255.255.255\";\r\n\t\t} else {\r\n\t\t\tnetwork = range.substring(0, slashPos);\r\n\t\t\tmask = range.substring(slashPos + 1);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbyte[] netBytes = InetAddress.getByName(network).getAddress();\r\n\t\t\tbyte[] maskBytes = InetAddress.getByName(mask).getAddress();\r\n\t\t\tbyte[] addrBytes = InetAddress.getByName(address).getAddress();\r\n\t\t\tfor (int i = 0; i < netBytes.length; i++) {\r\n\t\t\t\tif ((netBytes[i] & maskBytes[i]) != (addrBytes[i] & maskBytes[i]))\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// Should never happen, because we work with raw IP addresses, not\r\n\t\t\t// with host names.\r\n\t\t\tthrow new ServletException(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private boolean isPrivateIpRange(String ipAddress)\n {\n InetAddress inetAddress = null;\n\n try {\n byte[] ip = InetAddress.getByName(ipAddress).getAddress();\n inetAddress = InetAddress.getByAddress(ip);\n return inetAddress.isSiteLocalAddress(); // let java sort it out.\n } catch (UnknownHostException e) {\n log.debug(\"Ip private range check failed \", e);\n return false;\n }\n }", "private boolean isAllowedAddress(String ipAddress) {\n if (allowedAddresses == null) {\n return false;\n }\n\n // IPv4\n int offset = ipAddress.lastIndexOf('.');\n if (offset == -1) {\n // IPv6\n offset = ipAddress.lastIndexOf(':');\n if (offset == -1) {\n return false;\n }\n }\n\n String ipAddressClass = ipAddress.substring(0, offset + 1) + '*';\n return (allowedAddresses.contains(ipAddressClass) || allowedAddresses.contains(ipAddress));\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}", "private boolean validateIP(String ip){\n String pattern = \"^(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|[1-9])\\\\.\"\n +\"(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|\\\\d)\\\\.\"\n +\"(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|\\\\d)\\\\.\"\n +\"(1\\\\d{2}|2[0-4]\\\\d|25[0-5]|[1-9]\\\\d|\\\\d)$\";\n Pattern compile = Pattern.compile(pattern);\n return compile.matcher(ip).matches();\n }", "private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }", "private boolean validate(final String ip){\t\t \n \t Pattern pattern = Pattern.compile(IPADDRESS_PATTERN);\n\t Matcher matcher = pattern.matcher(ip);\n\t return matcher.matches();\t \t \n }", "public boolean containsDomainRange(long from, long to) { return true; }", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "public static boolean isValidIP(String a_ipAddress)\n\t{\n\t\tStringTokenizer tokenizer;\n\n\t\tif ( (a_ipAddress == null) || (a_ipAddress.indexOf('-') != -1))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\ttokenizer = new StringTokenizer(a_ipAddress, \".\");\n\n\t\ttry\n\t\t{\n\t\t\t// test if the IP could be IPv4 or IPv6\n\t\t\tif ( (tokenizer.countTokens() != 4) && (tokenizer.countTokens() != 16))\n\t\t\t{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\n\t\t\twhile (tokenizer.hasMoreTokens())\n\t\t\t{\n\t\t\t\tif (new Integer(tokenizer.nextToken()).intValue() > 255)\n\t\t\t\t{\n\t\t\t\t\tthrow new NumberFormatException();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException a_e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean validIP(String ip) {\r\n\t try {\r\n\t if ( ip == null || ip.isEmpty() ) {\r\n\t return false;\r\n\t }\r\n\r\n\t String[] parts = ip.split( \"\\\\.\" );\r\n\t if ( parts.length != 4 ) {\r\n\t return false;\r\n\t }\r\n\r\n\t for ( String s : parts ) {\r\n\t int i = Integer.parseInt( s );\r\n\t if ( (i < 0) || (i > 255) ) {\r\n\t return false;\r\n\t }\r\n\t }\r\n\t if ( ip.endsWith(\".\") ) {\r\n\t return false;\r\n\t }\r\n\r\n\t return true;\r\n\t } catch (NumberFormatException nfe) {\r\n\t return false;\r\n\t }\r\n\t}", "@Override\n\tpublic boolean validate(String ip) {\n\t\tPattern pattern = Pattern.compile(IPADDRESS_PATTERN);\n\t\tMatcher matcher = pattern.matcher(ip);\n\t\treturn matcher.matches();\n\t}", "static boolean validateIP(String ip) {\n String[] ips = ip.split(\"\\\\.\");\n System.out.println(Arrays.toString(ips));\n if(ips.length != 4) return false;\n System.out.println(Arrays.toString(ips));\n \n for(String s : ips){\n int b;\n try{\n b = Integer.parseInt(s);\n if(b<0 || b> 255)return false;\n }catch(Exception e){\n return false;\n }\n }\n \n return true;\n\t}", "public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "public boolean rangeCheck(int index) {\n\t\tif (index >= 0 && index <= 7) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean overlapsRange(Range range) {\n/* 334 */ if (range == null) {\n/* 335 */ return false;\n/* */ }\n/* 337 */ return (range.containsLong(this.min) || range.containsLong(this.max) || containsLong(range.getMinimumLong()));\n/* */ }", "private static boolean validatingIP(String IP)\n {\n if(IP.equalsIgnoreCase(\"localhost\"))\n {\n return true;\n }\n try\n {\n if (IP == null || IP.isEmpty())\n {\n return false;\n }\n\n String[] parts = IP.split(\"\\\\.\");\n if (parts.length != 4)\n {\n return false;\n }\n\n for (String s : parts)\n {\n int i = Integer.parseInt(s);\n if ((i < 0) || (i > 255))\n {\n return false;\n }\n }\n if (IP.endsWith(\".\"))\n {\n return false;\n }\n\n return true;\n }\n catch (NumberFormatException nfe)\n {\n return false;\n }\n\n }", "public Boolean boundaryCheck(int addr) {\r\n\t\t// Make sure address is less than LIMIT and SP, and greater than base\r\n\t\tif (addr < getLIM() && addr < getSP() && addr >= getBASE()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tm_TH.interruptIllegalMemoryAccess(addr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "@Test\n void test_setDeny_multi_range() {\n String[] denyRules = {\"1.0.0.10/30\", \"1.0.1.2/31\", \"1.0.1.3/31\", \"1.0.20.3/30\", \"1.0.20.1/29\"};\n ipFilterConfiguration.setDeny(Arrays.asList(denyRules));\n TreeMap<Long, Ipv4Subnet> deny = ipFilterConfiguration.getDeny();\n\n // when\n String[] expectDenyRanges = {\"1.0.0.8/30\", \"1.0.1.2/31\", \"1.0.20.0/29\"};\n Map<Long, Ipv4Subnet> expect = new HashMap<>();\n for (String expectDenyRange : expectDenyRanges) {\n Ipv4Subnet subnet = new Ipv4Subnet(expectDenyRange);\n expect.put(subnet.getStartIpLong(), subnet);\n }\n\n // then\n Stream<Executable> executables = expect.keySet().stream()\n .map(expect::get)\n .map(expectValues -> () -> assertAll(\n String.format(\"test range start with %s\", expectValues.getIpLong()),\n () -> assertNotNull(deny.get(expectValues.getStartIpLong())),\n () -> assertEquals(expectValues.getCidr(), deny.get(expectValues.getStartIpLong()).getCidr()),\n () -> assertEquals(expectValues.getStartIpLong(), deny.get(expectValues.getStartIpLong()).getStartIpLong()),\n () -> assertEquals(expectValues.getEndIpLong(), deny.get(expectValues.getStartIpLong()).getEndIpLong())\n ));\n assertAll(\"test if deny rules are nested, then aggregate (even if different mask)\",\n () -> assertEquals(3, deny.size()),\n () -> assertAll(executables));\n }", "public boolean isInRange(int number){\n return (number >= min && number <= max);\n }", "public boolean inRange(Number n) {\n return n.compareTo(min) >= 0 && n.compareTo(max) <= 0;\n }", "protected boolean matchIPAddress(int rulePrefix, int ruleBits,\n int packetAddress) {\n boolean matched = true;\n\n int rule_iprng = 32 - ruleBits;\n int rule_ipint = rulePrefix;\n int pkt_ipint = packetAddress;\n // if there's a subnet range (bits to be wildcarded > 0)\n if (rule_iprng > 0) {\n // right shift bits to remove rule_iprng of LSB that are to be\n // wildcarded\n rule_ipint = rule_ipint >> rule_iprng;\n pkt_ipint = pkt_ipint >> rule_iprng;\n // now left shift to return to normal range, except that the\n // rule_iprng number of LSB\n // are now zeroed\n rule_ipint = rule_ipint << rule_iprng;\n pkt_ipint = pkt_ipint << rule_iprng;\n }\n // check if we have a match\n if (rule_ipint != pkt_ipint)\n matched = false;\n\n return matched;\n }", "private boolean checkRange() {\n String notInRange = \"\"; //used for displaying error message\n \n double a = Double.valueOf(ampBox.getText());\n int d = Integer.valueOf(durBox.getText());\n int f = Integer.valueOf(freqBox.getText());\n int ow = Integer.valueOf(owBox.getText());\n \n if(a>8.128 || a<0) notInRange += \"Amplitude not in range [0mA,8.128mA]\\n\";\n if(d>423 || d<0) notInRange += \"Pulse duration not in range [0uS,423uS]\\n\";\n if(f>100 || f<0) notInRange += \"Frequency not in range [0Hz,100Hz]\\n\";\n if(ow>60 || ow<0) notInRange += \"ON-WAVE duration not in range [0sec,60sec]\\n\";\n \n if(notInRange.length()>0) {\n notInRange += \"\\nInput within proper ranges and try again\";\n JOptionPane.showMessageDialog(null, \n notInRange, \n \"Error\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n }\n else {\n return true;\n }\n }", "NetworkStaticIPAvailabilityResponse check(String networkName, InetAddress ipAddress) throws IOException, ServiceException, ParserConfigurationException, SAXException;", "public Bounds bounds(String ipAddrsFile, String subnetsFile) throws IOException {\n\t\tfinal Map<String,NetNode> nodes = parseAddresses(ipAddrsFile);\n\t\tfinal Map<NetNode,Subnet> subnets = parseSubnets(subnetsFile, nodes);\n\n\t\tfinal Universe universe = universe(nodes.keySet());\n\t\tfinal Bounds bounds = new Bounds(universe);\n\t\tfinal TupleFactory factory = universe.factory();\n\n\t\t// bind the integers\n\t\tfor (int i = 0; i < 32; i++) {\n\t\t\tbounds.boundExactly(1 << i, factory.setOf(Integer.valueOf(1 << i)));\n\t\t}\n\n\t\t// bind the port relation exactly to the port names\n\t\tbounds.boundExactly(port, factory.range(factory.tuple(universe.atom(0)),\n\t\t\t\tfactory.tuple(universe.atom(nodes.keySet().size() - 1))));\n\n\t\t// bind the unknown relation exactly to the port names of ports with\n\t\t// unknown addresses or masks\n\t\tfinal TupleSet unknownBound = factory.noneOf(1);\n\t\tfor (NetNode n : nodes.values()) {\n\t\t\tif (!n.known()) {\n\t\t\t\tunknownBound.add(factory.tuple(n.port));\n\t\t\t}\n\t\t}\n\t\tbounds.boundExactly(unknown, unknownBound);\n\n\t\t// bind the subnet relation exactly, choosing the first element of each\n\t\t// subnet as the representative\n\t\tfinal TupleSet subnetBound = factory.noneOf(2);\n\t\tfor (Map.Entry<NetNode,Subnet> entry : subnets.entrySet()) {\n\t\t\tfinal NetNode rep = entry.getKey();\n\t\t\tfor (NetNode member : entry.getValue().members) {\n\t\t\t\tsubnetBound.add(factory.tuple(rep.port, member.port));\n\t\t\t}\n\t\t}\n\t\tbounds.boundExactly(subnet, subnetBound);\n\n\t\t// bind the addr relation so that each address is guaranteed to be\n\t\t// between minAddr (121.96.0.0) and maxAddr (121.96.255.255), inclusive\n\t\tfinal TupleSet lAddr = factory.noneOf(2), uAddr = factory.noneOf(2);\n\t\tfor (NetNode node : nodes.values()) {\n\t\t\tif (node.varAddress) { // unknown address\n\t\t\t\tlAddr.addAll(portToBits(factory, node.port, minAddr));\n\t\t\t\tuAddr.addAll(portToBits(factory, node.port, maxAddr));\n\t\t\t} else { // known address\n\t\t\t\tfinal TupleSet portToAddrBits = portToBits(factory, node.port, node.address);\n\t\t\t\tlAddr.addAll(portToAddrBits);\n\t\t\t\tuAddr.addAll(portToAddrBits);\n\t\t\t}\n\t\t}\n\t\tbounds.bound(addr, lAddr, uAddr);\n\n\t\t// bind the group and groupMask relations so that all ports with the\n\t\t// same interface on the same subnet are guaranteed to have the same\n\t\t// mask\n\t\tfinal TupleSet lMask = factory.noneOf(2), uMask = factory.noneOf(2), groupBound = factory.noneOf(2);\n\t\tfor (Subnet sub : subnets.values()) {\n\t\t\tfor (Map.Entry<NetNode,Set<NetNode>> entry : sub.groups.entrySet()) {\n\t\t\t\tfinal NetNode rep = entry.getKey();\n\t\t\t\tfor (NetNode member : entry.getValue()) {\n\t\t\t\t\tgroupBound.add(factory.tuple(member.port, rep.port));\n\t\t\t\t\tnodes.remove(member.port); // remove a grouped member out of\n\t\t\t\t\t\t\t\t\t\t\t\t// the addresses set\n\t\t\t\t}\n\t\t\t\tif (rep.varMask) { // unknown mask for the representative\n\t\t\t\t\tuMask.addAll(portToBits(factory, rep.port, 31));\n\t\t\t\t} else { // known mask for the representative\n\t\t\t\t\tfinal TupleSet portToMaskBits = portToBits(factory, rep.port, rep.mask);\n\t\t\t\t\tlMask.addAll(portToMaskBits);\n\t\t\t\t\tuMask.addAll(portToMaskBits);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// bind the group and groupMask relations for ports that are not a part\n\t\t// of any subnet\n\t\tfor (NetNode ungrouped : nodes.values()) {\n\t\t\tgroupBound.add(factory.tuple(ungrouped.port, ungrouped.port));\n\t\t\tif (ungrouped.varMask) { // unknown mask for the representative\n\t\t\t\tuMask.addAll(portToBits(factory, ungrouped.port, 31));\n\t\t\t} else { // known mask for the representative\n\t\t\t\tfinal TupleSet portToMaskBits = portToBits(factory, ungrouped.port, ungrouped.mask);\n\t\t\t\tlMask.addAll(portToMaskBits);\n\t\t\t\tuMask.addAll(portToMaskBits);\n\t\t\t}\n\t\t}\n\n\t\tbounds.bound(groupMask, lMask, uMask);\n\t\tbounds.boundExactly(group, groupBound);\n\n\t\t// System.out.println(\"groupMask.size: \" + uMask.size() + \", group.size:\n\t\t// \" + groupBound.size());\n\t\t// System.out.println(\"ports.size: \" + bounds.upperBound(port).size() +\n\t\t// \", unknown.size: \" + unknownBound.size());\n\t\treturn bounds;\n\n\t}", "private boolean validate(final String ip) {\t \n final Matcher matcher = m_pattern.matcher(ip);\n return matcher.matches();\n }", "private boolean checkConnection(int x1, int x2) {\n\t\treturn (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||\n\t\t\t\t(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);\n\t\t\n\t}", "public boolean checkAddressSuported(String address) {\n\t\treturn false;\n\t}", "private static Boolean isAnIp(final String ip) {\n\t\treturn PATTERN.matcher(ip).matches();\n\t}", "private static boolean valid(String arg) {\n\n /* check if valid option */\n if ( arg.equals(\"-v\") || arg.equals(\"-i\") || arg.equals(\"-p\") || arg.equals(\"-h\") )\n return true;\n\n /* check if valid port */\n try {\n int port = Integer.parseInt(arg);\n if ( ( 0 < port ) && ( port < 65354 ) )\n return true;\n } catch (NumberFormatException ignored) {}\n\n /* check if valid ip address */\n String[] ips = arg.split(\"\\\\.\");\n if ( ips.length != 4 )\n return false;\n try{\n for (int i=0; i<4; i++){\n int ip = Integer.parseInt(ips[i]);\n if ( ( ip < 0) || (255 < ip ) )\n return false;\n }\n } catch (NumberFormatException ignored) {return false;}\n\n return true;\n }", "protected final boolean rangeTestFailed(int value) {\n\tboolean test1 =\n\t (reqminSet && (reqminClosed? (value < reqmin): (value <= reqmin)))\n\t || (minSet && (minClosed? (value < min): (value <= min)));\n\tboolean test2 =\n\t (reqmaxSet && (reqmaxClosed? (value > reqmax): (value >= reqmax)))\n\t || (maxSet && (maxClosed? (value > max): (value >= max)));\n\treturn (test1 || test2);\n }", "private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }", "public boolean accept(final int startOfSpan, final int spanLength) {\n final int endOfSpan = startOfSpan + spanLength;\n for (int[] constraint : constraints) {\n final int startOfConstraint = constraint[0];\n final int constraintLength = constraint[1];\n final int endOfConstraint = startOfConstraint + constraintLength;\n // Return false if span properly overlaps with constraint:\n if (startOfSpan < startOfConstraint\n && endOfSpan > startOfConstraint\n && endOfSpan < endOfConstraint) {\n return false;\n }\n if (startOfSpan > startOfConstraint\n && startOfSpan < endOfConstraint\n && endOfSpan > endOfConstraint) {\n return false;\n }\n }\n return true;\n }", "public boolean containsDomainRange(Date from, Date to) { return true; }", "public static boolean correctRange(int [] input) {\n\t\treturn (input[0] > 0) && (input[1] > 0) && (input[2] > 0);\n\t}", "private boolean between(int x1, int x2, int x3) {\n return (x1 >= x3 && x1 <= x2) || (x1 <= x3 && x1 >= x2);\n }", "private static boolean checkTaskBounds(int task) {\r\n\t\t\tboolean isInBound;\r\n\t\t\t\r\n\t\t\tif ((task < 0) || (task > 7)) {\r\n\t\t\t\t//isInBound = false;\r\n\t\t\t\tif (task == -1) {\r\n\t\t\t\t\tisInBound = true;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tisInBound = false;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tisInBound = true;\r\n\t\t\t}\r\n\t\t\treturn isInBound;\r\n\t\t}", "private boolean isInRange(int c) {\n switch (border) {\n case between:\n return min <= c && c <= max;\n case min:\n return min <= c;\n case max:\n return c <= max;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + border);\n }\n }", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n }", "public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasRoute(IPv4Address ip){\n\t\tIterator<RouteEntry> it = routeTable.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tRouteEntry r = it.next();\n\t\t\tSubnetUtils.SubnetInfo si = new SubnetUtils(r.dstNet.toString()).getInfo();\n\t\t\tif(si.isInRange(ip.toString()))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static boolean isInBounds(Location location, Vector3i min, Vector3i max) {\n return location.getX() >= min.x && location.getX() < max.x && location.getY() >= min.y\n && location.getY() < max.y && location.getZ() >= min.z && location.getZ() < max.z;\n }", "@Test\n\tpublic void rangeOverlapTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"overlaptest\");\n\t\t// dataset 1\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94226), new ZipCode(94399));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z5 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z5);\n\t\trequiredList.add(z4);\n\n\t\tfor (ZipCodeRange z : zrc.getFinalZipRanges()) {\n\t\t\tSystem.out.println(z.lower.zipcode + \",\" + z.upper.zipcode);\n\t\t}\n\t\tfor (ZipCodeRange z : requiredList) {\n\t\t\tSystem.out.println(z.lower.zipcode + \",\" + z.upper.zipcode);\n\t\t}\n\n\t\tAssert.assertEquals(\"Overlap test Size check passed \", requiredList.size(), zrc.getFinalZipRanges().size());\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\n\t\tclimax();\n\n\t}", "public int isInBounds(T a);", "private boolean isNumberinRange(double needle, double haystack, double range) {\n return (((haystack - range) < needle) // greater than low bounds\n && (needle < (haystack + range))); // less than upper bounds\n }", "public static boolean checkRange(TechnicalData data0, TechnicalData data1, int index0, int index1) {\n\t\tif (data0.timeStamp(index0).equals(data1.timeStamp(index1))) return true;\n\t\treturn false;\n\t}", "private static boolean isValidIpAddress(String value) {\n boolean status = true;\n try {\n Ip4Address ipAddress = Ip4Address.valueOf(value);\n } catch (Exception e) {\n log.debug(\"Invalid IP address string: {}\", value);\n return false;\n }\n\n return status;\n }", "public static boolean checkRange(int x) {\n\n \n if (x >= 1 && x <= 9) { //check if input is between 1 and 9, inclusive\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int in [1,9]; try again: \");\n return (false);\n \n }\n\n \n\n }", "public static boolean inRange (Position defPos, Position atkPos, int range) {\n\t\tint defX = defPos.getX();\n\t\tint defY = defPos.getY();\n\t\t\n\t\tint atkX = atkPos.getX();\n\t\tint atkY = atkPos.getY();\n\t\t\n\t\tif (defX -range <= atkX &&\n\t\t\t\tdefX + range >= atkX)\n\t\t{\n\t\t\tif (defY -range <= atkY &&\n\t\t\t\t\tdefY+range >= atkY)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testAddressExhaustion() throws Exception {\n mRepo.updateParams(new IpPrefix(TEST_SERVER_ADDR, 28), TEST_EXCL_SET, TEST_LEASE_TIME_MS,\n null /* clientAddr */);\n\n // /28 should have 16 addresses, 14 w/o the first/last, 11 w/o excluded addresses\n requestAddresses((byte) 11);\n verify(mCallbacks, times(11)).onLeasesChanged(any());\n\n try {\n mRepo.getOffer(null, TEST_MAC_2,\n IPV4_ADDR_ANY /* relayAddr */, INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE);\n fail(\"Should be out of addresses\");\n } catch (DhcpLeaseRepository.OutOfAddressesException e) {\n // Expected\n }\n verifyNoMoreInteractions(mCallbacks);\n }", "private static boolean checkOccurrenceRange(int min1, int max1, int min2, int max2) {\n/* 1159 */ if (min1 >= min2 && (max2 == -1 || (max1 != -1 && max1 <= max2)))\n/* */ {\n/* */ \n/* 1162 */ return true;\n/* */ }\n/* 1164 */ return false;\n/* */ }", "public boolean validateIP(String ip)\n\t{\n\t\treturn ip.matches(\"localhost\") || ip.matches(IP_REGEX);\n\t}", "boolean containsPowertypeRange(Generalization powertypeRange);", "boolean hasCanIpForward();", "boolean hasAgeRange();", "public static boolean isIpAddress(String ip) {\n String regex = \"(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\";\n if (ip.matches(regex)) {\n return true;\n }\n return false;\n }", "private boolean contains(int from1, int to1, int from2, int to2) {\n\t\treturn from2 >= from1 && to2 <= to1;\n\t}", "public static boolean boundCheck(int xCoord, int yCoord) {\n // the x,y coordinates ranges between 0 and 7 in the board array and because of that they need to be adjusted\n return (xCoord + 1 <= Board.X_UPPER_BOUND && xCoord + 1 >= Board.X_LOWER_BOUND &&\n yCoord + 1 <= Board.Y_UPPER_BOUND && yCoord + 1 >= Board.Y_LOWER_BOUND);\n }", "public void setPortRange(String input) throws BadConfigException {\n Set<Integer> inputPorts= new TreeSet<Integer>();\n String[] ranges = input.split(\",\");\n for ( String range : ranges ) {\n if (range.trim().isEmpty()) {\n continue;\n }\n Matcher m = SINGLE_NUMBER.matcher(range.trim());\n if (m.find()) {\n inputPorts.add(Integer.parseInt(m.group()));\n continue;\n }\n m = NUMBER_RANGE.matcher(range.trim());\n if (m.find()) {\n String[] boundaryValues = m.group(0).split(\"-\");\n int start = Integer.parseInt(boundaryValues[0].trim());\n int end = Integer.parseInt(boundaryValues[1].trim());\n if (end < start) {\n throw new BadConfigException(\"End of port range is before start: \"\n + range + \" in input: \" + input);\n }\n for (int i = start; i < end + 1; i++) {\n inputPorts.add(i);\n }\n continue;\n }\n throw new BadConfigException(\"Bad port range: \" + range + \" in input: \"\n + input);\n }\n if (inputPorts.size() == 0) {\n throw new BadConfigException(\"No ports found in range: \" + input);\n }\n this.remainingPortsToCheck = new ArrayList<Integer>(inputPorts);\n }", "public static boolean checkForValidInput(String input) {\n try {\n int inputValue = Integer.parseInt(input);\n return inputValue >= 0 && inputValue <= 8;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "abstract void addressValidity();", "public static boolean isWellFormedIPv4Address(String address) {\n \n int addrLength = address.length();\n char testChar;\n int numDots = 0;\n int numDigits = 0;\n \n // make sure that 1) we see only digits and dot separators, 2) that\n // any dot separator is preceded and followed by a digit and\n // 3) that we find 3 dots\n //\n // RFC 2732 amended RFC 2396 by replacing the definition \n // of IPv4address with the one defined by RFC 2373. - mrglavas\n //\n // IPv4address = 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT \".\" 1*3DIGIT\n //\n // One to three digits must be in each segment.\n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if ((i > 0 && !isDigit(address.charAt(i-1))) || \n (i+1 < addrLength && !isDigit(address.charAt(i+1)))) {\n return false;\n }\n numDigits = 0;\n if (++numDots > 3) {\n return false;\n }\n }\n else if (!isDigit(testChar)) {\n return false;\n }\n // Check that that there are no more than three digits\n // in this segment.\n else if (++numDigits > 3) {\n return false;\n }\n // Check that this segment is not greater than 255.\n else if (numDigits == 3) {\n char first = address.charAt(i-2);\n char second = address.charAt(i-1);\n if (!(first < '2' || \n (first == '2' && \n (second < '5' || \n (second == '5' && testChar <= '5'))))) {\n return false;\n }\n }\n }\n return (numDots == 3);\n }", "private boolean hasValidBounds() {\n\n\n\n return false;\n }", "boolean hasClientIpV4();", "boolean hasAddress();", "boolean hasAddress();", "private boolean shouldUseFeet(int lowerBound, int upperBound) {\n return (shouldUseUpToFormat(lowerBound) && upperBound >= 12) || (lowerBound >= 12 && upperBound >= 24);\n }", "private boolean inRange(double num, double low, double high) {\n if (num >= low && num <= high)\n return true;\n\n return false;\n }", "public boolean whitelist(Range<Integer> range) {\n meta.add(range);\n return isWhitelisted(range);\n }", "boolean checkIfValidToCreate(int start, int end) {\n return myMarkerTree.processOverlappingWith(start, end, region->{\n int rStart = region.getStartOffset();\n int rEnd = region.getEndOffset();\n if (rStart < start) {\n if (region.isValid() && start < rEnd && rEnd < end) {\n return false;\n }\n }\n else if (rStart == start) {\n if (rEnd == end) {\n return false;\n }\n }\n else {\n if (rStart > end) {\n return true;\n }\n if (region.isValid() && rStart < end && end < rEnd) {\n return false;\n }\n }\n return true;\n });\n }", "public boolean satisfiedByUids(@NonNull NetworkCapabilities nc) {\n if (null == nc.mUids || null == mUids) return true; // The network satisfies everything.\n for (UidRange requiredRange : mUids) {\n if (requiredRange.contains(nc.mEstablishingVpnAppUid)) return true;\n if (!nc.appliesToUidRange(requiredRange)) {\n return false;\n }\n }\n return true;\n }", "public boolean isRangeValid()\n {\n return isRangeValid(((AnalogInput)m_echoChannel).getVoltage());\n }", "Future<NetworkStaticIPAvailabilityResponse> checkAsync(String networkName, InetAddress ipAddress);", "boolean hasDestRange();", "@Override\r\n\tpublic boolean overlapCheck(String email) {\n\t\treturn select(\"email\", email).size()==0;\r\n\t}", "public static boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }", "public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}", "public boolean check_func(int [] land, int x, int y)\n\t{\n\t\tif ((land[0] < x && land[2] > x\n\t\t\t& (land[1] < y && land[3] > y)))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isRange(int low, int high, int threshold)\n\t{\n\t\tint num = 0;\n\n\t\tfor (int i = low; i < high + 1; i++)\n\t\t{\n\t\t\tif (isOnset(i))\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\n\t\treturn num >= threshold;\n\t}", "public boolean isInRange(int fromRank, int toRank, int fromFile, int toFile) {\n return fromRank <= rank && rank <= toRank && fromFile <= file && file <= toFile;\n }", "public static void verifyInterval(double lower, double upper)\r\n/* 145: */ {\r\n/* 146:336 */ if (lower >= upper) {\r\n/* 147:337 */ throw new NumberIsTooLargeException(LocalizedFormats.ENDPOINTS_NOT_AN_INTERVAL, Double.valueOf(lower), Double.valueOf(upper), false);\r\n/* 148: */ }\r\n/* 149: */ }", "public boolean checkCoordinatesInRange(int x1, int y1) {\n\n if (x1 < minRow || y1 < minCol || x1 > maxRow || y1 > maxCol) {\n return false;\n }\n\n return true;\n }", "public int bookInputRangeChecker(String input, int min, int max)\n {\n int num = bookInputIntChecker(input);\n while (num < min || num > max){\n System.out.println(num + \" is not in the allowed range, \" + min + \" - \" + max);\n num = bookInputIntChecker(input);\n }\n \n return num;\n }", "public boolean checkLocations(String location, String range) {\n boolean locationPresent = location != null && !location.isEmpty();\n\n\n if (locationPresent) {\n // Parses the location and range strings into doubles\n String[] locationComponents = location.replaceAll(\" \", \"\").split(\",\");\n latitude = Double.parseDouble(locationComponents[0]);\n longitude = Double.parseDouble(locationComponents[1]);\n desiredRange = Double.parseDouble(range.replace(\"km\", \"\").trim());\n }\n return locationPresent;\n }", "@VisibleForTesting\n public boolean appliesToUidRange(@Nullable UidRange requiredRange) {\n if (null == mUids) return true;\n for (UidRange uidRange : mUids) {\n if (uidRange.containsRange(requiredRange)) {\n return true;\n }\n }\n return false;\n }", "public static void pinAddressesInRange(HashMap<String, Object> argVals,HashMap<String, Object> retVals) \n\t\tthrows IOException, ParserConfigurationException, SAXException{\n\t\t\n\t\tString origin = (String)argVals.get(\"startAddress\");\n\t\tlong range = (java.lang.Long)argVals.get(\"range\");\n\t\tLinkedList<String> addresses = (LinkedList<String>)argVals.get(\"address\");\n\t\tLinkedList<String> comments = (LinkedList<String>)argVals.get(\"addressInfo\");\n\t\tLinkedList<String> survivedComments = new LinkedList<String>();\n\t\tLinkedList<String> survivedAddr = new LinkedList<String>();\n\t\t\n\t\tfor(int i=0;i<addresses.size();i++){\n\t\t\tString addr = addresses.get(i);\n\t\t\tif(getShortestDistance(origin, addr) < range){\n\t\t\t\tsurvivedAddr.add(addr);\n\t\t\t\tif(comments.size()>i)\n\t\t\t\t\tsurvivedComments.add(comments.get(i));\n\t\t\t}\n\t\t}\n\t\tsurvivedAddr.add(origin);\n\t\t\n\t\tString url = \"\";\n\t\t\n\t\tfor(int i=0;i<survivedAddr.size();i++){\n\t\t\tif(survivedAddr.get(i)!=null){\n\t\t\t\tif(i==0){\n\t\t\t\t\turl = ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t\t}\n\t\t\t\turl += ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t}\n\t\t}\n\t\tshowMap(survivedAddr,survivedComments,true);\n\t\t\n\t}", "private boolean checkInBounds(int startX, int startY, int finalX, int finalY) {\r\n\t\treturn startX < 0 || startX >= this.SIZE || startY < 0 || startY >= this.SIZE\r\n\t\t\t\t|| finalX < 0 || finalX >= this.SIZE || finalY < 0 || finalY >= this.SIZE;\r\n\t}", "public boolean in1020(int a, int b) {\n return ((a >= 10 && a <= 20) || (b >= 10 && b <= 20));\n}", "private boolean isUserInputValid(String[] packetData)\n\t{\n\t\tif(packetData.length < 3 ) return false;\n\t\tString address = packetData[0];\n\t\tint port = Integer.parseInt(packetData[1]);\n\n\t\tint addressPeriodsCount = address.length() - address.replace(\".\", \"\").length();\n\n\t\tif (packetData.length < 3)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse if(address.equals(\"localhost\") && (port > 0 || port <= 65535))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (addressPeriodsCount == 3 ||addressPeriodsCount == 2 ) && (port > 0 || port <= 65535);\n\t\t}\n\t}", "public static boolean isBetween(int a, int b, int c) {\n if (a > c) {\n return a >= b && b >= c;\n } else if (a < c) {\n return a <= b && b <= c;\n } else {\n assert a == c;\n return a == b;\n }\n }", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}" ]
[ "0.7145726", "0.68131036", "0.66151637", "0.63016456", "0.626873", "0.62649554", "0.62014586", "0.6105054", "0.60938823", "0.60607284", "0.60291165", "0.60267705", "0.6005862", "0.5963983", "0.5960711", "0.5909307", "0.5841923", "0.583579", "0.583579", "0.583579", "0.583579", "0.58253306", "0.58051324", "0.5784886", "0.5743435", "0.5734385", "0.5720683", "0.5711055", "0.5682358", "0.5667761", "0.5634821", "0.56260616", "0.56244683", "0.5575902", "0.5554979", "0.5549061", "0.55476564", "0.55213606", "0.55190617", "0.5518923", "0.5518214", "0.5504656", "0.5501617", "0.5484085", "0.54819", "0.5467584", "0.5456314", "0.5450663", "0.54325485", "0.54119074", "0.5409403", "0.54063296", "0.53987515", "0.5391251", "0.5378023", "0.53751826", "0.5374305", "0.5329783", "0.53043884", "0.5297089", "0.5290759", "0.52854896", "0.527036", "0.5270175", "0.52650666", "0.5253826", "0.52524835", "0.5247444", "0.524221", "0.5240496", "0.5232134", "0.52115285", "0.52070653", "0.52070653", "0.51983094", "0.5197779", "0.5195917", "0.51952356", "0.51751167", "0.5168773", "0.5163197", "0.51620024", "0.5153754", "0.5152154", "0.51490396", "0.51461744", "0.51448244", "0.5134278", "0.51307654", "0.51299894", "0.5124498", "0.51099724", "0.51057124", "0.51041895", "0.5098186", "0.5078052", "0.5072011", "0.50670934", "0.50635433", "0.5060933" ]
0.63251406
3
Constructor for the operator. Calls the super class constructor.
public findDetectorPeaks(){ super("findDetectorPeaks"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChainOperator(){\n\n }", "public Operation() {\n super();\n }", "public OperatorNode(final Operator operator,\n final int pos) {\n super(pos);\n this.operator = operator;\n }", "private OperatorManager() {}", "public Unary() {\n }", "Operator operator();", "public Operation() {\n /* empty */\n }", "public Expression() {\r\n }", "public Operation() {\n\t}", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "public Calculator() {\r\n\t\t/*\r\n\t\t * Constructor - Method name which has the same class name is called a Consatructor\r\n\t\t */\r\n\t\tSystem.out.println(\"Calling constructor\");\r\n\t}", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "protected RealExpression() {\r\n super();\r\n }", "public Operation(){\n\t}", "ROp() {super(null); _ops=new HashMap<>(); }", "private ExtendedOperations(){}", "private OperatorToken(final CharSequence symbol, final Precedence precedence, final Associativity associativity,\n final Multiplicity multiplicity, final Function<BigDecimal[], BigDecimal> operation) {\n super(symbol, multiplicity, operation);\n this.precedence = precedence;\n this.associativity = associativity;\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ThisKeyword(){\n this(1.0);\n }", "public Math2()\r\n {\r\n \r\n }", "private OperatorToken(final CharSequence symbol, final Precedence precedence, final Associativity associativity,\n final Function<BigDecimal[], BigDecimal> operation) {\n super(symbol, BINARY, operation);\n this.precedence = precedence;\n this.associativity = associativity;\n }", "public OscillatorCalculator() {\n this(1);\n }", "public Constructor(){\n\t\t\n\t}", "private XMath()\n {\n \n }", "public StandardCalculator init() {\n this.load(\"+\", this.add());\n this.load(\"-\", this.subtract());\n this.load(\"*\", this.multiple());\n this.load(\"/\", this.div());\n return this;\n }", "public EnbOper() {\n super(Epc.NAMESPACE, \"enb-oper\");\n }", "Expression() { }", "public Orbiter() {\n }", "public Expression(Expression exp1, Operator op, Expression exp2) {\r\n\t\t// Remember, this is in postfix notation.\r\n\t\telements.addAll(exp1.elements);\r\n\t\telements.addAll(exp2.elements);\r\n\t\telements.add(op);\r\n\t}", "public ConvCalculator(Expression exp){\r\n this();\r\n this.expression = exp;\r\n }", "protected BaseComparator() {}", "protected GenTreeOperation() {}", "JannotTreeJCBinary(InfixExpression n) \n{\n super(n);\n}", "public OpStack() {\n opStack = new Stack();\n }", "public Calculator()\n {\n \n }", "public TbProductOperatorExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public BinaryExpression(IExpression left, IExpression right, IOperation op) {\r\n\t\tthis.op = op; // passes the reference op parameter to the associated\r\n\t\t\t\t\t\t// field.\r\n\t\tthis.left = left; // passes the reference of the left parameter to the\r\n\t\t\t\t\t\t\t// associated field.\r\n\t\tthis.right = right; // passes the reference of the right parameter to\r\n\t\t\t\t\t\t\t// the associated field.\r\n\t}", "private Comparison() {\n }", "public ComplementOp() {\r\n\t\tsuper();\r\n\t}", "public OperatorException(final Operator operator, final String message) {\n super(message);\n this.operator = operator;\n }", "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "public AbstractRecombinator() \r\n\t{\r\n\t\tsuper();\r\n\t\tsetPpl();\r\n\t\tsetSpl();\t\t\r\n\t}", "public ReflectionOperator(Object object) {\n this.object = object;\n }", "public OpTree(String theOp)\n\t{\n\t\tme = ++total;\n\t\tif (DEBUG) System.out.println(\"Terminal Op \" + me);\n\t\top = theOp;\n\t\tdval = null;\n\t\tleft = null;\n\t\tright = null;\n\t}", "O() { super(null); }", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public UnaryExpNode() {\n }", "public OpDesc() {\n\n }", "public NonSelfAdjointOperatorException() {\n super(LocalizedFormats.NON_SELF_ADJOINT_OPERATOR);\n }", "public AgwCslOper() {\n super(Epc.NAMESPACE, \"agw-csl-oper\");\n }", "public Core() {\r\n inputs = new ArrayList<>();\r\n outputs = new ArrayList<>();\r\n converter = new Converter();\r\n\r\n }", "public OperatorException(final Operator operator, final Throwable cause) {\n super(cause);\n this.operator = operator;\n }", "public MathEquation() {\n }", "public Rational() {\n\t\tthis(1,1);\n\t}", "public Complex(){\r\n\t this(0,0);\r\n\t}", "public OrGate() {\n\t\tsuper(2, 1);\n\t}", "@SuppressWarnings(\"unused\")\n private CastExpression() {\n }", "public DoComparator()\n {\n this(true, false, false);\n }", "public ParenthesisCalculator() {\n this(\"Calculator With Operator Precedence and Parentheses\");\n }", "public BaseExpression(Expression e) {\r\n this.e1 = e;\r\n }", "protected DenseMatrix()\n\t{\n\t}", "public OperatorException(final Operator operator, final String message,\n final Throwable cause) {\n super(message, cause);\n this.operator = operator;\n }", "public LogicalOperator() {\n this.logical = Logical.And;\n }", "private Calculator() {\n }", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "public Complex() {\n this(0);\n }", "private RegressionPrior() { \n /* empty constructor */\n }", "private MyMath() {\n }", "public TreeNode(TreeNode left, TreeNode right, char operand){\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t\tthis.operand = operand;\n\t\tthis.type = \"op\";\n\n\t}", "public SiacTCronopElem() {\n\t}", "protected SimpleMatrix() {}", "public Node(){\n this(9);\n }", "private ArrayOps() {\r\n }", "Fraction () {\n this (0, 1);\n }", "public IRAttribute ( ) {\n\t\tsuper();\n\t}", "public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }", "public Expression(Object ob) {\r\n\t\tthis();\r\n\t\taddElement(ob);\r\n\t}", "private Instantiation(){}", "public SingleOperator (int height) {\n super(height);\n generateExpression(height, x, y);\n }", "public CSUB45SO() \r\n {\r\n super();\r\n }", "public Self__1() {\n }", "@Override\n public SymmetricOpDescription build() {\n return new SymmetricOpDescription(operatorType, dataCodecClass, tasks, redFuncClass);\n }", "public Action(Operation op, String[] args) {\n this.op = op;\n this.restriction = null;\n this.args = args;\n this.reqd = new boolean[this.args.length];\n this.cmps = new String[this.args.length];\n List<String> opts = analyzeRequiredArgs();\n this.opts = opts.toArray(new String[opts.size()]);\n }", "public Operations() {\n history = new LinkedList<>();\n future = new LinkedList<>();\n }", "protected ASTNode() {\n\t\t\n\t}", "public void setOperator(Operator_PJ o1) {\n\t\t\n\t}", "public BinaryMatrixNew() {\n\t\t\tsuper(Matrixes.<R, C>newValidating(PredicateUtils.inBetween(0d, 1d)));\n\t\t}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public AbstractBinaryInteraction() {\n\n\t}", "public BinaryNode() {\n\t\tthis(null);\t\t\t// Call next constructor\n\t}", "public JTensor() {\n this(TH.THTensor_(new)());\n }", "public Binary operator(Operator op) {\n\tBinary_c n = (Binary_c) copy();\n\tn.op = op;\n\treturn n;\n }", "protected AST_Node() {\r\n\t}", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public ClassOperator(Class type) {\n this(new StaticArgument(simplify(type.getName())));\n }", "public SqlComparisonExpression(final SqlComparisonOperator operator) {\n this.operator = operator;\n }", "public OperatorNode(OperatorTable opers) {\n this.opers = opers;\n }", "private void __sep__Constructors__() {}", "public Complex(int r, int i){\r\n\t this((double) r, (double) i);\r\n\t\t//chain the input from this constructor to the next constructor,\r\n\t\t// which has a (double, double) signature\r\n\t}", "public TermPrime(ArithmeticOperator operator, Term term) {\r\n\t\tsuper();\r\n\t\tthis.operator = operator;\r\n\t\tthis.term = term;\r\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}" ]
[ "0.7468196", "0.68632954", "0.6625963", "0.66195583", "0.6540802", "0.6499404", "0.6461458", "0.6453816", "0.6450075", "0.6440366", "0.6434587", "0.6416391", "0.639236", "0.6390793", "0.63389975", "0.6320039", "0.6294791", "0.6266277", "0.62380284", "0.6237815", "0.62168664", "0.6216238", "0.62023526", "0.619024", "0.61839473", "0.6162622", "0.616019", "0.6131218", "0.61201817", "0.6096726", "0.6091652", "0.6083079", "0.6053272", "0.60191447", "0.6011344", "0.60100764", "0.60038185", "0.60010314", "0.5996211", "0.5994542", "0.5991999", "0.5988571", "0.59836435", "0.5981311", "0.59770155", "0.59705484", "0.59688777", "0.59568775", "0.593026", "0.5927108", "0.59109414", "0.5905222", "0.5888145", "0.5881715", "0.5877923", "0.5868914", "0.58631635", "0.5863143", "0.5855116", "0.5854292", "0.5852173", "0.5841204", "0.58388513", "0.58309543", "0.58113146", "0.58088505", "0.5803104", "0.5801773", "0.58005", "0.5789195", "0.57776546", "0.5775887", "0.57741135", "0.5764865", "0.57528734", "0.5749818", "0.573633", "0.5735865", "0.5735417", "0.5726839", "0.5725988", "0.57147926", "0.57141924", "0.57079345", "0.5707538", "0.57067096", "0.5702538", "0.5695821", "0.56955785", "0.5692591", "0.5687954", "0.5682267", "0.56694394", "0.5665248", "0.5663907", "0.565409", "0.5653549", "0.56366163", "0.5636226", "0.56347513", "0.56336385" ]
0.0
-1
Gives the user the command for the operator.
public String getCommand(){ return "findDetectorPeaks"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "java.lang.String getCommand();", "public String operator( String op);", "String getCommand();", "public String getUserCommand();", "String getOperator();", "public String getUserCommand() {\n out.print(\"Enter command: \");\n String fullInputLine = in.nextLine();\n\n return fullInputLine;\n }", "public String getOperator() {\n return m_operatorBox.getSelectedItem().toString();\n }", "public String getOperator()\r\n {\r\n return operator;\r\n }", "public String getOperator() {\n return operator;\n }", "public User getOperator () {\n\t\treturn operator;\n\t}", "java.lang.String getOperator();", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "static String getCommand() {\n\t\tString command;\n\t\twhile (true) {\n\t\t\tScanner sca = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = sca.next();\n\t\t\tif (command.equals(\"ac\") || command.equals(\"dc\") || command.equals(\"as\") || command.equals(\"ds\") || command.equals(\"p\") || command.equals(\"q\"))\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid command: \" + command);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(command);\n\t\treturn command;\n\t}", "public String operator() {\n return this.operator;\n }", "public String getOperator() {\n\t\treturn operator;\n\t}", "public String getOperator() {\n\t\treturn operator;\n\t}", "String getOp();", "String getOp();", "String getOp();", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}", "public String Command() {\n\treturn command;\n }", "@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}", "@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}", "public String getCommand(){\n return getCommand(null);\n }", "java.lang.String getCommandName();", "public static String inputCommand() {\n String command;\n Scanner in = new Scanner(System.in);\n\n command = in.nextLine();\n\n return command;\n }", "public void setOperator (User operator) {\n\t\tthis.operator = operator;\n\t}", "public abstract String getCommand();", "private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }", "public Operator getOperator() {\n return this.operator;\n }", "public String getCommand() { return command; }", "public String getCommand() {\r\n return command;\r\n }", "public void setOperator(String incomingOperator)\r\n {\r\n \r\n operator = incomingOperator;\r\n \r\n }", "public String getCmd() {\r\n return cmd;\r\n }", "abstract String getOp();", "public void setOperator(String operator) {\n this.operator = operator;\n }", "public String readCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }", "public char getOper(){\n\t\treturn oper;\n\t}", "public String getCommand() {\n return this.command;\n }", "String getCommand(){\n\t\tString command=\"\";\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcommand = br.readLine();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Somethinf went wrong with the system input!! Please try again.\");\n\t\t}\n\t\treturn command;\n\t}", "public String userCommand(){\n return scanner.nextLine();\n }", "public String getCommand() {\n return command;\n }", "public String getCommand() {\n return command;\n }", "int getCmd();", "final public String getActionCommand() {\n return command;\n }", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }", "public Operator getOperator()\n {\n return operator;\n }", "int getCommand();", "public List<Character> getOperator() {\r\n\t\treturn operator;\r\n\t}", "public java.lang.Integer getOperator() throws java.rmi.RemoteException;", "public String getCommand() {\n\n return command;\n }", "public abstract String getCommandName();", "public abstract String getCommandName();", "public String getCommand(){\n return command;\n }", "public String getOper() {\n return oper;\n }", "public Operator getOp() {\n return op;\n }", "public boolean specialCommand(String userinput){\n return (userinput.equals(\"get\")) || (userinput.equals(\"dir\"));\n }", "public Command getCommand() {\n String userInput = in.nextLine();\n String[] words = userInput.split(\" \", 2);\n try {\n return new Command(words[0].toLowerCase(), words[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new Command(words[0].toLowerCase(), Command.BLANK_DESCRIPTION);\n }\n }", "public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}", "Optional<String> command();", "public String getNextCommand() {\n System.out.println(\"Left, Right, Advance <n>, Quit , Help: \");\n return scanner.nextLine();\n }", "public Long getOperator() {\n return operator;\n }", "@JsonProperty(\"operator\")\n public String getOperator() {\n return operator;\n }", "String getCommandName();", "public java.lang.Integer getOperator() {\n\treturn operator;\n}", "public static String KeyboardScan(){\n\n System.out.println(\"Enter a command : \");\n Scanner sc = new Scanner(System.in);\n String command = sc.next().toLowerCase();\n if(command.equals(\"help\") || command.equals(\"exit\") || command.equals(\"adduser\") || command.equals(\"edituser\") || command.equals(\"removeuser\") || command.equals(\"listusers\") || command.equals(\"addcar\") || command.equals(\"editcar\") || command.equals(\"removecar\") || command.equals(\"listcars\") || command.equals(\"rentcar\") || command.equals(\"returncar\") || command.equals(\"listrents\") || command.equals(\"saveusers\") || command.equals(\"restoreusers\") || command.equals(\"serialusers\" )|| command.equals(\"saverents\") || command.equals(\"loadrents\") || command.equals(\"savecars\") || command.equals(\"loadcars\") || command.equals(\"saveall\") || command.equals(\"loadall\")) {\n return command;\n } else {\n return \"error\";\n }\n\n }", "protected String getCommand() {\n\treturn \"USER_LOGIN\";\n }", "public String toString() {\n return operator + \"(\" + argument + \")\";\n }", "public static void main(String[] args) {\n\t\tchar op;\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter two numbers : \");\n\t\tint iNum1 = sc.nextInt();\n\t\tint iNum2 = sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"Enter an operator \");\n\t\top = sc.next().charAt(0);\n\t\t\n\t\tarithmeticOp(iNum1, iNum2, op);\n\n\t}", "public final SymbolNode getOperator() { return this.operator; }", "private DoubleBinaryOperator chooseOperator() {\n\t\tswitch(name) {\n\t\tcase \"+\":\n\t\t\treturn ADD;\n\t\t\t\n\t\tcase \"-\":\n\t\t\treturn SUB;\n\t\t\t\n\t\tcase \"*\":\n\t\t\treturn MULTIPLY;\n\t\t\t\n\t\tcase \"/\":\n\t\t\treturn DIVIDE;\n\t\t\t\n\t\tcase \"x^n\":\n\t\t\treturn POW;\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Invalid binary operator\");\n\t\t}\n\t}", "private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }", "@Override\n public String getCommandName() {\n return \"man\";\n }", "@Override\n public Command getCommand(Request req) {\n return UnexecutableCommand.INSTANCE;\n }", "public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }", "public String \n getCommand() \n {\n return pCommand;\n }", "@Override\n public String toString() {\n return op.toString();\n }", "public void setOp(String op) {\n this.op = op;\n }", "public String getOperatorName() {\n return operatorName;\n }", "public String getOperatorName() {\n return operatorName;\n }", "public OperatorEnum getOperator() {\n return operator;\n }", "public int getCmd() {\n return cmd_;\n }", "public int getOp() {\n\t\treturn op;\n\t}", "@Override\n\tpublic String getOperator() {\n\t\treturn \"?\";\n\t}", "public Operator operator() {\n\treturn this.op;\n }", "public Command getCurrentCommand();", "public final Operator operator() {\n return operator;\n }", "int getActionCommand();", "public String readCommand() {\n return scanner.nextLine();\n }", "public int getCommand() {\n return command_;\n }", "@FXML\n private void operatorAction(ActionEvent event)\n {\n // Get Button\n Button button = (Button)event.getSource();\n \n // Get Text\n String operatorText = button.getText();\n \n // Press operator\n pressOperator(operatorText);\n \n }", "public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n command_ = s;\n }\n return s;\n }\n }" ]
[ "0.73017573", "0.7210698", "0.70717716", "0.7051548", "0.7034742", "0.69644344", "0.6954587", "0.69242513", "0.68835384", "0.6873833", "0.68693477", "0.68409073", "0.67923564", "0.67923564", "0.67923564", "0.67923564", "0.67923564", "0.67923564", "0.67715544", "0.6718193", "0.66999453", "0.66999453", "0.667014", "0.667014", "0.667014", "0.66245544", "0.66245544", "0.6621715", "0.6621189", "0.66082096", "0.6583781", "0.657628", "0.65710217", "0.6559964", "0.6557619", "0.65441024", "0.6523853", "0.6509814", "0.6508519", "0.6506476", "0.6505011", "0.6502936", "0.6480643", "0.64682615", "0.64521503", "0.6439796", "0.6428689", "0.64089924", "0.64086133", "0.6399108", "0.6399108", "0.63931984", "0.63670963", "0.63610405", "0.635818", "0.6328894", "0.6323503", "0.63168705", "0.6298376", "0.6296027", "0.62846565", "0.62846565", "0.62812406", "0.6268532", "0.6256452", "0.6251452", "0.6244453", "0.62291616", "0.62229645", "0.6218442", "0.6202894", "0.6185983", "0.61735755", "0.6161277", "0.6158775", "0.61568993", "0.6152151", "0.6152", "0.6150829", "0.6142894", "0.61378175", "0.61279744", "0.61186355", "0.6113894", "0.6104927", "0.6101745", "0.6086787", "0.60840374", "0.60840374", "0.6072368", "0.60678005", "0.6061903", "0.60401106", "0.6031253", "0.6030966", "0.60240954", "0.6013893", "0.6011809", "0.60057265", "0.59969217", "0.59958225" ]
0.0
-1
Sets the default parameters for the operator.
public void setDefaultParameters(){ clearParametersVector(); addParameter( new DataSetPG("Data Set",DataSetTools.dataset.DataSet.EMPTY_DATA_SET)); addParameter( new IntegerPG("Detector ID",1)); addParameter( new IntegerPG("Min Time Channel",1)); addParameter( new IntegerPG("Max Time Channel",1000)); addParameter( new IntegerPG("Max num Peaks",30)); addParameter( new IntegerPG("min Peak intensity",0)); addParameter( new StringPG("Pixel rows to keep","1:100")); addParameter( new StringPG("Pixel cols to keep","1:100")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParametersToDefaultValues()\n/* 65: */ {\n/* 66:104 */ super.setParametersToDefaultValues();\n/* 67:105 */ this.placeholder = _placeholder_DefaultValue_xjal();\n/* 68: */ }", "public void setDefaultParameters()\n {\n parameters = new Vector(); // must do this to clear any old parameters\n\n Parameter parameter = new Parameter( \"DataSet to Divide\",\n DataSet.EMPTY_DATA_SET );\n addParameter( parameter );\n\n parameter = new Parameter( \"Create new DataSet?\", new Boolean(false) );\n addParameter( parameter );\n }", "public void SetDefaultParams() {\n OCCwrapJavaJNI.BRepAlgo_NormalProjection_SetDefaultParams(swigCPtr, this);\n }", "public void setDefaultParameters(){\n clearParametersVector();\n addParameter( new LoadFilePG(\"Vanadium NeXus File Name\",\"\"));\n addParameter( new LoadFilePG(\"Background NeXus File Name\",\"\"));\n addParameter( new LoadFilePG(\"Integrated Peaks File\",\"\"));\n addParameter( new SaveFilePG(\"Adjusted Integrate File\",\"\"));\n addParameter( new FloatPG(\"Min Time-of-Flight to Sum\",0.0));\n addParameter( new FloatPG(\"Max Time-of-Flight to Sum\",48000));\n addParameter( new IntegerPG(\"Zero Pixel Border Size\",8));\n addParameter( new IntegerPG(\"Region Half-Width\",5));\n }", "public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}", "private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}", "public DefaultExecuterParameters() {\n\t\tnumAuthorsAtStart = 5;\n\t\tnumPublicationsAtStart = 20;\n\t\tnumCreationAuthors = 0;\n\t\tnumCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t}", "public void initDefaultValues(PathologyReportReviewParameter t)\r\n\t{\n\r\n\t}", "@Override\n\tpublic void setDefaultParameters() {\n\t\tprobCatch = (probCatchBounds.get(0) + probCatchBounds.get(2)) / 2;\n\t}", "protected void initDefaultParameters(String name) {\n\t\t// default parameter - name\n\t\tCaselessParameter cslpar =\n\t\t\tnew CaselessParameter(ISchemaComponent.KEY_NAME, false, new Caseless(name));\n\t\tcslpar.setParameterEvent(new NameChanger());\n\t\tparameters.addParameter(cslpar);\n\t\t\n\t\t// default parameter - component orientation\n\t\tGenericParameter<Orientation> orientpar =\n\t\t\tnew GenericParameter<Orientation>(ISchemaComponent.KEY_ORIENTATION, false,\n\t\t\t\t\tnew Orientation());\n\t\torientpar.getConstraint().setPossibleValues(Orientation.allAllowed);\n\t\tparameters.addParameter(orientpar);\n\t}", "public void setToDefault();", "public DefaultSortParameters() {\n\t\tthis(null, null, null, null, null);\n\t}", "public void setDefaultSettings()\n {\n this.IndexerEffort = 0;\n this.indexZIPFiles = true;\n this.thumbnailsMatrix = \"64\";\n this.SaveThumbnails = false;\n }", "protected void setToDefault(){\n\n\t}", "public Arguments getDefaultParameters()\n {\n Arguments params = new Arguments();\n params.addArgument(\"SleepTime\", String.valueOf(DEFAULT_SLEEP_TIME));\n params.addArgument(\n \"SleepMask\",\n \"0x\" + (Long.toHexString(DEFAULT_SLEEP_MASK)).toUpperCase());\n return params;\n }", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public void initDefaultValues() {\n }", "private void setDefaultValues() {\r\n this.nodeDegreeSpinner.setValue(display_node_degree_default);\r\n this.displayEdgesSpinner.setValue(display_edges_default);\r\n this.scaleSpinner.setValue(scale_default);\r\n this.minweightSpinner.setValue(minweight_edges_default);\r\n this.iterationsSpinner.setValue(iterations_default);\r\n this.vote_value.setValue(vote_value_default);\r\n this.mut_value.setValue(mut_value_default);\r\n this.keep_value.setValue(keepclass_value_default);\r\n\r\n this.only_sub.setSelected(display_sub_default);\r\n this.top.setSelected(true);\r\n this.continuous.setSelected(true);\r\n this.dec.setSelected(true);\r\n this.vote_value.setEnabled(false);\r\n this.is_alg_started = false;\r\n }", "ParameterableElement getDefault();", "@Override\n public void convertToDefaultValueOps() {\n\n }", "public void setInitialParameters() {\n /** DO NOTHING */\n }", "public void setDefaultParameters() {\n\tsetParameterValue(\"genie.param.x\",\"genie.dfwx\");\n\tsetParameterValue(\"genie.param.x.begin\",\"-0.3\");\n\tsetParameterValue(\"genie.param.x.increment\",\"0.6\");\n\tsetParameterValue(\"genie.param.x.increment.type\",\"linear\");\n\tsetParameterValue(\"genie.param.x.end\",\"0.3\");\n\tsetParameterValue(\"genie.param.y\",\"genie.dfwy\");\n\tsetParameterValue(\"genie.param.y.begin\",\"-0.3\");\n\tsetParameterValue(\"genie.param.y.increment\",\"0.6\");\n\tsetParameterValue(\"genie.param.y.increment.type\",\"linear\");\n\tsetParameterValue(\"genie.param.y.end\",\"0.3\");\n\tsetParameterValue(\"genie.nsteps\",\"1001\");\n\tsetParameterValue(\"genie.npstp\",\"1000\");\n\tsetParameterValue(\"genie.iwstp\",\"1000\");\n\tsetParameterValue(\"genie.itstp\",\"10\");\n\tsetParameterValue(\"genie.restart\",\"n\");\n\tsetParameterValue(\"genie.tv\",\"3.65\");\n\tsetParameterValue(\"genie.ndta\",\"5\");\n\tsetParameterValue(\"genie.temp0\",\"5.0\");\n\tsetParameterValue(\"genie.temp1\",\"5.0\");\n\tsetParameterValue(\"genie.rel\",\"0.9\");\n\tsetParameterValue(\"genie.scf\",\"2.0\");\n\tsetParameterValue(\"genie.diff1\",\"2000.0\");\n\tsetParameterValue(\"genie.diff2\",\"1e-5\");\n\tsetParameterValue(\"genie.adrag\",\"2.5\");\n\tsetParameterValue(\"genie.diffamp1\",\"8111000\");\n\tsetParameterValue(\"genie.diffamp2\",\"79610\");\n\tsetParameterValue(\"genie.betaz1\",\"0.1111\");\n\tsetParameterValue(\"genie.betam1\",\"0.0\");\n\tsetParameterValue(\"genie.betaz2\",\"0.2626\");\n\tsetParameterValue(\"genie.betam2\",\"0.2626\");\n\tsetParameterValue(\"genie.scl_co2\",\"1.0\");\n\tsetParameterValue(\"genie.pc_co2_rise\",\"0.0\");\n\tsetParameterValue(\"genie.diffsic\",\"2000.0\");\n\tsetParameterValue(\"genie.tatm\",\"0.0\");\n\tsetParameterValue(\"genie.relh0_ocean\",\"0.0\");\n\tsetParameterValue(\"genie.relh0_land\",\"0.0\");\n\tsetParameterValue(\"genie.dfwx\",\"0.0\");\n\tsetParameterValue(\"genie.dfwy\",\"0.0\");\n\tsetParameterValue(\"genie.lout\",\"0000\");\n\tsetParameterValue(\"genie.lin\",\"0000.1\");\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new OperationElevator());\n elevator.setOpenLoopRampRate(RobotMap.ELEVATOR_RAMP_RATE);\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public void setDefaultValue(final Object defaultValue);", "@Override\n protected void setStoppingCriteria(Model.Parameters parms, Model.Parameters defaults) {\n }", "protected void performDefaults() {\r\n\t}", "public void setDefault(String defaultValue) {\n this.defaultValue = defaultValue;\n }", "public DefaultSortParameters(Range limit, Order order, Boolean alphabetic) {\n\t\tthis(null, limit, null, order, alphabetic);\n\t}", "public void setDefault(boolean aDefault) {\n m_Default = aDefault;\n }", "protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}", "public void setDefaultNumber(Integer defaultNumber) {\n this.defaultNumber = defaultNumber;\n }", "@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }", "public Criteria(Map comparisonoperatorMap, Operator defaultcomparisonOperator, LogicalOperator defaultLogicalOperator)\n\t{\n\t\tif (comparisonoperatorMap == null || defaultLogicalOperator == null || defaultcomparisonOperator == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Criteria creation failed because operator map or default comparison/logical operator was null.\");\n\t\t}\n\t\tmComparisonOperatorMap = comparisonoperatorMap;\n\t\tmDefaultComparisonOperator = defaultcomparisonOperator;\n\t\tmLogicalOperatorMap = new HashMap();\n\t\tmDefaultLogicalOperator = defaultLogicalOperator;\n\t\n\t}", "public Criteria(Map comparisonoperatorMap, Operator defaultComparisonOperator, Map logicalOperatorMap, LogicalOperator defaultLogicalOperator)\n\t{\n\t\tif (comparisonoperatorMap == null || defaultComparisonOperator == null || defaultLogicalOperator == null || logicalOperatorMap == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Criteria creation failed because operator map or default operator was null.\");\n\t\t}\n\t\tmComparisonOperatorMap = comparisonoperatorMap;\n\t\tmDefaultComparisonOperator = defaultComparisonOperator;\n\t\tmLogicalOperatorMap = logicalOperatorMap;\n\t\tmDefaultLogicalOperator = defaultLogicalOperator;\n\t}", "public RankingParams() {\n this(\n null,\n null,\n null,\n null,\n null,\n null\n );\n }", "private void processPropDefaultValues() {\n getMethodsWithAnnotation(component, PropDefault.class).forEach(method -> {\n PropDefault propValidator = method.getAnnotation(PropDefault.class);\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String propertyName = propValidator.value();\n optionsBuilder.addStatement(\"options.addJavaPropDefaultValue(p.$L, $S)\",\n exposedMethodName,\n propertyName);\n });\n }", "public OpDesc(OpDesc defaults, int freq) {\n this(defaults.name, freq, defaults.nopComputer, defaults.immediates, defaults.outArgs, defaults.inArgs);\n }", "public void setDefault(String key){\n _default = key;\n }", "public final void setDefault() {\n wind.setCoordinates(DEFAULT_TURBULENCES, DEFAULT_TURBULENCES,\n DEFAULT_TURBULENCES);\n }", "public Criteria(Map logicaloperatorMap, LogicalOperator defaultLogicalOperator)\n\t{\n\t\tif (logicaloperatorMap == null || defaultLogicalOperator == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Criteria creation failed because operator map or default logical operator was null.\");\n\t\t}\n\t\tmComparisonOperatorMap = new HashMap();\n\t\tmDefaultComparisonOperator = Operator.EQUALS;\n\t\tmLogicalOperatorMap = logicaloperatorMap;\n\t\t\n\t\tmDefaultLogicalOperator = defaultLogicalOperator;\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\tfor(int i=0; i<10; i++){\n\t\t\tlimSwitches[i]= new DigitalInput(i);\n\t\t}\n\t\t\n\t\tlowerLeft.setInverted(true);\n\t\tintakeMotor.setInverted(true);\n\t\t\n\t}", "public DampingParam(DoubleDiscreteConstraint dampingConstraint,\n double defaultDamping) {\n super(NAME, dampingConstraint, UNITS);\n dampingConstraint.setNonEditable();\n this.setInfo(INFO);\n setDefaultValue(defaultDamping);\n setNonEditable();\n }", "public DefaultInferenceParameters(CycAccess cycAccess) {\n this.cycAccess = cycAccess;\n }", "public void setDefaultExpressionContext(\n\t\t\tExpressionContext defaultExpressionContext) {\n\t\tthis.defaultExpressionContext = defaultExpressionContext;\n\t}", "public void setDefault(boolean value) {\n this._default = value;\n }", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "PreferenceDefaultValueAttribute getDefaultValue();", "public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\t\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n \tisPID = true;\r\n \trampingCoeff = 20;\r\n }", "void setDefaultPreference(String preferenceName, String value) throws OntimizeJEERuntimeException;", "public Criteria(Map comparisonoperatorMap, Operator defaultComparisonOperator)\n\t{\n\t\tif (comparisonoperatorMap == null || defaultComparisonOperator == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Criteria creation failed because operator map or default comparison operator was null.\");\n\t\t}\n\t\tmComparisonOperatorMap = comparisonoperatorMap;\n\t\tmDefaultComparisonOperator = defaultComparisonOperator;\n\t\tmLogicalOperatorMap = new HashMap();\n\t\tmDefaultLogicalOperator = new SimpleLogicalOperator(\"AND NOT\");\n\t}", "public void setDefaultWorkUnits(TimeUnit units)\r\n {\r\n m_defaultWorkUnits = units;\r\n }", "public void initDefaultValues(SurgicalPathologyReport t)\r\n\t{\n\r\n\t}", "@Test\n public void defaultValueTest() {\n String[] commandLine = new String[0];\n\n parsingEngine.addArgumentSource( DefaultValueArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n DefaultValueArgProvider argProvider = new DefaultValueArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 42, \"Default value is not correctly initialized\");\n\n // Then try to override it.\n commandLine = new String[] { \"--value\", \"27\" };\n\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 27, \"Default value is not correctly initialized\");\n }", "public void setOpcdefault(java.lang.Boolean value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCDEFAULT, value);\n\t}", "public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }", "private void setValoresDefault()\n\t{\n\t\t// seta valores default dos campos\n\t\tlmResumo.clear();\n\n\t\tlmResumo.addElement(\"10000000\");\n\t\tlmResumo.addElement(\"20000000\");\n\t\tlmResumo.addElement(\"30000000\");\n\t\tlmResumo.addElement(\"40000000\");\n\t\tlmResumo.addElement(\"50000000\");\n\n\t\tjTFQTdRegistroBD.setText(null);\n\n\t\tjCBSmall.setSelected(true);\n\t\tjCBLarge.setSelected(true);\n\t\tjCBExtra.setSelected(true);\n\n\t\tjTFSlaps.setText(\"5\");\n\n\t\tatualizarGraficos(new TreeMap<Long, List<ResultadoVO>>());\n\n\t}", "void setParameters() {\n\t\t\n\t}", "public\n void setPropertiesDefaults(YutilProperties argprops)\n {\n if (argprops == null)\n return;\n\n // Copy all key/val pairs\n for (Enumeration ep = argprops.propertyNames(); ep.hasMoreElements(); )\n {\n String key = (String)ep.nextElement();\n String val = key + \"=\" + argprops.getProperty(key);\n setPropertiesDefaults(val, false);\n }\n }", "static void setDefaults() {\n \n setDefault(FEATURE_POLICY_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_ENRICHER_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_FEED_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_FEED_REGISTRATION_PROPERTY, false);\n setDefault(FEATURE_CATALOG_PERSISTENCE_PROPERTY, true);\n setDefault(FEATURE_DEFAULT_STANDBY_IS_HOT_PROPERTY, false);\n setDefault(FEATURE_USE_BROOKLYN_LIVE_OBJECTS_DATAGRID_STORAGE, false);\n setDefault(FEATURE_RENAME_THREADS, false);\n setDefault(FEATURE_BACKWARDS_COMPATIBILITY_INFER_CATALOG_ITEM_ON_REBIND, true);\n setDefault(FEATURE_AUTO_FIX_CATALOG_REF_ON_REBIND, false);\n setDefault(FEATURE_SSH_ASYNC_EXEC, false);\n setDefault(FEATURE_VALIDATE_LOCATION_SSH_KEYS, true);\n }", "public void setDefaultTemp(Integer defaultTemp) {\n this.defaultTemp = defaultTemp;\n }", "private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"[email protected]\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}", "public final void setDefaultSPFilterTablePanel(final NGAFFilterTablePanel defaultSPFilterTablePanelParam) {\n defaultSPFilterTablePanel = defaultSPFilterTablePanelParam;\n }", "static public void setDefaultObject (Object obj) {\n defaultObject = obj;\n }", "public NetworkDevicePatchParameters() {\n }", "public LayoutParams generateDefaultLayoutParams() {\n return new LayoutParams();\n }", "public void reset(Parameters params) {\r\n pui.resetParameters();\r\n for (String name : params.getSchema().parameterNames()) {\r\n ParameterSchema schema = params.getSchema().getDetails(name);\r\n Object defVal = schema.getDefaultValue();\r\n if (name.equals(ParameterConstants.DEFAULT_RANDOM_SEED_USAGE_NAME) && defVal.equals(Parameters.NULL)) {\r\n int val = (int) System.currentTimeMillis();\r\n // per JIRA 76 - \"Use positive default random seeds\"\r\n if (val < 0) val = Math.abs(val);\r\n params.setValue(ParameterConstants.DEFAULT_RANDOM_SEED_USAGE_NAME, val);\r\n } else {\r\n if (!defVal.equals(Parameters.NULL)) {\r\n params.setValue(name, defVal);\r\n }\r\n }\r\n }\r\n }", "public BistableParams(){\n\t\tMinDiffGrpPhyloDist = 0.5;\n\t\tMaxSameGrpPhyloDist= 0.3;\n\t\tMaxContentDiss = 0;\n\t\tMinGrpMemSize = 3;\n\t\tMinOpSize = 3;\n\t}", "public void setDefaultFlag(Integer defaultFlag) {\n this.defaultFlag = defaultFlag;\n }", "void setDefaultSendOptions(SendOptions defaultSendOptions) {\n this.defaultSendOptions = defaultSendOptions;\n }", "public void initDefaultCommand() {\n \tclaw = new DoubleSolenoid(RobotMap.CLAW_PNU_1, RobotMap.CLAW_PNU_2);\n \tpunch = new DoubleSolenoid(RobotMap.PUNCH_PNU_1, RobotMap.PUNCH_PNU_2);\n \t\n \tarm = new VictorSP(RobotMap.ARM_MOTOR);\n \t\n \tarmEncode = new Encoder(RobotMap.ARM_ENCODE_1, RobotMap.ARM_ENCODE_2);\n \t\n \t//armEncode.setPIDSourceType(PIDSourceType.kDisplacement);\n \tarmControl = new PIDController(0.01,0,0, armEncode, arm);\n \t\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new DriveTrainDefault());\n }", "private GridCoverageRequest setStandardReaderDefaults(GridCoverageRequest subsettingRequest) throws IOException {\n DateRange temporalSubset = subsettingRequest.getTemporalSubset();\n NumberRange<?> elevationSubset = subsettingRequest.getElevationSubset();\n Map<String, List<Object>> dimensionSubset = subsettingRequest.getDimensionsSubset();\n\n // Reader is not a StructuredGridCoverage2DReader instance. Set default ones with policy \"time = max, elevation = min\".\n\n // Setting default time\n if (temporalSubset == null) {\n // use \"max\" as the default\n Date maxTime = accessor.getMaxTime();\n if (maxTime != null) {\n temporalSubset = new DateRange(maxTime, maxTime);\n }\n }\n\n // Setting default elevation\n if (elevationSubset == null) {\n // use \"min\" as the default\n Number minElevation = accessor.getMinElevation();\n if (minElevation != null) {\n elevationSubset = new NumberRange(minElevation.getClass(), minElevation, minElevation);\n }\n }\n\n // Setting default custom dimensions\n final List<String> customDomains = accessor.getCustomDomains();\n int availableCustomDimensions = 0; \n int specifiedCustomDimensions = 0;\n if (customDomains != null && !customDomains.isEmpty()) {\n availableCustomDimensions = customDomains.size();\n specifiedCustomDimensions = dimensionSubset != null ? dimensionSubset.size() : 0; \n if (dimensionSubset == null) {\n dimensionSubset = new HashMap<String, List<Object>>();\n }\n }\n if (availableCustomDimensions != specifiedCustomDimensions) {\n setDefaultCustomDimensions(customDomains, dimensionSubset);\n }\n\n subsettingRequest.setDimensionsSubset(dimensionSubset);\n subsettingRequest.setTemporalSubset(temporalSubset);\n subsettingRequest.setElevationSubset(elevationSubset);\n return subsettingRequest;\n }", "protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }", "public CvBoostParams()\r\n {\r\n\r\n super( CvBoostParams_0() );\r\n\r\n return;\r\n }", "public void setDefault(String defaultTarget) {\n this.defaultTarget = defaultTarget;\n }", "public static void resetParams()\n {\n Debug = false;\n SpecOption = false;\n MyspecOption = false;\n Spec2Option = false;\n Myspec2Option = false;\n SpecFile = \"\";\n WriteASTFlag = false;\n LabelFlag = false;\n ReportLabelsFlag = false;\n LabelRoot = \"Lbl_\";\n FairnessOption = \"\";\n FairAlgorithm = false;\n CheckTermination = false;\n NoOld = false;\n Nocfg = false;\n NoDoneDisjunct = false;\n optionsInFile = false;\n versionOption = null;\n inputVersionNumber = PcalParams.versionWeight;\n PcalTLAGen.wrapColumn = 78;\n PcalTLAGen.ssWrapColumn = 45;\n tlaPcalMapping = null ;\n \n }", "void setDefaultEndpoint(Endpoint defaultEndpoint);", "private void setDefaultValues() {\n nameInput.setText(\"\");\n frontTrackInput.setText(String.valueOf(RaceCar.getDefaultTrack()));\n cornerWeightFLInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_FL()));\n cornerWeightRLInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_RL()));\n rearTrackInput.setText(String.valueOf(RaceCar.getDefaultTrack()));\n cornerWeightRRInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_RR()));\n cornerWeightFRInput.setText(String.valueOf(RaceCar.DEFAULT_CORNER_WEIGHT_FR()));\n cogInput.setText(String.valueOf(RaceCar.getDefaultCogheight()));\n frontRollDistInput.setText(String.valueOf(RaceCar.getDefaultFrontrolldist()));\n wheelBaseInput.setText(String.valueOf(RaceCar.getDefaultWheelbase()));\n }", "public Object getDefaultValue();", "public Object getDefaultValue();", "private Default()\n {}", "public DiceParameter(String name, String key, String desc, boolean visible, boolean enabled, boolean required, Object defaultValue) {\n super(name,key,desc,visible,enabled,required,defaultValue);\n }", "public static DefaultExpression default_() { throw Extensions.todo(); }", "protected void initDefaultCommand() {\n \t\t\n \t}", "public void setDefault(int floorNum) {\n\t\t\n\t\tDEFAULT = floorNum;\n\t\tcurrFloor = DEFAULT;\n\t}", "public void setDefaultAlpha(double alpha) {\n defaultAlpha = alpha;\n invalidate();\n }", "private void defaultForEmptyConditions()\n {\n /*\n * When any of the Conditions has all Left Hand Side, Operator and\n * Right Hand Side as empty then set Operator to default value of\n * CVL_WF_OPRSImpl.EQUAL(mimic default situation).\n * Note if this is not done then the condition will store null value\n * for Left Hand Side, Operator and Right Hand Side, and the whole condition\n * record will not be displayed on \"Manage Approval Conditions\" page\n * because the page selection query uses an equal join with R_WF_APRV_COND\n * and CVL_WF_OPRS tables.\n */\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n if( isNull(\"AND_COND_LHS_\" + liCtr) && isNull(\"AND_COND_OPR_\" + liCtr)\n && isNull(\"AND_COND_RHS_\" + liCtr) )\n {\n getData(\"AND_COND_OPR_\" + liCtr).setbyte((byte)3);\n }\n }//end for\n }", "private void setDefaultOnRawConn(Connection rawConn) {\r\n try {\r\n rawConn.setAutoCommit(poolConfig.isDefaultAutoCommit());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})failed to set default on executing 'setAutoCommit',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})failed to set default on executing 'setAutoCommit'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setTransactionIsolation(poolConfig.getDefaultTransactionIsolationCode());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setReadOnly(poolConfig.isDefaultReadOnly());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setReadOnly',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setReadOnly'\", poolName);\r\n }\r\n\r\n if (!isBlank(poolConfig.getDefaultCatalog())) {\r\n try {\r\n rawConn.setCatalog(poolConfig.getDefaultCatalog());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setCatalog',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setCatalog'\", poolName);\r\n }\r\n }\r\n\r\n //for JDK1.7 begin\r\n if (supportSchema && !isBlank(poolConfig.getDefaultSchema())) {//test schema\r\n try {\r\n rawConn.setSchema(poolConfig.getDefaultSchema());\r\n } catch (Throwable e) {\r\n supportSchema = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'schema',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'schema'\", poolName);\r\n }\r\n }\r\n\r\n if (supportNetworkTimeout) {//test networkTimeout\r\n try {//set networkTimeout\r\n this.networkTimeout = rawConn.getNetworkTimeout();\r\n if (networkTimeout < 0) {\r\n supportNetworkTimeout = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n } else {\r\n rawConn.setNetworkTimeout(this.getNetworkTimeoutExecutor(), networkTimeout);\r\n }\r\n } catch (Throwable e) {\r\n supportNetworkTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'networkTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n }\r\n }\r\n\r\n if (this.supportIsValid) {//test isValid\r\n try {//test Connection.isValid\r\n if (rawConn.isValid(connectionTestTimeout)) {\r\n this.connectionTester = new ConnValidTester();\r\n } else {\r\n supportIsValid = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n }\r\n } catch (Throwable e) {\r\n supportIsValid = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'isValid',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n\r\n Statement st = null;\r\n try {\r\n st = rawConn.createStatement();\r\n st.setQueryTimeout(connectionTestTimeout);\r\n } catch (Throwable ee) {\r\n supportQueryTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'queryTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'queryTimeout'\", poolName);\r\n } finally {\r\n if (st != null) oclose(st);\r\n }\r\n }\r\n }\r\n //for JDK1.7 end\r\n }", "public void initDefaultCommand() {\n setDefaultCommand(new IdentifyBestTarget());\n }", "public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}", "private void setDefaultMode(GlobalState gs) {\n center = gs.cnt;\n double diagonal = gs.vDist * cos(gs.phi);\n double z = sin(gs.phi) * gs.vDist;\n double x = diagonal * cos(gs.theta);\n double y = diagonal * sin(gs.theta);\n \n eye = new Vector(x, y, z);\n \n }", "public void fillDefaultValues() {\n checkUsingAdaptation();\n tfSemiSaturation.setText(Double.toString(prototypeRule\n .getSemiSaturationConstant()));\n tfSteepness.setText(Double.toString(prototypeRule.getSteepness()));\n tfTimeConstant\n .setText(Double.toString(prototypeRule.getTimeConstant()));\n tsNoise.setSelected(prototypeRule.getAddNoise());\n tsUseAdaptation.setSelected(prototypeRule.getUseAdaptation());\n tfAdaptationTime.setText(Double.toString(prototypeRule\n .getAdaptationTimeConstant()));\n tfAdaptationParam.setText(Double.toString(prototypeRule\n .getAdaptationParameter()));\n randTab.fillDefaultValues();\n }", "@Override\n public void setDefault() {\n value = new byte[] {0x40};\n }", "public ElevatorControllerOperationsDefault() {\n\t\televatorControllerOperations = ElevatorControllerOperationsImplFactory.ElevatorControllerOperationsBuilder();}", "public void setDefaultPageSize(int newDefaultPageSize)\n\t{\n\t\tdefaultPageSize = newDefaultPageSize;\n\t}", "public void initDefaultCommand()\n\t{\n\t}", "public void setDefaultOffset(int defaultOffset) {\r\n this.defaultOffset = defaultOffset;\r\n }", "public void setDefaultValue() throws Exception {\n\t\tString columns[] = CommonUtil.split(getFrwVarDefaultColumn(), \",\");\n\t\tString values[] = CommonUtil.split(getFrwVarDefaultValue(), \",\");\n\n\t\tif (CommonUtil.isNotEmpty(columns)) {\n\t\t\tfor (int i=0; i<columns.length; i++) {\n\t\t\t\tsetValue(columns[i], values[i]);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.7205161", "0.698378", "0.69192725", "0.6626155", "0.658782", "0.6416033", "0.6322684", "0.62976724", "0.6284635", "0.62533563", "0.6244488", "0.6226647", "0.6205918", "0.6127798", "0.6111613", "0.60839874", "0.60781854", "0.6073599", "0.60650545", "0.60410964", "0.59012055", "0.58887583", "0.58388287", "0.5770776", "0.5747242", "0.56731343", "0.5627388", "0.56265557", "0.56151104", "0.55978096", "0.55956346", "0.55784935", "0.55491495", "0.5548118", "0.5541823", "0.5534967", "0.55243754", "0.55121326", "0.55103225", "0.54719704", "0.5459916", "0.54569995", "0.544338", "0.543615", "0.5431136", "0.5430144", "0.5425176", "0.5401288", "0.5399654", "0.5388532", "0.5387205", "0.53706485", "0.5350198", "0.53398323", "0.53392386", "0.53106856", "0.53095067", "0.5308747", "0.52958345", "0.5277798", "0.52614325", "0.5254599", "0.5249086", "0.52442473", "0.5243167", "0.5242871", "0.52189016", "0.5213422", "0.52042115", "0.5201453", "0.52008194", "0.5195062", "0.5193509", "0.5192824", "0.51918036", "0.5191289", "0.5191217", "0.5185893", "0.51849717", "0.51844364", "0.5174501", "0.5174501", "0.5170494", "0.5164383", "0.5158346", "0.5158142", "0.5153498", "0.5149222", "0.514708", "0.51396924", "0.5137434", "0.5137188", "0.5132935", "0.5127137", "0.512614", "0.51101667", "0.51001495", "0.5093003", "0.5080657", "0.50801855" ]
0.66041225
4
Writes a string for the documentation of the operator provided by the user.
public String getDocumentation(){ StringBuffer S = new StringBuffer(); S.append("@overview "); S.append("This finds a bunch of peaks in a data set for a given detector number."); S.append("\r\n"); S.append(" This operator wraps the method DataSetTools.operator.Generic.TOF_SCD.FindPeaks#findDetectorPeaks\n"); S.append("@algorithm "); S.append(""); S.append("@assumptions "); S.append(""); S.append("@param "); S.append("The data set for which peaks will be found"); S.append("@param "); S.append("The ID of the detector on this data set where the peaks are to be found"); S.append("@param "); S.append("The minimum time channel to use"); S.append("@param "); S.append("The maximum time channel to use"); S.append("@param "); S.append("The maximum number of peaks to find on this detector"); S.append("@param "); S.append("The minimum count for a cell to represent a peak"); S.append("@param "); S.append("The list of rows to consider"); S.append("@param "); S.append("The list of columns to consider"); S.append("@return "); S.append("Vector of Old peaks objects"); S.append("@error "); S.append("Data Set is null"); S.append(" No such detector id for this DataSet"); return S.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void writeOperator(String op) {\n\t\t// FileWriter fw;\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tal.add(op);\n\t\ttry {\n\t\t\tFiles.write(new File(Call.class.getResource(CONFIG_FILE).getPath()).toPath(), al, Charset.forName(\"UTF-8\"));\n\t\t\t// fw = new FileWriter(CONFIG_FILE);\n\t\t\t// fw = new FileWriter();\n\t\t\t// fw.write(op);\n\t\t\t// fw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n public String toString() {\n return op.toString();\n }", "public String toString(){\n\t\tString out=\"\";\n\t\tif (type == \"op\"){\n\t\t\treturn out + operand;\n\t\t}\n\t\telse{\n\t\t\treturn out + value ;\n\t\t}\n\t}", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}", "public String operator( String op);", "public static String operationDef()\n {\n read_if_needed_();\n \n return _oper_def;\n }", "public String toString() {\n return operator + \"(\" + argument + \")\";\n }", "public String operator() {\n return this.operator;\n }", "public abstract String commandDocumentation();", "public void appendOperator(String operator){\n if(validateExp(currentExp)){\n currentExp+=operator;\n calculationResult.onExpressionChange(currentExp,true);\n count++;\n }\n }", "public interface OperationInterface {\n /**\n * performs an operation\n */\n String toString();\n}", "public String toString() {\n switch (opType) {\n case Plus:\n return \"+\";\n case Minus:\n return \"-\";\n case Multiply:\n return \"*\";\n case Divide:\n return \"/\";\n case Square:\n return \"^\";\n default:\n return null;\n }\n }", "@Override\n public String toString() {\n return \"<\"+getType()+\",\"+getOperation()+\">\";\n }", "public String writeToString() {\n\t\tString s = \"\"; \n\t\ts += this.term + \",\" + this.interestRate;\n\t\treturn s;\n\t}", "StringOperation createStringOperation();", "public String getOperator() {\n return operator;\n }", "public String getOperator()\r\n {\r\n return operator;\r\n }", "public AsciiDocWriter role(Object role) { nnl(); return w(\"[.\", 1, role, \"]\"); }", "public String toString() {\n\t\treturn \"[Location] Operator: \" + this.operator + \" Longitude: \" + this.longitude +\n\t\t\t \" Latitude: \" + this.latitude;\n\t}", "String getOp();", "String getOp();", "String getOp();", "public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}", "@Override\n public String commandDocumentation() {\n return (\"Displays the documentation of various commands.\");\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public void setOperator(String operator) {\n this.operator = operator;\n }", "java.lang.String getOperator();", "protected void createOperatorSection(StringBuffer buffer) {\n\t\tint operId = this.getOperatorId();\n\t\tif (operId > 0) {\n\t\t\tbuffer.append(\".\");\n\t\t\tswitch (operId) {\n\t\t\tcase OPERATOR_CHILDREN_ID:\n\t\t\t\tbuffer.append(OPERATOR_CHILDREN_CODE);\n\t\t\t\tbreak;\n\t\t\tcase OPERATOR_PATH_ID:\n\t\t\t\tbuffer.append(OPERATOR_PATH_CODE);\n\t\t\t\tbreak;\n\t\t\tcase OPERATOR_SUBTREE_ID:\n\t\t\t\tif (this.getOperatorSubtreeLevel()<0) throw new RuntimeException(\"Livello Operatore 'SUBTREE' non Specificato\");\n\t\t\t\tbuffer.append(OPERATOR_SUBTREE_CODE).append(\"(\").append(this.getOperatorSubtreeLevel()).append(\")\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Operator Identifier not recognized: id \" + operId);\n\t\t\t}\n\t\t}\n\t}", "public String getDocumentation(){\n StringBuffer S = new StringBuffer();\n S.append(\"@overview \"); \n S.append(\"Adjust each peak intensity for the relative sensitivity of pixels\");\n S.append(\" in each detector, based on data from the specified NeXus vanadium\");\n S.append(\" file and the specified NeXus background run file.\");\n S.append(\"\\r\\n\");\n S.append(\" This operator wraps the method Operators.TOF_SCD.WritePixelSensitivity_calc#AdjustPeaksForPixelSensitivity_2(java.lang.String,java.lang.String,java.lang.String,java.lang.String,float,float,int,int)\");\n S.append(\"@algorithm \"); \n S.append(\"The average sensitivity of pixels in a square neighborhood\");\n S.append(\" of each interior pixel is calculated. For all interior pixels, the\");\n S.append(\" average total count over a square neighborhood of size (2*half-width+1)^2\");\n S.append(\" is first calculated. The same calculation is also carried out for the\");\n S.append(\" specified background, and the weighted background averages are subtracted\");\n S.append(\" from the vanadium averages. The weight factor is based on the monitor\");\n S.append(\" counts. Based on these averages, the sensitivity scale\");\n S.append(\" factor for each pixel with a non-zero average total count is taken to\");\n S.append(\" be MAX_COUNT/ave_count, where MAX_COUNT is the maximum average total\");\n S.append(\" count for any interior pixel in the detector, and ave_count is\");\n S.append(\" the average total count for that pixel. If the ave_count is zero for\");\n S.append(\" a pixel (as it will be for border pixels) the sensitivity scale\");\n S.append(\" factor is set to 1. Therefore, this sensitivity scale factor\");\n S.append(\" is >= 1 for all pixels. The peak intensity for each peak in the\");\n S.append(\" peaks file is multiplied by the sensitivity scale factor for the\");\n S.append(\" corresponding pixel in that detector. The \\\"SIGI\\\" value is also\");\n S.append(\" multiplied by the same scale factor.\");\n S.append(\"@assumptions \"); \n S.append(\"The vanadium, background run and peaks files must all\");\n S.append(\" be from the same instrument configuration.\");\n S.append(\"@param \");\n S.append(\"The name of the NeXus file containing the\");\n S.append(\" vanadium data.\");\n S.append(\"@param \");\n S.append(\"The name of the NeXus file containing the\");\n S.append(\" background data.\");\n S.append(\"@param \");\n S.append(\"The name of the peaks file whose intensities\");\n S.append(\" are to be adjusted.\");\n S.append(\"@param \");\n S.append(\"The name of the new peaks file that should be\");\n S.append(\" written containing the adjusted peak intensities.\");\n S.append(\"@param \");\n S.append(\"The start of the interval of times-of-flight\");\n S.append(\" that will be summed.\");\n S.append(\"@param \");\n S.append(\"The end of the interval of times-of-flight\");\n S.append(\" that will be summed.\");\n S.append(\"@param \");\n S.append(\"The number of rows and columns around the edge\");\n S.append(\" of the detector that do not have any data, but\");\n S.append(\" are just zero.\");\n S.append(\"@param \");\n S.append(\"The distance from the center of a square\");\n S.append(\" neighborhood to the edge of the neighborhood.\");\n S.append(\" Each square neighborhood has dimensions\");\n S.append(\" (2*zero_border + 1)^2.\");\n S.append(\"@error \");\n S.append(\"An exception will be thrown if any of the following occurs:\");\n S.append(\" One of the input files don't exist or can't be read.\");\n S.append(\" There are integrated peaks from detectors not listed in\");\n S.append(\" the background and vanadium files.\");\n S.append(\" The background and vanadium runs don't have data\");\n S.append(\" from the same set of detectors.\");\n return S.toString();\n }", "public void append(String op) throws Exception \r\n\t{\n\t oWriter.write(lastString); \r\n\t lastString = new String(op); \r\n\t}", "org.hl7.fhir.String getDocumentation();", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\" %s %s\", operador, exp);\n\t}", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "String getDocumentation();", "String getDocumentation();", "public String getOperator() {\n\t\treturn operator;\n\t}", "public String getOperator() {\n\t\treturn operator;\n\t}", "public String getDocumentation()\n {\n StringBuffer s = new StringBuffer(\"\");\n s.append(\"@overview This operator divides this DataSet by another.\");\n s.append(\"@assumptions The units on the two DataSets are compatible.\");\n s.append(\"@algorithm Uses the binary divide from DSOpsImplementation.\");\n s.append(\"@param ds The DataSet for the operation.\");\n s.append(\"@param ds_to_divide The DataSet with which to divide by.\");\n s.append(\"@param make_new_ds A boolean value of true if you want a new \");\n s.append(\"DataSet to be created, or false if you want the operation \");\n s.append(\"performed on the original DataSet.\");\n s.append(\"@return The DataSet which is the result of dividing the \");\n s.append(\"first DataSet by the second\");\n s.append(\"@error An error if the units of the two DataSets do not match.\");\n return s.toString();\n }", "public String getOperatorName() {\n return operatorName;\n }", "public String getOperatorName() {\n return operatorName;\n }", "com.google.protobuf.ByteString getOperatorBytes();", "String getOperator();", "public String toString()\n {\n return \"LiteralOPToken(\" + getValue() + \")\";\n }", "public void write(String operand, Integer value) throws Exception{\n if (operand.equals(\"=\")){\n writeHead(value);\n outputTapeContent.add(value);\n }else if (operand.equals(\" \")){\n if(value != 0){\n writeHead(dataMemory.getData(value));\n outputTapeContent.add(dataMemory.getData(value));\n }else{\n throw new IllegalArgumentException(\"Accumulator can't write into output tape by write instruction\");\n }\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n writeHead(dataMemory.getData(newDirection));\n outputTapeContent.add(dataMemory.getData(newDirection));\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }", "public void addOperator(String operator) {\n this.operators.add(operator);\n }", "public void write(String command) {\n write(command, true);\n }", "@Override\n public String toString() {\n return (\"Command \" + this.getCommandName().toUpperCase() + \":\\n\" + this\n .commandDocumentation());\n }", "public void setOperation(java.lang.CharSequence value) {\n this.operation = value;\n }", "public static String getOperator(Operator operator) {\n\t\tif (operator == MOD) {\n\t\t\treturn \"%\";\n\t\t} else if (operator == DIV) {\n\t\t\treturn \"/\";\n\t\t} else {\n\t\t\treturn operator.toString();\n\t\t}\n\t}", "@Override\n public void write(String text) {\n }", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}", "public void setOp(String op) {\n this.op = op;\n }", "public interface Output {\n\n /**\n * Print string to user.\n * @param message String.\n */\n void displayMessage(String message);\n\n}", "abstract String getOp();", "public java.lang.CharSequence getOperation() {\n return operation;\n }", "public static void show(String num1, String num2,\n\tString result, char operator) {\n\t\t// set an appropriate length on numbers and result\n\t\tint len1 = num1.length();\n\t\tint len2 = num2.length();\n\t\tint len = resultat.length();\n\t\tint maxLen = Math.max(Math.max(len1, len2), len);\n\t\tnum1 = setLen(num1, maxLen - len1);\n\t\tnum2 = setLen(num2, maxLen - len2);\n\t\tresult = setLen(result, maxLen - len);\n\t\t// show the expression\n\t\tout.println(\" \" + num1);\n\t\tout.println(\" \" + operator + \" \" + num2);\n\t\tfor (int i = 0; i < maxLen + 2; i++)\n\t\tout.print(\" -\");\n\t\tout.println();\n\t\tout.println(\" \" + result + \" \\ n \");\n\t}", "private static String getPropertyDoc(final JPPFProperty<?> property) {\n final StringBuilder sb = new StringBuilder();\n if (property.isDeprecated()) {\n sb.append(\"<i><b>Deprecated:</b> \").append(convertForHTML(property.getDeprecatedDoc())).append(\"</i><br>\");\n }\n sb.append(property.getDocumentation());\n final String[] params = property.getParameters();\n if ((params != null) && (params.length > 0)) {\n for (final String param: params) {\n sb.append(\"<br>- <i>\").append(param).append(\"</i>: \");\n final String doc = property.getParameterDoc(param);\n if (doc != null) sb.append(doc);\n }\n }\n return sb.toString();\n }", "@JsonProperty(\"operator\")\n public void setOperator(String operator) {\n this.operator = operator;\n }", "public void setOperator(int opr) {\n this.operator = opr;\n }", "@Override\n public String toString(int depth) {\n if (depth <= 0) return \"\";\n String sEO = \"\" ;\n if (this.subExpressionOf != null) {\n sEO = Strings.indent(2,\n \"\\nsubExpressionOf: \" +\n Strings.indent(2, this.subExpressionOf.toString(1))) ;} ;\n return \"\\n*OpApplNode: \" + operator.getName() + \" \" + super.toString(depth+1)\n + \" errors: \" + (errors != null ? \"non-null\" : \"null\")\n + toStringBody(depth) + sEO ;\n }", "public java.lang.CharSequence getOperation() {\n return operation;\n }", "@JsonProperty(\"operator\")\n public String getOperator() {\n return operator;\n }", "public static Appendable write(Appendable buffer, Object o, char quotationMark) {\n if (o == null) {\n throw new NullPointerException(); // Java null is not a build language value.\n\n } else if (o instanceof SkylarkValue) {\n ((SkylarkValue) o).write(buffer, quotationMark);\n\n } else if (o instanceof String) {\n writeString(buffer, (String) o, quotationMark);\n\n } else if (o instanceof Integer || o instanceof Double) {\n append(buffer, o.toString());\n\n } else if (o == Boolean.TRUE) {\n append(buffer, \"True\");\n\n } else if (o == Boolean.FALSE) {\n append(buffer, \"False\");\n\n } else if (o instanceof List<?>) {\n List<?> seq = (List<?>) o;\n printList(buffer, seq, EvalUtils.isTuple(seq), quotationMark);\n\n } else if (o instanceof Map<?, ?>) {\n Map<?, ?> dict = (Map<?, ?>) o;\n printList(buffer, getSortedEntrySet(dict), \"{\", \", \", \"}\", null, quotationMark);\n\n } else if (o instanceof Map.Entry<?, ?>) {\n Map.Entry<?, ?> entry = (Map.Entry<?, ?>) o;\n write(buffer, entry.getKey(), quotationMark);\n append(buffer, \": \");\n write(buffer, entry.getValue(), quotationMark);\n\n } else if (o instanceof PathFragment) {\n append(buffer, ((PathFragment) o).getPathString());\n\n } else if (o instanceof Class<?>) {\n append(buffer, EvalUtils.getDataTypeNameFromClass((Class<?>) o));\n\n } else {\n append(buffer, o.toString());\n }\n\n return buffer;\n }", "public void setOperation(java.lang.CharSequence value) {\n this.Operation = value;\n }", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "public void setOperator (User operator) {\n\t\tthis.operator = operator;\n\t}", "String shortWrite();", "public static Appendable print(Appendable buffer, Object o, char quotationMark) {\n if (o instanceof Label) {\n return append(buffer, o.toString()); // Pretty-print a label like a string\n }\n if (o instanceof String) {\n return append(buffer, (String) o);\n }\n return write(buffer, o, quotationMark);\n }", "public static StringDescriptionWriter stringWriter() {\n return new StringDescriptionWriter();\n }", "void writeString(String value);", "String getOperation();", "String getOperation();", "public java.lang.CharSequence getOperation() {\n return Operation;\n }", "@Override\n\tpublic void writeCommand(final IPrologTermOutput pto) {\n\t\tpto.openTerm(\"execute_custom_operations\").printAtomOrNumber(stateId)\n\t\t\t\t.printAtom(name);\n\t\tfinal ASTProlog prolog = new ASTProlog(pto, null);\n\t\tevalElement.getAst().apply(prolog);\n\t\tpto.printNumber(nrOfSolutions);\n\t\tpto.printVariable(NEW_STATE_ID_VARIABLE);\n\t\tpto.printVariable(\"Errors\").closeTerm();\n\t}", "void write(String text);", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "public java.lang.CharSequence getOperation() {\n return Operation;\n }", "public String getOper() {\n return oper;\n }", "public void write (String s) {\n pw.print(s);\n }", "@ApiModelProperty(value = \"The expression that is to be opimized. \")\n\n\n public String getExpression() {\n return expression;\n }", "public String toString(){\r\n\t\tif (modifiers == 1) return \"O-O (w)\";\r\n\t\telse if (modifiers == 2) return \"O-O (b)\";\r\n\t\telse if (modifiers == 3) return \"O-O-O (w)\";\r\n\t\telse if (modifiers == 4) return \"O-O-O (b)\";\r\n\t\tString st = \"\";\r\n\t\tst += x88ToString(start_sq);\r\n\t\tst += x88ToString(end_sq);\r\n\t\tif (modifiers == 5) st += \"e.p.\";\r\n\t\telse if (modifiers == 6) st += \"=R\";\r\n\t\telse if (modifiers == 7) st += \"=N\";\r\n\t\telse if (modifiers == 8) st += \"=B\";\r\n\t\telse if (modifiers == 9) st += \"=Q\";\r\n\t\treturn st;\r\n\t}", "public void setOperation(String op) {this.operation = op;}", "@Override public String toDot() {\r\n String middle = \"\";\r\n switch(operator) {\r\n case AND : \r\n middle = \"&amp;\";\r\n break;\r\n case NOR :\r\n case OR : \r\n middle = \"&or;\";\r\n break;\r\n case IMPLIES : \r\n middle = \"=&gt;\";\r\n break;\r\n default : assert false;\r\n }\r\n middle = left.toDot() + \" \" + middle + \" \" + right.toDot();\r\n if ( operator == Token.NOR )\r\n return \"&not; (\"+middle+\")\";\r\n else\r\n return middle;\r\n }", "@Override\n\tpublic String toString() {\n\t\tswitch(type) {\n\t\tcase CLOSURE : return \"*\";\n\t\tcase CONCATENATION : return \"\";\n\t\tcase LPAREN : return \"(\";\n\t\tcase RPAREN : return \")\";\n\t\tcase UNION : return \"|\";\n\t\tdefault: return value;\n\t\t}\n\t}", "public Writeln(Expression exp)\n {\n this.exp = exp;\n }", "public String getOpName()\n {\n return opName;\n }", "@Test\n public void operator_literal() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(\"???\")));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!???\"));\n }", "public void setOp(Operator op) {\n this.op = op;\n }", "public Operator getOperator() {\n return this.operator;\n }", "public void toString(Writer stream) throws IOException {\n stream.write('\"');\n if (this.m_content != null) stream.write(escape(this.m_content));\n stream.write('\"');\n }", "@DISPID(-2147412099)\n @PropPut\n void onhelp(\n java.lang.Object rhs);", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn rootOperation.toString();\r\n\t}", "protected String getApplyOperatorText() {\n return \".\";\n }", "@Override\n\t\t\tpublic String toString(int doc) throws IOException {\n\t\t\t\treturn null;\n\t\t\t}" ]
[ "0.6348007", "0.5974598", "0.59468853", "0.58407384", "0.5681654", "0.5565959", "0.5549435", "0.5523037", "0.55189955", "0.5499729", "0.5497795", "0.5495557", "0.5418574", "0.54071194", "0.53983045", "0.53819907", "0.53660333", "0.5357021", "0.53529006", "0.5351944", "0.5351944", "0.5351944", "0.5341437", "0.5326905", "0.5321619", "0.5321619", "0.5321619", "0.5321619", "0.5321619", "0.5321619", "0.5315643", "0.53120387", "0.5309404", "0.5287635", "0.5271758", "0.52551496", "0.52308846", "0.5228972", "0.5228972", "0.5222313", "0.5222313", "0.5217369", "0.5217369", "0.5211419", "0.51905537", "0.51905537", "0.5185507", "0.5176795", "0.51709473", "0.51345605", "0.51177436", "0.51148194", "0.5111464", "0.5107365", "0.50972116", "0.50896835", "0.5076343", "0.50711715", "0.50708914", "0.5070713", "0.5061714", "0.50579584", "0.505352", "0.5046029", "0.5042696", "0.5034264", "0.503277", "0.50268984", "0.50178814", "0.50146115", "0.5004891", "0.49895912", "0.49597374", "0.49535424", "0.49453628", "0.49377838", "0.49238312", "0.49238312", "0.49175602", "0.49133998", "0.49071953", "0.49008673", "0.48968932", "0.4893337", "0.48858553", "0.48803833", "0.487924", "0.4878549", "0.4877336", "0.4871421", "0.48707938", "0.48698908", "0.48662782", "0.48660251", "0.48631117", "0.48542207", "0.48541495", "0.48377794", "0.48343992", "0.48241308" ]
0.49377218
76
Returns a string array with the category the operator is in.
public String[] getCategoryList(){ return new String[]{ "HIDDENOPERATOR" }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getCategoryList(){\n return new String[]{\n \"Macros\",\n \"Instrument Type\",\n \"TOF_NSCD\",\n \"NEW_SNS\"\n };\n }", "String category();", "public String toString() {\n\t\treturn category;\n\t}", "public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}", "public String[][] getMetaCategories();", "String getCategory();", "String getCategory();", "public final List<String> getCategories() {\n return new ArrayList<>(questionGeneratorStrategyFactory.createPracticeQuestionStrategy().generateQuestions().keySet());\n }", "public String[] getCategoryArray(String cat) {\n return getCategoryList(cat).toArray(new String[0]);\n }", "public List<String> getCategories();", "public String getCategories() {\n return getProperty(Property.CATEGORIES);\n }", "public String getCategory();", "CodeType getCategory();", "String getCategoria();", "List getCategoriesOfType(String typeConstant);", "public PushActionCategory[] getPushActionCategories() {\n return new PushActionCategory[]{\n new PushActionCategory(\"fo\", new PushAction[]{\n new PushAction(\"yes\", \"Yes\"),\n new PushAction(\"no\", \"No\"),\n new PushAction(\"maybe\", \"Maybe\", null, \"Enter reason\", \"Reply\")\n })\n\n };\n}", "private String getCategoriesForDebugging() {\n StringBuilder sb = new StringBuilder();\n String sep = \"\";\n for (SuggestionsSection section : mSections.values()) {\n sb.append(sep);\n sb.append(section.getCategory());\n sep = \", \";\n }\n\n return sb.toString();\n }", "java.lang.String getOperator();", "private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }", "@NonNull\n public static List<Category> getCategories() {\n if (CATEGORY == null) {\n CATEGORY = new ArrayList<>();\n CATEGORY.add(new Category(\"Bollywood\", R.drawable.bollywood, 1));\n CATEGORY.add(new Category(\"Hollywood\", R.drawable.hollywood3, 2));\n CATEGORY.add(new Category(\"Cricket\", R.drawable.cricket4, 3));\n CATEGORY.add(new Category(\"Science\", R.drawable.science1, 4));\n CATEGORY.add(new Category(\"Geography\", R.drawable.geography, 5));\n CATEGORY.add(new Category(\"History\", R.drawable.history, 6));\n }\n return CATEGORY;\n }", "String getOperator();", "public static ArrayList<String> getCategories() {\n String query;\n ArrayList<String> categories = new ArrayList<String>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n categories.add(rs.getString(\"category\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return categories;\n }", "public String category() {\n return this.category;\n }", "public String category() {\n return this.category;\n }", "public String getPrmCategCode() {\n return (String)getAttributeInternal(PRMCATEGCODE);\n }", "@Override\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn \"category\";\n\t\t\t\t}", "public String getCategory()\r\n {\r\n return (m_category);\r\n }", "public List<Character> getOperator() {\r\n\t\treturn operator;\r\n\t}", "public String getCategoryString(){\r\n\t\tMarketplaceConfig.Category c = MarketplaceConfig.Category.get(this.category);\r\n\t\tif(c == null || c.name() == null || \"\".equals(c.name())) return \"NONE\";\r\n\t\treturn c.name();\r\n\t}", "public String getCategoryKey() {\n return getCategory().getWordVal();\n }", "default List<String> getCategory(String category) {\n return new ArrayList<>(getCategories().get(category.toLowerCase()).values());\n }", "@AutoEscape\n public String getCategory();", "protected final String getCategory() {\n\t\tString category = null;\n\n\t\tif (getSplit() != null) {\n\t\t\tcategory = getSplit();\n\t\t} else {\n\t\t\tcategory = getForm().getPayTo();\n\t\t}\n\n\t\treturn category;\n\t}", "public abstract String getCategory();", "public abstract String getCategory();", "public List<String> categories() {\n return this.categories;\n }", "public String getCategCode() {\n return (String) getAttributeInternal(CATEGCODE);\n }", "public String getCategory() {\n //return ATPlugin.CLI_CATEGORY + \" \" + ATPlugin.DEFAULT_CATEGORY;\n return ATPlugin.CLI_CATEGORY;\n }", "public String getCategory(){\r\n\t\treturn this.category;\r\n\t}", "CodeOrNullListType getCategoryList();", "public String categoryList(CategoryDetails c);", "public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }", "public java.lang.String getCategory() {\n return category;\n }", "public String getCncategory() {\n return cncategory;\n }", "@Override\n\tpublic List<Categoryb> GetCategpryb() {\n\t\treturn null;\n\t}", "public JButtonOperator btNewCategory() {\n if (_btNewCategory==null) {\n _btNewCategory = new JButtonOperator(this, \"New Category...\"); // NOI18N\n }\n return _btNewCategory;\n }", "@Test\r\n\tpublic void testGetCategoryString() {\r\n\t\tManagedIncident incident = new ManagedIncident(\"jsmith\", Category.NETWORK, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Network\", incident.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident1 = new ManagedIncident(\"jsmith\", Category.DATABASE, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Database\", incident1.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident2 = new ManagedIncident(\"jsmith\", Category.INQUIRY, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Inquiry\", incident2.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident3 = new ManagedIncident(\"jsmith\", Category.HARDWARE, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Hardware\", incident3.getCategoryString());\r\n\t\t\r\n\t\tManagedIncident incident4 = new ManagedIncident(\"jsmith\", Category.SOFTWARE, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tassertEquals(\"Software\", incident4.getCategoryString());\r\n\t\t\r\n\t}", "public List<String> findAllCategories() {\r\n\t\tList<String> result = new ArrayList<>();\r\n\r\n\t\t// 1) get a Connection from the DataSource\r\n\t\tConnection con = DB.gInstance().getConnection();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 2) create a PreparedStatement from a SQL string\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GET_CATEGORIES_SQL);\r\n\r\n\t\t\t// 3) execute the SQL\r\n\t\t\tResultSet resultSet = ps.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\r\n\t\t\t\tString cat = resultSet.getString(1);\r\n\t\t\t\tresult.add(cat);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tDB.gInstance().returnConnection(con);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public List<String> getCategories(Boolean internationalSelected){\n\t\tif (internationalSelected) {\n\t\t\treturn _intCategories;\n\t\t}\n\t\telse {\n\t\t\treturn _nzCategories;\n\t\t}\n\t}", "public List<String> getCategoryList(String cat) {\n ArrayList<String> ls = new ArrayList<String>();\n String[] keys = sortedStringKeys();\n\n for (String s : keys) {\n if (s.startsWith(cat)) { ls.add(getProperty(s)); }\n }\n return ls;\n }", "@Override\r\n\tpublic String getCategoria() {\n\t\treturn this.categoria;\r\n\t}", "public int getCategory(){\n\t\treturn this.cat;\n\t}", "public static CourseCategory[] createCategoryResponse() {\n CourseCategory[] categories = new CourseCategory[1];\n categories[0] = new CourseCategory();\n categories[0].setCategory(\"Math\");\n CourseSubject[] subjects = new CourseSubject[2];\n subjects[0] = new CourseSubject(\"Addition\", \"Math/Addition\", 1);\n subjects[1] = new CourseSubject(\"Subtration\", \"Math/Subtration\", 2);\n categories[0].setCourseSubject(subjects);\n return categories;\n }", "public String getCategory() {\n return this.category;\n }", "@Override\n\tpublic java.lang.String getCategoryCode() {\n\t\treturn _lineaGastoCategoria.getCategoryCode();\n\t}", "public String getCategory()\n\t{\n\t\treturn category;\n\t}", "@Override\n public String getCategoryLabel() {\n return categoryLabel;\n }", "public String getCategory() {\r\n return category;\r\n }", "public static List<StockInfoCategory> getCombinedBICategoryList(){\r\n\t\treturn CBICategoryList;\r\n\t}", "public String getCategory() {\n return mCategory;\n }", "@Override\n\tpublic ArrayList<Categoria> getCategorie() {\n\t\tDB db = getDB();\n\t\tArrayList<Categoria> categorie = new ArrayList<Categoria>();\n\t\tMap<Long, Categoria> list = db.getTreeMap(\"categorie\");\n\t\tfor(Map.Entry<Long, Categoria> categoria : list.entrySet())\n\t\t\tif(categoria.getValue() instanceof Categoria)\n\t\t\t\tcategorie.add((Categoria)categoria.getValue());\n\t\treturn categorie;\n\t}", "public List<ZCategory> SelectAll() {\r\n\t\tList<ZCategory> Categories = new ArrayList<>();\r\n\t\tString lines[];\r\n\t\tlines = fm.getArray();\r\n\t\tfor (String string : lines) {\r\n\t\t\tCategories.add(stringToCategory(string));\r\n\t\t}\r\n\t\treturn Categories;\r\n\t}", "public List<Category> getCategories() {\n CategoryRecords cr = company.getCategoryRecords();\n List<Category> catList = cr.getCategories();\n return catList;\n }", "public LinkedHashMap<String, String> getCategories() {\r\n\t\treturn this.categories;\r\n\t}", "public ArrayList<String> getCheckedCategories()\n {\n return rentalModel.getSelectedRental().getSelectedCategories();\n }", "public String getCurrentCategory() {\n String currentCategory = \"none\";\n if (categories.get(indexOfActiveCategory).isActive()) {\n currentCategory = categories.get(indexOfActiveCategory).getName();\n }\n return currentCategory;\n }", "public String getOperator()\r\n {\r\n return operator;\r\n }", "public String getCategory() {\n\t\treturn category;\n\t}", "public String getCategory() {\n\t\treturn category;\n\t}", "public List<String> classifiers()\n\t{\n\t\t//If the classifier list has not yet been constructed then go ahead and do it\n\t\tif (c.isEmpty())\n\t\t{\n\t\t\tfor(DataSetMember<t> member : _data)\n\t\t\t{\n\t\t\t\tif (!c.contains(member.getCategory()))\n\t\t\t\t\t\tc.add(member.getCategory().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public String getCategory() {\n return fullPhoto.getCategory();\n }", "public String getCategory() {\n\t\treturn null;\r\n\t}", "public String getCategory() {\n return this.category;\n }", "public String getStrCategoryName() {\n return strCategoryName;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public static List<String> getAllCategoryName() {\n List<String> list = new ArrayList<>();\n List<Category> catList=getAllCategory();\n if(catList!=null && catList.size()>0) {\n for (Category category : catList)\n {\n list.add(category.getCategoryName());\n }\n }\n\n return list;\n\n }", "public String getCategory() {\n\t\treturn null;\n\t}", "public String getCategory() {\n\t\treturn null;\n\t}", "private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }", "@Override\n\tpublic List<Category> getCategoryByKey(String mc) {\n\t\treturn dao.getCategoryByKey(mc);\n\t}", "public List<Categorie> getAllCategories();", "public List<String> getOperators() {\n return operators;\n }", "@Override\n\tpublic String getCategory() {\n\t\treturn EHEventRecorder.MacroCommandCategory;\n\t}", "public String getConversionCategoryName() {\r\n return conversionCategoryName;\r\n }", "public String getCategory() {\n return category;\n }", "public String getName(){\n return category;\n }", "public List<String> getCategory(SqlSession session, HashMap<String, Object> map) {\r\n\t\treturn session.selectList(\"getCategory\", map);\r\n\t}", "public String getOperator() {\n return operator;\n }", "public String categoryTech() {\n\t\treturn \"Computer Science\";\n\t}", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory()\n {\n return category;\n }", "public int getCategory() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.telephony.SmsCbCmasInfo.getCategory():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.getCategory():int\");\n }", "public String getCategoryName() {\r\n return PirolPlugInMessages.getString(\"unsorted\");\r\n }" ]
[ "0.71741605", "0.6583879", "0.65002954", "0.64238656", "0.637386", "0.6071351", "0.6071351", "0.6066853", "0.60633236", "0.6051888", "0.6022142", "0.5903001", "0.5869034", "0.5863672", "0.57796276", "0.577814", "0.57004607", "0.5677082", "0.5666284", "0.56014067", "0.5601173", "0.5594874", "0.55890113", "0.55890113", "0.55532265", "0.5543099", "0.55321515", "0.5515454", "0.5514445", "0.548953", "0.54767954", "0.5476241", "0.544711", "0.54184", "0.54184", "0.5390955", "0.537357", "0.5369596", "0.5360237", "0.5355736", "0.53442276", "0.53242815", "0.5302254", "0.52972144", "0.52898747", "0.5280661", "0.52804595", "0.5269446", "0.5244589", "0.524382", "0.524147", "0.5238581", "0.5230042", "0.52244514", "0.5203908", "0.52020806", "0.52018505", "0.5200548", "0.51943654", "0.5187999", "0.5167217", "0.51636547", "0.5162606", "0.5158095", "0.5154272", "0.51514006", "0.5149268", "0.51481783", "0.51481783", "0.5145043", "0.51403445", "0.5136671", "0.513419", "0.5134134", "0.51302", "0.51302", "0.51302", "0.51302", "0.51302", "0.51302", "0.51302", "0.5130198", "0.51247877", "0.51247877", "0.51246727", "0.5121077", "0.51088715", "0.5108207", "0.5107201", "0.51052743", "0.5105086", "0.510224", "0.51013476", "0.5100605", "0.51003987", "0.5099258", "0.5099258", "0.50978637", "0.5096588", "0.509637" ]
0.70802337
1
WRONG setPersonPersonTypes( memberTypes );
public void setMemberTypes( java.util.List memberTypes ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "void addIsPersonType(Integer newIsPersonType);", "public void setMemberTypes(java.util.List memberTypes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MEMBERTYPES$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MEMBERTYPES$2);\n }\n target.setListValue(memberTypes);\n }\n }", "public void setPeopleAct(ArrayList<CastMember> peopleAct) \n\t{\n\t\tthis.peopleAct = peopleAct;\n\t}", "public void setMembers(\n final List<MemberType> members)\n {\n this.members = members;\n }", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "public void setMemberType(String value) {\n set(3, value);\n }", "private TypicalPersons() {}", "private TypicalPersons() {}", "public PersonType_Tp getPersonType() { return personType; }", "public void setMemberType(MemberType memberType) {\n this.memberType = memberType;\n }", "public void setPersonType(String value) {\r\n setAttributeInternal(PERSONTYPE, value);\r\n }", "public void setPersonnames(List<Personname> personnames) {\r\n\r\n this.personnames = personnames;\r\n\r\n }", "@Override\n public void setPersonType(java.lang.String personType) {\n _entityCustomer.setPersonType(personType);\n }", "private void memberTypes(Map<Long, List<Member>> mDeptMembers) {\n \n List<String> memberTypes = new ArrayList<String>();\n mDeptMemberTypes.clear();\n memberTypes = new ArrayList<String>(); \n for (Entry<Long, List<Member>> entry : mDeptMembers.entrySet()) {\n for (Member m : entry.getValue()){\n if (!memberTypes.contains(m.gettype())) {\n memberTypes.add(m.gettype());\n }\n }\n mDeptMemberTypes.put(entry.getKey(), memberTypes);\n }\n System.out.println(\"Exit: memberTypes\");\n }", "public abstract void setPaymentTypes(java.util.Set paymentTypes);", "public void setMemberID(String memberID){ this.memberID=memberID; }", "public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }", "public void setPerson(Person[] person) {\n\t\tthis.person = person;\n\t}", "public void setMemberType( Short memberType ) {\n this.memberType = memberType;\n }", "public void xsetMemberTypes(org.apache.xmlbeans.impl.xb.xsdschema.UnionDocument.Union.MemberTypes memberTypes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.impl.xb.xsdschema.UnionDocument.Union.MemberTypes target = null;\n target = (org.apache.xmlbeans.impl.xb.xsdschema.UnionDocument.Union.MemberTypes)get_store().find_attribute_user(MEMBERTYPES$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.impl.xb.xsdschema.UnionDocument.Union.MemberTypes)get_store().add_attribute_user(MEMBERTYPES$2);\n }\n target.set(memberTypes);\n }\n }", "public void setMembers(List<DN> members) {\n\t\tthis.members = members;\n\t}", "boolean hasIsPersonType();", "private static void assignMemberOwnerToMembership(Object[] membershipArray) {\r\n PITMembershipView membership = (PITMembershipView)membershipArray[0];\r\n PITMember member = (PITMember)membershipArray[2];\r\n\r\n membership.setPITMember(member);\r\n }", "public void setPersonID(String personID){\n this.personID = personID;\n }", "public abstract void setPhoneTypes(Vector vecPhoneTypes, Vector vecPhoneTypeKeys);", "private void addDefaultPerson() {\n personNames.add(\"you\");\n personIds.add(STConstants.PERSON_NULL_ID);\n personPhotos.add(null);\n personSelections.add(new HashSet<Integer>()); \n }", "public void setPerson( Person person )\r\n\t{\r\n\t\tthis.person = person;\r\n\t}", "public Members(String type, String name, String surname, String phoneNum, String emailAddress, String physicalAddress)\r\n {\r\n this.type = type;\r\n this.name = name;\r\n this.surname = surname;\r\n this.phoneNum = phoneNum;\r\n this.emailAddress = emailAddress;\r\n this.physicalAddress = physicalAddress;\r\n }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "@Test\r\n\tpublic void testSetPersonTime() {\r\n\t\tteachu1.setPersonTime(newPersonTime);\r\n\r\n\t\tassertTrue(teachu1.getPersons().contains(person2));\r\n\t\tassertFalse(teachu1.getPersons().contains(person1));\r\n\t}", "private void convertMemberTypeInIntoMember() {\n member = new Member();\n\n member.setLogin(memberTypeIn.getLogin().toUpperCase());\n member.setFirstName(memberTypeIn.getFirstName().toUpperCase());\n member.setLastName(memberTypeIn.getLastName().toUpperCase());\n member.setPassword(memberTypeIn.getPassword().toUpperCase());\n member.setEmail(memberTypeIn.getEmail().toUpperCase());\n member.setRole(memberTypeIn.getRole().toUpperCase());\n logger.info(\"conversion memberType into member done\");\n }", "public void setMyFamilymembers(ArrayList<Familymember> myFamilymembers) {\n\t\tthis.myFamilymembers = myFamilymembers;\n\t}", "public static void setPerson_to_play(int aPerson_to_play)\n {\n person_to_play = aPerson_to_play;\n }", "void removeIsPersonType(Integer oldIsPersonType);", "public void unsetMemberTypes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(MEMBERTYPES$2);\n }\n }", "protected abstract MemberType getMemberType();", "public void setPersonId(long personId);", "void setType(final UserType type);", "@Override\n\tpublic void setTypeName(java.lang.String typeName) {\n\t\t_permissionType.setTypeName(typeName);\n\t}", "public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }", "public void setLegalPerson(String legalPerson) {\n this.legalPerson = legalPerson;\n }", "@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }", "public void addMember(Person person) {\n\t\tmembers.add(person);\n\t}", "public void setOwner(Person person) \n {\n owner = person;\n }", "public void setPerPerson(boolean value) {\n this.perPerson = value;\n }", "public abstract void setAddressTypes(Vector vecAddressTypes, Vector vecAddressTypeKeys);", "@Test\r\n public void testSetGender() {\r\n System.out.println(\"setGender\");\r\n String gender = null;\r\n Interviewee instance = new Interviewee();\r\n instance.setGender(gender);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }", "public void addMember()\r\n\t{\r\n\t\tlistOfMembers.add(new Member(\r\n\t\t\t\tgetUserString(\"Enter Member's First Name\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Surname\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Email\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Telephone\"),\r\n\t\t\t\tgetUserInt(\"Enter Member's Number\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Type\")\r\n\t\t\t\t));\r\n\t\t\r\n\t}", "protected void addMember(MondrianMember member) {\r\n aMembers.add(member);\r\n }", "public void setOtherMembers(String value) {\r\n \r\n \t\t_otherMembersList = new ArrayList<String>();\r\n \r\n \t\tif (value.matches(\"\"))\r\n \t\t\treturn;\r\n \r\n \t\tLog.d(\"DEBUG\", value);\r\n \r\n \t\tString[] others = value.split(\"(\\\\s+)?,(\\\\s+)?\");\r\n \r\n \t\tfor (String member : others) {\r\n \t\t\t_otherMembersList.add(member);\r\n \t\t}\r\n \r\n \t\tCollections.sort(_otherMembersList);\r\n \t}", "@Override\r\n\tprotected void setData(GroupMember t) {\n\r\n\t}", "void setPersonAvatar(ReadOnlyPerson target, Avatar avatar);", "protected void refinePerson(Person person) {\n\t\tperson.setBirthDay(birthDay(person));\n\t\tStringHelper stringHelper=new StringHelper();\n\t\tperson.setName(stringHelper.formatFirstToUpeerOtherToLowerCase(person.getName()));\n\t\tperson.setSirName(stringHelper.formatFirstToUpeerOtherToLowerCase(person.getSirName()));\n\t}", "public void setUserType(int type) throws IllegalArgumentException {\n\t\tif (type != TELEPHONE_SUBSCRIBER && type != USER) {\n\t\t\tthrow new IllegalArgumentException(\"Parameter not in range\");\n\t\t}\n\t\tuserType = type;\n\t}", "private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setEditable(true);\n lNameTF.setEditable(true);\n cprTF.setEditable(true);\n cityTF.setEditable(true);\n adressTF.setEditable(true);\n emailTF.setEditable(true);\n memberIdTF.setEditable(true);\n fNameTF.setEditable(true);\n phoneTF.setEditable(true);\n postalCodeTF.setEditable(true);\n adressNrTF.setEditable(true);\n changePictureBTN.setEnabled(true);\n }", "void addMember(final PartyMember member);", "public void setMemberIDs(ArrayList<Integer> memberIDs) {\n this.memberIDs = memberIDs;\n }", "public void setUlIdPerson(int ulIdPerson)\r\n {\r\n this._ulIdPerson = ulIdPerson;\r\n this._has_ulIdPerson = true;\r\n }", "public void setPeople(Set<PersonCreateRequest> people) {\n\t\tthis.people = people;\n\t}", "public void setMemberCollectives(ArrayList<Collective> memberCollectives) { this.memberCollectives = memberCollectives; }", "private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }", "@Test\n public void getOtherPersonTestPerson() throws ParsingException, NoSuchFieldException, ParseException, IllegalAccessException {\n //Init\n Person person = new Person(null);\n Person partner = new Person(null);\n Person otherPerson = new Person(null);\n Union union = new Union(person, partner, new FullDate(\"05 MAR 2020\"), new Town(\"Saintes\", \"Charente-Maritime\"), UnionType.HETERO_MAR);\n\n //Reflection init\n Field idField = person.getClass().getDeclaredField(\"id\");\n idField.setAccessible(true);\n\n //Reflection set\n idField.set(person, \"1\");\n idField.set(partner, \"2\");\n\n //Verification\n assertEquals(partner, union.getOtherPerson(person));\n assertEquals(person, union.getOtherPerson(partner));\n assertNull(union.getOtherPerson(otherPerson));\n }", "public void setFoxType(@NotNull Type type);", "@Override\n\tprotected void setMembers(int[] members) {\n\t\tthis.clear();\n\t\tfor (int member: members)\n\t\t\tthis.add(member);\n\t}", "public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}", "public Audience() {\n members = new HashSet<Person>();\n }", "public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }", "void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);", "public void setAttributeType(PersonAttributeType attributeType) {\n this.attributeType = attributeType;\n }", "public void setGender(String gender);", "public void setGender(String gender);", "public void setGender(String gender);", "private void fixPeople(NameInfo nameInfo) {\n\t\tString type = nameInfo.getType();\n\t\tif (type.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\tString name = nameInfo.getName();\n\t\t\tString tokens[] = name.split(\"\\\\s+\");\n\t\t\tboolean isPeople = false;\n\t\t\tfor (String token : tokens) {\n\t\t\t\tif (peopleMan.isValidPeopleName(token)) {\n\t\t\t\t\tisPeople = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isPeople == true)\n\t\t\t\tnameInfo.setType(\"PER\");\n\t\t}\n\t}", "@Override\n public void initialView(final Collection<Address> members) {\n }", "public void setMembersFromDB(ArrayList<ArrayList<String>> memberList)\n{\n\tfor(int i =0; i < memberList.size(); i++)\n\t{\n\t\tPerson newMember = new Person();\n\t\t//arbitrary order\n\t\t//TODO generalize this method\n\t\tnewMember.setLastName(memberList.get(i).get(0));\n\t\tnewMember.setFirstName(memberList.get(i).get(1));\n\t\tnewMember.setInstrument(memberList.get(i).get(2));\n\t\tthis.addMember(newMember);\n\t}\n}", "void setTypeMapper (TypeMapper typeMapper);", "public void setPeople(String people) {\n\t\tthis.people = people.trim();\r\n\t}", "public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}", "private static void assignMembersOwnersToMemberships(Collection<Object[]> membershipArrays) {\r\n for (Object[] membershipArray : GrouperUtil.nonNull(membershipArrays)) {\r\n assignMemberOwnerToMembership(membershipArray);\r\n } \r\n }", "ISourceType[] getMemberTypes();", "public void setPeople(People people,String id)\n {\n myCamp = people;\n this.id = id;\n }", "public void setUsertype(String usertype) {\n this.usertype = usertype;\n }", "public PeopleAdapter(List<Person> people, String purpose) {\n this.people = people;\n this.purpose = purpose;\n }", "public void descriptionTypeRefsetMemberChanged(\n DescriptionType member, Action action) throws Exception;", "public void testSetAddressType() {\r\n try {\r\n address.setAddressType(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public interface IMember {\n\n\n /**\n * Returns the title for this member.\n *\n * @return the title for this member.\n */\n String getTitle();\n\n /**\n * Sets the title for this member.\n *\n * @param title the title for this member.\n */\n void setTitle(String title);\n\n /**\n * Returns the initials for this member.\n *\n * @return the initials for this member.\n */\n String getInitials();\n\n /**\n * Sets the initials for this member.\n *\n * @param initials the initials for this member.\n */\n void setInitials(String initials);\n\n /**\n * Returns the firstName for this member.\n *\n * @return the firstName for this member.\n */\n String getFirstName();\n\n /**\n * Sets the firstName for this member.\n *\n * @param firstName the firstName for this member.\n */\n void setFirstName(String firstName);\n\n /**\n * Returns the surname for this member.\n *\n * @return the surname for this member.\n */\n String getSurname();\n\n /**\n * Sets the surname for this member.\n *\n * @param surname the surname for this member.\n */\n void setSurname(String surname);\n\n /**\n * Returns the idNumber for this member.\n *\n * @return the idNumber for this member.\n */\n String getIdNumber();\n\n /**\n * Sets the idNumber for this member.\n *\n * @param idNumber the idNumber for this member.\n */\n void setIdNumber(String idNumber);\n\n /**\n * Returns the {@link GenderStatus genderStatus} for this member.\n *\n * @return the {@link GenderStatus genderStatus} for this member.\n */\n GenderStatus getGenderStatus();\n\n /**\n * Sets the {@link GenderStatus genderStatus} for this member.\n *\n * @param genderStatus the {@link GenderStatus genderStatus} for this member.\n */\n void setGenderStatus(GenderStatus genderStatus);\n\n /**\n * Returns the date of birth for this member.\n *\n * @return the date of birth for this member.\n */\n LocalDate getDateOfBirth();\n\n /**\n * Sets the date of birth for this member.\n *\n * @param dateOfBirth the date of birth for this patient.\n */\n void setDateOfBirth(LocalDate dateOfBirth);\n\n /**\n * Returns the mugShot for this member.\n *\n * @return the mugShot for this member.\n */\n ILogo getMugShot();\n\n /**\n * Sets the mugShot for this member.\n *\n * @param mugShot for this member.\n */\n void setMugShot(ILogo mugShot);\n\n /**\n * Gets the {@link ISystemUser user} of the member.\n *\n * @return { {@link ISystemUser user} of the member.\n */\n ISystemUser getSystemUser();\n\n /**\n * Sets the {@link ISystemUser user} of the member.\n *\n * @param user of the area user was created member.\n */\n void setSystemUser(ISystemUser user);\n}", "private void convertMemberTypeUpdateIntoMember(MemberTypeUpdate memberTypeUpdate) {\n member = new Member();\n member.setLogin(memberTypeUpdate.getLogin().toUpperCase());\n member.setFirstName(memberTypeUpdate.getFirstName().toUpperCase());\n member.setPassword(memberTypeUpdate.getPassword().toUpperCase());\n member.setLastName(memberTypeUpdate.getLastName().toUpperCase());\n member.setEmail(memberTypeUpdate.getEmail().toUpperCase());\n member.setRole(memberTypeUpdate.getRole().toUpperCase());\n logger.info(\"conversion memberTypeUpdate into member done\");\n }", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "protected ProcessAddPerson() {\n }", "public void addPerson(Person p);", "public void setPersons(Hashtable<String, Person> persons) {\r\n\t\tthis.persons = persons;\r\n\t}", "private void updateMemberList(Set<ChatRoomUser> chatRoomUserSet,\n boolean removeMember)\n {\n Iterator<ChatRoomUser> it = chatRoomUserSet.iterator();\n\n while (it.hasNext())\n {\n ChatRoomUser user = it.next();\n String uid = user.getScreenname().getFormatted();\n\n // we want to add a member and he/she is not in our member list\n if (!removeMember && !participants.containsKey(uid)\n && !uid.equals(provider.getAccountID().getUserID()))\n {\n OperationSetPersistentPresenceIcqImpl presenceOpSet =\n (OperationSetPersistentPresenceIcqImpl) getParentProvider()\n .getOperationSet(OperationSetPersistentPresence.class);\n\n Contact participant =\n presenceOpSet.getServerStoredContactList()\n .findContactByScreenName(uid);\n\n participants.put(uid, participant);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_JOINED,\n null);\n }\n // we want to remove a member and found him/her in our member list\n if (removeMember && participants.containsKey(uid))\n {\n Contact participant = participants.get(uid);\n\n participants.remove(uid);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n null);\n }\n }\n }", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "@Test\r\n public void testSetTypeId() {\r\n System.out.println(\"setTypeId\");\r\n int tid = 0;\r\n \r\n instance.setTypeId(tid);\r\n assertEquals(tid, instance.getTypeId());\r\n \r\n }", "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "public Builder setPerson(com.zzsong.netty.protobuff.two.ProtoData.Person value) {\n if (personBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n dataBody_ = value;\n onChanged();\n } else {\n personBuilder_.setMessage(value);\n }\n dataBodyCase_ = 2;\n return this;\n }", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 0;\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setMemberId(memberId);\r\n }", "public void setCreatePerson(String createPerson) {\n this.createPerson = createPerson;\n }" ]
[ "0.75201017", "0.6272709", "0.6256757", "0.62282753", "0.62121826", "0.60841334", "0.6079993", "0.60493", "0.60493", "0.60188967", "0.6015647", "0.59519035", "0.59510344", "0.5873702", "0.587114", "0.57789516", "0.57778823", "0.5681973", "0.5673933", "0.5652999", "0.55819154", "0.55786055", "0.55594456", "0.5555278", "0.55385953", "0.5520672", "0.55145526", "0.54478294", "0.5434753", "0.5428983", "0.5419484", "0.5386618", "0.5381647", "0.5380642", "0.5367954", "0.53586704", "0.5338482", "0.53282595", "0.53203857", "0.5319275", "0.5316381", "0.5316139", "0.53060156", "0.5286828", "0.52788854", "0.52722335", "0.5268499", "0.5246948", "0.52341354", "0.5229787", "0.52212906", "0.52151674", "0.5213973", "0.5207925", "0.5177989", "0.5177827", "0.51773435", "0.51757115", "0.51654285", "0.51603246", "0.5147352", "0.5139411", "0.51343226", "0.5121891", "0.5116722", "0.5113995", "0.5112556", "0.51080525", "0.51050717", "0.510357", "0.5101654", "0.51004314", "0.51004314", "0.51004314", "0.5098568", "0.5092898", "0.50898284", "0.5085832", "0.5081905", "0.5076506", "0.5075399", "0.50728196", "0.5069134", "0.50618243", "0.5059239", "0.50587696", "0.50585586", "0.50547534", "0.50544095", "0.5051291", "0.5050333", "0.50502497", "0.5049242", "0.50381243", "0.5030203", "0.502294", "0.5021126", "0.50191224", "0.5018627", "0.5014312" ]
0.68725556
1
finish node means end of current subtree for example, postorder = [9,15,7,20,3], numbers just before 3 is it's right subtree (20, 7, 15), and their finish node is 3.
private TreeNode helper(int[] inorder, int[] inIdx, int[] postorder, int[] postIdx, TreeNode finish) { if (postIdx[0] < 0 || (finish != null && inorder[inIdx[0]] == finish.val)) { return null; } TreeNode root = new TreeNode(postorder[postIdx[0]--]); root.right = helper(inorder, inIdx, postorder, postIdx, root); inIdx[0]--; root.left = helper(inorder, inIdx, postorder, postIdx, finish); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finish(Node n) {}", "public int getEndNode(){\n\t\treturn endNode;\n\t}", "Node getEndNode() {\n return end;\n }", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "private static boolean postOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the right child, then finally the current node\n else{\n postOrderTraversal(current.getLeftChild());\n postOrderTraversal(current.getRightChild());\n postorder.add(current);\n }\n return true;\n }", "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "public void insertAtEnd(int data)\r\n\t{\r\n\t\t\r\n\t\tif(root ==null) {\r\n\t\t\tNode atEnd = new Node(data);\r\n\t\t\troot = atEnd;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tNode tmp = root;\r\n\t\t\t//traversing the last node that has null at the end \r\n\t\t\twhile(tmp!=null)\r\n\t\t\t{\r\n\t\t\t\ttmp = tmp.right;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tNode atEnd = new Node(data);\r\n\t\t\tatEnd.right = atEnd;\r\n\t\t}\r\n\t}", "public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }", "public void postorder()\n {\n postorder(root);\n }", "public void postorder()\n {\n postorder(root);\n }", "private nodeClass findLast(){\n nodeClass aux = pivot; \n do{\n aux=aux.next;\n }while (aux.next!=pivot);\n return aux; //esto te devuelve el ultimo nodo de la lista\n }", "public void postOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tpostOrderTravel(node.leftChild);\r\n\t\t\tpostOrderTravel(node.rightChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t}\r\n\t}", "private void postOrder(Node<T> node){\n if(node != null){\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" ,\");\n }\n }", "public void postOrder(Node node) {\n\n if (node == null) {\n System.out.println(\"Tree is empty\");\n return;\n }\n\n Stack<Node> stack1 = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n\n stack1.push(node);\n\n while (!stack1.empty()) {\n\n node = stack1.pop();\n\n stack2.push(node);\n\n if (node.left != null) {\n stack1.push(node.left);\n }\n\n if (node.right != null) {\n stack1.push(node.right);\n }\n }\n\n while (!stack2.empty()) {\n node = stack2.pop();\n System.out.print(node.value + \" \");\n }\n }", "@PortedFrom(file = \"Taxonomy.h\", name = \"finishCurrentNode\")\n public void finishCurrentNode() {\n TaxonomyVertex syn = current.getSynonymNode();\n if (syn != null) {\n addCurrentToSynonym(syn);\n } else {\n // put curEntry as a representative of Current\n if (!queryMode()) {\n // insert node into taxonomy\n current.incorporate(options);\n graph.add(current);\n // we used the Current so need to create a new one\n current = new TaxonomyVertex();\n }\n }\n }", "public void finish(Record data, boolean success) {\n\t\tif (((DefaultMutableTreeNode)this.getParent()).getSiblingCount()>1) { // NB nodes are their own siblings, so even the root has 1 sibling - itself.\r\n\t\t\t// This is one in a queue. Execute the next\r\n\t\t\t((OperationInfo)(this.getParent())).finish(data, success);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }", "public Iteratable<IRNode> bottomUp(IRNode subtree);", "public List<Node> find(Node start, Node finish){\n reachable.add(start);\n this.finish = finish;\n\n while(!reachable.isEmpty()){\n // Select a node from the reachable list\n // If we've reached the end, return the list of nodes in our path\n \n Node node = selectNode(reachable);\n if(node.isEqual(finish)){\n return getPath(node);\n }\n\n // Otherwise, remove the new node from the reachable list, and add it to the \n // visited list so we don't look at a node more than necessary. Build a list of the\n // nodes that are adjacent to our current node.\n \n reachable.remove(node);\n visited.add(node);\n List<Node> adjacent = getAdjacent(node);\n\n // If the current node has adjacent nodes, and if we haven't looked at those nodes before,\n // add those nodes to the reachable list. If the node's cost is lower than 1+the cost to reach it,\n // make the node's parent the previous node and set the cost\n if(!adjacent.isEmpty()) {\n for (Node n : adjacent) {\n if (!reachable.contains(n)&&!visited.contains(n)) {\n reachable.add(n);\n }\n if (node.getCostEstimated() + 1 <= n.getCostEstimated()) {\n n.setParent(node);\n n.setCostEstimated(node.getCostEstimated() + 1);\n }\n }\n }\n }\n return null;\n }", "public List<Integer> postOrder(TreeNode root) {\n\n List<Integer> ans = new ArrayList<>();\n\n if(root==null){\n return ans;\n }\n\n Deque<TreeNode> stack = new LinkedList<>();\n stack.push(root);\n TreeNode pre = new TreeNode(0);\n\n while(!stack.isEmpty()) {\n\n if (stack.peek().left != null && stack.peek().left != pre && stack.peek().right != pre) {\n stack.push(stack.peek().left);\n continue;\n }\n\n if (stack.peek().right != null && stack.peek().right != pre) {\n stack.push(stack.peek().right);\n continue;\n }\n pre = stack.poll();\n ans.add(pre.key);\n }\n\n return ans;\n\n }", "public void postOrder(){\n postOrder(root);\n System.out.println();\n }", "void postOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tpostOrderTraversal(node.getLeftNode());\n\t\tpostOrderTraversal(node.getRightNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t}", "private List<T> postOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult = postOrderHelper(current.getLeft(), result);\n\t\t\tresult = postOrderHelper(current.getRight(), result);\n\t\t\tresult.add(current.getData());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void postOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n postOrder(node.getLeft());\r\n postOrder(node.getRight());\r\n System.out.println(node.getElement());\r\n\r\n }", "public void postorder() {\n\t\tpostorder(root);\n\t}", "public List<Integer> postorderTraversal1(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n TreeNode current = root;\n\n while (current != null || !stack.isEmpty()) {\n\n // visit until the leaf\n while (current != null) {\n stack.push(current);\n\n // visit left right, then right, as in post-order\n if (current.left != null) {\n current = current.left;\n } else {\n current = current.right;\n // check in the end is to sure right is always visited\n }\n }\n\n // node as parent, its left and right child are both null\n TreeNode node = stack.pop();\n traversal.add(node.val); // node is added after both its children are visited\n\n // visit node's right sibling if it exists\n // stack.peek()\n // / \\\n // node to be visited\n if (!stack.isEmpty() && stack.peek().left == node) {\n current = stack.peek().right;\n }\n }\n\n return traversal;\n }", "Node lastNode(Node node){\n while(node.next!=null)\n node = node.next;\n return node;\n }", "public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }", "private boolean isNodeLast(TreeNode node)\n\t{\n\t\tTreeNode parent = node.getParent();\n\t\tif (parent == null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn parent.getChildAt(parent.getChildCount() - 1).equals(node);\n\t\t}\n\t}", "public List<Integer> postorderTraversal(TreeNode root) {\n LinkedList<Integer> res = new LinkedList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n while (root != null || !stack.empty()) {\n if (root != null) {\n res.addFirst(root.val);\n stack.push(root);\n root = root.right;\n }\n else {\n root = stack.pop().left;\n }\n }\n return res;\n }", "void postorder(Node root){\n if(root!=null){\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.data+\" \");\n }\n\n }", "private void traversePostOrder(BSTNode<T> node, LinkedList<T> list) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(node!= null) {\r\n\t\t\t//left\r\n\t\t\tthis.traversePostOrder(node.left, list);\r\n\t\t\t//right\r\n\t\t\tthis.traversePostOrder(node.right, list);\r\n\t\t\t//visit node\r\n\t\t\tlist.add(node.data);\r\n\t\t}\r\n\t}", "public void traversePostOrder(Node node) {\n\t\tif (node != null) {\n\t\t\ttraversePostOrder(node.left);\n\t\t\ttraversePostOrder(node.right);\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t}\n\t}", "public static void postOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tpostOrder(node.left);\n\t\tpostOrder(node.right);\n\t\tSystem.out.print(node.value + \" \");\t\n\t}", "static int reverseRecursiveTravesal(Node node, int k) {\n\t\tif(node == null)\n\t\t\treturn -1;\n\t\t\n\t\tint indexFromLast = reverseRecursiveTravesal(node.getNext(), k) + 1;\n\t\tif(indexFromLast == k) \n\t\t\tSystem.out.println(node.getData());\n\t\t\n\t\treturn indexFromLast;\n\t\t\n\t}", "public void addlast(Item item)\r\n {\r\n Node last = post.prev;\r\n Node x = new Node();\r\n x.item = item;\r\n x.next = post;\r\n x.prev = last;\r\n post.prev = x;\r\n last.next = x;\r\n n++;\r\n }", "private void postorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tpostorderHelper(root.left);\n\t\t\tpostorderHelper(root.right);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t}\n\t}", "public Node<T> getLast() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.prev;\r\n }", "private int pushDown(int start_index) {\n\t\tif(left(start_index)<heap.size()-1 && hasTwoChildren(start_index)==false) {\n\t\t\tif(heap.get(left(start_index)).priority< heap.get(start_index).priority){\n\t\t\t\tswap(start_index,left(start_index));\n\t\t\t\treturn pushDown(left(start_index));\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn start_index;\n\t\t\t}\n\t\t}\n\t\telse if (hasTwoChildren(start_index)){\n\t\t\tint priorityLeft= heap.get(left(start_index)).priority;\n\t\t\tint priorityRight= heap.get(right(start_index)).priority;\n\t\t\tint priorityParent= heap.get(start_index).priority;\n\t\t\tif(priorityLeft<=priorityRight && priorityLeft<priorityParent){\n\t\t\t\tswap(start_index,left(start_index));\n\t\t\t\treturn pushDown(left(start_index));\n\t\t\t}\n\t\t\telse if (priorityRight<priorityLeft && priorityRight<priorityParent) {\n\t\t\t\tswap(start_index,right(start_index));\n\t\t\t\treturn pushDown(right(start_index));\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn start_index;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn start_index;\n\t\t}\n\n\t}", "private void postOrder(OpTree t, ArrayList<String> rlist)\n\t{\n\t\tif (t == null) return;\n\t\tpostOrder(t.left, rlist);\n\t\tpostOrder(t.right, rlist);\n\t\trlist.add(rlist.size(),(t.op != null? t.op : t.dval.toString()));\n\t}", "private static void insertAtEnd(int data) {\n\tNode newnode=new Node(data);\n\tnewnode.next=null;\n\tNode n=head;\n\tNode last=head;\n\twhile(last.next!=null)\n\t{\n\t\tlast=last.next;\n\t}\n\tlast.next=newnode;\n\tnewnode.prev=last;\n\treturn;\n\t\n}", "public String getEndNode()\r\n\t{\r\n\t\treturn endNode;\r\n\t}", "private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}", "private void postorderHelper(TreeNode<T> node){\n\n if (node == null)\n return;\n\n postorderHelper(node.leftNode);\n postorderHelper(node.rightNode);\n System.out.printf(\"%s \", node.data);\n }", "public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }", "public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public int findLast() {\n\t\tint result = 0;\n\t\twhile (!checkHaveThisNode(result))\n\t\t\tresult++;\n\n\t\treturn result;\n\t}", "public static void postOrder(Node node) {\n if (node == null) {\n return;\n }\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" \");\n }", "private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }", "private SourcePosition getTreeEndLocation() {\n return lastSourcePosition;\n }", "private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }", "public List<Integer> postorderTraversalRecursive(TreeNode root) {\n if (root == null) {\n return rst;\n }\n postorderTraversalRecursive(root.left);\n postorderTraversalRecursive(root.right);\n rst.add(root.val);\n return rst;\n }", "private void postOrderTraverse(Node<String> node,StringBuilder sb) {\n\n\t\t\t\tif (node != null) {\t\n\t\t\t\t\tpostOrderTraverse(node.left, sb);\n\t\t\t\t\tpostOrderTraverse(node.right,sb);\n\t\t\t\t\tsb.append(node.toString());\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "private PersistentLinkedList<T> pop() {\n //the latest element won't become empty\n int index = this.treeSize - 1;\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n ArrayList<Node<T>> newNodes = new ArrayList<>();\n newNodes.add(newRoot);\n ArrayList<Integer> newNodesIndices = new ArrayList<>();\n\n for (int b = base; b > 1; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n newNodes.add(currentNewNode);\n newNodesIndices.add(index / b);\n index = traverseData.index;\n }\n newNodesIndices.add(index);\n\n for (int i = 0; i < branchingFactor && i < index; i++) {\n currentNewNode.set(i, currentNode.get(i));\n }\n currentNewNode.set(index, null);\n\n if (index == 0) {\n int latestIndex = newNodes.size() - 2;\n newNodes.get(latestIndex).set(newNodesIndices.get(latestIndex), null);\n\n for (int i = latestIndex; i > 0; i--) {\n if (newNodesIndices.get(i) == 0) {\n newNodes.get(i - 1).set(newNodesIndices.get(i - 1), null);\n } else {\n break;\n }\n }\n }\n\n if (newNodes.size() > 1) {\n int nonNullChildren = 0;\n for (Node<T> child : newRoot.children) {\n if (child != null) {\n nonNullChildren++;\n }\n }\n if (nonNullChildren == 1) { //need new root\n newRoot = newRoot.get(0);\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth - 1,\n this.base / branchingFactor, this.treeSize - 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }\n }\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize - 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }", "public void postOrder2(BinaryTreeNode root) {\n\t\tBinaryTreeNode cur = root;\n\t\tBinaryTreeNode pre = root;\n\t\tStack<BinaryTreeNode> s = new Stack<BinaryTreeNode>();\n\n\t\tif (root != null)\n\t\t\ts.push(root);\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tcur = s.peek();\n\t\t\t// traversing down the tree\n\t\t\tif (cur == pre || cur == pre.getLeft() || cur == pre.getRight()) {\n\t\t\t\tif (cur.getLeft() != null) {\n\t\t\t\t\ts.push(cur.getLeft());\n\t\t\t\t} else if (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t}\n\t\t\t\tif (cur.getLeft() == null && cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// traversing up the tree from the left\n\t\t\telse if (pre == cur.getLeft()) {\n\t\t\t\tif (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t} else if (cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// we are traversing up the tree from the right\n\t\t\telse if (pre == cur.getRight()) {\n\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t}\n\t\t\tpre = cur;\n\t\t}\n\t}", "public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }", "public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }", "private static Node reverseList(Node start) {\n Node runner = start;\n // initialize the return value\n Node rev = null;\n // set the runner to the last item in the list\n while (runner != null) {\n Node next = new Node(runner.value);\n next.next = rev;\n rev = next;\n runner = runner.next;\n }\n return rev;\n }", "private void postOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.postOrderTraversal(sb);\n }\n\n if (right != null) {\n right.postOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n }", "private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}", "public Node<T> getLast() {\r\n\t\treturn last;\r\n\t}", "public static void main(String[] args) {\n\t\tNode root = new Node(30);\n\t\troot.right = new Node(40);\n\t\troot.left = new Node(20);\n\t\troot.left.right=new Node(25);\n\t\troot.left.left = new Node(10);\n\t\troot.right.left = new Node(35);\n\t\troot.right.right = new Node(45);\n\t\t\n\t\tpostOrderTraversal(root);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tpostOrderRecursion(root);\n\t}", "Node deleteAfter(int data) {\n if (last == null)\n return null;\n Node toDelete = null;\n Node curr = last;\n do {\n if (curr.data == data) {\n toDelete = curr.next;\n // check for a one node list... in which case we're deleting whole ting.\n if (curr.next == curr) {\n last = null;\n } else {\n // curr will point to the one following toDelete\n // cutting toDelete out of the linkages.\n curr.next = toDelete.next;\n // if toDelete is last, last is now curr.\n if (toDelete == last)\n last = curr;\n }\n break;\n }\n curr = curr.next;\n } while (curr != last); // while we have not made multiple passes.\n return toDelete;\n }", "@Override\n public void deleteAtEnd() {\n Node<T> last = start;\n Node<T> lastButOne = null;\n while(last !=null){\n lastButOne = last;\n last = last.next;}\n lastButOne.next = null;\n }", "public Node<E> remove_last_node(){\r\n if (theData.size() <= 0) return null;\r\n\r\n Node<E> item = theData.get(theData.size()-1);\r\n\r\n theData.remove(theData.size() - 1);\r\n\r\n return item;\r\n }", "public T getLast()\n\t//POST: FCTVAL == last element of the list\n\t{\n\t\tNode<T> tmp = start;\n\t\twhile(tmp.next != start) //traverse the list to end\n\t\t{\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp.value;\t//return end element\n\t}", "boolean deadEnd(Node root, int min, int max) \n{ \n // if the root is null or the recursion moves \n // after leaf node it will return false \n // i.e no dead end. \n if (root==null) \n return false; \n \n // if this occurs means dead end is present. \n if (min == max) \n return true; \n \n // heart of the recursion lies here. \n return deadEnd(root.left, min, root.data - 1)|| \n deadEnd(root.right, root.data + 1, max); \n}", "public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }", "protected void endTraversal(SoNode node)\n\t {\n\t }", "void postOrderOperation(PortfolioNode parentNode, Position position);", "private void postOrder(BSTNode<K,V> node, List<Entry<K,V>> list) throws NullPointerException {\n\t\tif (root == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (root != null) {\n\t\t\t\n\t\t\tif (node.left != null) {\n\t\t\t\tpostOrder(node.left, list);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.right != null) {\n\t\t\t\tpostOrder(node.right, list);\n\t\t\t}\n\t\t\t\n\t\t\tlist.add(new Entry<K,V>(node.key, node.value));\n\t\t}\n\t}", "public E getLast()// you finish (part of HW#4)\n\t{\n\t\t// If the tree is empty, return null\n\t\t// FIND THE RIGHT-MOST RIGHT CHILD\n\t\t// WHEN you can't go RIGHT anymore, return the node's data to last Item\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasRightChild())\n\t\t\titeratorNode = iteratorNode.getRightChild();\n\t\treturn iteratorNode.getData();\n\t}", "public void addLast(T item){\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, null, _end);\n\t _end.setPrev(temp);\n\t _end = temp;\n\t}\n\t_size++;\n }", "private TreeNode cBST(int begin,int end){\n\n if(begin >= end){ return null;}\n\n int index = (begin + end)/2;\n\n //Left-Visit\n TreeNode l = cBST(begin,index);\n\n //Middle-Visit\n TreeNode root = new TreeNode(cur.val);\n root.left = l;\n cur = cur.next;\n\n //Right-Visit\n TreeNode r = cBST(index+1,end);\n\n //Post-Process and return values\n root.right = r;\n return root;\n }", "public QueueADT<QuadNode> postOrder(QuadNode node,QueueADT<QuadNode> queue){\n\t\tif(node==null) { return queue;}\n\t\telse\n\t\t{\n\t\t\tqueue=postOrder(node.getNorthEast(),queue);\n\t\t\tqueue=postOrder(node.getNorthWest(),queue);\n\t\t\tqueue=postOrder(node.getSouthEast(),queue);\n\t\t\tqueue=postOrder(node.getSouthWest(),queue);\n\t\t\tif(isLeaf(node)) { queue.enqueue(node); return queue;}\n\t\t\treturn queue;\n\t\t}\n\t}", "public static void PrePostIterative(Node node){\r\n \r\n Stack<Pair> st = new Stack<>();\r\n st.push(new Pair(node, -1)); //-1 here is for state initially\r\n \r\n //Create two ArrayList to store values\r\n ArrayList<Integer> pre = new ArrayList<>();\r\n ArrayList<Integer> post = new ArrayList<>();\r\n \r\n while(st.size() > 0){\r\n Pair p = st.peek();\r\n \r\n //if p.state = -1 then add value in pre and increase state\r\n if(p.state == -1){\r\n pre.add(p.node.data);\r\n p.state++;\r\n }\r\n \r\n //if p.state = node.children.size then add value in post and pop from Stack\r\n else if(p.state == p.node.children.size()){\r\n post.add(p.node.data);\r\n st.pop();\r\n }\r\n \r\n //if state is between 0 and children size then add children of node at state value to stack and increase state\r\n else{\r\n Node child = p.node.children.get(p.state); //p.state value is the p.state'th child like 0th child, 1st child like this.\r\n st.push(new Pair(child, -1));\r\n p.state++;\r\n }\r\n }\r\n \r\n //Print values in pre and post ArrayList\r\n for(int val : pre){\r\n System.out.print(val + \" \");\r\n }\r\n System.out.println();\r\n for(int val : post){\r\n System.out.print(val + \" \");\r\n }\r\n System.out.println();\r\n }", "private void treePostOrderTraversal(Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "public static void postorder(Node root){\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t\tSystem.out.println(root.toString());\n\n\t\t}\n\t}", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public void postOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n postOrderTraverseTree(focusNode.leftChild);\n postOrderTraverseTree(focusNode.rightChild);\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n }\n }", "public void postOrder() {\n postOrder(root);\n }", "public void removelast()\r\n {\r\n Item item = post.item;\r\n post = post.prev;\r\n n--;\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tNode current=new Node(10);\r\n\t\tcurrent.next = new Node(20); \r\n\t\tcurrent.next.next = new Node(320); \r\n\t\tcurrent.next.next.next = new Node(910); \r\n\t\tcurrent.next.next.next.next = new Node(920); \r\n Node r=kthlastelement(current,3);\r\n if(r==null)\r\n {\r\n \t System.out.print(\"no element to return\");\r\n }\r\n else System.out.print(r.data);\r\n //System.out.print(prev);\r\n /*while(r != null)\r\n {\r\n \t System.out.print(r.data);\r\n \t r=r.next;\r\n }*/\r\n\r\n\t}", "public void postOrderTraversal() {\n postOrderThroughRoot(root);\n System.out.println();\n }", "private void pruneRecur(BinaryNode node, Integer sum, Integer k) {\n\n if (node == null) return;\n else {\n sum += (Integer)node.element;\n if (largestPath(node.left, sum) >= k) {\n pruneRecur(node.left, sum, k);\n } else {\n node.left = null;\n }\n if (largestPath(node.right, sum) >= k) {\n pruneRecur(node.right, sum, k);\n } else {\n node.right = null;\n }\n }\n }", "public void postOrder(MyBinNode<Type> r){\n if(r != null){\n this.postOrder(r.right);\n this.postOrder(r.left);\n System.out.print(r.value.toString() + \" \");\n }\n }", "boolean treeFinished(treeNode root){\n\t\treturn (root.parent == null && root.lc == null && root.rc == null);\n\t}", "public static void main(String[] args) {\n Node current = new Node(1, null);\n for (int i = 2; i < 8; i++) {\n current = new Node(i, current);\n }\n Node head = current;\n // head = 7 -> 6 -> 5 -> 4 -> 3 -> 2 -> 1 -> (null)\n\n Node current2 = new Node(4, null);\n for (int i = 3; i > 0; i--) {\n current2 = new Node(i, current2);\n }\n Node head2 = current2;\n // head2 = 1 -> 2 -> 3 -> 4 -> (null)\n\n System.out.println(nthFromLast(head, 1)); // should return 1.\n System.out.println(nthFromLast(head, 5)); // should return 5.\n System.out.println(nthFromLast(head2, 2)); // should return 3.\n System.out.println(nthFromLast(head2, 4)); // should return 1.\n System.out.println(nthFromLast(head2, 5)); // should return null.\n System.out.println(nthFromLast(null, 1)); // should return null.\n }", "public Node getLast()\n {\n return this.last;\n }", "private void postOrder(HomogeneusNode root) {\n if (root != null) {\n postOrder(root.getLeft());\n postOrder(root.getRight());\n System.out.printf(\"%d\", root.getData());\n }\n }", "public Node getTailNode();", "public void printPostOrder(Node currNode){\n if (currNode != null){\n printInOrder(currNode.left);\n printInOrder(currNode.right);\n System.out.print(currNode.val + \", \");\n }\n }", "void printPostorder(Node node) {\n\t\t//base case\n\t\tif(node == null)\n\t\t\treturn;\n\t\t// first recur on left subtree\n\t\tprintPostorder(node.left);\n\t\t\t\t\n\t\t// then recur on right subtree\n\t\tprintPostorder(node.right);\n\t\t\t\t\n\t\t// now deal with the node\n\t\tSystem.out.print(node.data + \" \");\n\t}", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "public Snippet visit(FinishStatement n, Snippet argu) {\n\t Snippet _ret=null;\n\t tPlasmaCode+=generateTabs(blockDepth);//+\"finish \";\n\t n.nodeToken.accept(this, argu);\n\t n.block.accept(this, argu);\n\t \n\t return _ret;\n\t }", "public static List<TreeNode> postOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\n\t\tif (rootNode == null)\n\t\t\treturn output;\n\n\t\tStack<TreeNode> s = new Stack<TreeNode>();\n\t\tTreeNode current = rootNode;\n\n\t\twhile (true) {\n\n\t\t\tif (current != null) {\n\t\t\t\tif (current.right != null)\n\t\t\t\t\ts.push(current.right);\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.left;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (s.isEmpty())\n\t\t\t\treturn output;\n\t\t\tcurrent = s.pop();\n\n\t\t\tif (current.right != null && !s.isEmpty() && current.right == s.peek()) {\n\t\t\t\ts.pop();\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.right;\n\t\t\t} else {\n\t\t\t\toutput.add(current);\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t}\n\n\t}", "public void bfs(Node root) {\r\n\t\tQueue<Node> q = new LinkedList<Node>();\r\n\t\tint count = 0;\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tq.add(root);\r\n\t\twhile (!q.isEmpty()) {\r\n\t\t\tNode n = (Node) q.remove();\r\n\t\t\tSystem.out.print(\" \" + n.data);\r\n\r\n\t\t\tif (n.Lchild != null) {\r\n\r\n\t\t\t\tq.add(n.Lchild);\r\n\t\t\t} else if (n.Rchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\t\t\tif (n.Rchild != null) {\r\n\t\t\t\tq.add(n.Rchild);\r\n\t\t\t} else if (n.Lchild != null) {\r\n\t\t\t\tNode t1 = new Node(-1);\r\n\t\t\t\tcount++;\r\n\t\t\t\tq.add(t1);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\" + \"the number of gaps :: \" + count);\r\n\t}", "private void postorderRightOnly(Node root) {\r\n if (root.right != null)\r\n postorderRightOnly(root.right);\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n }", "static void postOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n postOrderTraversal(root.left);\n postOrderTraversal(root.right);\n System.out.print(root.data + \" \");\n }", "public void postOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tpostOrder(localRoot.leftChild);\r\n\t\t\tpostOrder(localRoot.rightChild);\r\n\t\t\tSystem.out.print(localRoot.data+ \" \");\r\n\t\t}\r\n\t}" ]
[ "0.69990796", "0.58339936", "0.5763041", "0.57279474", "0.5696577", "0.56179935", "0.5617057", "0.5612637", "0.55462235", "0.55462235", "0.55341804", "0.55051154", "0.5492303", "0.5418648", "0.5416719", "0.53975654", "0.53817767", "0.53810376", "0.53782016", "0.53602767", "0.53507346", "0.53291416", "0.531609", "0.5305285", "0.5303015", "0.5295308", "0.52897507", "0.5280392", "0.5274999", "0.5260583", "0.5259131", "0.525129", "0.52373904", "0.52344924", "0.5233359", "0.5231251", "0.5227652", "0.5218569", "0.52072555", "0.5193436", "0.51829463", "0.517497", "0.51570946", "0.5153575", "0.51516443", "0.5151641", "0.5151058", "0.51510066", "0.5134193", "0.5129922", "0.51298004", "0.512855", "0.5127329", "0.5125411", "0.51015615", "0.51005733", "0.5097014", "0.5088288", "0.50722945", "0.50713396", "0.5071024", "0.50648636", "0.5063503", "0.50604683", "0.5054008", "0.50476545", "0.5036922", "0.50189483", "0.5018791", "0.5018729", "0.50121355", "0.5010807", "0.49996838", "0.49968162", "0.4987034", "0.49778193", "0.49759996", "0.49685982", "0.49463388", "0.49364075", "0.49255386", "0.49241853", "0.4922466", "0.49074882", "0.49058476", "0.49030894", "0.48996654", "0.48892757", "0.4885616", "0.48849133", "0.48793337", "0.48792455", "0.48697335", "0.48631912", "0.48622543", "0.4859549", "0.48571894", "0.48559952", "0.4854431", "0.48544273" ]
0.63071615
1